/* ============================================================
   Carmelo De Grazia — Sitio público
   Diseño profesional para bufete de abogados (responsive)
   ============================================================ */

:root {
    --navy:        #0d2b45;
    --navy-700:    #12395c;
    --blue:        #1a5b8a;
    --blue-600:    #14507c;
    --gold:        #b08d57;
    --gold-600:    #9a794a;
    --ink:         #23303a;
    --muted:       #5c6b78;
    --line:        #e2e7ec;
    --bg:          #f6f7f9;
    --white:       #ffffff;
    --shadow:      0 1px 3px rgba(13, 43, 69, .08), 0 8px 24px rgba(13, 43, 69, .06);
    --radius:      10px;
    --serif:       Georgia, "Times New Roman", "Playfair Display", serif;
    --sans:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --wrap:        1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.25; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.site-header .bar {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
    width: 44px; height: 44px; border-radius: 8px; flex: none;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: #fff; font-family: var(--serif); font-weight: 700; font-size: 20px;
    display: grid; place-items: center;
    box-shadow: var(--shadow);
}
.brand .name { font-family: var(--serif); color: var(--navy); font-weight: 700; font-size: 20px; line-height: 1.1; }
.brand .name small { display: block; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
    color: var(--ink); font-weight: 600; font-size: 15px;
    padding: 9px 15px; border-radius: 7px;
}
.nav a:hover { background: #eef2f6; color: var(--navy); }
.nav a.active { color: var(--blue); }
.nav a.cta {
    background: var(--navy); color: #fff; padding: 9px 18px;
}
.nav a.cta:hover { background: var(--blue); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 55%, var(--blue-600) 100%);
    color: #eaf1f7;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(1200px 400px at 80% -10%, rgba(176, 141, 87, .22), transparent 60%);
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero .eyebrow { color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: 46px; margin: 0 0 18px; }
.hero p { color: #cdd9e4; font-size: 19px; max-width: 46ch; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
    justify-self: center;
    background: #fff; padding: 14px; border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    transform: rotate(2deg);
}
.hero-art img { border-radius: 6px; max-width: 260px; }
/* Cuando el hero muestra una foto real del abogado */
.hero-art.hero-photo { transform: none; padding: 10px; border-radius: 12px; }
.hero-art.hero-photo img {
    width: 300px; max-width: 100%; height: 520px;
    object-fit: cover; object-position: center 20%;
    border-radius: 8px; display: block;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 15px; cursor: pointer;
    padding: 12px 24px; border-radius: 8px; border: 1px solid transparent;
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-600); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: #eef2f6; color: var(--navy); }
.btn-ghost:hover { background: #e2e8ee; color: var(--navy); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.section-head h2 { font-size: 34px; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

/* Bio */
.bio { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.bio .portrait { background: linear-gradient(135deg, var(--navy), var(--blue)); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.bio .portrait img { border-radius: 6px; }
.bio h2 { font-size: 30px; margin: 0 0 8px; }
.bio .role { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; margin-bottom: 20px; }
.bio p { color: #3c4a56; margin: 0 0 16px; }

.credentials { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 40px; }
.cred { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.cred .n { font-family: var(--serif); font-size: 26px; color: var(--blue); font-weight: 700; }
.cred .l { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Article cards */
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(13,43,69,.12); }
.card .ic { width: 42px; height: 42px; border-radius: 8px; background: #eef4f9; color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 18px; flex: 1; }
.card .more { color: var(--blue); font-weight: 600; font-size: 15px; margin-top: auto; }

.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- Article listing page ---------- */
.page-hero {
    background: linear-gradient(120deg, var(--navy), var(--blue-600));
    color: #fff; padding: 60px 0;
}
.page-hero .eyebrow { color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.page-hero h1 { color: #fff; font-size: 40px; margin: 0; }
.page-hero p { color: #cdd9e4; margin: 10px 0 0; max-width: 60ch; }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.85); }

.article-list { display: grid; gap: 16px; }
.article-row {
    display: flex; gap: 20px; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 26px; box-shadow: var(--shadow); transition: box-shadow .15s ease;
}
.article-row:hover { box-shadow: 0 10px 30px rgba(13,43,69,.1); }
.article-row .num { font-family: var(--serif); font-size: 26px; color: var(--gold); font-weight: 700; min-width: 40px; }
.article-row h3 { margin: 0 0 6px; font-size: 20px; }
.article-row h3 a { color: var(--navy); }
.article-row h3 a:hover { color: var(--blue); }
.article-row p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Single article ---------- */
.article {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 48px 56px; margin: -40px auto 0; max-width: 820px;
}
.article h1 { font-size: 34px; margin: 0 0 8px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid var(--gold); }
.article-body { font-size: 17.5px; line-height: 1.85; color: #2c3944; }
.article-body p { margin: 0 0 18px; text-align: justify; }
.article-body h3 { font-size: 20px; color: var(--navy); margin: 34px 0 12px; }
.article-body .footnotes-sep { border: 0; border-top: 1px solid var(--line); margin: 40px 0 20px; }
.article-body .footnotes { font-size: 13.5px; color: var(--muted); line-height: 1.6; padding-left: 18px; }
.article-body .footnotes li { margin-bottom: 8px; }

.article-nav { display: flex; justify-content: space-between; gap: 16px; max-width: 820px; margin: 32px auto 0; }
.article-nav a { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.article-nav a.next { text-align: right; }
.article-nav .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.article-nav .ttl { color: var(--navy); font-weight: 600; font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { background: linear-gradient(135deg, var(--navy), var(--blue-600)); color: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-info h2 { color: #fff; font-size: 24px; margin: 0 0 10px; }
.contact-info p { color: #cdd9e4; margin: 0 0 24px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-info .row svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 3px; }
.contact-info .row .k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.contact-info .row .v { color: #eaf1f7; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 7px; }
.field .req { color: #c0392b; }
.field input, .field textarea {
    width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
    padding: 12px 14px; border: 1px solid #cfd8e0; border-radius: 8px; background: #fbfcfd;
    transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,91,138,.12); background: #fff; }
.field textarea { resize: vertical; min-height: 140px; }
.field .err { color: #c0392b; font-size: 13px; margin-top: 6px; }
.hint { color: var(--muted); font-size: 13px; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; font-size: 15px; }
.alert-success { background: #e7f6ec; color: #1e6b3a; border: 1px solid #b7e2c6; }
.alert-error { background: #fdecea; color: #a5342a; border: 1px solid #f5c6c1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c6d3; padding: 56px 0 28px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; }
.site-footer a { color: #b9c6d3; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand .name { color: #fff; }
.site-footer .brand small { color: var(--gold); }
.site-footer p { font-size: 15px; color: #97a7b6; margin: 14px 0 0; max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #8496a6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #8496a6; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 56px; padding-bottom: 56px; }
    .hero .actions { justify-content: center; }
    .hero-art { display: none; }
    .bio { grid-template-columns: 1fr; }
    .bio .portrait { max-width: 260px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px; gap: 4px; display: none; box-shadow: var(--shadow); }
    .nav.open { display: flex; }
    .nav a { width: 100%; }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 34px; }
    .section-head h2 { font-size: 27px; }
    .article { padding: 32px 22px; }
    .article-nav { flex-direction: column; }
    section { padding: 52px 0; }
}
