/* ========================================================================
   STYLES.CSS - MOBILE FIRST RESPONSIVE DESIGN
   Metodología: Móvil → Tablet → Laptop → Desktop
   Breakpoints:
   - Base: 0-479px (Móvil vertical)
   - 480px: Móvil horizontal
   - 768px: Tablet vertical
   - 1024px: Tablet horizontal / Laptop
   - 1280px: Desktop
   - 1440px: Desktop grande
======================================================================== */

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== VARIABLES ========== */
:root {
    /* Colores corporativos del logo */
    --primary: #0364B2;           /* Azul principal destacado */
    --primary-light: #4E99CC;     /* Azul menos claro */
    --primary-dark: #024a8a;      /* Azul oscuro para hover */
    --secondary: #4E99CC;
    --accent: #0364B2;            /* Acento azul */
    --accent-light: #4E99CC;
    --gold: #4E99CC;              /* Reemplazamos gold por azul claro */
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #4a5568;              /* Gris oscurecido para mejor contraste (ratio >7:1) */
    --gray-light: #718096;        /* Gris para textos secundarios */
    --white: #ffffff;
    --black: #000000;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Container */
    --container-padding: 1rem;
}

/* ========== UTILIDADES ========== */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================
   HEADER - Logo y Nombre (MOBILE FIRST)
   ========================================== */
.top-header {
    background:  #0a1628;
    position: relative;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem var(--container-padding);
    background:  #0a1628;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
}

.logo-img {
    height: 55px;
    width: auto;
    min-width: 55px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

/* Contenedor del texto del logo - Visible en móvil */
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
    line-height: 1.3;
}

.logo-name {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.logo-specialty {
    font-size: 0.85rem;
    color: #E55B0F;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #E55B0F, #FF7B3D);
    margin: 6px 0;
    border-radius: 2px;
}

.logo-subtitle {
    display: none; /* Oculto en móvil */
    color: rgba(255,255,255,0.8);
    font-size: 0.7rem;
    margin: 0;
    line-height: 1.3;
    font-weight: 400;
}

.logo i {
    font-size: 1.5rem;
    color: var(--white);
}

/* ==========================================
   MENÚ DE NAVEGACIÓN (MOBILE FIRST)
   ========================================== */
.main-nav {
    background: #ffffff;
    position: relative;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem var(--container-padding);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Navegación - Oculta en móvil */
.nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    order: 3;
}

.nav-links.active {
    display: flex;
}

.nav-links li {
    width: 100%;
}

.nav-links a {
    display: block;
    color: var(--primary-dark);
    font-weight: 600;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(3,100,178,0.1);
    transition: all 0.3s;
    font-size: 1rem;
}

.nav-links a i {
    margin-right: 8px;
    color: var(--primary);
}

.nav-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
    background: rgba(3,100,178,0.05);
}

/* Botón cita - Compacto en móvil */
.btn-cita {
    background: linear-gradient(135deg, #E55B0F, #CC4400);
    color: white;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(229,91,15,0.4);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cita i {
    font-size: 1rem;
}

.btn-cita:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(229,91,15,0.5);
    background: linear-gradient(135deg, #FF6B1F, #E55B0F);
}

/* Menú hamburguesa */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==========================================
   HERO - MOBILE FIRST
   ========================================== */
.hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0d1f35 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 70% 20%, rgba(78,153,204,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(3,100,178,0.1) 0%, transparent 40%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(248,249,250,1) 0%, rgba(248,249,250,0.8) 30%, transparent 100%);
    z-index: 1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-md) var(--container-padding);
    padding-bottom: 100px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Hero Content - Móvil */
.hero-content {
    text-align: center;
    order: 2;
}

.hero-content .specialty {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #E55B0F, #CC5500);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 4px 20px rgba(229,91,15,0.4);
}

.hero-content .specialty.specialty-text {
    background: transparent;
    color: #E55B0F;
    text-shadow: none;
    box-shadow: none;
}

.hero-content h1 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content > p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 1.75rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #E55B0F, #CC5500);
    color: white;
    box-shadow: 0 4px 25px rgba(229,91,15,0.4);
}

.btn-secondary {
    background: white;
    color: #E55B0F;
    border: 2px solid #E55B0F;
    backdrop-filter: blur(10px);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 2px solid rgba(78,153,204,0.4);
}

.stat {
    text-align: center;
    background: rgba(255,255,255,0.08);
    padding: 1rem 0.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(78,153,204,0.3);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(78,153,204,0.3);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 15px rgba(78,153,204,0.8);
}

.stat-label {
    font-size: 0.7rem;
    color: #ffffff;
    margin-top: 0.5rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Hero Image - Móvil */
.hero-image {
    order: 1;
    position: relative;
    height: 350px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(ellipse, rgba(78,153,204,0.25) 0%, rgba(3,100,178,0.15) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: radial-gradient(ellipse, rgba(78,153,204,0.3) 0%, transparent 70%);
    z-index: 0;
    filter: blur(20px);
}

.doctor-frame {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(78,153,204,0.2) 0%, rgba(3,100,178,0.1) 100%);
    box-shadow: 
        0 0 60px rgba(78,153,204,0.3),
        0 0 120px rgba(3,100,178,0.2),
        inset 0 0 60px rgba(78,153,204,0.1);
    animation: pulse-glow 3s ease-in-out infinite;
}

.doctor-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    border: 1px solid rgba(78,153,204,0.3);
    animation: rotate-slow 25s linear infinite;
}

