/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-color: #232EE0;      /* Electric Blue (Brand logo) */
    --primary-hover: #1822B5;
    --primary-light: #eff6ff;      /* Very soft blue for backgrounds */
    --secondary-color: #0CDAFF;    /* Celeste/Cyan (Brand logo) */
    --secondary-hover: #03BFFF;
    --accent-color: #F20571;       /* Magenta/Rosa (Brand logo) */
    --accent-hover: #C7045B;
    --beige-color: #FAF6F0;        /* Warm Beige (Brand flyer) */
    --dark-color: #1C1D24;         /* Charcoal for dark texts & footer */
    --text-color: #3F414D;         /* Readable Gray for main paragraph text */
    --text-muted: #6C6E7A;         /* Slate/Muted for captions */
    --bg-color: #FAF8F5;           /* Clean Page Background */
    --white: #ffffff;
    
    /* Status Colors */
    --success: #10b981;
    --error: #ef4444;
    
    /* Layout & Shadow constants */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Sulphur Point', 'Trebuchet MS', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Forum', Georgia, 'Times New Roman', serif;
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.25;
}

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

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

/* Sections */
section {
    padding: 80px 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Sulphur Point', 'Trebuchet MS', Arial, sans-serif;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    font-size: 0.95rem;
    text-align: center;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(35, 46, 224, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 46, 224, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(242, 5, 113, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 5, 113, 0.5);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--primary-hover) 100%);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(12, 218, 255, 0.25);
}

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-whatsapp-cta {
    background-color: #25d366;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-cta:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
/* Encabezado unificado: banner institucional + chrome de navegación */
.site-header.navbar-header {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    transition: var(--transition-normal);
}

/* Al scrollear: chrome fijo sin logo (el banner se queda en su lugar en el flujo) */
.header-chrome.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: var(--shadow-sm);
}

.header-chrome.is-fixed .navbar-container {
    height: 56px;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    transition: var(--transition-normal);
}

/* Sin logo en la barra: el logo está en el banner institucional */
.header-brand-spacer {
    flex: 0 0 auto;
    width: 1px;
    height: 1px;
}

.brand-logo {
    display: none;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

/* Menu Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

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

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

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

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Hamburger — vive dentro del chrome del encabezado general */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(35, 46, 224, 0.12);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    z-index: 1002;
    flex-shrink: 0;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 20px;
    height: 2.5px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 110px 24px 40px 24px;
    overflow-y: auto;
    transition: var(--transition-normal);
}

.mobile-nav-overlay.open {
    right: 0;
}

.mobile-nav-content {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Sulphur Point', 'Trebuchet MS', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: rgba(35, 46, 224, 0.2);
    transform: translateX(6px);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(35, 46, 224, 0.08);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

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

.btn-mobile-cta {
    width: 100%;
    margin-top: 12px;
    padding: 14px 24px;
    font-size: 1.05rem;
}

/* Quick Info Card for Mobile Menu */
.mobile-menu-info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-menu-info-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding-bottom: 8px;
}

.menu-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-emoji {
    font-size: 1.1rem;
    line-height: 1.4;
}

.info-emoji-lab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.info-emoji-lab img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.menu-info-item p {
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0;
}

.menu-info-item a {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition-fast);
}

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

/* Hamburger active transformation (gap 5px + bar 2.5px) */
.mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   BANNER INSTITUCIONAL DE CABECERA (imagen panorámica del titular)
   ========================================================================== */
.landing-header-banner {
    position: relative;
    width: 100%;
    margin-top: 0; /* nav superpuesto al banner; sin barra de logo duplicada */
    background: var(--dark-color);
    overflow: hidden;
    line-height: 0;
    border-bottom: 1px solid rgba(35, 46, 224, 0.08);
}

/* Imagen panorámica completa: sin crop agresivo */
.header-banner-img,
.landing-header-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
}

/* Navegación + hamburguesa dentro del encabezado (sobre el banner) */
.header-chrome {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.1) 65%,
        transparent 100%
    );
}

.header-chrome .navbar-container,
.header-chrome .nav-menu,
.header-chrome .navbar-actions,
.header-chrome .nav-link,
.header-chrome .btn,
.header-chrome .mobile-menu-toggle {
    pointer-events: auto;
}

.header-chrome .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.header-chrome .navbar-container {
    height: 64px;
}

.header-chrome .navbar-actions {
    margin-left: auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 64px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 10% 20%, rgba(35, 46, 224, 0.06) 0%, rgba(12, 218, 255, 0.04) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

/* Hero Content */
.badge-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    border: 1px solid rgba(35, 46, 224, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.2px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 36px;
}

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

.hero-features {
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 24px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
}

.hero-feature-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Hero Visual Graphic */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(35, 46, 224, 0.1) 0%, rgba(12, 218, 255, 0.08) 100%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
}

.visual-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
}

/* Glass Dashboard Mockup */
.medical-dashboard-mockup {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.medical-dashboard-mockup:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 40px -10px rgba(0, 0, 0, 0.12);
}

