/* =========================================
   Doctor Víctor — Médico Premium Limpio
   Paleta: #0c295c (navy), #0f589f (azul), #fff
   Tipografía: Playfair Display + Inter
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0c295c;
    --blue: #0f589f;
    --blue-light: #e8f0fa;
    --blue-mist: #f4f8fc;
    --white: #ffffff;
    --gray-50: #fafbfc;
    --gray-100: #f1f3f5;
    --gray-300: #ced4da;
    --gray-500: #868e96;
    --gray-700: #495057;
    --gray-900: #1a1a2e;
    --gold: #c0a062;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Montserrat', -apple-system, sans-serif;
    color: var(--navy);
    line-height: 1.15;
    font-weight: 800;
}

.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 2px;
    background: var(--blue);
    transform: translateY(-50%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 560px;
    line-height: 1.75;
}

/* =========================================
   HEADER / NAV
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 1px 20px rgba(12, 41, 92, 0.06);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 44px;
    width: auto;
    transition: var(--transition);
}

.logo-img-color { display: none; }
.logo-img-white { display: block; }

.header.scrolled .logo-img-color { display: block; }
.header.scrolled .logo-img-white { display: none; }

.nav-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo .logo-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    transition: var(--transition);
}

.header.scrolled .nav-logo .logo-name {
    color: var(--navy);
}

.nav-logo .logo-specialty {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: var(--transition);
}

.header.scrolled .nav-logo .logo-specialty {
    color: var(--blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
    position: relative;
    transition: var(--transition);
}

.header.scrolled .nav-links a {
    color: var(--navy);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.header.scrolled .nav-links a::after {
    background: var(--blue);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header.scrolled .nav-cta {
    background: var(--navy) !important;
    border-color: var(--navy);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--white) !important;
    color: var(--navy) !important;
    transform: translateY(-1px);
}

.header.scrolled .nav-cta:hover {
    background: var(--blue) !important;
    color: var(--white) !important;
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.header.scrolled .nav-hamburger span {
    background: var(--navy);
}

.nav-hamburger.active span {
    background: var(--navy);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   HERO — Fullscreen Inmersivo
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: #000;
}

/* Swiper background slider */
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .swiper-wrapper { height: 100%; }

.hero-slider .swiper-slide {
    overflow: hidden;
    height: 100%;
}

.hero-slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* Cinematic drift — each slide moves differently */
.swiper-slide-active .hero-slide-bg {
    animation: drift1 12s ease-in-out forwards;
}

.swiper-slide-active:nth-child(2n) .hero-slide-bg {
    animation: drift2 12s ease-in-out forwards;
}

.swiper-slide-active:nth-child(3n) .hero-slide-bg {
    animation: drift3 12s ease-in-out forwards;
}

.swiper-slide-active:nth-child(4n) .hero-slide-bg {
    animation: drift4 12s ease-in-out forwards;
}

@keyframes drift1 {
    from { transform: scale(1.12) translate(0, 0); filter: brightness(0.85); }
    to   { transform: scale(1.05) translate(-2%, 1%); filter: brightness(1); }
}

@keyframes drift2 {
    from { transform: scale(1.08) translate(-2%, -1%); filter: brightness(0.9); }
    to   { transform: scale(1.15) translate(1%, 0%); filter: brightness(1); }
}

@keyframes drift3 {
    from { transform: scale(1.15) translate(2%, 1%); filter: brightness(0.85); }
    to   { transform: scale(1.05) translate(-1%, -1%); filter: brightness(1.05); }
}

@keyframes drift4 {
    from { transform: scale(1.05) translate(1%, -2%); filter: brightness(0.9); }
    to   { transform: scale(1.12) translate(-2%, 1%); filter: brightness(1); }
}

/* Gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(135deg, rgba(12, 41, 92, 0.88) 0%, rgba(15, 88, 159, 0.55) 50%, rgba(0, 0, 0, 0.65) 100%);
}

/* Hero content wrapper */
.hero-content-wrapper {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
}

