:root {
    /* Paleta Médica Profesional Mejorada */
    --color-primary: #1e40af;
    --color-secondary: #0369a1;
    --color-accent: #dc2626;
    --color-success: #059669;
    --color-warning: #d97706;
    --color-info: #0ea5e9;
    --color-danger: #ef4444;
    
    /* Colores para Bilirrubina */
    --color-bilirrubina: #f59e0b;
    --color-bilirrubina-dark: #b45309;
    
    /* Escala Neutral */
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-lighter: #9ca3af;
    --color-bg: #f8fafc;
    --color-bg-secondary: #f1f5f9;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --color-border-dark: #cbd5e1;
    
    /* Sombras Médicas Mejoradas */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 24px -4px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 40px -8px rgba(15, 23, 42, 0.15);
    --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============ PATRONES DE FONDO ============ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 64, 175, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(3, 105, 161, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ============ ANIMACIONES DE TRANSICIÓN ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

.hidden {
    display: none !important;
}

/* ============ HEADER ============ */
header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--color-info);
    backdrop-filter: blur(10px);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="rgba(255,255,255,0.05)" fill-rule="nonzero"><path d="M36 34v-4h-2v4h4v-4h-4v4h2zm0-6v-4h-2v4h4v-4h-4v4h2z"/></g></g></svg>');
    pointer-events: none;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
    animation: float 3s ease-in-out infinite, pulse-glow 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

.title-group h1 {
    font-size: clamp(16px, 4vw, 28px);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.title-group p {
    font-size: clamp(10px, 2vw, 12px);
    color: rgba(255, 255, 255, 0.85);
    margin: 2px 0 0 0;
    font-weight: 500;
}

nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 12px;
    gap: 8px;
    z-index: 999;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    width: 100%;
}

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link--primary {
    background: linear-gradient(135deg, var(--color-warning), var(--color-danger));
    color: var(--color-white);
    border: none;
    box-shadow: var(--shadow-md);
    padding: 10px 16px;
}

.nav-link--primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* ============ MENÚ DESPLEGABLE ============ */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.nav-dropdown .nav-link--primary[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
    border: 1px solid var(--color-border);
    z-index: 1000;
    overflow: hidden;
    max-height: 80vh;
    overflow-y: auto;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .dropdown-menu {
        position: fixed;
        top: auto;
        left: 8px;
        right: 8px;
        transform: translateY(0);
        width: auto;
        max-width: none;
        bottom: auto;
        max-height: 70vh;
        border-radius: 12px;
        margin-top: 8px;
    }

    .nav-dropdown.open .dropdown-menu {
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-weight: 500;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    padding-left: 20px;
}

.dropdown-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.icon-nav {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============ HAMBURGER MENU ============ */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 8px;
    flex-shrink: 0;
}

.hamburger-menu span {
    width: 24px;
    height: 2.5px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============ HERO SECTION ============ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: clamp(40px, 10vw, 100px) 16px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    right: -200px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    left: -100px;
    bottom: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(3, 105, 161, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: clamp(28px, 7vw, 56px);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: clamp(14px, 4vw, 18px);
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.8;
    max-width: 500px;
}

.hero-image {
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-image svg {
    width: 100%;
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(30, 64, 175, 0.15));
    animation: float-rotate 6s ease-in-out infinite;
}

@keyframes float-rotate {
    0% { transform: rotateY(0deg) translateY(0px); }
    50% { transform: rotateY(25deg) translateY(-20px); }
    100% { transform: rotateY(0deg) translateY(0px); }
}

/* ============ BOTONES ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 0;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.btn--primary:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-4px) scale(1.02);
}

.btn--primary:active {
    transform: translateY(-2px) scale(0.98);
}

.btn--secondary {
    background: var(--color-text);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    padding: 10px 20px;
}

.btn--secondary:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn--large {
    padding: 14px 32px;
    font-size: 15px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.icon-btn {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============ BOTÓN VOLVER A SECCIÓN ============ */
.btn-back-section {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.btn-back-section:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-back-section:active {
    transform: translateY(0);
}

/* ============ SECCIONES DE CONCEPTOS ============ */
.concept-section {
    padding: clamp(40px, 8vw, 80px) 16px;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg-secondary) 100%);
    min-height: 100vh;
}

.section-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ============ SERVICIOS (TARJETAS DE CONCEPTOS) ============ */
.servicios-section {
    padding: clamp(60px, 12vw, 120px) 16px;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg-secondary) 100%);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.servicios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.section-title {
    font-size: clamp(28px, 6vw, 48px);
    text-align: center;
    margin-bottom: 12px;
    color: var(--color-primary);
    font-weight: 900;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 40px;
    font-size: clamp(13px, 3vw, 16px);
    font-weight: 500;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.servicio {
    background: var(--color-white);
    padding: 28px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    border-top: 4px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.servicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.servicio:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.servicio:hover::before {
    opacity: 1;
}

.servicio-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    animation: pulse-medical 2.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(30, 64, 175, 0.2);
}

@keyframes pulse-medical {
    0%, 100% { box-shadow: 0 0 30px rgba(30, 64, 175, 0.2), 0 0 0 0 rgba(30, 64, 175, 0.4); }
    50% { box-shadow: 0 0 30px rgba(30, 64, 175, 0.3), 0 0 0 12px rgba(30, 64, 175, 0); }
}

.servicio-icon svg {
    width: 32px;
    height: 32px;
}

.servicio h3 {
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 12px;
    color: var(--color-primary);
    font-weight: 800;
}

.servicio p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-size: clamp(13px, 3vw, 15px);
    line-height: 1.6;
}

/* ============ PROPIEDADES (TABLA DE ANÁLISIS) ============ */
.explore-page {
    padding: 40px 16px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.explore-header {
    margin-bottom: 40px;
    text-align: center;
}

.explore-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: clamp(24px, 6vw, 42px);
    margin-bottom: 12px;
    color: var(--color-primary);
    font-weight: 900;
    flex-wrap: wrap;
}

.explore-header p {
    color: var(--color-text-light);
    font-size: clamp(13px, 3vw, 16px);
    font-weight: 500;
}

.icon-title {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.properties-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.property-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 14px;
    padding: 20px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 5px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.05) 0%, transparent 70%);
    transition: all 0.3s ease;
}