.mockup-header {
    background: rgba(241, 245, 249, 0.8);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #f59e0b; }
.mockup-dot.green { background-color: #10b981; }

.mockup-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: auto;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mockup-body {
    display: grid;
    grid-template-columns: 60px 1fr;
    height: 280px;
}

.mockup-sidebar {
    background: rgba(248, 250, 252, 0.5);
    border-right: 1px solid rgba(226, 232, 240, 0.5);
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.sidebar-item {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-color: rgba(226, 232, 240, 0.8);
}

.sidebar-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.mockup-main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-chart-container {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.mockup-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-color);
}

.metric-val {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--primary-light);
    padding: 2px 8px;
    border-radius: 100px;
}

.mockup-graph {
    width: 100%;
    height: 50px;
}

.pulse-line {
    width: 100%;
    height: 100%;
}

.pulse-line path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 4s linear infinite;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mockup-box {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.box-icon-placeholder {
    font-size: 1.2rem;
}

.box-text-placeholder {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Floating Glass Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    z-index: 10;
    width: 220px;
    animation: float 6s ease-in-out infinite;
}

.floating-card-icon {
    font-size: 1.6rem;
}

.floating-card-content h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.floating-card-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pos-top-left {
    top: -20px;
    left: -40px;
    animation-delay: 0s;
}

.pos-bottom-right {
    bottom: -10px;
    right: -40px;
    animation-delay: 3s;
}

/* ==========================================================================
   CATALOG SECTION
   ========================================================================== */
.catalog-section {
    background-color: var(--beige-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Controls */
.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

/* Search Bar */
.search-bar {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 16px 20px 16px 54px;
    border-radius: var(--border-radius-md);
    border: 2px solid rgba(226, 232, 240, 0.8);
    background-color: var(--bg-color);
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark-color);
    outline: none;
    transition: var(--transition-normal);
}

.search-bar input:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(35, 46, 224, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.clear-search-btn:hover {
    color: var(--dark-color);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    font-family: 'Sulphur Point', 'Trebuchet MS', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background-color: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(35, 46, 224, 0.2);
}

/* Grid layout */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

/* Specialty Cards */
.specialty-card {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(35, 46, 224, 0.2);
}

.card-decor {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(35, 46, 224, 0.05) 0%, rgba(12, 218, 255, 0.05) 100%);
    border-radius: 0 0 0 100%;
    z-index: 1;
}

.specialty-icon-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: var(--border-radius-md);
    background-color: var(--primary-light);
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition-normal);
}

.specialty-card:hover .specialty-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    transform: scale(1.05);
}

.specialty-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.specialty-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.specialty-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.specialty-card .btn-card-action {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
    width: 100%;
}

.no-results {
    text-align: center;
    padding: 48px 20px;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    background-color: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

/* About Visuals */
.about-visual {
    position: relative;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-card {
    background: var(--white);
    color: var(--text-color);
    padding: 36px 32px 28px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 5;
    max-width: 340px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(35, 46, 224, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.about-logo-img {
    display: block;
    width: min(100%, 220px);
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.about-image-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
    max-width: 260px;
}

.decor-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.circle-1 {
    width: 240px;
    height: 240px;
    background: rgba(35, 46, 224, 0.15);
    top: 10px;
    left: 20px;
    z-index: 1;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(12, 218, 255, 0.15);
    bottom: 10px;
    right: 20px;
    z-index: 1;
}

/* About Content */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 32px;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.point-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}

.about-point h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.about-point p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CALL TO ACTION PROMO SECTION
   ========================================================================== */
.cta-promo-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-promo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 180%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(-30deg);
}

.cta-promo-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.cta-promo-content h2 {
    color: var(--white);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-promo-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    background-color: var(--beige-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: start;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.contact-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

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

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    font-size: 1.6rem;
    background-color: var(--primary-light);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    flex-shrink: 0;
}

.info-icon-lab {
    background-color: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 6px;
}

.info-icon-lab img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.info-text h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.info-text p {
    font-size: 0.95rem;
    color: var(--text-color);
}

.info-text a:hover {
    color: var(--primary-color);
}

.lab-brand-link {
    color: inherit;
    text-decoration: none;
}

.lab-brand-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.lab-site-link {
    font-weight: 600;
    color: var(--primary-color);
}

.info-item-lab .info-text p {
    margin-bottom: 2px;
}

/* Map Integration */
.map-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-md);
    background-color: #eee;
}

.map-wrapper iframe {
    width: 100%;
    height: 250px;
    border: 0;
    display: block;
}

.map-link {
    background-color: var(--bg-color);
    padding: 12px;
    text-align: center;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.map-link a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.map-link a:hover {
    text-decoration: underline;
}

/* Contact Form Card */
.contact-form-card {
    background-color: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.contact-form-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Form Styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group label .required {
    color: var(--error);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(203, 213, 225, 0.8);
    background-color: var(--white);
    outline: none;
    color: var(--dark-color);
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #cbd5e1;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(35, 46, 224, 0.1);
}

/* Form validation styling */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--error);
    background-color: rgba(239, 68, 68, 0.01);
}

.error-msg {
    font-size: 0.8rem;
    color: var(--error);
    font-weight: 500;
    display: none;
}

.form-group.has-error .error-msg {
    display: block;
}

.form-privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
    line-height: 1.4;
}

