/* ==========================================
   SISTEMA DE DISEÑO - MECYTEC CNC
   ========================================== */

:root {
    /* Paleta de colores Premium */
    --primary: #dc2626;         /* Rojo Crimson */
    --primary-hover: #b91c1c;   /* Rojo Oscuro */
    --secondary: #f59e0b;       /* Amarillo Ámbar */
    --secondary-hover: #d97706; /* Amarillo Oscuro */
    --accent-light: #fef3c7;    /* Amarillo claro para fondos */
    --dark: #0f172a;            /* Pizarra Oscuro */
    --dark-muted: #1e293b;
    --light: #ffffff;           /* Blanco Puro */
    --light-sub: #f8fafc;       /* Gris azulado muy suave */
    --text: #334155;            /* Gris de cuerpo */
    --text-light: #64748b;      /* Gris secundario */
    --border: #e2e8f0;          /* Gris de bordes */
    
    /* Tipografías */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transiciones, Sombras y Bordes */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
}

/* ==========================================
   ESTILOS GENERALES Y RESET
   ========================================== */

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

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

/* ==========================================
   BOTONES
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-secondary {
    background-color: #25d366; /* Color de WhatsApp corporativo */
    color: var(--light);
    border: 2px solid #25d366;
}

.btn-secondary:hover {
    background-color: #128c7e;
    border-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-block {
    width: 100%;
}

/* ==========================================
   HEADER / NAVBAR
   ========================================== */

.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.logo-svg {
    width: 42px;
    height: 42px;
    animation: rotate-logo 20s linear infinite;
}

@keyframes rotate-logo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--dark);
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-muted);
    position: relative;
    padding: 8px 0;
}

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

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

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

.nav-btn-appointment {
    background-color: var(--dark);
    color: var(--light) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
}

.nav-btn-appointment::after {
    display: none !important;
}

.nav-btn-appointment:hover {
    background-color: var(--primary);
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: radial-gradient(circle at 10% 20%, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.9) 90%);
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-light);
    color: var(--secondary-hover);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(0.95); opacity: 1; }
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
}

.highlight-red {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    background: var(--light);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    max-width: max-content;
}

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

.metric-num {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--dark);
    line-height: 1;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.metric-divider {
    width: 1px;
    height: 35px;
    background-color: var(--border);
}

/* Visual del Héroe */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.6;
    z-index: 0;
}

.image-wrapper {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 6px solid var(--light);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Tarjetas Flotantes */
.visual-card {
    position: absolute;
    background-color: var(--light);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    animation: float 4s ease-in-out infinite;
}

.visual-card i {
    font-size: 1.5rem;
    color: var(--primary);
    background-color: rgba(220, 38, 38, 0.08);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.visual-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
}

.visual-card p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.floating-card-1 {
    top: 20px;
    left: -30px;
}

.floating-card-2 {
    bottom: 20px;
    right: -20px;
    animation-delay: 2s !important;
}

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

/* ==========================================
   SECCIONES COMUNES
   ========================================== */

section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background-color: rgba(220, 38, 38, 0.05);
    padding: 4px 12px;
    border-radius: 4px;
}

.section-header h2 {
    font-size: 2.3rem;
    color: var(--dark);
}

.section-bar {
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
    margin-top: 4px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 12px;
}

/* ==========================================
   SOBRE NOSOTROS
   ========================================== */

.about-section {
    background-color: var(--light-sub);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

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

.about-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-muted);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.feat-card {
    display: flex;
    gap: 16px;
    background-color: var(--light);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feat-card:hover {
    transform: translateX(5px);
    border-color: var(--secondary);
}

.feat-icon {
    font-size: 1.4rem;
    color: var(--secondary-hover);
    background-color: var(--accent-light);
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feat-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feat-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

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

.value-box {
    background-color: var(--light);
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
}

.value-icon {
    font-size: 2rem;
    color: var(--primary);
    display: block;
    margin-bottom: 16px;
}

.value-box h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.value-box p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================
   SERVICIOS
   ========================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--light);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    background-color: var(--primary);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary);
    background-color: rgba(220, 38, 38, 0.05);
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--light);
}