.property-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.property-card:hover::before {
    right: -50px;
}

.property-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.2);
}

.property-icon svg {
    width: 28px;
    height: 28px;
}

.property-info h3 {
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 4px;
    color: var(--color-primary);
    font-weight: 800;
}

.property-details {
    color: var(--color-text-light);
    font-size: clamp(12px, 3vw, 14px);
    margin-bottom: 10px;
    line-height: 1.6;
}

.property-price {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
    width: fit-content;
}

/* ============ RECURSOS SECTION ============ */
.recursos-section {
    padding: 40px 16px;
    animation: slideUp 0.5s ease;
}

.recursos-header {
    margin-bottom: 40px;
    text-align: center;
}

.recursos-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: clamp(24px, 6vw, 42px);
    margin-bottom: 12px;
    color: var(--color-primary);
    font-weight: 900;
    flex-wrap: wrap;
}

.recursos-header p {
    color: var(--color-text-light);
    font-size: clamp(13px, 3vw, 16px);
    font-weight: 500;
}

/* Tabs de Recursos */
.recursos-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    color: var(--color-text);
}

.tab-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.tab-btn svg {
    width: 18px;
    height: 18px;
}

/* Contenido de Tabs */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.recurso-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
    text-align: center;
}

.recurso-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.video-placeholder,
.imagen-placeholder,
.infografia-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.video-placeholder svg,
.imagen-placeholder svg,
.infografia-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

