:root {
    /* Color Palette - Premium Navy & Ice White */
    --primary: #0046ad;
    --primary-light: #0066ff;
    --primary-dark: #002d70;
    --secondary: #0f172a;

    /* Section Backgrounds */
    --bg-white: #ffffff;
    --bg-ice: #f4f7fa;
    --bg-navy: #0a192f;
    --bg-dark-blue: #112240;

    /* Text Colors */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --text-muted-light: #94a3b8;

    /* Others */
    --border: rgba(0, 0, 0, 0.1);
    --border-light: rgba(255, 255, 255, 0.1);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Typography - Premium Modern Choice */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Sora', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1.2rem;
    background: transparent;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    line-height: 1;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
}

.logo-name::after {
    content: "|";
    margin-left: 0.8rem;
    opacity: 0.2;
    font-weight: 300;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo-tagline {
        display: none;
        /* Simplificar en móvil */
    }

    .logo-name::after {
        display: none;
    }
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
    flex-wrap: nowrap;
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        padding: 4rem 2rem;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
    }

    .nav-links.active {
        right: 0;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    white-space: nowrap;
    /* El texto del link en una sola línea */
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-link:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    /* El texto del botón en una sola línea */
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(0, 70, 173, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 70, 173, 0.5);
}

/* Sections Base */
section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(0, 70, 173, 0.08);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

/* HERO - WHITE */
.hero-section {
    background-color: var(--bg-white);
    padding-top: 200px;
    padding-bottom: 120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.8rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 580px;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.2);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* IMPACTO - NAVY */
.impacto-section {
    background-color: var(--bg-navy);
    color: white;
}

.impacto-section .section-title h2 {
    color: white;
}

.impacto-section .section-title p {
    color: var(--text-muted-light);
}

.impacto-section .badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 2rem;
    border-radius: 2rem;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.metric-value {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

/* METODOLOGIA - ICE */
.metodologia-section {
    background-color: var(--bg-ice);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    background: white;
    padding: 1.5rem;
    border-radius: 2.5rem;
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.step-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 1.8rem;
    margin-bottom: 2rem;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover .step-img {
    transform: scale(1.04);
}

.step-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px -15px rgba(0, 46, 173, 0.1);
}


/* TESTIMONIOS - DARK BLUE */
.testimonios-section {
    background-color: var(--bg-dark-blue);
    color: white;
}

.testimonios-section .section-title h2 {
    color: white;
}

.testimonios-section .section-title p {
    color: var(--text-muted-light);
}

.testimonios-section .badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 1rem;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 5rem 4rem;
    border-radius: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.testimonial-headline {
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.testimonial-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.nav-dot.active {
    background: var(--primary-light);
    transform: scale(1.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
    opacity: 0.6;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.carousel-btn.prev {
    left: 40px;
}

.carousel-btn.next {
    right: 40px;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 45px;
        height: 45px;
        opacity: 0.8;
    }

    .carousel-btn.prev {
        left: 20px;
    }

    .carousel-btn.next {
        right: 20px;
    }
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-top: 3rem;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.author-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.2rem;
}

.author-role {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* CONTACTO - WHITE (REFINED AS APPOINTMENT) */
.contacto-section {
    background-color: var(--bg-white);
}

.contact-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-ice);
    padding: 6rem 4rem;
    border-radius: 3.5rem;
    text-align: center;
}

/* Appointment Style */
.appointment-info {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Utilities */
.text-primary {
    color: var(--primary);
}

.mt-4 {
    margin-top: 1rem;
}

/* Responsive Design System */
@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    header {
        padding: 1rem 0;
    }

    .nav-content {
        padding: 0 1rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1001;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.4rem;
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        margin: 0 auto 3rem;
        font-size: 1.1rem;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image-wrapper {
        max-width: 440px;
        margin: 0 auto;
        border-radius: 2rem;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .section-title {
        margin-bottom: 3.5rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .metric-value {
        font-size: 3rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 4rem 1.5rem;
        border-radius: 2rem;
    }

    .testimonial-headline {
        font-size: 1.4rem;
    }

    .contact-card {
        padding: 4rem 1.5rem;
        border-radius: 2rem;
    }

    .logo-tagline,
    .logo-name::after {
        display: none;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .logo img {
        height: 40px;
    }

    .logo {
        gap: 0.8rem;
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: 1.2s all cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Delay for grids */
.metrics-grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.metrics-grid .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.steps-grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.steps-grid .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.steps-grid .reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    isolation: isolate;
}

.scroll-top .material-symbols-outlined {
    font-size: 24px;
    font-weight: 900;
    /* Más gruesa para que el negro se note más */
    color: #ffffff;
    mix-blend-mode: difference;
    display: block;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-50%) scale(1.1);
}