/* ================================
   GLOBAL MEDIC LM — STYLE.CSS
   Referencia: i-SALUD Peru
   ================================ */

:root {
    --teal-oscuro:  #006d77;
    --teal-medio:   #00a8b5;
    --teal-claro:   #00c9d8;
    --teal-hero:    #00bcd4cc;
    --blanco:       #ffffff;
    --gris-fondo:   #f5f8fa;
    --gris-texto:   #555e68;
    --oscuro:       #1a2332;
    --font:         'Inter', sans-serif;
    --shadow:       0 4px 20px rgba(0,0,0,0.1);
    --radius:       10px;
}

* { font-family: var(--font); box-sizing: border-box; }
body { color: var(--oscuro); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* ===== TOPBAR ===== */
.topbar {
    background: var(--teal-oscuro);
    color: rgba(255,255,255,0.92);
    padding: 7px 0;
    font-size: 0.8rem;
}
.topbar a { color: rgba(255,255,255,0.85); transition: color 0.3s; }
.topbar a:hover { color: var(--blanco); }
.topbar-social a {
    color: rgba(255,255,255,0.8);
    margin: 0 5px;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.topbar-social a:hover { color: var(--blanco); }

/* ===== NAVBAR ===== */
#mainNav {
    padding: 10px 0;
    border-bottom: 2px solid var(--teal-claro);
    transition: box-shadow 0.3s;
}
#mainNav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.nav-link {
    color: var(--oscuro) !important;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    padding: 8px 10px !important;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--teal-medio) !important; }

.dropdown-custom {
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 280px;
}
.dropdown-item {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}
.dropdown-item:hover { background: rgba(0,168,181,0.1); color: var(--teal-medio); }

.btn-resultados {
    background: var(--teal-medio);
    color: var(--blanco) !important;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: center;
    transition: all 0.3s;
}
.btn-resultados:hover { background: var(--teal-oscuro); transform: translateY(-2px); }
.btn-resultados span { font-size: 0.7rem; font-weight: 400; display: block; }

/* ===== HERO ===== */
.hero-section {
    position: relative;
    min-height: 92vh;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,109,119,0.82) 0%, rgba(0,168,181,0.65) 100%);
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--blanco);
    line-height: 1.15;
    position: relative;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title span { color: #a8f0f5; }

.btn-hero-cotiza {
    background: transparent;
    color: var(--blanco);
    border: 2.5px solid var(--blanco);
    border-radius: 30px;
    padding: 13px 45px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
}
.btn-hero-cotiza:hover {
    background: var(--blanco);
    color: var(--teal-oscuro);
}

/* Botón Contáctanos flotante en hero */
.contactanos-float {
    position: absolute;
    bottom: 40px;
    right: 30px;
    z-index: 10;
}
.contactanos-float a {
    background: rgba(255,255,255,0.95);
    color: var(--oscuro);
    padding: 10px 16px 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.contactanos-float a:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.2); transform: translateY(-2px); }
.wa-circle {
    background: #25d366;
    color: var(--blanco);
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}

/* ===== TIPOGRAFÍA SECCIONES ===== */
.titulo-teal   { color: var(--teal-medio); font-weight: 800; font-size: 1.9rem; }
.titulo-oscuro { color: var(--oscuro);     font-weight: 800; font-size: 1.9rem; }
.subtitulo-gris{ color: var(--gris-texto); font-size: 1.1rem; margin-top: 4px; }
.label-teal    { color: var(--teal-medio); font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }
.link-teal     { color: var(--teal-medio); }