.video-placeholder span,
.imagen-placeholder span,
.infografia-placeholder span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.video-player {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.imagen-container,
.infografia-container {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.imagen-container img,
.infografia-container img {
    width: 100%;
    height: auto;
    display: block;
}

.recurso-card h3 {
    font-size: clamp(14px, 3vw, 18px);
    margin-bottom: 8px;
    color: var(--color-primary);
    font-weight: 800;
}

.recurso-card p {
    color: var(--color-text-light);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.recurso-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
    font-family: inherit;
}

.recurso-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.recurso-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-light);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

/* Documentos */
.recursos-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.documento-item {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
}

.documento-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.documento-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, #1e40af, #0369a1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.documento-icon svg {
    width: 28px;
    height: 28px;
}

.documento-info {
    flex: 1;
    text-align: left;
}

.documento-info h4 {
    font-size: clamp(14px, 3vw, 16px);
    margin-bottom: 6px;
    color: var(--color-primary);
    font-weight: 800;
}

.documento-info p {
    color: var(--color-text-light);
    font-size: 13px;
    margin-bottom: 10px;
}

.documento-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--color-text-light);
    flex-wrap: wrap;
}

/* ============ CONTENIDO MODAL EDUCATIVO ============ */
.modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content h2 {
    color: var(--color-primary);
    font-size: clamp(20px, 5vw, 32px);
    margin-bottom: 10px;
    margin-top: 0;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content h3 {
    color: var(--color-secondary);
    font-size: clamp(16px, 4vw, 20px);
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-content h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
    flex-shrink: 0;
}

.modal-content h4 {
    color: var(--color-text);
    font-size: clamp(14px, 3vw, 17px);
    font-weight: 800;
    margin-top: 12px;
}

.modal-content p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin: 0;
    font-size: clamp(13px, 3vw, 15px);
}

.modal-content ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}

.modal-content li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--color-text-light);
    font-size: clamp(12px, 3vw, 15px);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.modal-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
    font-size: 14px;
    line-height: 1.6;
}

/* ============ ESCALA DE BILIRRUBINA ============ */
.bilirrubina-scale {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

.scale-item {
    padding: 20px;
    text-align: center;
    color: var(--color-white);
    font-weight: 900;
    animation: slideUp 0.5s ease;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 13px;
}

.scale-item.present {
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-bilirrubina-dark) 100%);
}

.scale-item.absent {
    background: linear-gradient(135deg, var(--color-success) 0%, #047857 100%);
}

/* ============ LISTAS DE INFORMACIÓN ============ */
.info-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.info-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
    font-size: clamp(12px, 3vw, 15px);
    transition: var(--transition);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li:hover {
    padding-left: 28px;
    color: var(--color-primary);
}

.info-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 14px;
    line-height: 1.6;
}

/* ============ CAJA DE RANGO ============ */
.range-box {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08) 0%, rgba(3, 105, 161, 0.08) 100%);
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.range-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.range-box h3 {
    color: var(--color-primary);
    margin: 0 0 10px 0;
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 900;
}

.range-box p {
    color: var(--color-text);
    font-size: clamp(13px, 3vw, 16px);
    margin: 0;
    font-weight: 600;
}

/* ============ TABLA DE VARIACIONES ============ */
.variation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    font-size: clamp(11px, 2.5vw, 14px);
}

.variation-table tr:first-child {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
}

.variation-table tr:nth-child(even) {
    background: var(--color-bg);
}

.variation-table tr:hover {
    background: rgba(30, 64, 175, 0.05);
    transition: var(--transition);
}

.variation-table td {
    padding: 12px 10px;
    border: 1px solid var(--color-border);
    text-align: left;
    font-weight: 500;
}

.variation-table tr:first-child td {
    border: none;
    font-weight: 800;
    padding: 14px 10px;
}

/* ============ TARJETAS DE FACTORES ============ */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.factor-card {
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid;
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    background: var(--color-white);
    transition: var(--transition-smooth);
}

.factor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.acidic-factor {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), rgba(220, 38, 38, 0.04));
    border-left-color: var(--color-danger);
}