.hero-content-wrapper .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-content {
    max-width: 640px;
}

.hero-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 0.8s ease both;
    animation-delay: 0.2s;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    line-height: 1.06;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease both;
    animation-delay: 0.4s;
}

.hero h1 .accent {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.hero-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease both;
    animation-delay: 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    animation: fadeInUp 0.8s ease both;
    animation-delay: 0.8s;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--navy);
    padding: 16px 34px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 88, 159, 0.4);
}

.btn-hero-primary svg {
    width: 18px;
    height: 18px;
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 16px 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    transition: var(--transition);
}

.btn-hero-ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Doctor portrait card */
.hero-doctor-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    animation: fadeInRight 1s ease both;
    animation-delay: 1s;
    flex-shrink: 0;
}

.hero-doctor-card img {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    object-fit: cover;
    object-position: top;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-doctor-info strong {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.hero-doctor-info span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 1s ease both;
    animation-delay: 1.2s;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%      { opacity: 1; transform: scaleY(1.3); }
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

/* Slide counter */
.hero-counter {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 1s ease both;
    animation-delay: 1.2s;
}

.counter-current {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.counter-line {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.counter-total {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* --- Buttons (reused outside hero) --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: var(--white);
    padding: 15px 32px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 88, 159, 0.25);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

/* =========================================
   PERFIL PROFESIONAL
   ========================================= */
.profile {
    padding: 120px 0;
    background: var(--white);
    overflow: hidden;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* --- Photo Composition --- */
.profile-photos {
    position: relative;
    min-height: 560px;
}

.profile-photo-main {
    position: relative;
    z-index: 2;
}

.profile-photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(12, 41, 92, 0.12);
}

.profile-photo-main {
    height: 100%;
}

.profile-photo-secondary {
    position: relative;
    z-index: 2;
    margin-top: 60px;
}

.profile-photo-secondary img {
    width: 100%;
    height: calc(100% - 60px);
    min-height: 300px;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(12, 41, 92, 0.08);
}

/* Decorative line behind photos */
.profile-photos::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--blue-light);
    border-radius: 20px;
    z-index: 0;
}

.profile-photos::after {
    content: '';
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 160px;
    height: 160px;
    background: var(--blue-mist);
    border-radius: 20px;
    z-index: 0;
}

/* Years badge */
.profile-years-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: var(--navy);
    color: var(--white);
    padding: 22px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 36px rgba(12, 41, 92, 0.25);
    display: flex;
    align-items: center;
    gap: 16px;
}

.years-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
}

.years-text {
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    text-align: left;
    line-height: 1.4;
}

/* --- Profile Content --- */
.profile-content .section-title {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    margin-bottom: 8px;
}

.profile-role {
    font-size: 1rem;
    color: var(--blue);
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}

.profile-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--navy), var(--blue));
    border-radius: 2px;
    margin-bottom: 28px;
}

.profile-text {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: 36px;
}

/* Credentials */
.profile-credentials {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--blue-mist);
    border-radius: 14px;
    border-left: 3px solid var(--blue);
    transition: var(--transition);
}

.credential-item:hover {
    background: var(--blue-light);
    transform: translateX(4px);
}

.credential-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(12, 41, 92, 0.06);
}

.credential-icon svg {
    width: 20px;
    height: 20px;
    color: var(--blue);
}

.credential-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 3px;
}

.credential-item span {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Signature */
.profile-signature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-100);
}

.signature-logo {
    height: 40px;
    width: auto;
    opacity: 0.6;
}

.profile-signature strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--navy);
}

.profile-signature span {
    font-size: 0.78rem;
    color: var(--gray-500);
}

