:root {
    /* Paleta de colores Premium Médica */
    --primary-color: #0d83a4; /* Azul verdoso distintivo de salud/tecnología */
    --primary-dark: #096883;
    --primary-light: #e0f2f7;
    --text-main: #1a2b3c;
    --text-muted: #5e6f80;
    --bg-main: #ffffff;
    --bg-light: #f5f8fa;
    --white: #ffffff;
    
    /* Gradientes refinados */
    --gradient-hero: linear-gradient(135deg, #f0f7f9 0%, #d9edf4 100%);
    --gradient-accent: linear-gradient(135deg, #0d83a4 0%, #08607a 100%);
    
    /* Tipografías modernas (Google Fonts) */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Variables UI */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 12px rgba(13, 131, 164, 0.05);
    --shadow-md: 0 12px 30px rgba(13, 131, 164, 0.1);
    --shadow-lg: 0 20px 40px rgba(13, 131, 164, 0.15);
    
    /* Transiciones fluidas */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-gradient {
    background: var(--gradient-hero);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.section-title.text-left {
    text-align: left;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ─── Botón volver arriba ─── */
#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(13,131,164,0.4);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(13,131,164,0.5);
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(13, 131, 164, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 131, 164, 0.4);
    color: var(--white);
}

.btn-icon i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 5px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 3px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .logo-tagline { display: none; }
}

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

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-contacto-nav {
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--primary-color);
}
.btn-contacto-nav::after {
    display: none;
}
.btn-contacto-nav:hover {
    background: var(--primary-color);
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: var(--gradient-hero);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
    animation: morph 15s ease-in-out infinite alternate;
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg); }
    100% { border-radius: 60% 40% 30% 70% / 60% 50% 40% 50%; transform: rotate(5deg); }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-credentials {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-credentials p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.hero-credentials p::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
}

.hero-matricula {
    font-weight: 600;
    color: var(--text-main);
    margin-top: 1rem;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.hero-image-backdrop {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: -20px;
    left: 60px;
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: 1;
    opacity: 0.1;
}


/* Novedades / Actualidad */
.novedades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.novedad-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.novedad-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.novedad-img {
    width: 100%;
    height: 160px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 4rem;
}

.novedad-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.novedad-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: inline-block;
}
.novedad-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-main);
}
.novedad-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}
.novedad-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    font-size: 0.95rem;
}
.novedad-link i {
    margin-left: 5px;
    transition: var(--transition-fast);
}
.novedad-link:hover i {
    transform: translateX(5px);
}

/* ─── Instituciones – Ticker animado ─── */
.instituciones {
    overflow: hidden;
}

.logos-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 48px;
    /* fade edges */
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logos-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ticker-scroll 28s linear infinite;
}

.logos-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-ticker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 56px;
    flex-shrink: 0;
    filter: grayscale(100%) opacity(0.55);
    transition: filter var(--transition-normal);
    cursor: default;
}

.logo-ticker-item:hover {
    filter: grayscale(0%) opacity(1);
}

.logo-ticker-item img {
    height: 52px;
    max-width: 160px;
    object-fit: contain;
}

.logo-ticker-item span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Información Pacientes */
.info-content-wrapper {
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-text {
    max-width: 600px;
}

.info-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

/* Footer / Contacto */
.footer {
    background-color: var(--bg-light);
    padding: 80px 0 30px;
}

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

.footer-contact-card {
    width: 100%;
    max-width: 800px;
    padding: 50px;
    background: var(--white);
    margin-bottom: 60px;
    transform: translateY(-50px);
}

.contact-card-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-card-header h3 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item span, .contact-item a {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-card-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* ─── Stats animadas ─── */
.stats-section {
    background: var(--gradient-accent);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-block {
    text-align: center;
    color: white;
    padding: 20px 30px;
    position: relative;
}

.stat-block:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.stat-counter {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.stat-block p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    font-weight: 400;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-block:nth-child(2)::after { display: none; }
    .stat-counter { font-size: 2.4rem; }
}

/* ─── Comparativa ─── */
.comparativa-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    margin-top: 50px;
    align-items: stretch;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comp-col {
    padding: 48px 40px;
}

.comp-tradicional {
    background: #f8f9fa;
    border: 1px solid #e8ecef;
}

.comp-minimamente {
    background: linear-gradient(135deg, #f0f9fc 0%, #e0f2f7 100%);
    border: 1px solid var(--primary-light);
}

.comp-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.comp-header i {
    font-size: 2rem;
}

.comp-tradicional .comp-header i { color: #aab4be; }
.comp-minimamente .comp-header i { color: var(--primary-color); }

.comp-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.comp-col ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comp-col li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.4;
}

.comp-tradicional li { color: #6b7b8d; }
.comp-minimamente li { color: var(--text-main); font-weight: 500; }

.comp-tradicional li i { color: #c0cdd8; font-size: 1.2rem; }
.comp-minimamente li i { color: var(--primary-color); font-size: 1.2rem; }

.comp-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 0 10px;
    position: relative;
}

.comp-divider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #e0e8ed;
}

.comp-vs {
    background: var(--primary-color);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 50%;
    z-index: 1;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(13,131,164,0.35);
}

@media (max-width: 768px) {
    .comparativa-grid {
        grid-template-columns: 1fr;
    }
    .comp-divider {
        padding: 16px 0;
        flex-direction: row;
    }
    .comp-divider::before {
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        width: 100%;
        height: 1px;
    }
}

/* ─── Recorrido del paciente ─── */
.journey-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 60px;
    position: relative;
}

.journey-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    position: relative;
}

.journey-icon {
    width: 72px;
    height: 72px;
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2;
    transition: var(--transition-normal);
}

.journey-step:hover .journey-icon {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(13,131,164,0.3);
}

.journey-num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.journey-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.journey-step p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.journey-connector {
    flex-shrink: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
    margin-top: 35px;
    position: relative;
}

.journey-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

@media (max-width: 900px) {
    .journey-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .journey-step {
        max-width: 340px;
        padding: 24px 16px;
    }
    .journey-connector {
        width: 2px;
        height: 40px;
        margin-top: 0;
        background: linear-gradient(to bottom, var(--primary-light), var(--primary-color));
    }
    .journey-connector::after {
        right: -4px;
        top: auto;
        bottom: -4px;
        transform: rotate(135deg);
    }
}

/* ─── Áreas de práctica – imagen ─── */
.practicas-img-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 50px;
}

.practica-img-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 420px;
    background: var(--card-bg) center / cover no-repeat;
}