.doctor-frame::after {
    content: '';
    position: absolute;
    top: -35px;
    left: -35px;
    right: -35px;
    bottom: -35px;
    border-radius: 50%;
    border: 1px dashed rgba(78,153,204,0.2);
    animation: rotate-slow 35s linear infinite reverse;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 
            0 0 60px rgba(78,153,204,0.3),
            0 0 120px rgba(3,100,178,0.15),
            inset 0 0 60px rgba(78,153,204,0.1);
    }
    50% { 
        box-shadow: 
            0 0 80px rgba(78,153,204,0.4),
            0 0 160px rgba(3,100,178,0.25),
            inset 0 0 80px rgba(78,153,204,0.15);
    }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating Icons - Ocultos en móvil pequeño */
.floating-icons {
    display: none;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(78,153,204,0.9), rgba(3,100,178,0.9));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(3,100,178,0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Doctor Photo */
.doctor-photo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
}

.doctor-photo img {
    max-height: 340px;
    width: auto;
    object-fit: contain;
    object-position: center bottom;
}

/* ==========================================
   SECTIONS - MOBILE FIRST
   ========================================== */
.section {
    padding: var(--space-xl) var(--container-padding);
}

.section-light {
    background: var(--light);
}

.section-dark {
    background: var(--light);
    color: var(--dark);
}

/* Sección Info Consultorio - Fondo degradado con contraste */
.section-info-consultorio {
    background: linear-gradient(135deg, #0364B2 0%, #024a8a 50%, #01355f 100%);
    padding: 60px 0;
    position: relative;
}

.section-info-consultorio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.section-title-info h2,
.section-title-info p {
    color: #ffffff !important;
}

.section-title-info h2 i {
    color: #E55B0F;
}

.section-title-info h2::after {
    background: #E55B0F;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-dark .section-title h2 {
    color: var(--primary);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gold);
}

.section-title p {
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 100%;
    margin-top: 1rem;
}

.section-dark .section-title p {
    color: var(--gray);
}

/* ==========================================
   SERVICES - MOBILE FIRST
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.service-card {
    background: rgba(255,255,255,0.95);
    padding: var(--space-md);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(78, 153, 204, 0.08);
    color: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    font-size: 1.5rem;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card .btn-more {
    display: inline-block;
    margin-top: var(--space-sm);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ==========================================
   PROCEDURES - MOBILE FIRST
   ========================================== */
.procedures-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.procedure-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.procedure-img {
    height: 140px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.procedure-content {
    padding: var(--space-md);
}

.procedure-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.procedure-content p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.procedure-list {
    margin: 0.75rem 0;
}

.procedure-list li {
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--gray);
    font-size: 0.9rem;
}

.procedure-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* ==========================================
   GALLERY - MOBILE FIRST
   ========================================== */
.gallery-section {
    padding: var(--space-xl) var(--container-padding);
    background: linear-gradient(180deg, var(--light) 0%, white 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10,76,92,0.8) 0%, transparent 50%);
    z-index: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: white;
    z-index: 2;
}

.gallery-caption h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.gallery-caption p {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Clases especiales de galería - Se activan en pantallas más grandes */
.gallery-item.large,
.gallery-item.wide,
.gallery-item.tall {
    /* Sin cambios en móvil */
}

/* Doctor Feature Card - Móvil */
.doctor-feature-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: var(--space-lg);
    margin-top: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.doctor-feature-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(78,153,204,0.15) 0%, transparent 70%);
}

.doctor-feature-content {
    color: white;
    position: relative;
    z-index: 1;
    text-align: center;
}

.doctor-feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--gold);
}

.doctor-feature-content > p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.9;
}

.feature-list {
    margin: var(--space-md) 0;
    text-align: left;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.85rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.doctor-feature-image {
    display: none;
}

/* ==========================================
   ABOUT - MOBILE FIRST - DISEÑO PROFESIONAL
   Inspirado en el Hero - Integración total
   ========================================== */

/* Fondo degradado azul profesional - Estilo Hero */
.section-about-professional {
    background: linear-gradient(135deg, #0d1f35 0%, #1a3a5c 50%, #0a1628 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-xxl) var(--container-padding);
}

/* Efectos de luz radial - Igual que Hero */
.section-about-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(78,153,204,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(3,100,178,0.12) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

/* Transición suave con sección siguiente */
.section-about-professional::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(248,249,250,1) 0%, rgba(248,249,250,0.8) 30%, transparent 100%);
    z-index: 1;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxl);
    position: relative;
    z-index: 2;
    align-items: center;
}

/* Imagen integrada directamente con el fondo - Sin contenedor */
.about-image {
    position: relative;
    order: -1;
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Overlay sutil para suavizar bordes laterales */
.about-image .doctor-photo {
    position: relative;
}

.about-content {
    text-align: center;
}

.about-content h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: var(--space-md);
    text-align: center;
    font-weight: 700;
    position: relative;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.about-content h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), #4E99CC);
    margin: var(--space-sm) auto 0;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(211, 174, 107, 0.5);
}

.about-content > p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-md);
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.credentials {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.credential {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.credential:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(78, 153, 204, 0.3);
    border-left-color: #4E99CC;
}

.credential i {
    font-size: 1.5rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 3px;
    text-shadow: 0 2px 10px rgba(211, 174, 107, 0.5);
}

.credential strong {
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.credential span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* ==========================================
   HORARIOS - MOBILE FIRST
   ========================================== */
#horarios .container > div {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: var(--space-md);
}

#horarios .container > div > div {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#horarios .container > div > div > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
}

#horarios .container > div > div > div span:last-child {
    color: var(--gold);
    font-size: 0.8rem;
}