.acidic-factor h4 {
    color: var(--color-danger);
    margin: 0 0 10px 0;
    font-weight: 800;
    font-size: clamp(13px, 3vw, 15px);
}

.bilirrubina-factor {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), rgba(217, 119, 6, 0.04));
    border-left-color: var(--color-warning);
}

.bilirrubina-factor h4 {
    color: var(--color-warning);
    margin: 0 0 10px 0;
    font-weight: 800;
    font-size: clamp(13px, 3vw, 15px);
}

.warning-factor {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), rgba(245, 158, 11, 0.04));
    border-left-color: var(--color-accent);
}

.warning-factor h4 {
    color: var(--color-accent);
    margin: 0 0 10px 0;
    font-weight: 800;
    font-size: clamp(13px, 3vw, 15px);
}

.factor-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.factor-card li {
    padding: 6px 0 6px 20px;
    color: var(--color-text);
    font-size: clamp(12px, 2.5vw, 14px);
    line-height: 1.5;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.factor-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 12px;
    line-height: 1.5;
}

/* ============ TARJETAS DE RIESGO ============ */
.risk-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.risk-card {
    padding: 16px;
    border-radius: 10px;
    border: 2px solid;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.risk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.risk-acidic {
    border-color: var(--color-danger);
    background: rgba(239, 68, 68, 0.03);
}

.risk-acidic h4 {
    color: var(--color-danger);
    margin: 0 0 10px 0;
    font-weight: 800;
    font-size: clamp(13px, 3vw, 15px);
}

.risk-normal {
    border-color: var(--color-success);
    background: rgba(5, 150, 105, 0.03);
}

.risk-normal h4 {
    color: var(--color-success);
    margin: 0 0 10px 0;
    font-weight: 800;
    font-size: clamp(13px, 3vw, 15px);
}

.risk-bilirrubina {
    border-color: var(--color-warning);
    background: rgba(245, 158, 11, 0.03);
}

.risk-bilirrubina h4 {
    color: var(--color-warning);
    margin: 0 0 10px 0;
    font-weight: 800;
    font-size: clamp(13px, 3vw, 15px);
}

.risk-imaging {
    border-color: var(--color-primary);
    background: rgba(30, 64, 175, 0.03);
}

.risk-imaging h4 {
    color: var(--color-primary);
    margin: 0 0 10px 0;
    font-weight: 800;
    font-size: clamp(13px, 3vw, 15px);
}

.risk-card p {
    margin: 0 0 10px 0;
    font-size: clamp(12px, 2.5vw, 14px);
    color: var(--color-text);
}

.risk-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.risk-list li {
    padding: 6px 0 6px 20px;
    color: var(--color-text);
    position: relative;
    font-size: clamp(11px, 2.5vw, 14px);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.risk-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
    font-size: 12px;
    line-height: 1.5;
}

.success-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.success-list li {
    padding: 6px 0 6px 20px;
    color: var(--color-text);
    position: relative;
    font-size: clamp(11px, 2.5vw, 14px);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.success-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
    font-size: 12px;
    line-height: 1.5;
}

.action {
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(3, 105, 161, 0.08));
    border-left: 4px solid var(--color-primary);
    border-radius: 6px;
    color: var(--color-text);
    font-weight: 600;
    font-size: clamp(12px, 2.5vw, 14px);
    line-height: 1.5;
}

/* ============ TABLA DE SÍNTOMAS ============ */
.symptoms-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    font-size: clamp(11px, 2.5vw, 14px);
}

.symptoms-table tr {
    border-bottom: 1px solid var(--color-border);
}

.symptoms-table tr:last-child {
    border-bottom: none;
}

.symptoms-table td {
    padding: 12px 10px;
    text-align: left;
    font-size: clamp(11px, 2.5vw, 14px);
}

