:root {
    --primary: #1d4ed8;
    --primary-dark: #1e3a8a;
    --accent: #f59e0b;
    --text: #0f172a;
    --muted: #64748b;
    --bg: #ffffff;
    --bg-alt: #f1f5f9;
    --border: #e2e8f0;
    --error: #dc2626;
    --ok: #15803d;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

/* Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 600; cursor: pointer;
    transition: transform .15s ease, background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(29, 78, 216, .35); outline-offset: 2px;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(29, 78, 216, .3); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-small { padding: .5rem 1.1rem; background: var(--accent); color: var(--text); }
.btn-small:hover { color: var(--text); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--text);
    box-shadow: 0 4px 20px rgba(15, 23, 42, .15);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { color: #fff; font-weight: 500; opacity: .9; }
.site-nav a:not(.btn):hover { opacity: 1; color: var(--accent); text-decoration: none; }
.site-nav a.btn-small { opacity: 1; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
    color: #fff;
    background:
        linear-gradient(120deg, rgba(15, 23, 42, .9), rgba(30, 58, 138, .75)),
        url("img/banner-inicial/estacionamientos.jpg") center / cover no-repeat;
    padding: clamp(4rem, 9vw, 7rem) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.1rem; opacity: .92; }
.hero .lead a { color: var(--accent); }
.hero-photo img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); width: 100%; object-fit: cover; }
.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .12em; color: var(--primary); margin-bottom: .75rem;
}
.hero .eyebrow { color: var(--accent); }

/* Secciones */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { margin-bottom: .5rem; }
.address { font-size: 1.25rem; font-weight: 600; color: var(--primary); margin-top: 1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow); text-align: center; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); }
.card h3 { color: var(--muted); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.card .big { font-size: 1.6rem; font-weight: 700; color: var(--text); margin: 0; }

/* Mapa */
.map iframe { border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 280px; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* Contacto */
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a { font-weight: 600; color: var(--text); word-break: break-word; }

.form {
    background: var(--bg); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow); border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-size: .9rem; font-weight: 600; margin-bottom: .4rem; }
.field-error { color: var(--error); font-size: .85rem; font-weight: 500; margin: 0 0 .4rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field input, .field select, .field textarea {
    font: inherit; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 10px;
    background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.counter { align-self: flex-end; color: var(--muted); font-size: .8rem; margin-top: .3rem; }

/* Honeypot oculto fuera de pantalla */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 1rem 0 0; font-size: .95rem; min-height: 1.5em; text-align: center; }
.status.ok { color: var(--ok); font-weight: 600; }
.status.error { color: var(--error); }

.spinner {
    width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
    border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer { background: var(--text); color: rgba(255, 255, 255, .7); text-align: center; padding: 2rem 0; font-size: .9rem; }

/* Modal de resultado */
[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); backdrop-filter: blur(3px); }
.modal-box {
    position: relative; width: min(420px, calc(100% - 2rem)); background: var(--bg);
    border-radius: var(--radius); padding: 2.25rem 2rem 2rem; text-align: center;
    box-shadow: 0 25px 60px rgba(15, 23, 42, .3); animation: pop .25s ease;
}
.modal-box h3 { margin-bottom: .5rem; }
.modal-box p { color: var(--muted); margin: 0; }
.modal-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem;
    display: grid; place-items: center; color: #fff; font-size: 2rem; font-weight: 700;
}
.modal-icon.ok { background: var(--ok); }
.modal-icon.error { background: var(--error); }
.modal-error {
    margin-top: 1rem; padding: .75rem 1rem; border-radius: 10px; font-size: .9rem;
    background: #fef2f2; color: var(--error) !important; text-align: left;
}
.modal-box .btn { margin-top: 1.5rem; min-width: 160px; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* Reveal al hacer scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
    .hero-inner, .split, .form-row { grid-template-columns: 1fr; }
    .contact > .contact-info { order: 2; }
    .menu-toggle { display: block; }
    .site-nav {
        position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        gap: 0; background: var(--text); padding: 1rem 1.25rem;
        transform: translateY(-120%); opacity: 0; pointer-events: none; transition: .25s ease;
    }
    .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .site-nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .site-nav a.btn-small { border: 0; margin-top: .75rem; justify-content: center; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