/* Profile Responsive */
@media (max-width: 1024px) {
    .profile {
        padding: 80px 0;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .profile-photos {
        max-width: 540px;
        margin: 0 auto;
        min-height: 460px;
    }
}

@media (max-width: 768px) {
    .profile {
        padding: 64px 0;
    }

    .profile-photos {
        min-height: 380px;
        gap: 10px;
    }

    .profile-photos::before,
    .profile-photos::after {
        display: none;
    }

    .profile-years-badge {
        padding: 16px 20px;
    }

    .years-number {
        font-size: 2rem;
    }

    .credential-item {
        padding: 16px 18px;
    }
}

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
    background: var(--navy);
    padding: 48px 0;
    position: relative;
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-number .plus {
    color: var(--gold);
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* =========================================
   ANATOMÍA COLUMNA — Espectacular
   ========================================= */
.spine-anatomy {
    padding: 120px 0;
    background: linear-gradient(160deg, #0c1e3a 0%, #0f2d5c 40%, #0a1a30 100%);
    position: relative;
    overflow: hidden;
}

/* Floating particles / orbs */
.spine-bg-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.spine-bg-glow::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 184, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb1 12s ease-in-out infinite;
}

.spine-bg-glow::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(192, 160, 98, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb2 15s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(60px, -40px) scale(1.1); }
    66%      { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%      { transform: translate(-50px, 40px) scale(1.15); }
    70%      { transform: translate(40px, -20px) scale(0.9); }
}

/* Animated grid lines */
.spine-anatomy::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 184, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 184, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 20s linear infinite;
    z-index: 0;
}

@keyframes gridShift {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* Floating dots */
.spine-anatomy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(79, 184, 255, 0.25) 1px, transparent 1px),
        radial-gradient(circle, rgba(192, 160, 98, 0.2) 1px, transparent 1px),
        radial-gradient(circle, rgba(79, 184, 255, 0.15) 1px, transparent 1px);
    background-size: 200px 200px, 300px 300px, 150px 150px;
    background-position: 20px 20px, 80px 100px, 140px 60px;
    animation: floatDots 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatDots {
    0%   { background-position: 20px 20px, 80px 100px, 140px 60px; }
    100% { background-position: 220px 220px, 380px 400px, 290px 260px; }
}

.spine-anatomy .container {
    position: relative;
    z-index: 1;
}

/* Cursor glow effect */
.cursor-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 184, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.spine-header {
    text-align: center;
    margin-bottom: 64px;
}

.spine-header .section-label::before {
    background: rgba(255,255,255,0.3);
}

.spine-header .section-subtitle {
    margin: 0 auto;
}

/* Diagram: annotations around central spine */
.spine-diagram {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 700px;
}

/* Central spine */
.spine-center {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 2;
}

.spine-svg {
    width: 100%;
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(15, 88, 159, 0.3));
}

/* Hotspot pulse */
.spine-hotspot {
    fill: rgba(79, 184, 255, 0.8);
    stroke: rgba(79, 184, 255, 0.3);
    stroke-width: 8;
    cursor: pointer;
    animation: hotspotPulse 2.5s ease infinite;
}

@keyframes hotspotPulse {
    0%, 100% { stroke-width: 8; stroke-opacity: 0.3; r: 5; }
    50%      { stroke-width: 16; stroke-opacity: 0; r: 6; }
}

