/* ==========================================
   BIOPROYECT - Laboratorio Clínico
   Apple-Inspired Premium Design System
   ========================================== */

:root {
    --primary: #2e8bff;
    --primary-dark: #1a73e8;
    --primary-light: #5ba3ff;
    --primary-bg: rgba(46, 139, 255, 0.08);
    --primary-bg-hover: rgba(46, 139, 255, 0.15);
    --black: #1a1a1a;
    --text-main: #1d1d1f;
    --text-secondary: #424245;
    --text-muted: #86868b;
    --bg-main: #ffffff;
    --bg-light: #f5f5f7;
    --bg-section: #fbfbfd;
    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(46, 139, 255, 0.3);
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}



/* ==========================================
   SCROLL ANIMATIONS (Bidirectional)
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 3rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.5px 0 rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: baseline;
    gap: 0;
    text-decoration: none;
    cursor: pointer;
}

.nav-logo {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.15rem;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.3rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: all var(--transition-smooth);
    transform: translateX(-50%);
}

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

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

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    margin: 4px 0;
    transition: all var(--transition-fast);
    border-radius: 1px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.6rem;
    border-radius: 980px;
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(46, 139, 255, 0.35);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary.large {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    border: none;
    padding: 0.75rem 1.6rem;
    border-radius: 980px;
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-secondary.large {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 0.7rem 1.6rem;
    border-radius: 980px;
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.02);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-call {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 980px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.btn-call:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-map {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.7rem 1.4rem;
    border-radius: 980px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn-map:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - 60px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.badge-icon {
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 520px;
    line-height: 1.65;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

/* Stats */
.stats-container {
    display: flex;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 1.2rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.3;
}

/* Hero Image */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 650px;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.image-wrapper:hover .main-image {
    transform: scale(1.06);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    z-index: 20;
    transition: transform var(--transition-bounce);
}

.floating-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.card-left {
    top: 18%;
    left: -40px;
    animation: floatSoft 5s ease-in-out infinite;
}

.card-right {
    bottom: 18%;
    right: -20px;
    animation: floatSoft 5s ease-in-out infinite 2s;
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    background: var(--primary-bg);
}

.card-text-container {
    display: flex;
    flex-direction: column;
}

.card-text-container strong {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
}

.card-text-container span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================
   SECTION CONTAINERS
   ========================================== */