.symptoms-table tr:nth-child(1) {
    background: linear-gradient(135deg, var(--color-danger), #b91c1c);
    color: var(--color-white);
    font-weight: 700;
}

.symptoms-table tr:nth-child(2) {
    background: linear-gradient(135deg, var(--color-success), #047857);
    color: var(--color-white);
    font-weight: 700;
}

.symptoms-table tr:nth-child(3) {
    background: linear-gradient(135deg, var(--color-info), #0284c7);
    color: var(--color-white);
    font-weight: 700;
}

/* ============ ALERTAS ============ */
.alert {
    padding: 14px;
    border-radius: 10px;
    border-left: 4px solid;
    margin: 16px 0;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    font-size: clamp(12px, 2.5vw, 14px);
    line-height: 1.6;
}

.alert-info {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(3, 105, 161, 0.08));
    border-left-color: var(--color-primary);
    color: var(--color-text);
}

.alert-success {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(4, 120, 87, 0.08));
    border-left-color: var(--color-success);
    color: var(--color-text);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.08));
    border-left-color: var(--color-warning);
    color: var(--color-text);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.08));
    border-left-color: var(--color-danger);
    color: var(--color-text);
}

.alert strong {
    color: var(--color-text);
    font-weight: 800;
}

/* ============ CONTACTO ============ */
.footer-adjacent-contacto {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: clamp(40px, 10vw, 80px) 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-adjacent-contacto::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-adjacent-contacto::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contacto-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contacto-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    animation: float 3s ease-in-out infinite, pulse-glow 2s ease-in-out infinite;
    font-size: 36px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contacto-icon svg {
    width: 36px;
    height: 36px;
}

.footer-adjacent-contacto h3 {
    font-size: clamp(22px, 6vw, 36px);
    margin-bottom: 12px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-adjacent-contacto p {
    font-size: clamp(13px, 4vw, 18px);
    margin-bottom: 24px;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 500;
}

/* ============ FOOTER ============ */
footer {
    background-color: #0f172a;
    color: var(--color-white);
    padding: 32px 16px;
    border-top: 2px solid var(--color-primary);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-content p {
    font-size: clamp(11px, 2.5vw, 14px);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    font-size: clamp(11px, 2.5vw, 14px);
}

.footer-link:hover {
    color: var(--color-info);
    text-decoration: underline;
}

/* ============ NOTA RÁPIDA ============ */
.quick-note-container {
    position: fixed;
    right: 16px;
    top: 120px;
    z-index: 1000;
}

.quick-note-container.left {
    left: 16px;
    right: auto;
}

.right-box {
    width: 280px;
    background: var(--color-white);
    padding: 14px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 2px solid var(--color-border);
    transition: var(--transition);
}

.right-box:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.right-box__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary);
    cursor: grab;
    font-size: 13px;
}

.right-box.dragging .right-box__label {
    cursor: grabbing;
}

.icon-small {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.right-box__toggle {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    transition: var(--transition);
    color: var(--color-primary);
    font-weight: bold;
}

.right-box__toggle:hover {
    transform: scale(1.15) rotate(90deg);
    color: var(--color-secondary);
}

.right-box.collapsed {
    width: 240px;
}

.right-box.collapsed .right-box__textarea {
    display: none;
}

.right-box.collapsed .right-box__label {
    margin-bottom: 0;
}

.right-box.collapsed .right-box__toggle {
    transform: rotate(180deg);
}

.right-box__textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
    background: var(--color-bg);
}

.right-box__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    background: var(--color-white);
}

/* ============ UTILIDADES ============ */
.info-note {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    font-weight: 700;
    font-size: 12px;
}

.info-note:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ============ MAIN CONTENT ============ */
main {
    display: block;
    width: 100%;
}

/* ============ RESPONSIVE ============ */