/* ==========================================
   CONTACT - MOBILE FIRST
   ========================================== */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-info h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.contact-item i {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.contact-item h4 {
    color: var(--primary);
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.contact-item p {
    color: var(--gray);
    font-size: 0.8rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(10,76,92,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--primary);
}

.social-links a:hover {
    background: var(--gold);
    color: white;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: var(--space-md);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #1a1a2e;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,76,92,0.1);
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: 2px solid #1a1a2e;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(3,100,178,0.3);
}

/* ==========================================
   FOOTER - MOBILE FIRST
   ========================================== */
footer {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0d1f35 100%);
    color: white;
    padding: var(--space-xl) var(--container-padding) var(--space-md);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--gold);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--gold);
}

footer .social-links {
    justify-content: center;
}

footer .social-links a {
    background: rgba(255,255,255,0.1);
    color: white;
}

footer .social-links a:hover {
    background: var(--gold);
    color: var(--dark);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    margin-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
}

/* ==========================================
   MEDIA QUERIES - MÓVIL HORIZONTAL (480px+)
   ========================================== */
@media (min-width: 480px) {
    :root {
        --container-padding: 1.25rem;
    }
    
    /* Header */
    .logo-img {
        height: 70px;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .hero-image::before {
        width: 320px;
        height: 320px;
    }
    
    .hero-image::after {
        width: 240px;
        height: 120px;
    }
    
    .doctor-frame {
        width: 290px;
        height: 290px;
        top: 42%;
    }
    
    .doctor-photo img {
        max-height: 390px;
    }
    
    .floating-icons {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
    
    .floating-icon:nth-child(1) { top: 5%; left: 5%; animation-delay: 0s; }
    .floating-icon:nth-child(2) { top: 15%; right: 5%; animation-delay: 1s; }
    .floating-icon:nth-child(3) { bottom: 30%; left: 0; animation-delay: 2s; }
    .floating-icon:nth-child(4) { bottom: 20%; right: 5%; animation-delay: 0.5s; }
    
    /* Stats */
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Services - 2 columnas */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery - 2 columnas */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.large {
        grid-column: span 2;
        height: 250px;
    }
    
    /* Horarios */
    #horarios .container > div > div > div {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ==========================================
   MEDIA QUERIES - TABLET VERTICAL (768px+)
   ========================================== */
@media (min-width: 768px) {
    :root {
        --container-padding: 1.5rem;
        --space-xl: 4rem;
    }
    
    /* Header */
    .header-content {
        padding: 0.75rem var(--container-padding);
    }
    
    .nav-container {
        padding: 0.5rem var(--container-padding);
    }
    
    .logo {
        gap: 1rem;
    }
    
    .logo-img {
        height: 65px;
    }
    
    .logo-name {
        font-size: 1.2rem;
    }
    
    .logo-specialty {
        font-size: 0.9rem;
    }
    
    .logo-divider {
        width: 80px;
        height: 3px;
        margin: 8px 0;
    }
    
    .logo-subtitle {
        display: block;
        font-size: 0.75rem;
    }
    
    .btn-cita {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-links a {
        font-size: 1.05rem;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content .specialty {
        font-size: 0.95rem;
    }
    
    .hero-content > p {
        font-size: 1rem;
    }
    
    .hero-image {
        height: 460px;
    }
    
    .hero-image::before {
        width: 380px;
        height: 380px;
    }
    
    .hero-image::after {
        width: 280px;
        height: 140px;
    }
    
    .doctor-frame {
        width: 340px;
        height: 340px;
        top: 40%;
    }
    
    .doctor-photo img {
        max-height: 450px;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Stats */
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Sections */
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1.1rem;
    }
    
    /* Services - 3 columnas */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
    
    .service-icon {
        width: 75px;
        height: 75px;
        font-size: 1.75rem;
    }
    
    /* Procedures - 2 columnas */
    .procedures-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery - Grid mejorado */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
        height: auto;
    }
    
    .gallery-item.wide {
        grid-column: span 2;
    }
    
    /* Doctor Feature Card */
    .doctor-feature-card {
        padding: var(--space-xl);
    }
    
    .doctor-feature-content h3 {
        font-size: 1.5rem;
    }
    
    /* About */
    .about-content h2 {
        font-size: 1.75rem;
        text-align: left;
    }
    
    .about-content > p {
        text-align: left;
    }
    
    /* Contact - 2 columnas */
    .contact-container {
        flex-direction: row;
        gap: var(--space-xl);
    }
    
    .contact-info {
        flex: 1;
    }
    
    .contact-info h3 {
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .contact-form {
        flex: 1.2;
        padding: var(--space-lg);
    }
    
    .contact-form h3 {
        text-align: left;
    }
    
    /* Footer - 2 columnas */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
}

/* ==========================================
   MEDIA QUERIES - TABLET HORIZONTAL / LAPTOP (1024px+)
   ========================================== */
@media (min-width: 1024px) {
    :root {
        --container-padding: 2rem;
    }
    
    /* Header - Navegación visible */
    .menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        width: auto;
        gap: 2rem;
        order: 0;
    }
    
    .nav-links li {
        width: auto;
    }
    
    .nav-links a {
        padding: 0.5rem 0;
        border-bottom: none;
        position: relative;
    }
    
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: white;
        transition: width 0.3s;
    }
    
    .nav-links a:hover::after {
        width: 100%;
    }
    
    .nav-links a:hover {
        padding-left: 0;
        background: transparent;
    }
    
    .logo-img {
        height: 95px;
    }
    
    .logo-name {
        font-size: 1.5rem;
    }
    
    .logo-specialty {
        font-size: 1rem;
    }
    
    .logo-divider {
        width: 100px;
        height: 3px;
        margin: 10px 0;
    }
    
    .logo-subtitle {
        font-size: 0.85rem;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }
    
    /* Hero - 2 columnas */
    .hero-container {
        flex-direction: row;
        align-items: center;
        max-width: 1300px;
        margin: 0 auto;
        gap: var(--space-xl);
        padding: var(--space-xl) var(--container-padding);
        padding-bottom: 120px;
    }
    
    .hero-content {
        order: 1;
        text-align: left;
        flex: 1;
    }
    
    .hero-content .specialty {
        justify-content: flex-start;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-stats {
        justify-content: flex-start;
        gap: 2.5rem;
    }
    
    .hero-image {
        order: 2;
        flex: 1;
        height: 540px;
    }
    
    .hero-image::before {
        width: 440px;
        height: 440px;
    }
    
    .hero-image::after {
        width: 320px;
        height: 160px;
    }
    
    .doctor-frame {
        width: 400px;
        height: 400px;
        top: 40%;
    }
    
    .doctor-photo img {
        max-height: 530px;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Section */
    .section-title h2 {
        font-size: 2rem;
    }
    
    /* Procedures - 3 columnas */
    .procedures-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 200px);
    }
    
    .gallery-item.large {
        height: auto;
    }
    
    /* Doctor Feature Card - 2 columnas */
    .doctor-feature-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        align-items: center;
    }
    
    .doctor-feature-content {
        text-align: left;
    }
    
    .doctor-feature-image {
        display: block;
        position: relative;
        text-align: center;
    }
    
    .doctor-feature-image img {
        max-height: 350px;
        filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
        border-radius: 15px;
    }
    
    /* About - 2 columnas */
    .about-container {
        flex-direction: row;
        gap: var(--space-xxl);
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .about-image {
        flex: 0 0 40%;
        max-width: 480px;
        order: 0;
    }
    
    .about-image::before {
        width: 450px;
        height: 450px;
        bottom: -50px;
    }
    
    .about-image::after {
        width: 300px;
        height: 120px;
        bottom: -50px;
    }
    
    .about-image img {
        /* Máscara más sutil en desktop */
        -webkit-mask-image: linear-gradient(to bottom, 
            rgba(0,0,0,1) 0%, 
            rgba(0,0,0,1) 75%, 
            rgba(0,0,0,0.95) 88%,
            rgba(0,0,0,0.7) 96%,
            rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, 
            rgba(0,0,0,1) 0%, 
            rgba(0,0,0,1) 75%, 
            rgba(0,0,0,0.95) 88%,
            rgba(0,0,0,0.7) 96%,
            rgba(0,0,0,0) 100%);
    }
    
    .about-content {
        flex: 1;
        text-align: left;
    }
    
    .about-content h2 {
        font-size: 2.75rem;
        text-align: left;
    }
    
    .about-content h2::after {
        margin: var(--space-sm) 0 0 0;
    }
    
    .about-content > p {
        text-align: left;
        font-size: 1.05rem;
    }
    
    /* Footer - 4 columnas */
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ==========================================
   MEDIA QUERIES - DESKTOP (1280px+)
   ========================================== */
@media (min-width: 1280px) {
    :root {
        --container-padding: 2rem;
    }
    
    /* Header */
    .header-content {
        max-width: 1300px;
        margin: 0 auto;
    }
    
    .nav-container {
        max-width: 1300px;
        margin: 0 auto;
    }
    
    .nav-links {
        gap: 2.5rem;
    }
    
    .btn-cita {
        padding: 0.85rem 1.75rem;
    }
    
    .logo-img {
        height: 110px;
    }
    
    .logo-name {
        font-size: 1.75rem;
    }
    
    .logo-specialty {
        font-size: 1.1rem;
    }
    
    .logo-divider {
        width: 120px;
        height: 4px;
        margin: 12px 0;
    }
    
    .logo-subtitle {
        font-size: 0.9rem;
    }
    
    .nav-links a {
        font-size: 1.15rem;
    }
    
    .btn-cita {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content > p {
        font-size: 1.1rem;
    }
    
    .hero-image {
        height: 600px;
    }
    
    .hero-image::before {
        width: 500px;
        height: 500px;
    }
    
    .hero-image::after {
        width: 360px;
        height: 180px;
    }
    
    .doctor-frame {
        width: 450px;
        height: 450px;
        top: 40%;
    }
    
    .doctor-photo img {
        max-height: 590px;
    }
    
    .floating-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Sections */
    .section {
        padding: var(--space-xxl) var(--container-padding);
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .section-title p {
        font-size: 1.15rem;
    }
    
    /* Services */
    .service-card {
        padding: var(--space-lg);
    }
    
    .service-icon {
        width: 85px;
        height: 85px;
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.35rem;
    }
    
    .service-card p {
        font-size: 1.05rem;
    }
    
    /* Procedures */
    .procedure-img {
        height: 180px;
        font-size: 3.5rem;
    }
    
    .procedure-content {
        padding: var(--space-lg);
    }
    
    .procedure-content h3 {
        font-size: 1.25rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-rows: repeat(2, 230px);
        gap: var(--space-md);
    }
    
    /* Doctor Feature Card */
    .doctor-feature-card {
        max-width: 1200px;
        margin: var(--space-xxl) auto;
        padding: var(--space-xxl);
    }
    
    .doctor-feature-content h3 {
        font-size: 1.75rem;
    }
    
    .doctor-feature-image img {
        max-height: 400px;
    }
    
    /* About */
    .about-content h2 {
        font-size: 2.25rem;
    }
    
    .credential {
        padding: var(--space-md);
    }
    
    /* Contact */
    .contact-form {
        padding: var(--space-xl);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem 1.25rem;
    }
}

/* ==========================================
   MEDIA QUERIES - DESKTOP GRANDE (1440px+)
   ========================================== */
@media (min-width: 1440px) {
    /* Header */
    .logo-img {
        height: 200px;
        width: auto;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-image {
        height: 660px;
    }
    
    .hero-image::before {
        width: 560px;
        height: 560px;
    }
    
    .hero-image::after {
        width: 400px;
        height: 200px;
    }
    
    .doctor-frame {
        width: 480px;
        height: 480px;
        top: 38%;
    }
    
    .doctor-photo img {
        max-height: 650px;
    }
    
    .floating-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Stats */
    .hero-stats {
        gap: 3rem;
    }
    
    .stat-number {
        font-size: 2.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Section */
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-rows: repeat(2, 250px);
    }
    
    /* Doctor Feature */
    .doctor-feature-content h3 {
        font-size: 2rem;
    }
    
    .doctor-feature-image img {
        max-height: 450px;
    }
}

/* ==========================================
   ANIMACIONES Y EFECTOS HOVER
   ========================================== */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    }
    
    .procedure-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(229,91,15,0.4);
    }
    
    .btn-secondary:hover {
        border-color: #E55B0F;
        color: white;
        background: #E55B0F;
    }
    
    .credential:hover {
        transform: translateX(8px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
}

/* ==========================================
   UTILIDADES ADICIONALES
   ========================================== */
/* Ocultar en móvil */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
}

/* Ocultar en desktop */
@media (min-width: 1024px) {
    .hide-desktop {
        display: none;
    }
}

/* ==========================================
   FOOTER CREDITS - Estudio Web
   ========================================== */
.footer-credits {
    padding: 1rem;
    text-align: center;
}

.credit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.credit-link:hover {
    color: rgba(255, 255, 255, 1);
}

.credit-link span {
    font-weight: 400;
}

.credit-logo {
    height: 28px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.credit-link:hover .credit-logo {
    opacity: 1;
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .credit-link {
        font-size: 0.9rem;
    }
    
    .credit-logo {
        height: 32px;
    }
}

/* ==========================================
   FOOTER SIMPLIFICADO
   ========================================== */
.footer-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 1200px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(78,153,204,0.5));
}

.footer-info h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.footer-info p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact-quick {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-contact-item.whatsapp:hover {
    background: #25D366;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

@media (min-width: 768px) {
    .footer-main {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-brand {
        flex-direction: row;
        text-align: left;
    }
    
    .footer-logo {
        height: 100px;
    }
}

/* Footer Privacy Link */
.footer-privacy {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-privacy .privacy-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-privacy .privacy-link:hover {
    color: #fff;
}

/* ==========================================
   SECCIÓN ORL PEDIÁTRICO (INFANTIL)
   ========================================== */
.section-separator {
    width: 100%;
    line-height: 0;
    position: relative;
    z-index: 2;
}

.section-separator svg {
    width: 100%;
    height: 80px;
    display: block;
}

.pediatric-separator-top {
    transform: rotate(180deg);
}

.section-pediatric {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFECD1 100%);
    padding: 0 1rem 4rem 1rem;
    position: relative;
    overflow: hidden;
    border-top: 5px solid #FFD700;
    border-bottom: 5px solid #FFD700;
}

.section-pediatric::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,182,193,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.section-pediatric::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(135,206,250,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.pediatric-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pediatric-hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.pediatric-hero-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.pediatric-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.pediatric-hero:hover .pediatric-hero-image img {
    transform: scale(1.05);
}

.pediatric-hero-content {
    padding: 2rem;
    text-align: center;
}

.pediatric-hero-content h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #FF6B6B 0%, #FFA07A 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
}

.pediatric-header h2 i {
    background: linear-gradient(135deg, #FF6B6B, #FFA07A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.pediatric-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.pediatric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.pediatric-card {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid transparent;
    position: relative;
}

.pediatric-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.pediatric-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pediatric-card:hover .pediatric-card-image img {
    transform: scale(1.1);
}

.pediatric-card-content {
    padding: 2rem;
    text-align: center;
}

.pediatric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FF6B6B 0%, #FFA07A 50%, #FFD700 100%);
    z-index: 2;
}

.pediatric-card:nth-child(1) .pediatric-icon { background: linear-gradient(135deg, #FF6B6B, #FF8787); }
.pediatric-card:nth-child(2) .pediatric-icon { background: linear-gradient(135deg, #4ECDC4, #44A08D); }
.pediatric-card:nth-child(3) .pediatric-icon { background: linear-gradient(135deg, #FFB347, #FFCC33); }
.pediatric-card:nth-child(4) .pediatric-icon { background: linear-gradient(135deg, #A29BFE, #6C5CE7); }

.pediatric-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.pediatric-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    top: -40px;
    z-index: 1;
}

.pediatric-card:hover .pediatric-icon {
    transform: rotate(5deg) scale(1.1);
    top: -45px;
}

.pediatric-card h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pediatric-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

.pediatric-features {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.pediatric-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    font-weight: 500;
}

.pediatric-feature:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.pediatric-feature i {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    flex-shrink: 0;
}

.pediatric-feature span {
    flex: 1;
}

.pediatric-feature:nth-child(1) i { background: linear-gradient(135deg, #FF6B6B, #FF8787); color: white; }
.pediatric-feature:nth-child(2) i { background: linear-gradient(135deg, #4ECDC4, #44A08D); color: white; }
.pediatric-feature:nth-child(3) i { background: linear-gradient(135deg, #FFB347, #FFCC33); color: white; }
.pediatric-feature:nth-child(4) i { background: linear-gradient(135deg, #A29BFE, #6C5CE7); color: white; }

@media (min-width: 768px) {
    .pediatric-hero {
        flex-direction: row;
        align-items: center;
    }
    
    .pediatric-hero-image {
        width: 50%;
        height: 400px;
    }
    
    .pediatric-hero-content {
        width: 50%;
        padding: 3rem;
    }
    
    .pediatric-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        justify-items: center;
    }
    
    .pediatric-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pediatric-header h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .pediatric-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
    }
}

/* ==========================================
   SECCIÓN CIRUGÍAS ESTÉTICAS
   ========================================== */
.aesthetic-separator-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #0364B2 20%, #4E99CC 50%, #0364B2 80%, transparent 100%);
    position: relative;
    z-index: 2;
}

.aesthetic-separator-top {
    margin-bottom: -3px;
}

.aesthetic-separator-bottom {
    margin-top: -3px;
}

.section-aesthetic {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    padding: 0 1rem 4rem 1rem;
    position: relative;
    overflow: hidden;
    border-top: 5px solid #0364B2;
    border-bottom: 5px solid #0364B2;
}

.section-aesthetic::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(3,100,178,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.section-aesthetic::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(3,100,178,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.aesthetic-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.aesthetic-hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
    background: #ffffff;
    border: 2px solid rgba(3,100,178,0.2);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(3,100,178,0.15);
}

.aesthetic-hero-content {
    padding: 3rem 2rem;
    text-align: center;
}

.aesthetic-hero-content h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #0364B2 0%, #4E99CC 50%, #0364B2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
}

.aesthetic-hero-content h2 i {
    background: linear-gradient(135deg, #0364B2, #4E99CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.aesthetic-subtitle {
    color: #0364B2;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.aesthetic-hero-content p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.8;
}

.aesthetic-hero-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.aesthetic-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    filter: brightness(0.85);
}

.aesthetic-hero:hover .aesthetic-hero-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

.aesthetic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.aesthetic-card {
    background: #ffffff;
    border: 2px solid rgba(3,100,178,0.2);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 10px 30px rgba(3,100,178,0.1);
}

.aesthetic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0364B2, #4E99CC, #0364B2);
    z-index: 2;
}

.aesthetic-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.aesthetic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8);
}

.aesthetic-card:hover .aesthetic-card-image img {
    transform: scale(1.1);
    filter: brightness(1);
}

.aesthetic-card-content {
    padding: 2rem;
    text-align: center;
}

.aesthetic-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #0364B2;
    box-shadow: 0 25px 70px rgba(3,100,178,0.25);
}

.aesthetic-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0364B2 0%, #4E99CC 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ffffff;
    box-shadow: 0 10px 35px rgba(3,100,178,0.3);
    position: relative;
    top: -40px;
    transition: all 0.3s ease;
}

.aesthetic-card:hover .aesthetic-icon {
    transform: rotate(-5deg) scale(1.1);
    top: -45px;
}

.aesthetic-card h3 {
    color: #0364B2;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.aesthetic-card > p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.aesthetic-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.aesthetic-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
}

.aesthetic-benefits li i {
    color: #0364B2;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.aesthetic-cta {
    margin-top: 3rem;
    text-align: center;
}

.btn-aesthetic {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #0364B2 0%, #4E99CC 100%);
    color: #ffffff;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(3,100,178,0.3);
}

.btn-aesthetic:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 60px rgba(3,100,178,0.4);
    background: linear-gradient(135deg, #4E99CC 0%, #024a8a 100%);
}

@media (min-width: 768px) {
    .aesthetic-hero {
        flex-direction: row-reverse;
        align-items: center;
    }
    
    .aesthetic-hero-content {
        width: 50%;
        padding: 3rem;
    }
    
    .aesthetic-hero-image {
        width: 50%;
        height: 450px;
    }
    
    .aesthetic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .aesthetic-header h2 {
        font-size: 2.5rem;
    }
}

/* ==========================================
   SECCIÓN GOOGLE MAPS
   ========================================== */
.section-map {
    padding: 0;
    position: relative;
}

.map-header {
    background: var(--primary);
    color: #ffffff;
    padding: 2rem 1rem;
    text-align: center;
}

.map-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.map-header p {
    opacity: 0.9;
    font-size: 1.05rem;
}

.map-container {
    width: 100%;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-info {
    background: #ffffff;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.map-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark);
}

.map-info-item i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .map-header h2 {
        font-size: 2rem;
    }
    
    .map-container {
        height: 450px;
    }
}

/* ========== UTILIDADES ADICIONALES ========== */
.accent { color: var(--primary); }
.accent-icon { color: var(--primary); margin-right: 10px; }

/* ========== HORARIOS ========== */
.schedule-box {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.schedule-grid {
    display: grid;
    gap: 15px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(3, 100, 178, 0.05);
    border: 1px solid rgba(3, 100, 178, 0.1);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.schedule-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(3, 100, 178, 0.15);
}

.schedule-row.closed {
    background: rgba(255, 69, 69, 0.05);
    border-color: #ff6b6b;
    opacity: 0.8;
}

.schedule-row.closed:hover {
    box-shadow: 0 5px 20px rgba(255, 69, 69, 0.15);
}

.schedule-time {
    color: var(--primary);
    font-weight: 600;
}

.schedule-row.closed .schedule-time {
    color: #ff6b6b;
}

.schedule-row.closed .accent-icon {
    color: #ff6b6b;
}

.schedule-note {
    text-align: center;
    margin-top: 30px;
    opacity: 0.7;
    font-size: 1rem;
}

/* ========== CONTACTO ========== */
#contacto {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0d1f35 100%);
    color: white;
}

#contacto .section-title h2 {
    color: white;
}

#contacto .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

#contacto .contact-item {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#contacto .contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

#contacto .contact-item i,
#contacto .contact-item h4,
#contacto .contact-item p,
#contacto .contact-info h3 {
    color: white;
}

#contacto .contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#contacto .contact-form h3 {
    color: white;
}

#contacto .form-group input,
#contacto .form-group select,
#contacto .form-group textarea {
    background: #ffffff;
    border: 2px solid #1a1a2e;
    border-radius: 10px;
    color: #333;
}

#contacto .form-group input:focus,
#contacto .form-group select:focus,
#contacto .form-group textarea:focus {
    border-color: #E55B0F;
    outline: none;
}

#contacto .form-group input::placeholder,
#contacto .form-group select::placeholder,
#contacto .form-group textarea::placeholder {
    color: #888;
}

#contacto .btn-submit {
    background: linear-gradient(135deg, #E55B0F, #CC5500);
    color: white;
}

#contacto .social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

#contacto .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}
/* ==========================================
   GRIDS RESPONSIVE PARA IMÁGENES
   ========================================== */
.image-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.image-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

/* Cards de procedimientos elegantes y llamativos */
.procedure-card-elegant {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.15),
        0 0 0 1px rgba(3,100,178,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.procedure-card-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #E55B0F 0%, #0364B2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.procedure-card-elegant:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(229,91,15,0.25),
        0 0 0 2px rgba(229,91,15,0.3);
}

.procedure-card-elegant:hover::before {
    opacity: 1;
}

.procedure-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.procedure-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(0.95) contrast(1.05);
}

.procedure-card-elegant:hover .procedure-image-wrapper img {
    transform: scale(1.15);
    filter: brightness(1) contrast(1.1);
}

.procedure-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.procedure-card-elegant:hover .procedure-image-wrapper::after {
    opacity: 0.2;
}

.procedure-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #E55B0F 0%, #CC5500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(229,91,15,0.4),
        0 0 0 4px rgba(255,255,255,0.9);
    z-index: 2;
    transition: all 0.4s ease;
}

.procedure-badge i {
    color: white;
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
}

.procedure-card-elegant:hover .procedure-badge {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 
        0 15px 40px rgba(229,91,15,0.5),
        0 0 0 6px rgba(255,255,255,1);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.procedure-content {
    padding: 30px 25px;
    text-align: center;
    position: relative;
}

.procedure-content h3 {
    color: #0a1628;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 15px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #0364B2 0%, #0a1628 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.procedure-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 25px;
}

.btn-procedure {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #E55B0F 0%, #CC5500 100%);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 25px rgba(229,91,15,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn-procedure::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-procedure:hover::before {
    width: 300px;
    height: 300px;
}

.btn-procedure:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(229,91,15,0.4),
        inset 0 -2px 0 rgba(0,0,0,0.3);
}

.btn-procedure i {
    font-size: 1.1rem;
    animation: pulse-button 2s ease-in-out infinite;
}

@keyframes pulse-button {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive */
@media (max-width: 768px) {
    .procedure-image-wrapper {
        height: 220px;
    }
    
    .procedure-badge {
        width: 55px;
        height: 55px;
        top: 15px;
        right: 15px;
    }
    
    .procedure-badge i {
        font-size: 1.5rem;
    }
    
    .procedure-content {
        padding: 25px 20px;
    }
    
    .procedure-content h3 {
        font-size: 1.3rem;
    }
    
    .procedure-content p {
        font-size: 0.9rem;
    }
    
    .btn-procedure {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}


/* Responsive para grids */
@media (max-width: 768px) {
    .image-grid-2col {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .image-card img {
        height: 200px;
    }
}


/* ==========================================
   SECCIÓN TRABAJOS REALIZADOS - GALERÍA IMPACTANTE
   ========================================== */
.trabajos-section {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0d1f35 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.trabajos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(229,91,15,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(78,153,204,0.15) 0%, transparent 50%);
    z-index: 0;
}

.trabajos-section .container {
    position: relative;
    z-index: 1;
}

.trabajos-section .section-title h2 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.trabajos-section .section-title h2 i {
    color: #E55B0F;
    animation: pulse-icon 2s ease-in-out infinite;
}

.trabajos-section .section-title p {
    color: rgba(255,255,255,0.8);
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229,91,15,0.3) 0%, rgba(3,100,178,0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2.5rem;
    color: white;
    z-index: 2;
    transition: transform 0.4s ease;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.gallery-item .gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px 15px 15px;
    z-index: 3;
}

.gallery-item .gallery-label h4 {
    color: white;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.gallery-item .gallery-label span {
    color: #E55B0F;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive galería */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
        height: 300px;
    }
    
    .gallery-item:not(:first-child) {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .trabajos-section {
        padding: 50px 0;
    }
    
    .trabajos-section .section-title h2 {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(1) {
        grid-column: span 1;
    }
    
    .gallery-item,
    .gallery-item:nth-child(1) {
        height: 220px;
    }
}

/* ==========================================
   UTILIDAD: Formulario oculto (WhatsApp activo)
   ========================================== */
.contact-form-wrapper.form-hidden {
    display: none;
}

/* ==========================================
   PORTAFOLIO PROFESIONAL - Galería Impactante
   ========================================== */
.portafolio-section {
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.portafolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.portafolio-section .section-title h2,
.portafolio-section .section-title p {
    color: white;
}

.portafolio-section .section-title h2 i {
    color: #E55B0F;
}

/* Galería Grid Masonry */
.portafolio-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.portafolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.portafolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.portafolio-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.portafolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portafolio-item:hover .portafolio-overlay {
    opacity: 1;
}

.portafolio-info {
    text-align: center;
    color: white;
}

.portafolio-info i {
    font-size: 2rem;
    color: #E55B0F;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

/* Items especiales - Desactivados para grid uniforme */
.portafolio-item-tall {
    /* Mismo tamaño que los demás */
    aspect-ratio: 1/1;
}

.portafolio-item-wide {
    /* Mismo tamaño que los demás */
    aspect-ratio: 1/1;
}

/* Responsive Portafolio */
@media (min-width: 480px) {
    .portafolio-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .portafolio-section {
        padding: 80px 0;
    }
    
    .portafolio-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .portafolio-item {
        border-radius: 12px;
    }
}

@media (min-width: 1024px) {
    .portafolio-gallery {
        gap: 22px;
    }
    
    .portafolio-info i {
        font-size: 2.5rem;
        padding: 20px;
    }
}

/* ==========================================
   SECCIÓN INFO GRID (Horarios + Contacto combinados)
   ========================================== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 8px 25px rgba(3,100,178,0.3);
}

.info-icon i {
    font-size: 1.6rem;
    color: white;
}

.info-card h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.info-card p {
    color: #333333;
    font-size: 1rem;
    margin: 0;
    line-height: 1.7;
    font-weight: 500;
}

.info-detail {
    color: #666666 !important;
    font-size: 0.9rem !important;
    margin-top: 10px !important;
    font-weight: 400 !important;
}

.info-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background:  #25D366;
    color: white;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    
}

.info-phone:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.info-phone i {
    font-size: 1.2rem;
}

/* Schedule mini en info card */
.schedule-mini {
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.schedule-row-mini {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    color: #333333;
    font-size: 0.95rem;
    font-weight: 500;
}

.schedule-row-mini:last-child {
    border-bottom: none;
}

.schedule-row-mini.closed {
    color: #dc3545;
    font-weight: 600;
}

/* Social en info */
.info-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877F2, #0d5ed9);
}

.social-btn.facebook:hover {
    background: linear-gradient(135deg, #1a88ff, #1877F2);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(24,119,242,0.4);
}

.info-note {
    text-align: center;
    color: #555555;
    font-size: 1rem;
    margin-top: 30px;
    padding: 18px 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    font-weight: 500;
}

.info-note i {
    color: #E55B0F;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Responsive Info Grid */
@media (min-width: 480px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .info-card {
        padding: 30px 20px;
    }
}

@media (min-width: 1024px) {
    .info-icon {
        width: 70px;
        height: 70px;
    }
    
    .info-icon i {
        font-size: 1.8rem;
    }
}

/* ==========================================
   FORMULARIO DE CONTACTO CENTRADO - ESTILO PREMIUM
   ========================================== */
.contact-form-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.contact-form-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fc 100%);
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.12),
        0 0 0 1px rgba(3,100,178,0.05);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #E55B0F, var(--primary), #E55B0F);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.contact-form-card .form-group {
    margin-bottom: 22px;
}

.contact-form-card label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.contact-form-card label i {
    margin-right: 10px;
    color: #E55B0F;
    font-size: 1.15rem;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #1a1a2e;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: #9ca3af;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(3, 100, 178, 0.12);
    background: #ffffff;
}

.contact-form-card textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-card .btn-submit {
    width: 100%;
    padding: 18px 35px;
    background: linear-gradient(135deg, #E55B0F, #CC4400);
    color: white;
    border: 2px solid #1a1a2e;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(229,91,15,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form-card .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(229,91,15,0.45);
    background: linear-gradient(135deg, #FF6B1F, #E55B0F);
}

.contact-form-card .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-alternative {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #1a1a2e;
    text-align: center;
}

.form-alternative p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.05rem;
    font-weight: 500;
}

.btn-whatsapp-alt {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp-alt:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-alt i {
    font-size: 1.2rem;
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .contact-form-card {
        padding: 40px;
    }
}

/* ==========================================
   FOOTER CTA WHATSAPP
   ========================================== */
.footer-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background:  #25D366;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;

}

.footer-cta-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.footer-cta-whatsapp i {
    font-size: 1.3rem;
}

.footer-cta-whatsapp .footer-phone {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Footer CTA Facebook - Grande igual que WhatsApp */
.footer-cta-facebook {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #1877F2, #0d5ed9);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(24, 119, 242, 0.3);
}

.footer-cta-facebook:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.5);
}

.footer-cta-facebook i {
    font-size: 1.3rem;
}

/* Responsive Footer */
@media (max-width: 480px) {
    .footer-cta-whatsapp {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .footer-cta-whatsapp .footer-phone {
        font-size: 0.95rem;
    }
    
    .footer-cta-facebook {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .footer-cta-facebook span {
        display: none;
    }
    
    .footer-cta-facebook i {
        font-size: 1.5rem;
    }
}

/* ==========================================
   LIGHTBOX PARA PORTAFOLIO
   ========================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: #E55B0F;
    transform: scale(1.1);
}

/* ==========================================
   WHATSAPP ONLY CONTAINER (MÓVIL)
   ========================================== */
.whatsapp-only-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 15px;
}

.whatsapp-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0fff4 100%);
    border-radius: 24px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 
        0 25px 60px rgba(37, 211, 102, 0.15),
        0 0 0 3px rgba(37, 211, 102, 0.1);
    position: relative;
    overflow: hidden;
}

.whatsapp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #25D366, #128C7E, #25D366);
}

.whatsapp-icon-large {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 15px 60px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-icon-large i {
    font-size: 2.8rem;
    color: white;
}

.whatsapp-card h3 {
    color: #128C7E;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.whatsapp-card > p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background:  #25D366;
    color: white;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    width: 100%;
    max-width: 320px;
}

.btn-whatsapp-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-large i {
    font-size: 1.4rem;
}

.whatsapp-phone {
    margin-top: 20px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.whatsapp-phone i {
    color: #25D366;
    margin-right: 8px;
}