/* ============================================================
   Site CSS – Dr. Sergio Weiss · Radiología Dental Tucumán
   Sitio público (portal + frontend)
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
    /* Los colores de marca (brand) se definen en red.css, blue.css, etc. */
    
    --text-main:   #0f172a;
    --text-muted:  #64748b;
    --text-secondary: #475569;
    --text-darker:   #374151;
    
    --bg-light:    #f1f5f9;
    --bg-lighter:  #f8fafc;
    
    --border-color: #e8ecf0;
}

.text-brand { color: var(--brand) !important; }
.bg-brand   { background-color: var(--brand) !important; }

/* ── Pages Hero (Shared) ───────────────────────────────────────────────── */
.pages-hero {
    background: var(--brand);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-cta-gradient-end) 100%);
    padding: 3.5rem 0 3rem;
    color: #fff;
    position: relative; overflow: hidden;
}
.pages-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 15% 30%, var(--brand-light) 0%, transparent 40%),
                      radial-gradient(circle at 85% 70%, var(--brand-dark) 0%, transparent 40%);
    opacity: 0.4;
}
.pages-hero::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;
}
.pages-hero .container { position: relative; z-index: 2; }
.pages-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800; color: #fff;
    margin: 1rem 0 .75rem; line-height: 1.15;
}

.pages-hero p.lead, .pages-hero p { color: rgba(255,255,255,.8); margin: 0; font-size: 1.05rem; }
.pages-hero .breadcrumb-item a { color: rgba(255,255,255,.6); text-decoration: none; }
.pages-hero .breadcrumb-item.active { color: rgba(255,255,255,.8); }

@media (max-width: 768px) {
    .pages-hero { padding: 3rem 0 2.5rem; }
    .pages-hero h1 { font-size: 1.85rem; margin: .5rem 0; }
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Noto Sans', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #1e293b;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Figtree', sans-serif;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: .75rem 0;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.navbar-brand {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    color: var(--text-main) !important;
    font-size: 1.05rem;
    display: flex; align-items: center; gap: 0;
    text-decoration: none;
}
.navbar-brand .brand-mark {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    padding-right: .85rem;
    border-right: 1px solid var(--border-color);
}
.navbar-brand .brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.navbar-brand .brand-text { padding-left: .85rem; }
.navbar-brand .brand-text .name { display: block; line-height: 1.1; }
.navbar-brand .brand-text .sub {
    display: block; font-size: .68rem; font-weight: 400;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em;
}

.navbar .dropdown-menu { padding: .5rem; min-width: 240px; }
.navbar .dropdown-item { padding: .55rem .75rem; border-radius: 6px; font-size: .9rem; }
.navbar .dropdown-item:hover { background: var(--brand-bg); color: var(--brand); }

@media (max-width: 576px) {
    .navbar-brand .brand-mark { width: 36px; height: 36px; padding-right: .6rem; }
    .navbar-brand .brand-text { padding-left: .6rem; }
    .navbar-brand .brand-text .name { font-size: .85rem; }
    .navbar-brand .brand-text .sub { font-size: .55rem; letter-spacing: .02em; }
}
.nav-link {
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    color: var(--text-secondary) !important;
    font-size: .9rem;
    padding: .4rem .8rem !important;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.nav-link:hover  { color: var(--brand) !important; background: var(--brand-bg); }
.nav-link.active { color: var(--brand) !important; }

.btn-portal {
    background: var(--brand);
    color: #fff;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: .85rem;
    padding: .45rem 1.1rem;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .4rem;
    transition: background .15s, transform .1s;
    cursor: pointer;
}
.btn-portal:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-brand {
    background: var(--brand); color: #fff;
    font-family: 'Figtree', sans-serif; font-weight: 600;
    border: none; border-radius: 10px; padding: .75rem 1.75rem;
    font-size: 1rem; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
    transition: background .15s, transform .12s, box-shadow .15s;
}
.btn-brand:hover {
    background: var(--brand-dark); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--brand-shadow);
}
.btn-outline-brand {
    background: transparent; 
    color: var(--brand);
    font-family: 'Figtree', sans-serif; font-weight: 600;
    border: 2px solid var(--brand); border-radius: 10px;
    padding: .73rem 1.75rem; font-size: 1rem;
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
    transition: background .15s, color .15s, transform .12s;
}
.btn-outline-brand:hover {
    background: var(--brand); color: #fff;
    transform: translateY(-2px);
}
.btn-outline-light {
    background: transparent; 
    color: #fff;
    font-family: 'Figtree', sans-serif; font-weight: 600;
    border: 2px solid rgba(255,255,255,.6); border-radius: 10px;
    padding: .73rem 1.75rem; font-size: 1rem;
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
    transition: background .15s, border-color .15s, transform .12s;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,.15); color: #fff;
    border-color: #fff; transform: translateY(-2px);
}
.btn-whatsapp {
    background: #25D366 !important; color: #fff !important; 
    font-family: 'Figtree', sans-serif; font-weight: 600;
    border: none; border-radius: 10px; padding: .65rem 1.4rem;
    font-size: .95rem; text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
    transition: background .15s, transform .12s;
}
.btn-whatsapp:hover { background: #1da851; color: #fff; transform: translateY(-1px); }

/* ── Section utilities ──────────────────────────────────────────────────── */
.section-label {
    font-size: .75rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--brand);
    display: block; margin-bottom: .5rem;
}
.section-title {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700; line-height: 1.2;
    color: var(--text-main); margin-bottom: 1rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--text-main);
    color: #94a3b8;
    padding: 3.5rem 0 1.5rem;
}
.site-footer .footer-title {
    font-family: 'Figtree', sans-serif;
    color: var(--bg-light);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.site-footer a { color: #94a3b8; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--bg-light); }
.site-footer .footer-brand {
    font-family: 'Figtree', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-light);
}
.footer-divider  { border-color: rgba(255,255,255,.08); margin: 2rem 0 1rem; }
.footer-copy     { font-size: .8rem; color: #94a3b8; }
.footer-patient-link {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .78rem; font-weight: 600;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 100px;
    padding: .3rem .8rem;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}
.footer-patient-link:hover {
    color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.45);
}

/* ── Info Rows (Shared) ─────────────────────────────────────────────────── */
.loc-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .6rem;
}
.loc-row i {
    color: var(--brand);
    font-size: 1.1rem;
    line-height: 1.45;
    flex-shrink: 0;
}
.loc-row span {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.45;
}
.loc-row.small span { font-size: .85rem; }

/* ── Misc ───────────────────────────────────────────────────────────────── */
.alert { border: none; border-radius: 10px; }

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-bottom: 1rem;
    }
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    .nav-link {
        padding: .85rem 0 !important;
        font-size: .95rem;
        display: flex;
        align-items: center;
        gap: .75rem;
    }
    .nav-link:hover {
        background: transparent;
        color: var(--brand) !important;
    }
    .btn-portal {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        padding: .75rem;
    }
}
