/* =========================================================
   Dr. Luís Eduardo Linares — Hoja de estilos única
   Usada por: index.html y acercademi.html
   ========================================================= */

/* =========================================
   1. VARIABLES Y RESET GLOBAL
   ========================================= */
:root {
    --color-white: #FFFFFF;
    --color-neutral: #F8F9FA;
    --color-navy: #0A2540;
    --color-surgical: #00A8CC;
    --color-surgical-hover: #008BA8;
    --font-main: 'Inter', sans-serif;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 168, 204, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--color-navy);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden; /* Elimina scroll horizontal fantasma */
    width: 100%;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   2. NAVEGACIÓN
   ========================================= */
.navbar { position: sticky; top: 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(10, 37, 64, 0.05); z-index: 1000; padding: 15px 0; width: 100%; transition: box-shadow 0.3s; }
.navbar.scrolled { box-shadow: 0 4px 20px rgba(10, 37, 64, 0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-navy); }
.logo-img { width: 50px; height: 50px; border-radius: 50%; object-fit: contain; background: var(--color-white); }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.logo-specialty { font-size: 0.75rem; color: var(--color-surgical); font-weight: 600; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--color-navy); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--color-surgical); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background-color: var(--color-surgical); border-radius: 2px; }
.nav-links a[target="_blank"] { padding-right: 18px; }
.nav-links a[target="_blank"]::after { content: '↗'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; color: var(--color-surgical); opacity: 0.7; }

/* Botones */
.btn { display: inline-block; padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; text-align: center; }
.btn-primary { background-color: var(--color-surgical); color: var(--color-white); box-shadow: 0 4px 15px rgba(0, 168, 204, 0.3); }
.btn-primary:hover { background-color: var(--color-surgical-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 168, 204, 0.4); }
.btn-outline { background: transparent; border: 2px solid var(--color-navy); color: var(--color-navy); }
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }
.btn-surgical { background-color: var(--color-surgical); color: var(--color-white); padding: 8px 16px; font-size: 0.9rem; border-radius: 50px; text-decoration: none; display: inline-block; }
.btn-surgical:hover { background-color: var(--color-surgical-hover); }
.lang-btn { background: transparent; border: 1px solid var(--color-navy); color: var(--color-navy); padding: 6px 12px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: inherit; font-size: 0.85rem; }
.lang-btn:hover { background: var(--color-navy); color: var(--color-white); }

/* Botón hamburguesa (móvil) */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.mobile-menu-btn span { display: block; width: 25px; height: 3px; background-color: var(--color-navy); border-radius: 2px; transition: 0.3s; }

/* =========================================
   3. HERO (index.html)
   ========================================= */