.practica-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,30,50,0.92) 55%, rgba(10,30,50,0.35) 100%);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.practica-img-tag {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(13, 131, 164, 0.18);
    border: 1px solid rgba(13, 131, 164, 0.4);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    width: fit-content;
}

.practica-img-overlay h3 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.practica-img-overlay p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 18px;
    line-height: 1.6;
}

.practica-img-overlay ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.practica-img-overlay li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.88);
}

.practica-img-overlay li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ─── Simulación Quirúrgica Destacada ─── */
.simulacion-featured {
    margin-top: 28px;
    background: linear-gradient(135deg, #0b2a38 0%, #0d4a62 60%, #0d83a4 100%);
    border-radius: var(--radius-lg);
    padding: 56px 52px;
    color: white;
    position: relative;
    overflow: hidden;
}

.simulacion-featured::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13,131,164,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.sim-header {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 44px;
}

.sim-header-left {
    flex: 1;
}

.sim-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.sim-header-left h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.sim-header-left p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    max-width: 560px;
}

.sim-header-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    min-width: 220px;
}

.sim-stat {
    text-align: right;
    border-right: 3px solid rgba(255,255,255,0.25);
    padding-right: 20px;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-heading);
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    line-height: 1.3;
}

.sim-projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sim-project-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: white;
    position: relative;
    transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
    backdrop-filter: blur(6px);
}

.sim-project-card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.35);
    color: white;
}

.sim-project-inner {
    flex: 1;
}

.sim-project-logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 300;
    color: white;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.sim-project-logo-text strong {
    font-weight: 800;
}

.sim-dtres .sim-project-logo-text strong { color: #7ecf7d; }
.sim-how .sim-project-logo-text strong { color: #7bbfed; }

.sim-project-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.sim-project-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    margin-bottom: 24px;
}

.sim-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding-bottom: 2px;
    transition: border-color var(--transition-fast);
}

.sim-project-card:hover .sim-visit-btn {
    border-color: white;
}

.sim-project-role {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 992px) {
    .practicas-img-row { grid-template-columns: 1fr; }
    .sim-header { flex-direction: column; gap: 28px; }
    .sim-header-stats { flex-direction: row; min-width: unset; }
    .sim-stat { text-align: left; border-right: none; border-left: 3px solid rgba(255,255,255,0.25); padding-right: 0; padding-left: 16px; }
}

@media (max-width: 768px) {
    .simulacion-featured { padding: 36px 24px; }
    .sim-projects { grid-template-columns: 1fr; }
    .sim-header-stats { flex-wrap: wrap; gap: 16px; }
}

/* ─── El Cirujano ─── */
.cirujano-wrapper {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    margin-top: 50px;
    align-items: start;
}

.cirujano-portrait {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 3/4;
}

.cirujano-card-info {
    margin-top: 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.cirujano-lead {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 36px;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

.trayectoria h3,
.memberships h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 700;
}

.trayectoria-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.trayectoria-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-size: 0.97rem;
    color: var(--text-main);
    line-height: 1.6;
}

.tray-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.membership-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.membership-tags span {
    background: var(--white);
    border: 1px solid var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--font-heading);
}

