/* ========================================
   CARDIAC CLINIC - ESTILOS PROFESIONALES
   Inspirado en Cleveland Clinic
   Paleta: #011276 (azul), #A00D3A (rojo)
   Tipografía: Inter
======================================== */

:root {
    --azul-primario: #262a6d;
    --azul-oscuro: #1d1f4e;
    --rojo-acento: #A00D3A;
    --rojo-hover: #c01048;
    --gris-900: #1a1a2e;
    --gris-700: #4a4a5a;
    --gris-500: #6b7280;
    --gris-300: #d1d5db;
    --gris-100: #f3f4f6;
    --blanco: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
    --transition-gpu: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gris-700);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   TOP BAR
======================================== */
.top-bar {
    background: var(--azul-primario);
    color: var(--blanco);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--blanco);
    transition: var(--transition);
}

.top-link:hover {
    opacity: 0.8;
}

.top-text {
    color: rgba(255,255,255,0.8);
}

.separator {
    color: rgba(255,255,255,0.3);
}

/* ========================================
   HEADER
======================================== */
header {
    background: var(--blanco);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    max-width: 100%;
    padding: 0 24px;
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo img {
    height: 48px;
    transition: var(--transition);
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    color: var(--gris-700);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

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

nav a:hover {
    color: var(--azul-primario);
}

nav a:hover::after {
    width: 100%;
}

.btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--rojo-acento);
    color: var(--blanco);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-header:hover {
    background: var(--rojo-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--azul-primario);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.65) 100%);
    z-index: 1;
}

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

.hero-content {
    max-width: 680px;
    color: var(--blanco);
    text-align: center;
    margin: 0 auto;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(160, 13, 58, 0.3), 0 0 40px rgba(160, 13, 58, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(160, 13, 58, 0.5), 0 0 60px rgba(160, 13, 58, 0.2);
    }
}

.hero-badge {
    display: inline-block;
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 40px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.5) 45%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.5) 55%,
        transparent 65%,
        transparent 100%
    );
    background-size: 250% 100%;
    background-position: 200% center;
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--rojo-acento);
    color: var(--blanco);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--rojo-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(160, 13, 58, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--blanco);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--blanco);
    color: var(--azul-primario);
    border-color: var(--blanco);
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blanco);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ========================================
   SECTION HEADERS
======================================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header.light h2,
.section-header.light p {
    color: var(--blanco);
}

.section-tag {
    display: inline-block;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(1, 18, 118, 0.12) 0%,
        rgba(1, 18, 118, 0.08) 50%,
        rgba(1, 18, 118, 0.12) 100%
    );
    color: var(--azul-primario);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    border: 1px solid rgba(1, 18, 118, 0.15);
    box-shadow:
        0 2px 12px rgba(1, 18, 118, 0.1),
        0 0 0 1px rgba(1, 18, 118, 0.05) inset;
    overflow: hidden;
}

.section-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(1, 18, 118, 0) 25%,
        rgba(1, 18, 118, 0.15) 50%,
        rgba(1, 18, 118, 0) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.section-tag.light {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    color: var(--blanco);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.section-tag.light::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 25%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--gris-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gris-500);
    line-height: 1.6;
}

/* ========================================
   VIDEO SECTION
======================================== */
.video-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-oscuro) 100%);
    overflow: hidden;
}

.video-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(160, 13, 58, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.video-header-mobile {
    display: none;
}

.video-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.video-text {
    color: var(--blanco);
}

.video-text .section-tag.light {
    background: rgba(255,255,255,0.15);
    color: var(--blanco);
    margin-bottom: 20px;
}

.video-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.video-text > p {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 36px;
}

.video-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.video-feature svg {
    fill: var(--rojo-acento);
    flex-shrink: 0;
}

.video-feature span {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
}

.video-wrapper {
    position: relative;
}

.video-container {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    background: #000;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.25);
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--rojo-acento);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(160, 13, 58, 0.5);
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--rojo-hover);
}

.play-btn svg {
    fill: var(--blanco);
    margin-left: 4px;
}

.play-text {
    color: var(--blanco);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Decoración del video */
.video-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    border: 3px solid var(--rojo-acento);
    border-radius: 20px 0 0 0;
    border-right: none;
    border-bottom: none;
    opacity: 0.7;
    z-index: 10;
}