/* MOBILE - hasta 480px */
@media (max-width: 480px) {
    header {
        padding: 8px 0;
    }

    .header-container {
        gap: 8px;
        padding: 0 8px;
    }

    .logo-section {
        gap: 6px;
        flex: 1;
        min-width: 0;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .title-group h1 {
        font-size: 14px;
    }

    .title-group p {
        font-size: 9px;
        margin-top: 1px;
    }

    nav {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    nav.mobile-open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        font-size: 12px;
        padding: 10px 12px;
    }

    .dropdown-menu {
        position: fixed;
        top: auto;
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
    }

    .dropdown-item {
        padding: 10px 12px;
        font-size: 12px;
    }

    .icon-nav {
        width: 16px;
        height: 16px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 12px;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .servicio {
        padding: 16px;
    }

    .right-box {
        display: none;
    }

    .recursos-tabs {
        gap: 4px;
    }

    .tab-btn {
        padding: 8px 10px;
        font-size: 10px;
        gap: 4px;
    }

    .tab-btn svg {
        width: 14px;
        height: 14px;
    }

    .recursos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .properties-list {
        grid-template-columns: 1fr;
    }

    .factors-grid {
        grid-template-columns: 1fr;
    }

    .risk-section {
        grid-template-columns: 1fr;
    }

    .bilirrubina-scale {
        gap: 8px;
    }

    .scale-item {
        padding: 14px;
        font-size: 10px;
    }

    .documento-item {
        flex-direction: column;
        gap: 12px;
    }

    .documento-icon {
        width: 44px;
        height: 44px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-links {
        justify-content: center;
        gap: 12px;
    }

    .quick-note-container {
        top: 60px;
        right: 8px;
    }

    .right-box {
        width: 220px;
    }

    .concept-section {
        padding: clamp(20px, 4vw, 40px) 12px;
        min-height: auto;
    }

    .btn-back-section {
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
        padding: 10px 16px;
        font-size: 12px;
    }

    .section-container {
        max-width: 100%;
    }

    .btn--primary,
    .btn--secondary,
    .btn--large {
        width: 100%;
        justify-content: center;
    }
}

/* TABLET - 481px a 1024px */
@media (min-width: 481px) and (max-width: 1024px) {
    nav {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        background: transparent;
        padding: 0;
        gap: 6px;
        max-height: none;
    }

    nav.mobile-open {
        display: flex;
        flex-direction: row;
        position: static;
        background: transparent;
        padding: 0;
        gap: 6px;
        top: auto;
        left: auto;
        right: auto;
    }

    .hamburger-menu {
        display: none;
    }

    .header-container {
        gap: 10px;
        padding: 0 12px;
    }

    .nav-link {
        font-size: 11px;
        padding: 8px 10px;
        white-space: nowrap;
    }

    .nav-link--primary {
        padding: 8px 12px;
        font-size: 11px;
    }

    .dropdown-menu {
        left: 0;
        transform: translateY(0);
    }

    .nav-dropdown.open .dropdown-menu {
        transform: translateY(0);
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .properties-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .factors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .risk-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .right-box {
        width: 260px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .concept-section {
        padding: clamp(30px, 6vw, 50px) 20px;
    }
}

/* PC - 1025px en adelante */
@media (min-width: 1025px) {
    nav {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        background: transparent;
        padding: 0;
        gap: 8px;
        max-height: none;
    }

    nav.mobile-open {
        display: flex;
        flex-direction: row;
        position: static;
        background: transparent;
        padding: 0;
        gap: 8px;
        top: auto;
        left: auto;
        right: auto;
    }

    .hamburger-menu {
        display: none;
    }

    .header-container {
        gap: 12px;
        padding: 0 12px;
    }

    .nav-link {
        font-size: 13px;
        padding: 10px 14px;
        white-space: nowrap;
    }

    .nav-link--primary {
        padding: 10px 16px;
    }

    .hero {
        grid-template-columns: 1fr 1fr;
    }

    .servicios-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .properties-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .recursos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .factors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .right-box {
        display: block;
    }

    .dropdown-menu {
        left: 0;
        transform: translateY(0);
    }

    .nav-dropdown.open .dropdown-menu {
        transform: translateY(0);
    }
}

/* ===========================
   ESTILOS DEL ASISTENTE
   =========================== */

#assistant-widget {
    --assistant-primary: #2563eb;
    --assistant-secondary: #1e40af;
    --assistant-success: #059669;
    --assistant-bg: #ffffff;
    --assistant-text: #1f2937;
    --assistant-border: #e5e7eb;
}

.assistant-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    font-family: inherit;
    z-index: 9999;
}

.assistant-bubble {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--assistant-primary) 0%, var(--assistant-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.assistant-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.assistant-bubble::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.assistant-icon {
    font-size: 32px;
    z-index: 1;
}

.assistant-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background: var(--assistant-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.assistant-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.assistant-header {
    background: linear-gradient(135deg, var(--assistant-primary) 0%, var(--assistant-secondary) 100%);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.assistant-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.assistant-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.assistant-close:hover {
    transform: rotate(90deg);
}

.assistant-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assistant-message {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideIn 0.3s ease;
}

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

.assistant-greeting {
    background: var(--assistant-primary);
    color: white;
    align-self: flex-start;
    max-width: 90%;
}

.assistant-user {
    background: #f3f4f6;
    color: var(--assistant-text);
    align-self: flex-end;
    max-width: 90%;
}

.assistant-user.assistant-user {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

.assistant-section {
    padding: 12px 0;
}

.assistant-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--assistant-primary);
}

.assistant-topic-item,
.assistant-faq-item,
.assistant-tip-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid var(--assistant-primary);
    margin-bottom: 10px;
}

.assistant-topic-item strong,
.assistant-faq-item strong {
    display: block;
    color: var(--assistant-text);
    margin-bottom: 6px;
}

.assistant-topic-item p,
.assistant-faq-item p {
    font-size: 13px;
    color: #6b7280;
    margin: 6px 0;
}

.assistant-action-btn {
    background: var(--assistant-primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
    margin-top: 8px;
    width: 100%;
}

.assistant-action-btn:hover {
    background: var(--assistant-secondary);
}

.assistant-guide {
    font-size: 13px;
    color: #6b7280;
}

.assistant-guide ol,
.assistant-guide ul {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.assistant-guide li {
    margin: 6px 0;
    color: #6b7280;
}

.assistant-guide a {
    color: var(--assistant-primary);
    text-decoration: none;
    font-weight: 500;
}

.assistant-guide a:hover {
    text-decoration: underline;
}

.assistant-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--assistant-border);
    background: #fafbfc;
    flex-shrink: 0;
}

#assistantInput {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--assistant-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: var(--assistant-text);
    transition: border-color 0.2s ease;
}

#assistantInput:focus {
    outline: none;
    border-color: var(--assistant-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.assistant-send {
    background: var(--assistant-primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.assistant-send:hover {
    background: var(--assistant-secondary);
}

.assistant-menu {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #f9fafb;
    border-top: 1px solid var(--assistant-border);
    flex-wrap: wrap;
}

.assistant-menu-btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 10px;
    background: var(--assistant-bg);
    border: 1px solid var(--assistant-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--assistant-text);
    transition: all 0.2s ease;
}

.assistant-menu-btn:hover {
    background: var(--assistant-primary);
    color: white;
    border-color: var(--assistant-primary);
}

/* Scroll personalizado para el panel */
.assistant-content::-webkit-scrollbar {
    width: 6px;
}

.assistant-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.assistant-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.assistant-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .assistant-widget {
        bottom: 16px;
        right: 16px;
    }

    .assistant-bubble {
        width: 56px;
        height: 56px;
    }

    .assistant-icon {
        font-size: 28px;
    }

    .assistant-panel {
        width: 320px;
        max-height: 500px;
        bottom: 70px;
    }

    .assistant-header h3 {
        font-size: 14px;
    }

    .assistant-input {
        flex-direction: column;
    }

    #assistantInput,
    .assistant-send {
        width: 100%;
    }

    .assistant-menu {
        flex-direction: column;
    }

    .assistant-menu-btn {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .assistant-panel {
        width: calc(100vw - 32px);
        max-height: 70vh;
        bottom: 66px;
        right: 16px;
    }
}