/* Region hover glow */
.spine-region {
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.spine-region:hover rect,
.spine-region:hover path {
    stroke-width: 2.5;
}

.spine-region:hover .spine-hotspot {
    fill: #c0a062;
    stroke: rgba(192, 160, 98, 0.4);
}

/* Annotations positioned around the spine */
.spine-annotation {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 3;
    transition: var(--transition);
}

.spine-annotation:hover {
    transform: translateY(-2px);
}

.spine-annotation:hover .ann-content {
    border-color: rgba(79, 184, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.spine-annotation:hover .ann-dot {
    background: var(--gold);
    box-shadow: 0 0 16px rgba(192, 160, 98, 0.6);
}

/* Positions */
.spine-ann-1 { top: 4%; right: 54%; }
.spine-ann-2 { top: 28%; left: 54%; }
.spine-ann-3 { top: 52%; right: 54%; }
.spine-ann-4 { top: 74%; left: 54%; }

/* Content block */
.ann-content {
    max-width: 300px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.ann-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 4px;
}

.ann-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(79, 184, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.ann-content p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    margin-bottom: 12px;
}

.ann-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ann-pills span {
    background: rgba(15, 88, 159, 0.2);
    border: 1px solid rgba(15, 88, 159, 0.2);
    color: rgba(79, 184, 255, 0.75);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 500;
}

/* Connector line + dot */
.ann-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, rgba(79, 184, 255, 0.4), rgba(79, 184, 255, 0.1));
    position: relative;
    flex-shrink: 0;
}

.spine-ann-right .ann-line {
    background: linear-gradient(to left, rgba(79, 184, 255, 0.4), rgba(79, 184, 255, 0.1));
}

.ann-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(79, 184, 255, 0.7);
    box-shadow: 0 0 12px rgba(79, 184, 255, 0.4);
    transition: var(--transition);
}

.spine-ann-left .ann-dot {
    right: -5px;
    top: -5px;
}

.spine-ann-right .ann-dot {
    left: -5px;
    top: -5px;
}

/* Spine responsive */
@media (max-width: 1024px) {
    .spine-diagram {
        min-height: auto;
    }

    .spine-center {
        position: relative;
        left: auto;
        transform: none;
        margin: 0 auto 48px;
    }

    .spine-svg { max-width: 100px; }

    .spine-annotation {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin-bottom: 20px;
    }

    .spine-ann-left,
    .spine-ann-right {
        flex-direction: row;
    }

    .ann-line { width: 0; height: 0; }
    .ann-dot { display: none; }
    .ann-content { max-width: 100%; }
}

@media (max-width: 768px) {
    .spine-anatomy { padding: 80px 0; }
    .ann-content { padding: 16px 18px; }
}

/* =========================================
   SERVICIOS — Cards con imagen
   ========================================= */
.services {
    padding: 100px 0;
    background: var(--blue-light);
}

.services-header {
    text-align: center;
    margin-bottom: 64px;
}

.services-header .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(12, 41, 92, 0.06);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(12, 41, 92, 0.12);
}

.service-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.08);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 41, 92, 0.35) 0%, transparent 60%);
    transition: var(--transition);
}

.service-card:hover .service-card-overlay {
    background: linear-gradient(to top, rgba(12, 41, 92, 0.5) 0%, transparent 70%);
}

.service-card-body {
    padding: 28px 28px 32px;
}

.service-card-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.service-card-body p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 18px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue);
    transition: var(--transition);
}

.service-link:hover {
    color: var(--navy);
    gap: 10px;
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

/* =========================================
   PRICING / PORTAFOLIO — Espectacular
   ========================================= */
.pricing {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.pricing-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.pricing-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(12, 41, 92, 0.94) 0%, rgba(15, 88, 159, 0.88) 50%, rgba(12, 41, 92, 0.95) 100%);
    z-index: 1;
}

.pricing-container {
    position: relative;
    z-index: 2;
}

.pricing-header {
    text-align: center;
    margin-bottom: 56px;
}

.pricing-header .section-label::before {
    background: rgba(255,255,255,0.4);
}

.pricing-header .section-subtitle {
    margin: 0 auto;
}

/* Featured consulta bar */
.pricing-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 36px;
    margin-bottom: 32px;
}

.pricing-featured-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pf-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pf-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.pricing-featured h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.pricing-featured p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 420px;
    line-height: 1.5;
}

.pricing-featured-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.pf-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.pf-btn {
    background: var(--white);
    color: var(--navy);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.pf-btn:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* Pricing cards grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    align-items: stretch;
}

.price-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.price-card--featured {
    transform: scale(1.03);
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--gold);
}