.video-container::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 0 0 20px 0;
    border-left: none;
    border-top: none;
    z-index: 10;
}

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

    .video-header-mobile {
        display: flex !important;
        justify-content: center;
        margin-bottom: 24px;
    }

    .video-content {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .video-text .section-tag {
        display: none !important;
    }

    .video-text {
        text-align: left;
        order: 1;
    }

    .video-wrapper {
        order: 2;
    }

    .video-features {
        align-items: flex-start;
    }

    .video-text h2 {
        font-size: 1.75rem;
    }

    .video-text > p {
        font-size: 1rem;
    }

    .video-container {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .video-section {
        padding: 60px 0;
    }

    .video-content {
        gap: 32px;
    }

    .video-text h2 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .video-text > p {
        font-size: 0.9375rem;
        margin-bottom: 24px;
    }

    .video-feature {
        gap: 10px;
    }

    .video-feature svg {
        width: 20px;
        height: 20px;
    }

    .video-feature span {
        font-size: 14px;
    }

    .video-container {
        max-width: 260px;
    }

    .play-btn {
        width: 64px;
        height: 64px;
    }

    .play-btn svg {
        width: 32px;
        height: 32px;
    }

    .play-text {
        font-size: 12px;
    }

    .video-container::before,
    .video-container::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 48px 0;
    }

    .video-content {
        gap: 24px;
    }

    .video-text .section-tag {
        font-size: 11px;
        padding: 5px 12px;
    }

    .video-text h2 {
        font-size: 1.25rem;
    }

    .video-text > p {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }

    .video-features {
        gap: 12px;
    }

    .video-feature span {
        font-size: 13px;
    }

    .video-container {
        max-width: 220px;
    }

    .play-btn {
        width: 56px;
        height: 56px;
    }

    .play-btn svg {
        width: 28px;
        height: 28px;
    }

    .play-text {
        font-size: 11px;
        letter-spacing: 1px;
    }
}

/* ========================================
   SERVICIOS / ESPECIALIDADES - TABS
======================================== */
.servicios {
    padding: 120px 0;
    background: var(--gris-100);
}

/* Tabs de navegación */
.especialidades-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 24px;
    background: var(--blanco);
    border: 2px solid var(--gris-300);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.tab-btn:hover {
    border-color: var(--azul-primario);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--azul-primario);
    border-color: var(--azul-primario);
}

.tab-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--rojo-acento);
    transition: var(--transition);
}

.tab-btn.active .tab-number {
    color: rgba(255,255,255,0.7);
}

.tab-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gris-900);
    transition: var(--transition);
}

.tab-btn.active .tab-title {
    color: var(--blanco);
}

/* Contenido de las tabs */
.tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

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

.tab-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.tab-panel-image {
    height: 100%;
    min-height: 500px;
}

.tab-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-panel-content {
    padding: 48px 48px 48px 0;
}

.tab-doctor {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gris-100);
}

.tab-doctor img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gris-100);
}

.doctor-name {
    display: block;
    font-weight: 700;
    color: var(--gris-900);
    font-size: 16px;
}

.doctor-title {
    display: block;
    font-size: 14px;
    color: var(--rojo-acento);
    font-weight: 500;
}

.tab-panel-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gris-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.tab-description {
    font-size: 1rem;
    color: var(--gris-500);
    line-height: 1.7;
    margin-bottom: 32px;
}

.procedimientos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    margin-bottom: 32px;
}

.procedimiento-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.procedimiento-item svg {
    fill: var(--rojo-acento);
    flex-shrink: 0;
}

.procedimiento-item span {
    font-size: 14px;
    color: var(--gris-700);
    line-height: 1.4;
}

.btn-tab-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--rojo-acento);
    color: var(--blanco);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.btn-tab-cta:hover {
    background: var(--rojo-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(160, 13, 58, 0.3);
}

.btn-tab-cta svg {
    fill: var(--blanco);
}

/* Responsive tabs */
@media (max-width: 1024px) {
    .tab-panel-grid {
        grid-template-columns: 1fr;
    }

    .tab-panel-image {
        min-height: 300px;
    }

    .tab-panel-content {
        padding: 32px;
    }

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

@media (max-width: 768px) {
    .especialidades-tabs {
        flex-direction: column;
        gap: 12px;
    }

    .tab-btn {
        min-width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .tab-panel-content h3 {
        font-size: 1.5rem;
    }
}

/* ========================================
   WHY US
======================================== */
.why-us {
    padding: 120px 0;
    background: var(--blanco);
}

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

.why-content .section-tag {
    margin-bottom: 16px;
}

.why-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--gris-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.why-content > p {
    font-size: 1.0625rem;
    color: var(--gris-500);
    line-height: 1.7;
    margin-bottom: 40px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(1, 18, 118, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--azul-primario);
}

.why-feature h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gris-900);
    margin-bottom: 4px;
}

.why-feature p {
    font-size: 14px;
    color: var(--gris-500);
    line-height: 1.5;
}

.why-image {
    position: relative;
}

.why-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.why-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--rojo-acento);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.2;
}