.hero { padding: 100px 0 80px; background: var(--color-neutral); width: 100%; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%; }
.badge { display: inline-block; background: rgba(0, 168, 204, 0.1); color: var(--color-surgical); padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 20px; }
.hero-text h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 20px; color: var(--color-navy); }
.hero-text p { font-size: 1.1rem; color: #475569; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; padding-top: 30px; border-top: 1px solid #E2E8F0; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--color-surgical); }
.stat-label { font-size: 0.9rem; color: var(--color-navy); font-weight: 600; }
.hero-image .image-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 400px; background: #fff; width: 100%; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   4. SECCIONES GENERALES
   ========================================= */
.section { padding: 80px 0; width: 100%; }
.bg-neutral { background-color: var(--color-neutral); }
.bg-navy { background-color: var(--color-navy); }
.text-white { color: var(--color-white); }
.section-header { text-align: center; margin-bottom: 50px; width: 100%; }
.section-header h2 { font-size: 2.2rem; color: var(--color-navy); margin-bottom: 15px; }
.bg-navy .section-header h2 { color: var(--color-white); }
.section-header p { color: #64748B; font-size: 1.1rem; max-width: 700px; margin: 0 auto; }
.bg-navy .section-header p { color: #94A3B8; }
.section-title { text-align: center; font-size: 2rem; color: var(--color-navy); margin-bottom: 50px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--color-surgical); margin: 15px auto 0; border-radius: 2px; }

/* =========================================
   5. TARJETAS EN 2 COLUMNAS (sedes, formación, experiencia...)
   ========================================= */
.clinics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; width: 100%; }
.clinic-card { background: var(--color-white); padding: 35px; border-radius: var(--radius); border: 1px solid #E2E8F0; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.clinic-card h3 { color: var(--color-navy); margin-bottom: 20px; font-size: 1.2rem; font-weight: 700; }
.clinic-card ul { list-style: none; padding: 0; }
.clinic-card li { padding: 10px 0; padding-left: 18px; position: relative; color: #475569; font-size: 0.95rem; border-bottom: 1px solid #F1F5F9; }
.clinic-card li:last-child { border-bottom: none; }
.clinic-card li::before { content: '•'; color: var(--color-surgical); font-weight: bold; position: absolute; left: 0; font-size: 1.2rem; line-height: 1; top: 12px; }

/* Aseguradoras en rejilla 2x4 */
.insurance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
.insurance-grid span { color: #475569; font-size: 0.95rem; padding-left: 18px; position: relative; line-height: 1.4; }
.insurance-grid span::before { content: '•'; color: var(--color-surgical); position: absolute; left: 0; font-weight: bold; font-size: 1.2rem; line-height: 1; top: 2px; }

/* Variante de las tarjetas en "Acerca de mí" (conserva su aspecto original) */
.page-about .clinic-card { box-shadow: none; transition: all 0.3s; }
.page-about .clinic-card:hover { border-color: var(--color-surgical); box-shadow: var(--shadow-hover); }
.page-about .clinic-card h3 { margin-bottom: 15px; }
.page-about .clinic-card li { padding: 8px 0 8px 20px; font-size: 1rem; border-bottom: none; }
.page-about .clinic-card li::before { line-height: 1.2; top: 8px; }

/* =========================================
   6. PROCEDIMIENTOS (index.html)
   ========================================= */
.procedures-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; }
.procedure-card { background: var(--color-white); padding: 35px; border-radius: var(--radius); border: 1px solid #E2E8F0; transition: all 0.3s; }
.procedure-card:hover { border-color: var(--color-surgical); box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.procedure-icon { width: 60px; height: 60px; background: rgba(0, 168, 204, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--color-surgical); }
.procedure-icon svg { width: 32px; height: 32px; stroke-width: 1.5; }
.procedure-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--color-navy); }
.procedure-card p { color: #64748B; font-size: 0.95rem; }

/* =========================================
   7. RESEÑAS (index.html)
   ========================================= */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; width: 100%; }
.review-widget { background: var(--color-white); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--color-navy); }
.widget-header { margin-bottom: 15px; border-bottom: 1px solid #E2E8F0; padding-bottom: 15px; }
.widget-header h3 { font-size: 1.1rem; color: var(--color-navy); }
.widget-body p { margin-bottom: 15px; font-size: 0.95rem; color: #475569; }
.widget-body strong { color: var(--color-navy); display: block; margin-bottom: 5px; }

/* =========================================
   8. ACERCA DE MÍ (acercademi.html)
   ========================================= */
.page-header { background-color: var(--color-neutral); padding: 120px 0 60px; text-align: center; }
.page-header h1 { font-size: 2.5rem; color: var(--color-navy); margin-bottom: 15px; }
.page-header p { color: #64748B; font-size: 1.1rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
.about-image { max-width: 85%; margin: 0 auto; }
.about-image img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text h2 { font-size: 1.8rem; margin-bottom: 20px; color: var(--color-navy); }
.about-text p { color: #475569; margin-bottom: 15px; font-size: 1.05rem; }
.credentials { display: flex; gap: 40px; margin-top: 30px; padding-top: 30px; border-top: 1px solid #E2E8F0; }
.credential-item { display: flex; flex-direction: column; }
.credential-number { font-size: 2rem; font-weight: 700; color: var(--color-surgical); }
.credential-label { font-size: 0.9rem; color: var(--color-navy); font-weight: 600; }

.award-card { background: linear-gradient(135deg, #0A2540 0%, #00A8CC 100%); color: white; padding: 40px; border-radius: var(--radius); margin-bottom: 50px; box-shadow: var(--shadow); }
.award-card h2 { font-size: 1.5rem; margin-bottom: 15px; }
.award-card p { font-size: 1.05rem; opacity: 0.95; line-height: 1.6; }

/* =========================================
   9. CONTACTO — idéntico en ambas páginas (INFO 35% / MAPA 65%)
   ========================================= */
.contact-layout { display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); /* 35% / 65% descontando el hueco */ gap: 30px; align-items: stretch; margin-top: 20px; width: 100%; }
.contact-info-side { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.info-card { display: flex; align-items: flex-start; gap: 15px; padding: 20px; background: #F8FAFC; border-radius: 12px; border: 1px solid #E2E8F0; }
.icon-box { width: 40px; height: 40px; background: var(--color-surgical); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.text-box h3 { font-size: 1rem; font-weight: 700; color: var(--color-navy); margin-bottom: 5px; }
.text-box p { font-size: 0.9rem; color: #64748B; line-height: 1.5; margin: 0; }
.whatsapp-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background-color: #25D366; color: white; text-decoration: none; padding: 12px 24px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; width: fit-content; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2); margin-top: 10px; }
.whatsapp-pill:hover { background-color: #128C7E; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3); }
.whatsapp-pill svg { width: 20px; height: 20px; }
.contact-map-side { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); min-height: 450px; background: #eee; width: 100%; }
.contact-map-side iframe { width: 100%; height: 100%; min-height: 450px; border: 0; display: block; }

/* =========================================
   10. FOOTER
   ========================================= */
.footer { background-color: var(--color-navy); color: var(--color-white); padding: 50px 0 30px; width: 100%; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; width: 100%; }
.footer-info h2 { margin-bottom: 10px; font-size: 1.2rem; }
.footer-info p { color: #94A3B8; font-size: 0.9rem; margin-bottom: 5px; }
.footer-legal { color: #64748B; font-size: 0.85rem; text-align: right; }
.footer-legal a { color: var(--color-surgical); text-decoration: none; font-weight: 600; }
.footer-credit { margin-top: 8px; font-size: 0.8rem; }

/* =========================================
   11. RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .hero-content, .contact-layout, .clinics-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-image { order: -1; max-width: 500px; margin: 0 auto; }
    .procedures-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-map-side { order: -1; min-height: 350px; }
    .contact-map-side iframe { min-height: 350px; }
}
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: var(--color-white); flex-direction: column; padding: 20px; gap: 15px; border-bottom: 1px solid #E2E8F0; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transform: translateY(-150%); opacity: 0; transition: all 0.3s ease; z-index: 999; }
    .nav-links.active { transform: translateY(0); opacity: 1; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .hero-stats, .credentials { flex-direction: column; gap: 20px; }
    .procedures-grid, .reviews-grid, .insurance-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 2rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-legal { text-align: center; }
    .whatsapp-pill { width: 100%; justify-content: center; }
}