/* ===== NOSOTROS ===== */
.nosotros-section { background: var(--blanco); }
.foto-collage {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}
.foto-circle-grande {
    width: 260px; height: 260px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--teal-claro);
    position: absolute;
    top: 0; left: 0;
}
.foto-circle-grande img { width: 100%; height: 100%; object-fit: cover; }
.foto-circle-chica {
    width: 140px; height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--blanco);
    box-shadow: var(--shadow);
    position: absolute;
    bottom: 0; right: 0;
}
.foto-circle-chica img { width: 100%; height: 100%; object-fit: cover; }
.collage-deco {
    position: absolute; inset: -20px;
    background: radial-gradient(circle, rgba(0,168,181,0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.nosotros-titulo { font-size: 1.6rem; font-weight: 800; color: var(--oscuro); }
.nosotros-texto  { color: var(--gris-texto); line-height: 1.75; font-size: 0.95rem; }

.beneficio-item {
    padding: 18px 12px;
    border-radius: var(--radius);
    background: var(--gris-fondo);
    transition: all 0.3s;
}
.beneficio-item:hover { background: rgba(0,168,181,0.08); transform: translateY(-3px); }
.beneficio-icon {
    font-size: 2rem;
    color: var(--teal-medio);
    margin-bottom: 8px;
}
.beneficio-item p { font-size: 0.82rem; font-weight: 600; color: var(--oscuro); margin: 0; }

/* ===== CARRUSEL EXÁMENES ===== */
.examenes-section { background: var(--gris-fondo); }
.examen-slide {
    height: 380px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.examen-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,109,119,0.88), rgba(0,168,181,0.75));
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.examen-content h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 15px; }
.examen-content p  { font-size: 0.95rem; max-width: 600px; margin: 0 auto 20px; opacity: 0.92; }
.btn-examen-cotiza {
    background: transparent;
    color: var(--blanco);
    border: 2px solid var(--blanco);
    border-radius: 25px;
    padding: 10px 35px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-examen-cotiza:hover { background: var(--blanco); color: var(--teal-oscuro); }

.carousel-indicators-custom button {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    margin: 0 4px;
}
.carousel-indicators-custom button.active { background: var(--blanco); }

/* ===== DIGESA ===== */
.digesa-section { background: var(--blanco); }
.digesa-badge { display: flex; align-items: center; justify-content: center; }
.digesa-minsa {
    width: 120px; height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow);
}
.minsa-top {
    background: #cc0000;
    color: var(--blanco);
    font-weight: 900;
    font-size: 1.1rem;
    flex: 1;
    display: flex; align-items: center; justify-content: center;
}
.minsa-bottom {
    background: #333;
    color: var(--blanco);
    font-weight: 900;
    font-size: 1rem;
    flex: 1;
    display: flex; align-items: center; justify-content: center;
}
.digesa-logo-circle {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a6b2a, #2d9e3a);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--blanco);
    text-align: center;
    padding: 15px;
    box-shadow: var(--shadow);
}
.digesa-logo-circle i { font-size: 1.5rem; margin-bottom: 5px; }
.digesa-logo-circle span { font-size: 0.65rem; line-height: 1.3; }
.digesa-logo-circle strong { font-size: 0.8rem; }

/* ===== OTROS EXÁMENES ===== */
.otros-examenes-section { background: var(--gris-fondo); }
.otro-card {
    background: var(--blanco);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
    border: 1px solid #e8eef3;
}
.otro-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--teal-claro); }
.otro-icon {
    font-size: 1.8rem;
    color: var(--teal-medio);
    margin-bottom: 12px;
}
.otro-card h6 { font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; }
.otro-card p  { font-size: 0.78rem; color: var(--gris-texto); margin: 0; }

