/* ================================================
   SERVICIOS PAGE — Estilos específicos
   Complementa style.css del sitio principal
   ================================================ */

/* ── LINK ACTIVO EN NAV ── */
.nav-active {
    color: var(--primary) !important;
    background: var(--primary-light);
    border-radius: 8px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}
.breadcrumb a {
    color: var(--primary);
    font-weight: 500;
    transition: opacity 0.2s;
}
.breadcrumb a:hover { opacity: 0.75; }
.breadcrumb i { font-size: 0.65rem; color: var(--text-gray); }

/* ── PAGE HERO ── */
.page-hero {
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f1fb 60%, #dbeafe 100%);
    padding: 60px 0 70px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(10,102,194,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero-inner { max-width: 640px; }
.page-hero .section-label { margin-bottom: 12px; }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 16px;
}
.page-hero h1 .highlight { color: var(--primary); }
.page-hero-sub {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ── SERVICIOS GRID ── */
.servicios-section { padding: 80px 0 90px; }
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

/* ── SERVICIO CARD ── */
.servicio-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(24px);
}
.servicio-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}
.servicio-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.servicio-card--agenda {
    border-top: 3px solid var(--primary);
}

/* ── ICONO ── */
.servicio-icon-wrap {
    width: 100%;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.servicio-icon-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}
.servicio-icon {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

/* Colores de fondo por especialidad */
.servicio-icon--blue   { background: #eff6ff; }
.servicio-icon--green  { background: #f0fdf4; }
.servicio-icon--purple { background: #faf5ff; }
.servicio-icon--orange { background: #fff7ed; }
.servicio-icon--teal   { background: #f0fdfa; }
.servicio-icon--red    { background: #fff1f2; }
.servicio-icon--yellow { background: #fefce8; }

/* Card centrada sola en su fila (Alergología) */
.servicio-card--center {
    grid-column: auto;
}

/* ── CUERPO CARD ── */
.servicio-body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
}
.servicio-body h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}
.servicio-body > p {
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.65;
}

/* ── FEATURES LIST ── */
.servicio-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.servicio-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.87rem;
    color: var(--text);
    font-weight: 500;
}
.servicio-features i {
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ── BADGE AGENDA ── */
.agenda-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 5px 12px;
    border-radius: 50px;
    width: fit-content;
    letter-spacing: 0.02em;
}

/* ── BTN CARD ── */
.servicio-btn {
    margin-top: 4px;
    width: fit-content;
}

/* ── CTA FONASA ── */
.cta-fonasa { padding: 70px 0; }
.cta-fonasa-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-fonasa-text { max-width: 540px; }
.cta-fonasa-text .section-label { margin-bottom: 12px; }
.cta-fonasa-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.2;
}
.cta-fonasa-text p {
    color: var(--text-gray);
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.cta-fonasa-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .servicios-grid { grid-template-columns: repeat(2, 1fr); }
    .servicio-card--center { grid-column: 1 / 3; max-width: 400px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
    .servicios-grid { grid-template-columns: 1fr; }
    .servicio-card--center { grid-column: auto; max-width: 100%; margin: 0; }
    .cta-fonasa-inner { flex-direction: column; text-align: center; }
    .cta-fonasa-logo { order: -1; }
    .servicio-btn { width: 100%; justify-content: center; }
    .agenda-badge { margin: 0 auto; }
    .page-hero { padding: 44px 0 52px; }
}

/* ── TELEMEDICINA CARD ── */
.servicio-card--tele { border-top: 3px solid #0891b2; }
.servicio-icon--tele-bg {
    background: linear-gradient(135deg, #e0f9ff 0%, #bfdbfe 100%);
}
.servicio-icon-fa-tele {
    font-size: 3.2rem;
    color: #0891b2;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(8,145,178,0.2));
}
.tele-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f9ff;
    color: #0891b2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 50px;
    width: fit-content;
}
.agenda-badge--tele { background: #e0f9ff; color: #0891b2; }
.btn-tele {
    background: #0891b2;
    color: white;
    border: 2px solid #0891b2;
    box-shadow: 0 4px 14px rgba(8,145,178,0.3);
}
.btn-tele:hover {
    background: #0369a1;
    border-color: #0369a1;
    color: white;
    box-shadow: 0 6px 20px rgba(8,145,178,0.4);
}

/* Font-awesome icon in servicios grid (para telemedicina) */
.servicio-icon-fa {
    font-size: 3rem;
    display: block;
}