.price-card--featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.price-card-head {
    background: var(--navy);
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-card--featured .price-card-head {
    background: linear-gradient(135deg, var(--navy) 0%, #1a4a7a 100%);
}

.pc-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pc-badge {
    background: var(--gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.price-card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.pc-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-item ul {
    list-style: none;
    margin-bottom: 16px;
    flex: 1;
}

.pc-item ul li {
    font-size: 0.82rem;
    color: var(--gray-500);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.pc-item ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0.5;
}

.pc-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    background: var(--blue-mist);
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 4px;
}

.pc-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 20px 0;
}

/* Extras row */
.pricing-extras {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.extra-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: var(--transition);
}

.extra-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.extra-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.extra-info span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.extra-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
}

.extra-price small {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
}

.pricing-note {
    margin-top: 32px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    font-style: italic;
}

/* Pricing responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .price-card--featured {
        transform: none;
        order: -1;
    }

    .price-card--featured:hover {
        transform: translateY(-6px);
    }

    .pricing-extras {
        grid-template-columns: 1fr;
    }

    .pricing-featured {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .pricing-featured-left {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .pricing {
        padding: 80px 0;
    }

    .pricing-featured {
        padding: 24px 20px;
    }

    .pf-price {
        font-size: 1.6rem;
    }
}

/* =========================================
   CONTRATACIONES / PARTNERS
   ========================================= */
.partners {
    padding: 100px 0;
    background: var(--blue-mist);
}

.partners-header {
    text-align: center;
    margin-bottom: 56px;
}

.partners-header .section-subtitle {
    margin: 0 auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.partner-card {
    background: var(--white);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: 0 4px 16px rgba(12, 41, 92, 0.04);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(12, 41, 92, 0.1);
    border-color: var(--blue-light);
}

.partner-icon {
    width: 52px;
    height: 52px;
    background: var(--blue-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.partner-icon svg {
    width: 24px;
    height: 24px;
    color: var(--blue);
}

.partner-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.3;
}

.partner-card span {
    font-size: 0.82rem;
    color: var(--blue);
    font-weight: 500;
}

/* =========================================
   BLOG
   ========================================= */
.blog {
    padding: 100px 0;
    background: var(--white);
}

.blog-header {
    text-align: center;
    margin-bottom: 56px;
}

.blog-header .section-subtitle {
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(12, 41, 92, 0.06);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 44px rgba(12, 41, 92, 0.1);
}

.blog-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

.blog-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--navy);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-card-body {
    padding: 24px 24px 28px;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--blue);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-card-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin: 10px 0 10px;
    line-height: 1.35;
}

.blog-card-body p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.65;
}

/* Responsive — Pricing, Partners, Blog */
@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing, .partners, .blog {
        padding: 64px 0;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CASOS DE ÉXITO — Antes / Después
   ========================================= */
.cases {
    padding: 100px 0;
    background: var(--blue-mist);
}

.cases-header {
    text-align: center;
    margin-bottom: 64px;
}

.cases-header .section-subtitle {
    margin: 0 auto;
}

.cases-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Case block — side by side */
.case-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 36px rgba(12, 41, 92, 0.06);
}

.case-block-reverse {
    direction: rtl;
}

.case-block-reverse > * {
    direction: ltr;
}

/* Before / After photos */
.case-before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    height: 100%;
    min-height: 380px;
}

.case-photo {
    position: relative;
    overflow: hidden;
}

.case-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-block:hover .case-photo img {
    transform: scale(1.04);
}

.case-badge {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.case-badge-antes {
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
}

.case-badge-despues {
    background: rgba(5, 150, 105, 0.85);
    color: #fff;
}

/* Case info */
.case-info {
    padding: 44px 44px 44px 0;
}

.case-block-reverse .case-info {
    padding: 44px 0 44px 44px;
}

.case-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.case-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 18px;
    line-height: 1.2;
}

