/* ============================================================
   Home (versión light + slider) – Dr. Weiss Radiología
   ============================================================ */

/* ── Slider hero ─────────────────────────────────────────────────────── */
.hero-slider .carousel-item { height: 86vh; min-height: 480px; }
.slide-bg {
    height: 100%; width: 100%;
    display: flex; align-items: center;
    background-size: cover; background-position: center;
    position: relative;
}
/* Para agregar fotos reales: background-image: url('/images/slide-N.jpg') en cada .slide-N */
/* .slide-1 { background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 50%, #0a1628 100%); }
.slide-2 { background: linear-gradient(135deg, #7b241c 0%, var(--brand) 55%, var(--brand-dark) 100%); }
.slide-3 { background: linear-gradient(135deg, var(--text-main) 0%, #1a2744 50%, #0a0f1e 100%); } */
.slide-overlay { position: absolute; inset: 0; background-color: #000; }
.slide-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
}

.slide-content { position: relative; z-index: 2; color: #fff; padding: 2rem 0; }
.slide-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(255,255,255,.20); border: 1px solid rgba(255,255,255,.35);
    border-radius: 100px; font-size: .72rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: .3rem .85rem; margin-bottom: 1.25rem; color: rgba(255,255,255,.9);
    font-family: 'Figtree', sans-serif;
}
.slide-content h1 {
    font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800;
    color: #fff; line-height: 1.1; letter-spacing: -.025em;
    margin-bottom: 1rem;
}
.slide-content p {
    font-size: 1.1rem; color: rgba(255,255,255,.8);
    margin-bottom: 2rem; max-width: 540px; line-height: 1.65;
}

/* Carousel controls */
.hero-slider .carousel-indicators [data-bs-target] {
    position: relative;
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.45); border: none;
    transition: background .3s, transform .3s;
}
.hero-slider .carousel-indicators [data-bs-target]::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
}
.hero-slider .carousel-indicators .active { background: #fff; transform: scale(1.3); }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 48px; height: 48px; background: rgba(255,255,255,.15);
    border-radius: 50%; top: 50%; transform: translateY(-50%);
    bottom: auto; margin: 0 1rem;
    border: 1px solid rgba(255,255,255,.2);
    transition: background .2s;
}
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover { background: rgba(255,255,255,.3); }

/* ── Stats bar ───────────────────────────────────────────────────────── */
.stats-bar {
    background: #fff; border-bottom: 1px solid var(--border-color); padding: 1.25rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.stat-item  { text-align: center; padding: 0 1rem; }
.stat-num   { font-family: 'Figtree', sans-serif; font-size: 1.65rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stat-label { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; text-transform: uppercase; letter-spacing: .04em; }
.stat-div   { width: 1px; background: #e2e8f0; height: 36px; flex-shrink: 0; }

/* ── Services (light) ────────────────────────────────────────────────── */
.services-section { background: var(--bg-lighter); padding: 5.5rem 0; }
.service-card {
    background: #fff; border-radius: 14px;
    border: 1px solid var(--border-color);
    padding: 1.75rem 1.5rem;
    text-decoration: none; color: inherit;
    display: block; height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.09);
    color: inherit;
}
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; transition: background .2s; }
.service-card:hover .service-icon { background: var(--brand-bg-hover); }
.service-icon i { font-size: 1.35rem; color: var(--brand); }
.service-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; color: var(--text-main); }
.service-card p  { font-size: .82rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
.service-card .service-arrow { margin-top: .85rem; font-size: .78rem; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: .3rem; transition: gap .2s; }
.service-card:hover .service-arrow { gap: .5rem; }
.service-card.featured {
    background: var(--brand);
    background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
    border: none;
    position: relative;
    box-shadow: 0 10px 30px var(--brand-shadow-soft);
}
.service-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px var(--brand-shadow);
}
.service-card.featured h3, 
.service-card.featured p, 
.service-card.featured .service-arrow { 
    color: #fff !important; 
}
.service-card.featured .service-icon { 
    background: rgba(255,255,255,0.15); 
    border: 1px solid rgba(255,255,255,0.25);
}
.service-card.featured .service-icon i { color: #fff; }
.service-card.featured .service-arrow { opacity: 0.9; }

/* ── Differentials (white) ───────────────────────────────────────────── */
.differentials-section { background: #fff; padding: 5.5rem 0; }
.diff-card { text-align: center; padding: 1.25rem 1rem; }
.diff-icon { width: 68px; height: 68px; border-radius: 18px; background: var(--brand-bg); border: 1px solid var(--brand-border-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.1rem; transition: transform .2s, box-shadow .2s; }
.diff-card:hover .diff-icon { transform: translateY(-4px); box-shadow: 0 8px 20px var(--brand-shadow-soft); }
.diff-icon i { font-size: 1.75rem; color: var(--brand); }
.diff-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--text-main); }
.diff-card p  { font-size: .875rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ── Locations (light gray) ──────────────────────────────────────────── */
.locations-section { background: #f0f4f8; padding: 5.5rem 0; }
.location-card {
    background: #fff; border-radius: 14px; border: 1px solid var(--border-color);
    overflow: hidden; height: 100%;
    transition: box-shadow .2s;
}
.location-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.location-card-body { padding: 1.75rem 1.75rem 1.5rem; }
.location-card h3 { font-family: 'Figtree', sans-serif; color: var(--text-main); font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; }
.location-card-map { width: 100%; height: 180px; display: block; }
.location-card-map iframe { width: 100%; height: 100%; display: block; border: 0; }
.location-card-footer { padding: 1rem 1.75rem 1.5rem; background: var(--bg-lighter); }

.map-placeholder {
    width: 100%; height: 100%;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}
.map-placeholder:hover {
    background: #e2e8f0;
}

/* ── CTA Banner ──────────────────────────────────────────────────────── */
.cta-banner {
    background-color: var(--brand);
    background-image: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4)), url('../images/cta_bg.webp');
    background-size: cover;
    background-position: center;
    padding: 6rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 35%, var(--brand-light) 0%, transparent 40%),
                      radial-gradient(circle at 80% 65%, var(--brand-dark) 0%, transparent 40%);
    opacity: 0.2;
}
.cta-banner::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.12) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    z-index: 1;
}
.cta-badge {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
    border-radius: 100px; font-size: .72rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: .3rem .9rem; margin-bottom: 1.1rem; color: rgba(255,255,255,.9);
    font-family: 'Figtree', sans-serif; position: relative; z-index: 2;
}
.cta-banner h2 { font-family: 'Figtree', sans-serif; font-weight: 800; color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .75rem; position: relative; }
.cta-banner p  { color: rgba(255,255,255,.82); font-size: 1.05rem; margin-bottom: 2rem; position: relative; }

@media (max-width: 767px) {
    .hero-slider .carousel-item { height: 75vh; }
    .slide-content h1 { font-size: 2rem; }
}
