:root {
  --carbon: #1F2933;
  --carbon-2: #2B3742;
  --bone: #F5F3EE;
  --white: #fff;
  --accent: #E07B1A;
  --accent-dark: #B85A0C;
  --text: #2B3742;
  --muted: #667380;
  --radius: 14px;
  --header-h: 96px;
  --shadow: 0 10px 30px rgba(31, 41, 51, .12);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; font-family: "Manrope", system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.65; }
h1, h2, h3 { font-family: "Sora", "Manrope", sans-serif; line-height: 1.15; color: var(--carbon); margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); color: var(--white); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent-dark); margin: 0 0 .8rem; }
.eyebrow-light, .hero .eyebrow { color: #F0B27A; }
.lead { font-size: 1.15rem; max-width: 40ch; color: #E6EAEE; }
.section-lead { color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn { display: inline-block; background: var(--accent-dark); color: var(--white); text-decoration: none; font-weight: 600; padding: .85rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; transition: background .2s, transform .2s; }
.btn:hover { background: #9C4A08; transform: translateY(-1px); }
.btn-small { padding: .55rem 1.1rem; }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(31,41,51,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--carbon); }
.brand-logo { height: 72px; width: auto; display: block; }
.brand-tag { display: none; font-size: .8rem; line-height: 1.25; color: var(--muted); border-left: 1px solid #D5DAE0; padding-left: .9rem; }
.menu { display: flex; align-items: center; gap: 1.3rem; font-size: .95rem; }
.menu a { white-space: nowrap; color: var(--carbon); text-decoration: none; font-weight: 500; }
.menu a:not(.btn):hover { color: var(--accent-dark); }
.menu a.btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--carbon); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; background: var(--carbon); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #2B3742, #1F2933) ; background-image: linear-gradient(90deg, rgba(31,41,51,.92) 25%, rgba(31,41,51,.35)), url('img/full/obra-06.jpg'); background-size: cover; background-position: center; }
.hero-inner { position: relative; padding: 80px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Stats */
.stats { background: var(--bone); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2rem 0; text-align: center; }
.stats strong { display: block; font-family: "Sora", sans-serif; font-size: 1.8rem; color: var(--carbon); }
.stats span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bone); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card-img, .split-img, .gallery figure { background: var(--carbon-2) var(--img) center / cover no-repeat; }
.card-img { aspect-ratio: 4 / 3; }
.card-body { padding: 1.5rem; }
.link { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-img { border-radius: var(--radius); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checks li { padding-left: 1.8rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chip { font: inherit; font-weight: 600; font-size: .9rem; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid #D5DAE0; background: var(--white); color: var(--carbon); cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--carbon); border-color: var(--carbon); color: var(--white); }
.gallery { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery li[hidden] { display: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--carbon-2); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.05); }

/* Lightbox */
#lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
#lightbox::backdrop { background: rgba(15, 20, 25, .92); }
#lightbox[open] { display: grid; place-items: center; }
#lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.14); color: var(--white); border: 0; border-radius: 999px; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* CTA / form */
.cta { background: var(--carbon); color: #E6EAEE; padding: 88px 0; }
.cta h2 { color: var(--white); }
.contact-lines { display: grid; gap: .5rem; margin-top: 1.5rem; }
.contact-lines a { text-decoration: none; font-weight: 600; }
.contact-lines a:hover { color: #F0B27A; }
.form { background: var(--white); color: var(--text); padding: 2rem; border-radius: var(--radius); display: grid; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea { font: inherit; padding: .7rem .8rem; border: 1.5px solid #D5DAE0; border-radius: 10px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form input.invalid { border-color: #C0392B; }
.form-note { margin: 0; font-size: .8rem; color: var(--muted); }

.site-footer { background: #171F26; color: #9AA5B1; padding: 1.5rem 0; font-size: .85rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.foot p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section, .cta { padding: 64px 0; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .menu { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); box-shadow: var(--shadow); padding: .5rem 16px 1.2rem; display: none; }
  .menu.open { display: flex; }
  .menu a { padding: .8rem 0; border-bottom: 1px solid #E5E8EC; }
  .menu .btn { text-align: center; margin-top: .8rem; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 480px) { :root { --header-h: 80px; } .brand-tag { display: none; } .brand-logo { height: 60px; } }

.card-list { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.card-list li::marker { color: var(--accent); }

/* Páginas interiores */
.card-img { display: block; }
.menu a[aria-current="page"]:not(.btn) { color: var(--accent-dark); box-shadow: 0 2px 0 var(--accent); }
.page-hero { background: linear-gradient(90deg, rgba(31,41,51,.94) 30%, rgba(31,41,51,.55)), var(--img) center / cover no-repeat, var(--carbon); padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .4em; }
.page-hero .lead { margin: 0; }
.breadcrumb { font-size: .85rem; color: #C5CCD3; margin-bottom: 1.2rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: #F0B27A; }
.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem 3rem; }
.block h3 { padding-bottom: .6rem; border-bottom: 1px solid #E5E8EC; }
.block p { color: var(--muted); }
.actions { margin: 2.5rem 0 0; }
.more { margin: 2rem 0 0; color: var(--muted); }
.more a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.more a:hover { text-decoration: underline; }
.gallery.preview a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--carbon-2); }
.gallery.preview a:hover img { transform: scale(1.05); }

/* Legales y formulario */
.page-hero-plain { background: var(--carbon); padding: 56px 0 48px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose a { color: var(--accent-dark); overflow-wrap: anywhere; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .85rem; }
.form .check input { margin-top: .25rem; flex: none; }
.form .check a { color: var(--accent-dark); }
.form .check.invalid span { color: #C0392B; }

.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.form-actions .btn { flex: 1 1 200px; text-align: center; }
.btn-outline { background: transparent; color: var(--accent-dark); border: 2px solid var(--accent-dark); }
.btn-outline:hover { background: var(--accent-dark); color: var(--white); }
.form-note a { color: var(--accent-dark); font-weight: 600; }

.via { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.via legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: .4rem; }
.via label { display: flex; align-items: center; gap: .4rem; font-weight: 500; cursor: pointer; }
.via input { accent-color: var(--accent-dark); width: 1.1rem; height: 1.1rem; }
.form-actions .btn:disabled { background: #E5E8EC; border-color: #E5E8EC; color: #9AA5B1; cursor: not-allowed; transform: none; }