/* ========================================
   DOCTORES CARRUSEL
======================================== */
.doctores {
    padding: 120px 0;
    background: #f8fafc;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 16px;
    margin: -16px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-card {
    min-width: calc(33.333% - 16px);
    background: var(--blanco);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.doctor-image {
    height: 280px;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-info {
    padding: 24px;
    text-align: center;
}

.doctor-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gris-900);
    margin-bottom: 8px;
}

.doctor-specialty {
    display: block;
    font-size: 14px;
    color: var(--rojo-acento);
    font-weight: 600;
    margin-bottom: 4px;
}

.doctor-role {
    font-size: 13px;
    color: var(--gris-500);
}

.carousel-btn {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    border: 2px solid var(--gris-300);
    background: var(--blanco);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--azul-primario);
    border-color: var(--azul-primario);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--gris-700);
    transition: var(--transition);
}

.carousel-btn:hover svg {
    fill: var(--blanco);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gris-300);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot:hover {
    background: var(--gris-500);
}

.carousel-dot.active {
    background: var(--rojo-acento);
    transform: scale(1.2);
}

/* ========================================
   DOCTORES - CARRUSEL
======================================== */
.doctor-card {
    min-width: calc(33.333% - 16px);
    background: var(--blanco);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.doctor-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--rojo-acento);
    color: var(--blanco);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
}

.doctor-info {
    padding: 20px;
    text-align: center;
}

.doctor-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gris-900);
    margin-bottom: 6px;
}

.doctor-specialty {
    display: block;
    font-size: 14px;
    color: var(--rojo-acento);
    font-weight: 600;
    margin-bottom: 12px;
}

.doctor-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--gris-300);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--gris-600);
    cursor: pointer;
    transition: var(--transition);
}

.doctor-modal-btn:hover {
    background: var(--azul-primario);
    border-color: var(--azul-primario);
    color: var(--blanco);
}

/* ========================================
   MODAL DOCTORES
======================================== */
.doctor-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.doctor-modal.active {
    opacity: 1;
    visibility: visible;
}

.doctor-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
}

.doctor-modal-content {
    position: relative;
    background: var(--blanco);
    border-radius: 8px;
    max-width: 540px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(10px);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.doctor-modal.active .doctor-modal-content {
    transform: translateY(0);
}

.doctor-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--gris-500);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
}

.doctor-modal-close:hover {
    color: var(--gris-900);
}

.doctor-modal-header {
    display: flex;
    gap: 24px;
    padding: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.doctor-modal-img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    object-fit: cover;
    object-position: top;
}

.doctor-modal-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doctor-modal-badge {
    display: inline-block;
    background: var(--azul-primario);
    color: var(--blanco);
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    width: fit-content;
}

.doctor-modal-badge:empty {
    display: none;
}

.doctor-modal-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gris-900);
    margin-bottom: 6px;
    line-height: 1.2;
}

.doctor-modal-specialty {
    font-size: 15px;
    color: var(--gris-600);
    font-weight: 500;
}

.doctor-modal-body {
    padding: 32px;
}

.doctor-modal-body h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--gris-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.doctor-modal-credentials {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.credential-item:last-child {
    border-bottom: none;
}

.credential-item svg {
    flex-shrink: 0;
    color: var(--azul-primario);
    margin-top: 2px;
}

.credential-item div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.credential-item strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--gris-900);
}

.credential-item span {
    font-size: 13px;
    color: var(--gris-500);
}

.credentials-pending {
    font-size: 14px;
    color: var(--gris-500);
    text-align: center;
    padding: 24px 0;
}

/* Modal responsive - Tablet */
@media (max-width: 768px) {
    .doctor-modal-content {
        max-width: 90%;
    }

    .doctor-modal-header {
        padding: 24px;
        gap: 20px;
    }

    .doctor-modal-img {
        width: 100px;
        height: 100px;
    }

    .doctor-modal-title h3 {
        font-size: 1.25rem;
    }

    .doctor-modal-body {
        padding: 24px;
    }

    .doctor-modal-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* Modal responsive - Móvil */
@media (max-width: 540px) {
    .doctor-modal-content {
        width: 92%;
        max-height: 85vh;
    }

    .doctor-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px 20px;
        gap: 12px;
    }

    .doctor-modal-img {
        width: 80px;
        height: 80px;
    }

    .doctor-modal-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .doctor-modal-title h3 {
        font-size: 1.125rem;
    }

    .doctor-modal-specialty {
        font-size: 14px;
    }

    .doctor-modal-body {
        padding: 20px;
    }

    .doctor-modal-body h4 {
        font-size: 11px;
        margin-bottom: 14px;
    }

    .credential-item {
        padding: 10px 0;
        gap: 10px;
    }

    .credential-item svg {
        width: 16px;
        height: 16px;
    }

    .credential-item strong {
        font-size: 13px;
    }

    .credential-item span {
        font-size: 12px;
    }
}