/* ===== MÁS SERVICIOS ===== */
.mas-servicios-section { background: var(--blanco); }
.mas-servicio-card {
    height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.mas-servicio-overlay {
    position: absolute; inset: 0;
    background: rgba(0,109,119,0.6);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.mas-servicio-card:hover .mas-servicio-overlay { background: rgba(0,109,119,0.8); }
.mas-servicio-overlay h5 {
    color: var(--blanco);
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== RESULTADOS + MAPA ===== */
.resultados-section { background: var(--gris-fondo); }
.mapa-wrapper { box-shadow: var(--shadow); }
.direccion-box { background: var(--blanco); padding: 12px 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.text-teal { color: var(--teal-medio); }

.stats-resultados { display: flex; flex-direction: column; gap: 16px; }
.stat-resultado-item {
    display: flex; align-items: center; gap: 16px;
    background: var(--blanco);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.stat-resultado-item:hover { transform: translateX(5px); border-left: 3px solid var(--teal-medio); }
.stat-icon-teal {
    width: 48px; height: 48px; min-width: 48px;
    background: rgba(0,168,181,0.12);
    color: var(--teal-medio);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.stat-resultado-item strong { font-size: 1.5rem; font-weight: 900; color: var(--teal-medio); display: block; line-height: 1; }
.stat-resultado-item span   { font-size: 0.85rem; color: var(--gris-texto); }

/* ===== CTA DIGESA ===== */
.cta-digesa-section {
    background: linear-gradient(135deg, var(--teal-medio), var(--teal-claro));
    color: var(--blanco);
}
.cta-digesa-section h2 { font-size: 2rem; font-weight: 800; }
.cta-digesa-section p  { font-size: 0.97rem; opacity: 0.95; max-width: 480px; }
.btn-descarga-digesa {
    background: var(--oscuro);
    color: var(--blanco);
    border: none;
    border-radius: 8px;
    padding: 13px 30px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}
.btn-descarga-digesa:hover { background: rgba(0,0,0,0.8); color: var(--blanco); transform: translateY(-2px); }
.img-cta-medicos { max-height: 320px; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2)); }

/* ===== COTIZACIÓN ===== */
.cotiza-section { background: var(--gris-fondo); }
.cotiza-form-card {
    background: var(--blanco);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow);
}
.fc-custom {
    border: 1.5px solid #dde3ea;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.fc-custom:focus { border-color: var(--teal-medio); box-shadow: 0 0 0 3px rgba(0,168,181,0.12); outline: none; }
.btn-cotiza-submit {
    background: linear-gradient(135deg, var(--teal-oscuro), var(--teal-medio));
    color: var(--blanco);
    border: none;
    border-radius: 10px;
    padding: 13px 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}
.btn-cotiza-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,168,181,0.4); color: var(--blanco); }

/* ===== FOOTER ===== */
.footer-section { background: var(--teal-oscuro); color: rgba(255,255,255,0.85); }
.footer-desc     { font-size: 0.83rem; color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer-heading  { color: var(--blanco); font-weight: 700; font-size: 0.82rem; letter-spacing: 1.5px; margin-bottom: 14px; }
.footer-links    { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 7px; font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.footer-links a  { color: rgba(255,255,255,0.7); transition: color 0.3s; font-size: 0.82rem; }
.footer-links a:hover { color: var(--teal-claro); }
.footer-social a {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-right: 12px;
    transition: color 0.3s;
}
.footer-social a:hover { color: var(--teal-claro); }
.footer-divider { border-color: rgba(255,255,255,0.12); }
.footer-copy    { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.libro-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}
.libro-badge:hover { background: rgba(255,255,255,0.18); }

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px;
    background: #25d366;
    color: var(--blanco);
    width: 58px; height: 58px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 5px 25px rgba(37,211,102,0.5);
    z-index: 9999;
    transition: all 0.3s;
}
.whatsapp-float:hover { transform: scale(1.12); color: var(--blanco); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .contactanos-float { bottom: 80px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .titulo-teal, .titulo-oscuro { font-size: 1.5rem; }
    .foto-collage { width: 260px; height: 260px; }
    .foto-circle-grande { width: 210px; height: 210px; }
    .foto-circle-chica  { width: 110px; height: 110px; }
    .cotiza-form-card { padding: 22px; }
    .examen-slide { height: 300px; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem; }
    .topbar { font-size: 0.72rem; }
}