.divider-text {
    text-align: center;
    position: relative;
    margin: 16px 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: rgba(226, 232, 240, 0.8);
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.form-submit-actions {
    margin-top: 28px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--dark-color);
    color: #94a3b8; /* Slate 400 */
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Brand footer */
.brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.logo-img-footer {
    height: 44px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1) opacity(0.85);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Links footer */
.links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-col a {
    font-size: 0.9rem;
}

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

/* Legal footer */
.legal-col .legals {
    font-size: 0.85rem;
    line-height: 1.7;
}

/* Footer bottom */
.footer-bottom {
    padding: 24px 0;
    font-size: 0.8rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.dev-credits {
    font-weight: 500;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-floating {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background-color: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: var(--transition-normal);
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   MODAL OVERLAY & CARD
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-check {
    width: 64px;
    height: 64px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 24px auto;
}

.modal-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.modal-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(35, 46, 224, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(35, 46, 224, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(35, 46, 224, 0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-container {
        gap: 32px;
    }
    
    .about-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .btn-nav-cta {
        display: none; /* Hide nav button on tablets/phones and display toggler instead */
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* Hero mobile layout (el banner ya despeja el navbar fijo) */
    .hero-section {
        padding-top: 32px;
        padding-bottom: 40px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 10px;
        gap: 20px;
    }
    
    .badge-promo {
        margin-top: 20px;
        margin-bottom: 12px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
        line-height: 1.25;
        letter-spacing: -0.8px;
    }
    
    .hero-lead {
        font-size: 1.05rem;
        margin-bottom: 24px;
    }
    
    .hero-actions {
        justify-content: center;
        margin-bottom: 32px;
    }
    
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .hero-visual {
        margin-top: 10px;
        order: -1; /* Display medical graphic on top of the text in mobile */
    }
    
    .pos-top-left {
        left: -10px;
    }
    
    .pos-bottom-right {
        right: -10px;
    }
    
    /* Catalog mobile */
    .section-title {
        font-size: 2rem;
    }
    
    /* About Mobile */
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: 1;
        height: 300px;
        margin-top: 32px;
    }
    
    .about-image-card {
        padding: 30px;
    }
    
    /* CTA Promo Mobile */
    .cta-promo-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Contact Mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-card {
        padding: 24px;
    }
    
    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .floating-card {
        display: none; /* Hide floating cards on tiny mobile screens to avoid overlap */
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* ==========================================================================
   HERO CAROUSEL SECTION (assets 1:1 de especialidades)
   ========================================================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    background-color: var(--beige-color);
    margin: 0 auto;
}

.hero-carousel-track {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    transition: transform 5s ease;
}

.hero-slide.active img {
    transform: scale(1.03);
}

.hero-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0) 100%);
    color: var(--white);
    z-index: 3;
    font-family: 'Sulphur Point', 'Trebuchet MS', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    letter-spacing: -0.2px;
}

/* Indicators */
.hero-carousel-indicators {
    position: absolute;
    bottom: 16px;
    right: 24px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition-normal);
}

.hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
    background-color: var(--white);
    width: 20px;
    border-radius: 4px;
}

/* Controls */
.hero-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark-color);
    z-index: 10;
    transition: var(--transition-normal);
    opacity: 0;
    box-shadow: var(--shadow-sm);
}

.hero-carousel:hover .hero-carousel-control {
    opacity: 1;
}

.hero-carousel-control:hover {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.hero-carousel-control.prev {
    left: 12px;
}

.hero-carousel-control.next {
    right: 12px;
}

/* Media Query Adaptations */
@media (max-width: 768px) {
    .landing-header-banner {
        margin-top: 0;
    }

    .header-chrome .navbar-container {
        height: 56px;
        padding-top: 4px;
    }

    /* Móvil: se ve la imagen entera (puede ser un poco más alta; no se pierde texto del banner) */
    .landing-header-banner img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .hero-carousel {
        max-width: min(100%, 360px);
        aspect-ratio: 1 / 1;
    }

    .hero-section {
        padding-top: 32px;
    }
}

/* ==========================================================================
   FAQ SECTION (AEO / SEO / GEO Support)
   ========================================================================== */
.faq-section {
    padding: 80px 0;
    background-color: var(--beige-color);
    border-top: 1px solid rgba(35, 46, 224, 0.05);
}

.faq-grid {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(35, 46, 224, 0.08);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: rgba(35, 46, 224, 0.2);
}

.faq-question {
    padding: 20px 24px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    user-select: none;
    list-style: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Forum', Georgia, serif;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    padding-top: 16px;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

/* Fallback estático para indexación SEO */
.specialty-card-static {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(35, 46, 224, 0.08);
    box-shadow: var(--shadow-sm);
}

