:root {
    /* Brand Colors Extracted */
    --color-text: #333333;
    --color-text-light: #5A5A5A;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F9FA;
    --color-bg-subtle: #F0F2F5;

    /* Logo Accent Colors (Approximated from LogoVectorAedpe) */
    --color-primary-teal: #127a7a;
    --color-primary-teal-dark: #0e5e5e;
    --color-accent-red: #ba1e2c;
    --color-accent-red-hover: #9c1521;

    /* Typography */
    --font-heading: 'Wix Madefor Display', Inter, system-ui, sans-serif;
    --font-body: 'Wix Madefor Text', Roboto, system-ui, sans-serif;

    /* Shadows & Spacing */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --max-width: 1280px;
    --header-height: 80px;
}

/* Reset & Scaffolding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.grand-quote {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.cta-button.nav-cta {
    background-color: transparent;
    border-color: var(--color-primary-teal);
    color: var(--color-primary-teal);
    padding: 0.6rem 1.5rem;
}

.cta-button.nav-cta:hover {
    background-color: var(--color-primary-teal);
    color: white;
}

.cta-button.outline {
    background-color: transparent;
    border-color: white;
    color: white;
    backdrop-filter: blur(4px);
}

.cta-button.outline:hover {
    background-color: white;
    color: var(--color-primary-teal);
    transform: translateY(-2px);
}

.cta-button.solid-accent {
    background-color: var(--color-accent-red);
    color: white;
}

.cta-button.solid-accent:hover {
    background-color: var(--color-accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(186, 30, 44, 0.3);
}

/* Glass Header */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    height: 48px;
    display: flex;
    align-items: center;
}

.logo {
    height: 100%;
    width: auto;
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-light);
    position: relative;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--color-primary-teal);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-teal);
    transition: var(--transition);
}

.nav-item:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 94, 94, 0.85) 0%, rgba(51, 51, 51, 0.7) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    text-align: center;
    padding: 0 2rem;
    color: white;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-wrap: balance;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
    text-wrap: balance;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    position: relative;
}

.pattern-bg {
    background-color: var(--color-bg);
    background-image: radial-gradient(var(--color-bg-subtle) 1px, transparent 1px);
    background-size: 24px 24px;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3.5rem);
    color: var(--color-accent-red);
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 500;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

.partnership {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.partner-logo {
    height: 32px;
    width: auto;
}

/* Pillars Section */
.split-bg {
    background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    padding: 2rem 0 8rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.pillar-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-top: 4px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--color-primary-teal);
}

.pillar-content {
    padding: 3rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pillar-content h3 {
    font-size: 1.5rem;
    color: var(--color-primary-teal);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.pillar-content p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* Quote Section */
.quote-section {
    padding: 10rem 0;
    background-color: white;
    text-align: center;
}

.grand-quote {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-style: italic;
    font-weight: 400;
    color: var(--color-text);
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.4;
    text-wrap: balance;
}

/* Services Section */
.services-section {
    padding: 8rem 0;
    background-color: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.services-info h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-primary-teal);
}

.services-info p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.services-list ul {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.services-list li {
    display: flex;
    align-items: flex-start;
    font-size: 1.2rem;
    color: var(--color-text);
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.services-list li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-accent-red);
}

.bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent-red);
    margin-top: 10px;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Paquetes Section */
.paquetes-section {
    padding: 8rem 0;
    background-color: var(--color-bg);
}

.packages-note {
    font-size: 1.1rem;
    color: var(--color-accent-red);
    font-weight: 600;
}

.top-note {
    text-align: right;
    margin-bottom: 2rem;
}

.bottom-note {
    margin-top: 2rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.package-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    border-top: 4px solid var(--color-primary-teal);
}

.package-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--color-accent-red);
}

.package-card.premium {
    border-top-color: var(--color-accent-red);
}

.package-card.premium:hover {
    border-top-color: var(--color-primary-teal);
}

.package-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent-red);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 3;
}

.package-name {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary-teal);
    text-align: center;
}

.package-card.premium .package-name {
    color: var(--color-accent-red);
}

.package-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
    line-height: 1.5;
    text-align: left;
    color: var(--color-text-light);
}

.package-features .bullet {
    background-color: var(--color-accent-red);
    margin-top: 6px;
}

/* Footer */
.main-footer {
    background-color: white;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 56px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--color-text-light);
    font-size: 1rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-bg-subtle);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Page Headers */
.page-header {
    padding: calc(var(--header-height) + 4rem) 2rem 4rem;
    text-align: center;
    background-color: var(--color-bg-alt);
}

.page-header h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--color-accent-red);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.page-header p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Profesionales Section */
.profesionales-section {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.profile-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    align-items: center;
}

.profile-card {
    text-align: center;
    max-width: 800px;
}

.profile-img-wrapper {
    width: 250px;
    height: 250px;
    margin: 0 auto 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
}

.profile-img-wrapper::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-primary-teal);
    opacity: 0.3;
    pointer-events: none;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.profile-card:hover .profile-img {
    transform: scale(1.05);
}

.profile-name {
    font-size: 2rem;
    color: var(--color-primary-teal);
    margin-bottom: 0.5rem;
    font-style: italic;
    font-weight: 500;
}

.profile-role {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.profile-desc {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.8;
}

/* Contacto Section */
.contacto-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
    text-align: center;
}

.contact-column h3 {
    font-size: 1.5rem;
    color: var(--color-primary-teal);
    margin-bottom: 1.5rem;
    font-style: italic;
    font-weight: 500;
}

.contact-column p {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--color-accent-red);
    text-decoration: underline;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--color-accent-red-hover);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.1);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 4rem;
    background-color: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 992px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .package-card.premium {
        transform: scale(1);
    }
}

@media (max-width: 768px) {

    .desktop-nav {
        display: none;
    }

    .desktop-nav.is-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }

    .desktop-nav.is-active .nav-item {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }

    .partnership {
        flex-direction: column;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}