/* Botón Ver formación responsive */
@media (max-width: 768px) {
    .doctor-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   TECNOLOGÍA
======================================== */
.tecnologia {
    padding: 120px 0;
    background: var(--azul-primario);
}

.tech-gallery {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
}

.tech-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 320px;
}

.tech-large {
    grid-row: span 2;
    height: auto;
}

.tech-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tech-item:hover img {
    transform: scale(1.05);
}

.tech-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.tech-overlay h4 {
    color: var(--blanco);
    font-size: 1.125rem;
    font-weight: 600;
}

/* ========================================
   CONTACTO
======================================== */
.contacto {
    padding: 120px 0;
    background: var(--blanco);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contacto-info .section-tag {
    margin-bottom: 16px;
}

.contacto-info h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--gris-900);
    margin-bottom: 16px;
}

.contacto-info > p {
    font-size: 1.0625rem;
    color: var(--gris-500);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(1, 18, 118, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--azul-primario);
}

.contact-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gris-900);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--gris-500);
    line-height: 1.5;
}

.contact-item a {
    color: var(--rojo-acento);
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn svg {
    width: 22px;
    height: 22px;
    transition: var(--transition);
}

/* Facebook */
.social-btn.facebook {
    background: #1877F2;
}

.social-btn.facebook svg {
    fill: var(--blanco);
}

.social-btn.facebook:hover {
    background: #166fe5;
}

/* Instagram */
.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.instagram svg {
    fill: var(--blanco);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #e08528, #d5602f, #cb2038, #bb1d5b, #ab1279);
}

/* WhatsApp */
.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.whatsapp svg {
    fill: var(--blanco);
}

.social-btn.whatsapp:hover {
    background: #20bd5a;
}

/* Wrapper mapa + botón */
.contacto-map-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Botón Cómo Llegar */
.btn-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--rojo-acento);
    color: var(--blanco);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-directions:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.btn-directions svg {
    flex-shrink: 0;
}