.section-container {
    padding: 4rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-full {
    padding: 4rem 3rem;
    max-width: 100%;
    overflow-x: hidden;
}

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

.bg-section {
    background: var(--bg-section);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.section-subtitle.text-left {
    margin: 0;
    max-width: 100%;
}

/* ==========================================
   SERVICES GRID
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    transition: transform var(--transition-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.icon-rutina { background: #EBF5FF; color: #2e8bff; }
.icon-bioquimica { background: #F0FDF4; color: #16a34a; }
.icon-inmunologia { background: #FFF7ED; color: #ea580c; }
.icon-microbiologia { background: #FDF4FF; color: #a855f7; }
.icon-tumorales { background: #FFF1F2; color: #e11d48; }
.icon-hormonales { background: #ECFEFF; color: #0891b2; }
.icon-especiales { background: #FEF9C3; color: #ca8a04; }
.icon-adn { background: #EDE9FE; color: #7c3aed; }

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.55;
    font-size: 0.85rem;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition-smooth), color var(--transition-fast);
}

.service-link:hover {
    gap: 8px;
}

/* ==========================================
   DOMICILIO SECTION
   ========================================== */
.domicilio-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.domicilio-info {
    flex: 1;
}

.domicilio-image {
    flex: 1;
}

.rounded-img {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform 6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.rounded-img:hover {
    transform: scale(1.02);
}

.badge-small {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1.1rem;
    border-radius: 980px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.benefit-list {
    list-style: none;
    margin: 1.5rem 0;
}

.benefit-list li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: rgba(46, 139, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
}

/* ==========================================
   TRABAJA CON NOSOTROS
   ========================================== */
.trabaja-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.trabaja-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

.trabaja-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.trabaja-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.trabaja-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.trabaja-content h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.trabaja-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.trabaja-benefits {
    list-style: none;
    margin-bottom: 1.5rem;
}

.trabaja-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trabaja-benefits li .check-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 0.6rem;
}

.trabaja-content .btn-primary {
    margin-top: auto;
    align-self: flex-start;
}

/* ==========================================
   SEDES SECTION
   ========================================== */
.sedes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sede-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

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

.sede-card.proximamente {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.proximamente-badge {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.sede-card.proximamente h4 {
    color: var(--text-muted);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.sede-card.proximamente p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Carrusel de sede */
.sede-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.sede-carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.sede-carousel-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.sede-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sede-carousel-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 0.8rem;
}

.sede-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.sede-carousel-dot.active {
    background: var(--primary);
    width: 18px;
    border-radius: 3px;
}

.sede-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-main);
    z-index: 5;
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    opacity: 0;
    box-shadow: var(--shadow-sm);
}

.sede-card:hover .sede-carousel-btn {
    opacity: 1;
}

.sede-carousel-btn:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.sede-carousel-btn.prev { left: 8px; }
.sede-carousel-btn.next { right: 8px; }

.sede-info {
    padding: 1.2rem 1.5rem;
}

.sede-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.sede-info .sede-address {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.sede-info .sede-horario {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    padding: 0.6rem 0.8rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.sede-horario-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.sede-horario-line:last-child {
    margin-bottom: 0;
}

.sede-horario-day {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-main);
}

.sede-horario-time {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer-section {
    background: #000000;
    color: #f5f5f7;
    padding: 3rem 3rem 1.5rem;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.2rem;
    background-color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
}

.footer-logo .logo-proyect {
    color: var(--primary);
}

.footer-brand p {
    color: #86868b;
    font-size: 0.88rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.78rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #d1d1d6;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #86868b;
    font-size: 0.78rem;
}

/* ==========================================
   MODALS
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    overscroll-behavior: none;
    touch-action: none;
}

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

.modal-content {
    background: var(--white);
    width: 92%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--bg-light);
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.modal-close:hover {
    background: #e5e5ea;
    color: var(--text-main);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Form styles */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    transition: all var(--transition-fast);
    background: var(--bg-light);
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 139, 255, 0.12);
    background: var(--white);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Service modals */
.service-modal-content {
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.service-modal-content::-webkit-scrollbar {
    width: 4px;
}

.service-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.service-modal-content::-webkit-scrollbar-thumb {
    background: #d2d2d7;
    border-radius: 2px;
}

.service-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
    font-size: 1.5rem;
}

.service-modal-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.service-modal-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-modal-section {
    margin-bottom: 1.2rem;
}

.service-modal-section h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.service-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.list-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: rgba(46, 139, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: bold;
    margin-top: 1px;
}

.service-modal-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.service-modal-info svg {
    min-width: 16px;
    margin-top: 1px;
    color: var(--primary);
}

.service-modal-whatsapp-btn {
    width: 100%;
    max-width: 260px;
    margin: 1.5rem auto 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.service-modal-btn {
    width: 100%;
    max-width: 260px;
    margin: 0 auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.5rem;
}

/* Contact modals */
.contact-modal-content {
    max-width: 440px;
}

.contact-submit-btn {
    width: fit-content;
    margin: 1.2rem auto 0;
    display: block;
    padding: 0.75rem 2.5rem;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    letter-spacing: 0.01em;
    transition: color var(--transition-fast);
    opacity: 0.7;
}

.char-counter.warn {
    color: #d97706;
    opacity: 1;
}

.char-counter.limit {
    color: #dc2626;
    opacity: 1;
    font-weight: 500;
}

.form-feedback {
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    padding: 0;
    margin-top: 0.5rem;
    transition: all var(--transition-fast);
    text-align: center;
}

.form-feedback.success {
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 0.65rem 1rem;
    font-weight: 500;
}

.form-feedback.error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 0.65rem 1rem;
    font-weight: 500;
}

.contact-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================
   RESULTS UNAVAILABLE NOTICE
   ========================================== */
.results-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0 0.25rem;
}

.results-unavailable-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1;
    animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

.results-unavailable-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.results-unavailable-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 360px;
}

.results-whatsapp-btn {
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 0.85rem 1.5rem;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.results-unavailable-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.75;
    font-style: italic;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        overscroll-behavior: contain;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.8rem 0;
        font-size: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        min-height: auto;
        gap: 2rem;
    }

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

    .hero-image-container {
        height: 400px;
    }

    .stats-container {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .section-container {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .domicilio-flex {
        flex-direction: column;
        gap: 2rem;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-section {
        padding: 3rem 1.5rem 1.5rem;
    }

    .card-left { left: -10px; }
    .card-right { right: -5px; }
}

@media (max-width: 640px) {
    .nav-logo {
        max-height: 46px;
    }

    .navbar .btn-primary {
        padding: 0.45rem 0.9rem;
        font-size: 0.75rem;
        letter-spacing: -0.01em;
    }

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

    .hero-image-container {
        height: 300px;
    }

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

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

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

    .stats-container {
        gap: 1rem;
        padding: 1rem 1.2rem;
    }

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

    .floating-card {
        display: flex;
        padding: 0.45rem 0.65rem;
        gap: 6px;
        border-radius: 10px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    .card-left {
        left: 5px;
        top: 15%;
    }

    .card-right {
        right: 5px;
        bottom: 15%;
    }

    .card-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        font-size: 0.75rem;
    }

    .card-text-container strong {
        font-size: 0.68rem;
    }

    .card-text-container span {
        font-size: 0.6rem;
    }

    .section-full {
        padding: 0;
    }

    #servicios .section-container {
        padding-top: 1.5rem;
    }

    .service-card {
        padding: 1.2rem;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 12px;
        align-items: center;
    }

    .service-icon {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .service-card h3 {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 0;
        font-size: 1.1rem;
    }

    .service-card p {
        grid-column: 1 / span 2;
        display: block;
        margin-top: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .service-link {
        grid-column: 1 / span 2;
    }
}