.service-card h3 {
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-highlight {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-hover);
    background-color: var(--accent-light);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* ==========================================
   GALERÍA
   ========================================== */

.gallery-section {
    background-color: var(--light-sub);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.1rem;
}

.gallery-item {
    background-color: var(--light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--light);
    font-size: 1.8rem;
    background-color: var(--primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: scale(0.8);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.gallery-info h4 {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 24px;
}

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

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: var(--transition);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background-color: #000;
}

.lightbox-info {
    padding: 20px;
}

.lightbox-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

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

/* ==========================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================== */

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

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(220, 38, 38, 0.3);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    transition: var(--transition);
}

.faq-question i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--light-sub);
}

.faq-answer p {
    padding: 20px 24px;
    font-size: 0.95rem;
    color: var(--text);
}

/* Estado Activo FAQ */
.faq-item.active {
    border-color: var(--primary);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    max-height: 250px;
}

/* ==========================================
   CONTACTO Y CITAS
   ========================================== */

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

.contact-card-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

/* Panel de Información */
.contact-info-panel {
    background-color: var(--dark);
    color: var(--light);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.panel-title {
    color: var(--light);
    font-size: 1.6rem;
}

.panel-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: -15px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.info-icon {
    font-size: 1.2rem;
    color: var(--secondary);
    background-color: rgba(245, 158, 11, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item h5 {
    color: var(--light);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.info-item p {
    color: var(--border);
    font-size: 0.85rem;
    word-break: break-word;
}

.panel-socials {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.panel-socials a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-socials a:hover {
    background-color: var(--primary);
    color: var(--light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Panel de Formulario */
.contact-form-panel {
    background-color: var(--light);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    gap: 20px;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-light);
    padding-bottom: 12px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

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

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.required {
    color: var(--primary);
}

.form-group input, .form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--dark);
    background-color: var(--light);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* Visibilidad de Citas */
.appointment-fields-hidden {
    display: none !important;
}

/* Spinner e Indicadores de Formulario */
.spinner-hidden {
    display: none;
}

#btnSpinner i {
    animation: rotate-logo 1.5s linear infinite;
}

.form-feedback {
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.feedback-hidden {
    display: none;
}

.feedback-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.feedback-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Mapa de Ubicación */
.map-wrapper {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.map-title {
    font-size: 1.25rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-title i {
    color: var(--primary);
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* ==========================================
   PIE DE PÁGINA / FOOTER
   ========================================== */

.main-footer {
    background-color: var(--dark);
    color: var(--light);
    padding-top: 60px;
    border-top: 4px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand .logo {
    gap: 10px;
}

.footer-brand .logo-svg {
    width: 32px;
    height: 32px;
}

.footer-desc {
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--light);
    margin-bottom: 20px;
    font-size: 1.05rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--border);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--border);
}

.footer-contact i {
    margin-right: 6px;
    color: var(--secondary);
}

.footer-bottom {
    padding: 20px 0;
    background-color: #0b111e;
    font-size: 0.8rem;
    color: var(--text-light);
}

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

/* ==========================================
   RESPONSIVIDAD Y ADAPTACIÓN MÓVIL
   ========================================== */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    
    .badge {
        align-self: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-metrics {
        margin: 16px auto 0 auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .contact-card-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel {
        padding: 36px;
    }
    
    .contact-form-panel {
        padding: 36px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .main-header {
        height: var(--header-height);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--light);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        transition: var(--transition);
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-btn-appointment {
        width: 80%;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .lightbox-modal {
        padding: 12px;
    }
    
    .lightbox-close {
        top: 12px;
        right: 12px;
        font-size: 2.5rem;
    }
}
