/* ============================================
   ESTILOS GLOBALES — NOTARÍA ESTÁTICA
   ============================================ */
:root {
    --primary:   #1a3a5c;
    --accent:    #c9a84c;
    --primary-light: color-mix(in srgb, #1a3a5c 15%, white);
    --accent-light:  color-mix(in srgb, #c9a84c 20%, white);
    --text:      #1e1e1e;
    --text-muted:#666;
    --bg:        #fafaf8;
    --white:     #ffffff;
    --border:    #e2ddd5;
    --shadow:    0 4px 24px rgba(0,0,0,.10);
    --radius:    8px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Source Sans 3', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

/* ---- TOPBAR ---- */
.topbar {
    background: var(--primary);
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    padding: .45rem 0;
}
.topbar-inner {
    max-width: 1200px; margin: auto;
    padding: 0 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: .5rem;
}
.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: var(--accent); }
.topbar i { margin-right: .35rem; color: var(--accent); }

/* ---- HEADER ---- */
header {
    background: var(--white);
    border-bottom: 3px solid var(--accent);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.header-inner {
    max-width: 1200px; margin: auto;
    padding: 1rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo-wrap { display: flex; align-items: center; gap: 1rem; }
.logo-icon {
    width: 52px; height: 52px;
    background: var(--primary);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--accent); font-size: 1.4rem;
    flex-shrink: 0;
}
.logo-text .notaria-label {
    font-size: .72rem; text-transform: uppercase;
    letter-spacing: .12em; color: var(--text-muted); font-weight: 600;
}
.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.3rem; color: var(--primary); line-height: 1.2;
}

/* ---- NAV ---- */
nav ul { list-style: none; display: flex; gap: .1rem; flex-wrap: nowrap; }
nav ul li a {
    font-size: .88rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .07em; color: var(--text);
    padding: .55rem .9rem; border-radius: var(--radius);
    display: block; transition: all .2s;
}
nav ul li a:hover, nav ul li a.active {
    background: var(--primary); color: var(--white);
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: .3s; }

/* ---- FOOTER ---- */
footer {
    background: var(--primary);
    color: rgba(255,255,255,.8);
    margin-top: 5rem;
}
.footer-grid {
    max-width: 1200px; margin: auto;
    padding: 3.5rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}
.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--accent); font-size: 1.05rem;
    margin-bottom: 1rem; padding-bottom: .5rem;
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .88rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col p { font-size: .88rem; line-height: 1.8; }
.footer-col i { color: var(--accent); margin-right: .4rem; width: 16px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center; padding: 1.2rem;
    font-size: .8rem; color: rgba(255,255,255,.45);
    max-width: 1200px; margin: 0 auto;
}
.social-links { display: flex; gap: .6rem; margin-top: .75rem; }
.social-links a {
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%; display: grid; place-items: center;
    color: rgba(255,255,255,.6); font-size: .85rem;
    transition: all .2s;
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); }

/* ---- SHARED ---- */
.container { max-width: 1200px; margin: auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .label {
    display: inline-block; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .15em;
    color: var(--accent); font-weight: 700; margin-bottom: .6rem;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.1rem; color: var(--primary); line-height: 1.25;
}
.section-header p { color: var(--text-muted); margin-top: .75rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.divider { width: 50px; height: 3px; background: var(--accent); margin: 1rem auto 0; }
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.75rem; border-radius: var(--radius);
    font-weight: 600; font-size: .9rem; cursor: pointer;
    transition: all .2s; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--accent); color: var(--primary); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* PAGE HERO */
.page-hero {
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000));
    color: var(--white); padding: 3.5rem 0; text-align: center;
}
.page-hero h1 { font-family: var(--font-heading); font-size: 2.4rem; }
.page-hero p { color: rgba(255,255,255,.7); margin-top: .5rem; }
.breadcrumb {
    display: flex; gap: .5rem; align-items: center; justify-content: center;
    margin-top: 1rem; font-size: .82rem; color: rgba(255,255,255,.5);
}
.breadcrumb a { color: var(--accent); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .topbar-inner { flex-direction: column; text-align: center; font-size: .78rem; }
    .hamburger { display: block; }
    nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
          background: var(--white); border-top: 1px solid var(--border);
          box-shadow: var(--shadow); }
    nav.open { display: block; }
    nav ul { flex-direction: column; padding: 1rem; gap: .25rem; }
    header { position: relative; }
    .header-inner { flex-wrap: wrap; }
    .logo-text h1 { font-size: 1.1rem; }
}