/* ─── Novedad card con imagen real ─── */
.novedad-img.has-image {
    background-size: cover;
    background-position: center;
    position: relative;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    transition: background var(--transition-fast);
    font-size: 3.5rem;
    color: white;
}

.novedad-card:hover .play-overlay {
    background: rgba(0,0,0,0.45);
}

/* ─── Video Modal ─── */
#video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

#video-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.modal-content video {
    width: 100%;
    display: block;
    max-height: 80vh;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 900px) {
    .cirujano-wrapper {
        grid-template-columns: 1fr;
    }
    .cirujano-portrait {
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    .hero-content { margin-bottom: 60px; }
    .hero-credentials p { justify-content: center; }
    .hero-image-wrapper { justify-content: center; width: 100%; margin-top: 20px; }
    .hero-image-backdrop { left: 20px; }
    .hero::before { width: 100%; right: 0; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-normal);
        gap: 20px;
    }
    .nav-links.active { left: 0; }
    .nav-link { font-size: 1.2rem; display: inline-block;}
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.9rem; }
    .section-description { font-size: 1rem; }
    .info-content-wrapper { padding: 30px; flex-direction: column; text-align: center; }
    .footer-contact-card { padding: 24px; transform: none; margin-bottom: 30px; }
    .contact-details { gap: 30px; grid-template-columns: 1fr; }
    .contact-item span, .contact-item a { font-size: 0.95rem; word-break: break-all; }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.4rem; }
    .comp-col { padding: 28px 20px; }
    .comp-header h3 { font-size: 1rem; }
    .comp-col li { font-size: 0.9rem; }
    .practica-img-card { min-height: 320px; }
    #back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
    .footer { padding: 40px 0 20px; }
    .footer-bottom { font-size: 0.82rem; }
}

/* ─── Teléfonos pequeños (< 480px) ─── */
@media (max-width: 480px) {
    /* Tipografía */
    .hero-title { font-size: 2rem; letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-credentials { font-size: 0.9rem; }
    .section-title { font-size: 1.6rem; }

    /* Hero */
    .hero { padding-top: 100px; min-height: auto; padding-bottom: 48px; }
    .hero-image { max-width: 280px; }
    .btn { padding: 11px 22px; font-size: 0.95rem; }

    /* Stats */
    .stats-section { padding: 40px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .stat-block::after { display: none !important; }
    .stat-block { padding: 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .stat-block:nth-child(1), .stat-block:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.12); }
    .stat-counter { font-size: 2rem; }
    .stat-block p { font-size: 0.8rem; }

    /* Comparativa */
    .comparativa-grid { grid-template-columns: 1fr; border-radius: var(--radius-md); }
    .comp-col { padding: 24px 18px; }
    .comp-divider { padding: 14px 0; }
    .comp-col li { font-size: 0.88rem; gap: 8px; }

    /* Journey */
    .journey-steps { gap: 0; }
    .journey-step { padding: 18px 12px; }
    .journey-icon { width: 56px; height: 56px; font-size: 1.4rem; }
    .journey-step h4 { font-size: 0.95rem; }
    .journey-step p { font-size: 0.84rem; }

    /* Áreas de práctica */
    .practica-img-card { min-height: 280px; }
    .practica-img-overlay { padding: 24px 20px; }
    .practica-img-overlay h3 { font-size: 1.25rem; }
    .practica-img-overlay li { font-size: 0.84rem; }

    /* Simulación */
    .simulacion-featured { padding: 28px 18px; border-radius: var(--radius-md); }
    .sim-header-left h3 { font-size: 1.5rem; }
    .sim-header-stats { flex-direction: column; gap: 12px; }
    .sim-stat { text-align: left; border-right: none; border-left: 3px solid rgba(255,255,255,0.25); padding-left: 14px; }
    .stat-num { font-size: 1.4rem; }
    .sim-project-logo-text { font-size: 1.3rem; }
    .sim-project-desc { font-size: 0.88rem; }

    /* El cirujano */
    .cirujano-portrait { max-width: 240px; aspect-ratio: 1/1; }
    .cirujano-lead { font-size: 1rem; padding-left: 14px; }
    .trayectoria-list li { font-size: 0.88rem; }
    .tray-icon { width: 32px; height: 32px; font-size: 1rem; }
    .membership-tags span { font-size: 0.82rem; padding: 5px 11px; }

    /* Novedades */
    .novedades-grid { grid-template-columns: 1fr; }

    /* Ticker logos */
    .logo-ticker-item { padding: 0 30px; }
    .logo-ticker-item img { height: 40px; }
    .logo-ticker-item span { font-size: 0.72rem; }

    /* Contacto / footer */
    .footer-contact-card { margin: 0 12px 24px; }
    .contact-card-header h3 { font-size: 1.5rem; }
    .contact-item i { font-size: 1.8rem; }

    /* Info pacientes */
    .info-content-wrapper { padding: 24px 18px; }
    .info-text p { font-size: 1rem; }
}
