@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --monte: #14261B;
  --tierra: #3A2A1D;
  --maiz: #DDA82E;
  --hueso: #F4EFE4;
  --hoja: #6E8B4A;
  --niebla: #9AA394;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --max-w: 1200px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; font-size: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--monte);
  background: var(--hueso);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { opacity: 0.85; }

.surface-monte { background-color: var(--monte); color: var(--hueso); }
.surface-hueso { background-color: var(--hueso); color: var(--monte); }
.surface-tierra { background-color: var(--tierra); color: var(--hueso); }
.surface-hoja { background-color: var(--hoja); color: var(--hueso); }
.surface-maiz { background-color: var(--maiz); color: var(--monte); }

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--maiz);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

h1 { font-size: clamp(2.875rem, 5vw + 1rem, 5.375rem); }
h2 { font-size: clamp(2rem, 3vw + 0.5rem, 3rem); }
h3 { font-size: clamp(1.375rem, 2vw + 0.25rem, 1.75rem); font-weight: 500; }

.hairline {
  border: none;
  border-top: 1px solid var(--maiz);
  margin: 0;
}

.hairline-niebla { border-top-color: var(--niebla); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: var(--hueso);
  color: var(--monte);
  box-shadow: 0 1px 0 rgba(20, 38, 27, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--monte);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--maiz);
}

.site-header:not(.is-scrolled) .logo-mark {
  background: rgba(244, 239, 228, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.main-nav a.is-active { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { filter: brightness(1.05); box-shadow: 0 4px 16px rgba(0,0,0,0.12); opacity: 1; }

.btn-primary {
  background: var(--maiz);
  color: var(--monte);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Hero — Amanecer Llanero */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 38, 27, 0.88) 0%, rgba(20, 38, 27, 0.55) 50%, rgba(20, 38, 27, 0.72) 100%);
  z-index: 1;
}

.hero-top {
  position: relative;
  z-index: 2;
  padding: 2rem 0 1.5rem;
}

.hero-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 6rem;
  max-width: 720px;
}

.hero-content p {
  margin-top: 1.5rem;
  max-width: 560px;
  opacity: 0.85;
  font-size: 1.125rem;
}

.hero-content em { color: var(--maiz); font-style: italic; }

.hero-trust {
  position: relative;
  z-index: 2;
  padding: 1rem 0;
  font-size: 0.75rem;
  color: var(--niebla);
  letter-spacing: 0.04em;
}

/* Sections */
.section { padding: var(--space-xl) 0; }

.section-compact { padding: var(--space-lg) 0; }

.section-header {
  margin-bottom: var(--space-lg);
  max-width: 640px;
}

.section-header p { margin-top: 1rem; }

.texture-hueso {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233A2A1D' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--maiz);
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

/* Pillars grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  padding: 2rem 1.5rem;
  position: relative;
}

.pillar-card .pillar-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  opacity: 0.08;
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  line-height: 1;
}

.pillar-card h3 { margin-bottom: 0.75rem; }
.pillar-card p { font-size: 0.9375rem; }

/* Two column editorial */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.editorial-split.reverse { direction: rtl; }
.editorial-split.reverse > * { direction: ltr; }

.editorial-split img {
  border-radius: 2px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* Product lines preview */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.line-card {
  padding: 2rem 1.5rem 2rem 2rem;
  position: relative;
  border-left: 3px solid var(--maiz);
}

.line-card .line-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  opacity: 0.1;
  position: absolute;
  top: 0.25rem;
  right: 1rem;
}

.line-card h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.line-card p { font-size: 0.9375rem; }

/* FAQ accordion-style (static, no JS hide) */
.faq-list { max-width: 800px; }

.faq-item {
  border-bottom: 1px solid rgba(20, 38, 27, 0.12);
  padding: 1.75rem 0;
}

.faq-item h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: var(--space-lg) 0;
}

.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 560px; margin: 0 auto 2rem; }

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 4rem;
}

.page-hero h1 { margin-top: 1rem; max-width: 720px; }
.page-hero p { margin-top: 1.25rem; max-width: 640px; opacity: 0.9; }

/* Product detail cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.product-card {
  padding: 2.5rem;
  position: relative;
}

.product-card .card-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 600;
  opacity: 0.07;
  position: absolute;
  top: 0;
  right: 1.5rem;
  line-height: 1;
}

.product-card h2 { margin-bottom: 1rem; font-size: 1.5rem; }
.product-card ul { margin: 1rem 0; padding-left: 1.25rem; }
.product-card li { margin-bottom: 0.35rem; }
.product-card .price-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--maiz);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1.5rem;
  align-items: start;
}

.service-card img {
  width: 180px;
  height: 140px;
  object-fit: cover;
  border-radius: 2px;
}

.service-card h3 { margin-bottom: 0.75rem; }
.service-card .service-price { font-size: 0.875rem; font-weight: 600; margin-top: 1rem; color: var(--hoja); }

/* About team */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.about-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info-block { font-size: 0.9375rem; }
.contact-info-block p { margin-bottom: 0.75rem; }
.contact-info-block h3 { margin: 2rem 0 0.75rem; font-size: 1.125rem; }

.contact-info-block img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-top: 2rem;
  border-radius: 2px;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(20, 38, 27, 0.2);
  background: #fff;
  color: var(--monte);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--maiz);
  outline-offset: 1px;
}

.form-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
}

.form-consent input { width: auto; margin-top: 0.25rem; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Legal / prose pages */
.prose { max-width: 760px; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.prose h3 { margin: 2rem 0 0.75rem; font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; }
.prose p, .prose li { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }

.disclaimer-box {
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 0.9375rem;
  border-left: 3px solid var(--maiz);
}

/* Footer */
.site-footer {
  padding: var(--space-lg) 0 var(--space-md);
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: var(--space-md);
}

.footer-brand .logo { margin-bottom: 1rem; color: inherit; }

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { text-decoration: none; font-weight: 600; }

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(244, 239, 228, 0.15);
  font-size: 0.8125rem;
  opacity: 0.85;
}

.site-footer.surface-hueso .footer-bottom { border-top-color: rgba(20, 38, 27, 0.12); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}

.cookie-inner p { flex: 1 1 400px; font-size: 0.875rem; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.cookie-actions button {
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.cookie-actions .btn-accept { background: var(--maiz); color: var(--monte); border-color: var(--maiz); }

.cookie-panel {
  display: none;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 239, 228, 0.2);
}

.cookie-panel.is-open { display: block; }

.cookie-option {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.cookie-option input { width: auto; }

/* Reveal animations */
.js .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

/* Photo band */
.photo-band {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.photo-band-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.photo-band-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 38, 27, 0.75);
}

.photo-band .container { position: relative; z-index: 2; max-width: 640px; }

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
}

.error-page h1 { margin-bottom: 1rem; }
.error-page p { margin-bottom: 2rem; max-width: 480px; margin-inline: auto; }

/* Responsive */
@media (max-width: 960px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .lines-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-split { grid-template-columns: 1fr; gap: 2rem; }
  .editorial-split.reverse { direction: ltr; }
  .product-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 1fr; }
  .service-card img { width: 100%; height: 200px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--hueso);
    color: var(--monte);
    padding: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 1rem; }
  .hero { min-height: 80vh; }
  .lines-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
