@font-face {
  font-family: 'Zain';
  src: url('../fonts/Zain-Regular.woff2') format('woff2'), url('../fonts/Zain-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Zain';
  src: url('../fonts/Zain-Bold.woff2') format('woff2'), url('../fonts/Zain-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Zain';
  src: url('../fonts/Zain-ExtraBold.woff2') format('woff2'), url('../fonts/Zain-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #e9ebe6;
  --text: #141414;
  --text-muted: #595959;
  --accent: #ddb393;
  --accent-dark: #141414;
  --accent-dark-hover: #333333;
  --accent-soft: #f2e2d3;
  --moon: #ddb393;
  --border: #d9d9d9;
  --mid-gray: #808080;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow: 0 10px 30px -12px rgba(20, 20, 20, 0.14);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Zain', -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; color: var(--text-muted); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 10px 24px -6px rgba(20, 20, 20, 0.45), 0 0 0 4px var(--accent-soft);
}
.btn-primary:hover {
  background: var(--accent-dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(20, 20, 20, 0.5), 0 0 0 5px var(--accent-soft);
}
.btn-primary:active { box-shadow: 0 6px 16px -6px rgba(20, 20, 20, 0.45), 0 0 0 4px var(--accent-soft); }
.btn-ghost {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-1px); }
.btn-sm { padding: 0.6rem 1.35rem; font-size: 0.9rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn-primary:hover, .btn-ghost:hover { transition: none; transform: none; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1rem;
}
.brand-logo { height: 32px; width: auto; }
.nav {
  display: flex;
  gap: 2rem;
  font-weight: 700;
}
.nav a { text-decoration: none; color: var(--text); }
.nav a:hover { color: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero { padding: 3rem 0 4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}
.lead { font-size: 1.15rem; max-width: 42ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.hero-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.95rem;
}
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.fact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 0.9rem; flex-shrink: 0;
}
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
.hero-badge {
  position: absolute;
  left: -1.25rem;
  bottom: -1.25rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 85%;
}
.hero-badge-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.hero-badge div { display: flex; flex-direction: column; line-height: 1.3; }
.hero-badge strong { font-size: 1.05rem; }
.hero-badge span { font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 480px) {
  .hero-badge { left: 0.75rem; bottom: -1rem; padding: 0.75rem 1rem; }
}

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { font-size: 1.05rem; }

/* Bars grid: 12-col bento, like the approved Stitch layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
}
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.bar-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  box-shadow: 0 8px 24px -10px rgba(20,20,20,0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.bar-card:hover { box-shadow: 0 16px 32px -12px rgba(20,20,20,0.18); transform: translateY(-2px); }
.bar-img-wrap { position: relative; }
.bar-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.span-7 img { aspect-ratio: 16 / 9; }
.bar-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
}
.badge-peach { color: var(--accent-dark); }
.badge-amber { color: #8e4e14; }
.badge-green { color: #2f6b4f; }
.bar-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.bar-body p { flex: 1; }
.bar-link {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 0;
  margin: -0.5rem 0 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.bar-link:hover { text-decoration: underline; }

/* Nosotros */
.nosotros-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.nosotros-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.benefits li {
  padding-left: 1.75rem;
  position: relative;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--moon);
}
.benefits strong { color: var(--text); }

/* Form */
.cotizar-wrap { max-width: 760px; }
.quote-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; left: -9999px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
fieldset.field { border: none; padding: 0; margin: 0 0 1.25rem; }
fieldset.field legend { font-weight: 700; padding: 0 0 0.5rem; }
label { font-weight: 700; font-size: 0.95rem; }
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  cursor: pointer;
}
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.form-note { font-size: 0.85rem; margin: 1rem 0 0; }

.contact-strip {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  font-weight: 700;
}
.contact-strip a { text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; min-height: 44px; }
.contact-strip a:hover { color: var(--accent-dark); }
.social-icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* Footer */
.site-footer { background: var(--bg-soft); padding: 3.5rem 0 1.5rem; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo { height: 26px; width: auto; margin-bottom: 0.75rem; }
.site-footer h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.site-footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.site-footer a:hover { color: var(--accent-dark); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.85rem;
}
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.footer-legal p { margin: 0; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 32px; }

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .bento-grid { grid-template-columns: 1fr; }
  .span-7, .span-6, .span-5 { grid-column: span 1; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .checks { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