.case-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.case-meta span {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.case-meta strong {
    color: var(--navy);
}

.case-description {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.75;
    margin-bottom: 20px;
}

.case-testimonial {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.7;
    padding: 16px 0 16px 20px;
    border-left: 3px solid var(--blue);
    margin: 0;
}

/* Cases responsive */
@media (max-width: 1024px) {
    .case-block,
    .case-block-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .case-info,
    .case-block-reverse .case-info {
        padding: 32px;
    }

    .case-before-after {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .cases {
        padding: 64px 0;
    }

    .cases-list {
        gap: 32px;
    }

    .case-before-after {
        min-height: 240px;
    }

    .case-info,
    .case-block-reverse .case-info {
        padding: 24px;
    }

    .case-info h3 {
        font-size: 1.25rem;
    }
}

/* =========================================
   ABOUT (removed — keeping placeholder)
   ========================================= */
.about {
    padding: 100px 0;
    background: var(--blue-mist);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-photo {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(12, 41, 92, 0.1);
}

.about-experience-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--navy);
    color: var(--white);
    padding: 24px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(12, 41, 92, 0.2);
}

.about-experience-badge .exp-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}

.about-experience-badge .exp-text {
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 4px;
}

.about-content .section-title {
    max-width: 440px;
}

.about-text {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 28px;
    line-height: 1.8;
}

.about-list {
    margin-bottom: 36px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.94rem;
    color: var(--gray-700);
}

.about-list li svg {
    width: 20px;
    height: 20px;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}

/* =========================================
   CONTACTO
   ========================================= */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-info {
    padding-top: 20px;
}

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-description {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 40px;
    line-height: 1.75;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 22px;
    height: 22px;
    color: var(--blue);
}

.contact-item-info strong {
    display: block;
    font-size: 0.92rem;
    color: var(--navy);
    margin-bottom: 2px;
}

.contact-item-info span,
.contact-item-info a {
    font-size: 0.88rem;
    color: var(--gray-500);
}

.contact-item-info a:hover {
    color: var(--blue);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gray-50);
    padding: 44px;
    border-radius: 20px;
    border: 1px solid var(--gray-100);
}

.contact-form-wrapper h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--gray-700);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(15, 88, 159, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--blue);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 88, 159, 0.2);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    position: relative;
    padding: 64px 0 28px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.footer-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 41, 92, 0.95) 0%, rgba(12, 41, 92, 0.98) 100%);
    z-index: 1;
}

.footer > .container {
    position: relative;
    z-index: 2;
}

/* Logo decorativo en el fondo */
.footer-logo-deco {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-55%);
    z-index: 1;
    opacity: 0.07;
    pointer-events: none;
}

.footer-logo-deco img {
    height: 560px;
    width: auto;
    filter: blur(1px);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
    height: 48px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
}

.wa-float-btn {
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.wa-float-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.4);
}

.wa-float-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero-content-wrapper .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-text {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-doctor-card {
        margin: 0 auto;
    }

    .hero-counter { display: none; }

    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }

    .nav-hamburger { display: flex; }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 999;
    }

    .nav-links.mobile-open a {
        font-size: 1.2rem;
        color: var(--navy);
    }

    .nav-links.mobile-open a::after {
        background: var(--blue);
    }

    .nav-links.mobile-open .nav-cta {
        background: var(--navy) !important;
        color: var(--white) !important;
    }

    .hero {
        height: 100vh;
        min-height: 600px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-doctor-card { display: none; }

    .hero-scroll { display: none; }

    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-item::after { display: none !important; }

    .stat-number { font-size: 1.8rem; }

    .services {
        padding: 64px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about {
        padding: 64px 0;
    }

    .about-experience-badge {
        right: 0;
        bottom: -16px;
    }

    .contact {
        padding: 64px 0;
    }

    .contact-form-wrapper {
        padding: 28px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }
}