.contacto-map {
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contacto-map iframe {
    width: 100%;
    height: 100%;
}

/* ========================================
   WHATSAPP FLOTANTE
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: var(--blanco);
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
    fill: var(--blanco);
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: var(--gris-900);
    padding: 80px 0 40px;
    color: var(--gris-300);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gris-300);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--blanco);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gris-300);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--blanco);
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--gris-300);
}

.footer-contact a {
    color: var(--gris-300);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--rojo-acento);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gris-300);
}

.footer-bottom p:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 13px;
    color: var(--gris-400);
}

.footer-bottom p:last-child a {
    color: var(--blanco);
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.footer-bottom p:last-child a:hover {
    color: var(--rojo-acento);
}

/* ========================================
   RESPONSIVE COMPLETO
======================================== */

/* ===== TABLET (1024px) ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    /* Hero */
    .hero {
        min-height: 65vh;
    }

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

    .hero-stats {
        gap: 40px;
    }

    /* Tabs especialidades */
    .especialidades-tabs {
        gap: 12px;
    }

    .tab-btn {
        min-width: 180px;
        padding: 16px 20px;
    }

    .tab-panel-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tab-panel-image {
        min-height: 300px;
    }

    .tab-panel-content {
        padding: 32px;
    }

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

    /* Why Us */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .why-image {
        order: -1;
    }

    /* Doctores */
    .doctor-card {
        min-width: calc(50% - 12px);
    }

    .doctores {
        padding: 80px 0;
    }

    /* Tecnología */
    .tecnologia {
        padding: 80px 0;
    }

    .tech-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .tech-large {
        grid-column: span 2;
        grid-row: span 1;
        height: 320px;
    }

    /* Contacto */
    .contacto {
        padding: 80px 0;
    }

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

    .contacto-map {
        height: 350px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== MÓVIL (768px) ===== */
@media (max-width: 768px) {
    /* Base font size para móviles - Estándar industria: 16-17px */
    body {
        font-size: 17px;
        line-height: 1.6;
    }

    /* Estándar industria: 16-20px márgenes laterales */
    .container {
        padding: 0 20px;
    }

    /* Cards de borde a borde */
    .doctores .container,
    .tecnologia .container {
        padding: 0 12px;
    }

    /* Video: texto primero, video después */
    .video-content {
        display: flex;
        flex-direction: column;
    }

    .video-text {
        order: 1;
    }

    .video-wrapper {
        order: 2;
    }

    /* Header */
    .top-bar {
        display: none;
    }

    header {
        padding: 12px 0;
    }

    .logo img {
        height: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .btn-header {
        display: none;
    }

    nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--blanco);
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
    }

    nav a {
        font-size: 18px;
        padding: 12px 0;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-badge {
        transform: translateY(-50px);
        margin-bottom: -30px;
    }

    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 20px;
        line-height: 1.15;
    }

    .hero p {
        font-size: 17px;
        margin-bottom: 28px;
        line-height: 1.6;
    }

    .hero-badge {
        font-size: 11px;
        padding: 10px 20px;
        letter-spacing: 1px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 14px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 18px 24px;
        font-size: 17px;
    }

    .hero-stats {
        gap: 36px;
        justify-content: center;
    }

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

    .stat-label {
        font-size: 15px;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.875rem;
    }

    .section-header p {
        font-size: 17px;
        line-height: 1.6;
    }

    .section-tag {
        font-size: 11px;
        padding: 10px 20px;
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }

    .why-content .section-tag,
    .contacto-info .section-tag {
        margin-left: auto;
        margin-right: auto;
    }

    .why-content h2,
    .why-content > p,
    .contacto-info h2,
    .contacto-info > p {
        text-align: center;
    }

    .why-features,
    .contact-items {
        text-align: left;
    }

    /* Tabs especialidades */
    .servicios {
        padding: 50px 0;
    }

    .especialidades-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 28px;
    }

    .tab-btn {
        min-width: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding: 16px 12px;
    }

    .tab-number {
        font-size: 13px;
    }

    .tab-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .tab-panel-grid {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .tab-panel-image {
        display: none;
    }

    .tab-panel-content {
        padding: 28px 24px;
    }

    .tab-panel-content h3 {
        font-size: 1.375rem;
        margin-bottom: 14px;
    }

    .tab-description {
        font-size: 16px;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .tab-doctor {
        gap: 14px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .tab-doctor img {
        width: 52px;
        height: 52px;
    }

    .doctor-name {
        font-size: 16px;
    }

    .doctor-title {
        font-size: 14px;
    }

    .procedimientos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 28px;
    }

    .procedimiento-item {
        padding: 10px 0;
        gap: 12px;
    }

    .procedimiento-item svg {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .procedimiento-item span {
        font-size: 16px;
        line-height: 1.5;
    }

    .btn-tab-cta {
        width: 100%;
        justify-content: center;
        padding: 18px 24px;
        font-size: 17px;
        border-radius: 10px;
    }

    .btn-tab-cta svg {
        width: 22px;
        height: 22px;
    }

    /* Why Us */
    .why-us {
        padding: 60px 0;
    }

    .why-content h2 {
        font-size: 1.75rem;
    }

    .why-content > p {
        font-size: 17px;
        margin-bottom: 32px;
        line-height: 1.6;
    }

    .why-feature {
        gap: 16px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .why-feature h4 {
        font-size: 17px;
    }

    .why-feature p {
        font-size: 16px;
        line-height: 1.5;
    }

    .why-image img {
        border-radius: 12px;
    }

    /* Doctores */
    .doctores {
        padding: 60px 0;
    }

    .doctor-card {
        min-width: 100%;
    }

    .doctor-image {
        height: 280px;
    }

    .doctor-info {
        padding: 24px;
    }

    .doctor-info h4 {
        font-size: 1.25rem;
    }

    .doctor-specialty {
        font-size: 15px;
    }

    .doctor-role {
        font-size: 15px;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .carousel-btn svg {
        width: 24px;
        height: 24px;
    }

    .carousel-dots {
        margin-top: 28px;
    }

    /* Tecnología */
    .tecnologia {
        padding: 60px 0;
    }

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

    .tech-large {
        grid-column: span 1;
        height: 260px;
    }

    .tech-item {
        height: 220px;
    }

    .tech-overlay {
        padding: 24px;
    }

    .tech-overlay h4 {
        font-size: 1.25rem;
    }

    /* Contacto */
    .contacto {
        padding: 60px 0;
    }

    .contacto-info h2 {
        font-size: 1.75rem;
    }

    .contacto-info > p {
        font-size: 17px;
        margin-bottom: 32px;
        line-height: 1.6;
    }

    .contact-items {
        gap: 24px;
        margin-bottom: 36px;
    }

    .contact-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .contact-item h4 {
        font-size: 17px;
    }

    .contact-item p {
        font-size: 16px;
        line-height: 1.5;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .contacto-map {
        height: 300px;
        border-radius: 12px;
    }

    /* Footer */
    footer {
        padding: 48px 0 32px;
    }

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

    .whatsapp-float {
        padding: 16px;
        border-radius: 50%;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }
}

/* ===== MÓVIL PEQUEÑO (480px) ===== */
@media (max-width: 480px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Estándar industria: 16px mínimo */
    .container {
        padding: 0 16px;
    }

    /* Cards de borde a borde */
    .doctores .container,
    .tecnologia .container {
        padding: 0 8px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 90px 0 50px;
    }

    .hero-badge {
        transform: translateY(-45px);
        margin-bottom: -25px;
    }

    .hero h1 {
        font-size: 1.875rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-badge {
        font-size: 10px;
        padding: 9px 18px;
        margin-bottom: 18px;
        letter-spacing: 0.8px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 28px;
    }

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

    .stat-label {
        font-size: 14px;
    }

    /* Tabs */
    .servicios {
        padding: 40px 0;
    }

    .especialidades-tabs {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 24px;
    }

    .tab-btn {
        padding: 14px 10px;
        border-radius: 10px;
    }

    .tab-number {
        font-size: 12px;
    }

    .tab-title {
        font-size: 13px;
    }

    .tab-panel-content {
        padding: 24px 20px;
    }

    .tab-panel-content h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .tab-description {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .tab-doctor {
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .tab-doctor img {
        width: 48px;
        height: 48px;
    }

    .doctor-name {
        font-size: 15px;
    }

    .doctor-title {
        font-size: 13px;
    }

    .procedimientos-grid {
        gap: 10px;
        margin-bottom: 24px;
    }

    .procedimiento-item {
        padding: 8px 0;
    }

    .procedimiento-item svg {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .procedimiento-item span {
        font-size: 15px;
        line-height: 1.5;
    }

    .btn-tab-cta {
        padding: 16px 22px;
        font-size: 16px;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.625rem;
    }

    .section-header p {
        font-size: 16px;
        line-height: 1.6;
    }

    .section-tag {
        font-size: 10px;
        padding: 8px 16px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }

    /* Why Us */
    .why-content h2 {
        font-size: 1.625rem;
    }

    .why-content > p {
        font-size: 16px;
        line-height: 1.6;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .why-feature h4 {
        font-size: 16px;
    }

    .why-feature p {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Doctores */
    .doctor-image {
        height: 240px;
    }

    .doctor-info {
        padding: 20px;
    }

    .doctor-info h4 {
        font-size: 1.125rem;
    }

    .doctor-specialty {
        font-size: 14px;
    }

    .doctor-role {
        font-size: 14px;
    }

    .carousel-container {
        gap: 12px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    /* Tecnología */
    .tech-large,
    .tech-item {
        height: 200px;
    }

    .tech-overlay h4 {
        font-size: 1.125rem;
    }

    /* Contacto */
    .contacto-info h2 {
        font-size: 1.625rem;
    }

    .contacto-info > p {
        font-size: 16px;
        line-height: 1.6;
    }

    .contact-item h4 {
        font-size: 16px;
    }

    .contact-item p {
        font-size: 15px;
        line-height: 1.5;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .contacto-map {
        height: 250px;
    }

    /* Footer */
    .footer-links h4,
    .footer-contact h4 {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .footer-links a,
    .footer-contact p {
        font-size: 13px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    /* WhatsApp float */
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
    }
}

/* ========================================
   FLUJO DEL PACIENTE
======================================== */
.patient-flow {
    padding: 100px 0;
    background: var(--azul-primario);
}

.patient-flow .section-tag {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    color: var(--blanco);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.patient-flow .section-tag::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 25%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.patient-flow .section-header h2 {
    color: var(--blanco);
}

.patient-flow .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.flow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 48px;
}

.flow-step {
    flex: 1;
    max-width: 240px;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.step-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--rojo-acento);
    background: var(--blanco);
    width: 36px;
    height: 24px;
    line-height: 24px;
    border-radius: 12px;
    margin: 0 auto 16px;
    letter-spacing: 1px;
}

.step-icon {
    width: 72px;
    height: 72px;
    background: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.flow-step:hover .step-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.flow-step:hover .step-icon::before {
    inset: -8px;
    border-color: rgba(255, 255, 255, 0.4);
}

.step-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--azul-primario);
}

.flow-step h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--blanco);
    margin-bottom: 8px;
}

.flow-step p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
}

.flow-connector {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin-top: 52px;
    flex-shrink: 0;
}


/* Responsive Flujo */
@media (max-width: 900px) {
    .patient-flow {
        padding: 60px 0;
    }

    .flow-steps {
        flex-wrap: wrap;
        gap: 24px;
    }

    .flow-connector {
        display: none;
    }

    .flow-step {
        flex: 0 0 calc(50% - 12px);
        max-width: none;
    }
}

@media (max-width: 600px) {
    .patient-flow {
        padding: 48px 0;
    }

    .patient-flow .section-header {
        margin-bottom: 0;
    }

    .patient-flow .section-header p {
        display: none;
    }

    .flow-connector {
        display: none;
    }

    .flow-steps {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 32px;
    }

    /* Ocultar paso 3 en móvil (queda: Agenda, Evaluación, Tratamiento) */
    .flow-step:nth-child(5) {
        display: none;
    }

    .flow-step {
        flex: 1;
        max-width: 120px;
        padding: 0 8px;
    }

    .step-number {
        font-size: 10px;
        width: 24px;
        height: 16px;
        line-height: 16px;
        margin-bottom: 8px;
    }

    .step-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }

    .step-icon::before {
        inset: -3px;
    }

    .step-icon svg {
        width: 20px;
        height: 20px;
    }

    .flow-step h4 {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .flow-step p {
        display: none;
    }
}

/* ========================================
   CREDENCIALES / AUTORIDAD
======================================== */
.credenciales {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--azul-primario) 0%, #1e3a5f 100%);
}

.credenciales-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.credenciales-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--blanco);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 140px;
}

.credenciales-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.badge-item {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--blanco);
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .credenciales-stats {
        flex-wrap: wrap;
        gap: 32px;
    }

    .stat-item {
        flex: 1 1 calc(50% - 16px);
    }
}

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

    .credenciales-stats {
        gap: 24px;
    }

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

    .stat-label {
        font-size: 13px;
        max-width: 100%;
    }

    .credenciales-badges {
        gap: 8px;
    }

    .badge-item {
        font-size: 12px;
        padding: 6px 14px;
    }
}

@media (max-width: 480px) {
    .stat-item {
        flex: 1 1 100%;
    }

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

/* ========================================
   TESTIMONIOS / GOOGLE REVIEWS
======================================== */
.testimonios {
    padding: 80px 0;
    background: var(--gris-100);
}

.testimonios-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.google-rating {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--blanco);
    padding: 20px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.google-logo {
    flex-shrink: 0;
}

.rating-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--gris-900);
}

.stars {
    display: flex;
    gap: 2px;
}

.stars svg {
    width: 20px;
    height: 20px;
}

.review-count {
    font-size: 14px;
    color: var(--gris-500);
}

/* Carrusel de Testimonios */
.testimonios-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 100%;
}

.testimonios-wrapper {
    overflow: hidden;
    flex: 1;
    padding: 16px;
    margin: -16px;
}

.testimonios-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonio-card {
    flex: 0 0 calc(33.333% - 16px);
    background: var(--blanco);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.testimonio-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    transform: translateY(-3px);
}

.testimonio-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.testimonio-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Avatar con inicial estilo Google */
.testimonio-avatar-inicial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--blanco);
    flex-shrink: 0;
    text-transform: uppercase;
}

/* Colores de avatares estilo Google */
.avatar-red { background: #EA4335; }
.avatar-blue { background: #4285F4; }
.avatar-green { background: #34A853; }
.avatar-yellow { background: #FBBC05; }
.avatar-purple { background: #A142F4; }
.avatar-teal { background: #00ACC1; }
.avatar-orange { background: #FA7B17; }
.avatar-pink { background: #F538A0; }

.testimonio-author {
    flex: 1;
    min-width: 0;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--gris-900);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-stars {
    display: flex;
    gap: 1px;
    margin-top: 4px;
}

.author-stars svg {
    width: 14px;
    height: 14px;
}

.google-icon {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.8;
}

.testimonio-text {
    color: var(--gris-700);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botones del carrusel testimonios */
.testimonios-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blanco);
    border: 1px solid var(--gris-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.testimonios-btn:hover:not(:disabled) {
    background: var(--azul-primario);
    border-color: var(--azul-primario);
}

.testimonios-btn:hover:not(:disabled) svg path {
    fill: var(--blanco);
}

.testimonios-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.testimonios-btn svg {
    width: 24px;
    height: 24px;
}

.testimonios-btn svg path {
    fill: var(--gris-700);
    transition: fill 0.3s ease;
}

/* Dots testimonios */
.testimonios-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.testimonios-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gris-300);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.testimonios-dot.active {
    background: var(--azul-primario);
    transform: scale(1.2);
}

.testimonios-dot:hover:not(.active) {
    background: var(--gris-500);
}

/* Responsive testimonios */
@media (max-width: 1024px) {
    .testimonio-card {
        flex: 0 0 calc(50% - 12px);
    }
}

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

    .google-rating {
        padding: 16px 24px;
    }

    .score-number {
        font-size: 28px;
    }

    .testimonio-card {
        flex: 0 0 100%;
    }

    .testimonios-btn {
        width: 40px;
        height: 40px;
    }

    .testimonios-btn svg {
        width: 20px;
        height: 20px;
    }

    .testimonio-text {
        -webkit-line-clamp: 5;
    }
}

@media (max-width: 480px) {
    .testimonios-carousel {
        flex-direction: column;
    }

    .testimonios-wrapper {
        width: 100%;
        order: 1;
    }

    .testimonios-btn {
        display: none;
    }

    .google-rating {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   ANIMACIONES SCROLL - PROFESIONAL
======================================== */

/* Fade Up Animation */
.animate-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.animate-fade-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Animation */
.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity;
}

.animate-fade-in.animated {
    opacity: 1;
}

/* Hero Animation - Al cargar la página */
.hero-content {
    animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    opacity: 0;
}

.hero-badge {
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
    opacity: 0;
}

.hero h1 {
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
    opacity: 0;
}

.hero p {
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
    opacity: 0;
}

.hero-actions {
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
    opacity: 0;
}

.hero-stats {
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
    opacity: 0;
}

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

/* Stagger delays para grupos */
.credenciales-stats .stat-item:nth-child(1) { transition-delay: 0s; }
.credenciales-stats .stat-item:nth-child(2) { transition-delay: 0.1s; }
.credenciales-stats .stat-item:nth-child(3) { transition-delay: 0.2s; }
.credenciales-stats .stat-item:nth-child(4) { transition-delay: 0.3s; }

.credenciales-badges .badge-item:nth-child(1) { transition-delay: 0.4s; }
.credenciales-badges .badge-item:nth-child(2) { transition-delay: 0.5s; }
.credenciales-badges .badge-item:nth-child(3) { transition-delay: 0.6s; }

.flow-steps .flow-step:nth-child(1) { transition-delay: 0s; }
.flow-steps .flow-step:nth-child(2) { transition-delay: 0.15s; }
.flow-steps .flow-step:nth-child(3) { transition-delay: 0.3s; }
.flow-steps .flow-step:nth-child(4) { transition-delay: 0.45s; }

/* Respetar preferencias de usuario */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-up,
    .animate-fade-in,
    .hero-content,
    .hero-badge,
    .hero h1,
    .hero p,
    .hero-actions,
    .hero-stats {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }
}

/* ========================================
   OPTIMIZACIONES DE RENDIMIENTO
======================================== */

/* GPU Acceleration para elementos animados */
.hero-bg img,
.tech-item img,
.doctor-card,
.tab-btn,
.btn-primary,
.btn-secondary,
.btn-tab-cta,
.carousel-track,
.whatsapp-float {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimizar imágenes */
img {
    content-visibility: auto;
}

/* Lazy loading con fade-in suave */
img[loading="lazy"]:not(.footer-logo) {
    background: linear-gradient(135deg, var(--gris-100) 0%, var(--gris-300) 100%);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

img[loading="lazy"].loaded:not(.footer-logo),
img[loading="lazy"]:not(.footer-logo)[complete] {
    opacity: 1;
}

/* Imágenes de tabs con data-src (lazy loading diferido) */
img.lazy-tab-img {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

img.lazy-tab-img.loaded {
    opacity: 1;
}

/* Placeholder animado mientras carga */
.doctor-image,
.tab-panel-image,
.tech-item,
.why-image {
    background: linear-gradient(90deg, var(--gris-100) 25%, var(--gris-300) 50%, var(--gris-100) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Quitar shimmer cuando imagen cargó */
.doctor-image:has(img.loaded),
.tab-panel-image:has(img.loaded),
.tech-item:has(img.loaded),
.why-image:has(img.loaded) {
    animation: none;
    background: transparent;
}

/* ========================================
   ACCESIBILIDAD - REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-bg img {
        animation: none;
    }

    .carousel-track {
        transition: none;
    }

    .tab-panel {
        animation: none;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .top-bar,
    .whatsapp-float,
    .video-section,
    .carousel-btn,
    nav {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
    }

    .hero-overlay {
        display: none;
    }
}
