/* ==========================================================================
   LO DE BETO — Sistema de diseño
   Paleta: blanco cálido de fondo, tinta verde-negra, acento salvia (vegetación
   correntina) y acento ladrillo (quincho / parrilla), usado con moderación.
   Tipografía: Fraunces (display, con carácter) + Work Sans (texto) +
   IBM Plex Mono (detalles pequeños, estilo "estampilla postal").
   ========================================================================== */

:root {
  --white:    #FAFAF8;
  --paper:    #FFFFFF;
  --ink:      #22261F;
  --ink-soft: #565C4E;
  --sage:     #5B6E4F;
  --sage-dark:#414F39;
  --clay:     #9C4A26;
  --line:     #E4E1D5;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE5A;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max-width: 1120px;
  --radius: 2px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

.section { padding: 96px 0; }
.section-tint { background: #F3F1E9; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0 0 .8em;
}
.lead {
  max-width: 56ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary {
  background: var(--sage-dark);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  margin-top: 8px;
}
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: .92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--sage-dark);
  transition: right .25s var(--ease);
}
.nav-links a:hover::after { right: 0; }

.nav-cta { padding: 10px 22px; font-size: .88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #7C8A6C 0%, #4F5E43 55%, #2E3A28 100%);
  background-size: cover;
  background-position: center;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,38,31,.05) 0%, rgba(34,38,31,.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-bottom: 88px;
  padding-top: 140px;
}
.hero-content .eyebrow { color: #D9E0C9; }
.hero-content h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); color: var(--white); }
.hero-info { font-size: 1.05rem; color: #E7E5D8; margin-bottom: 1.6em; }

/* Stamp / postal badge — signature element */
.stamp {
  position: absolute;
  top: -96px;
  right: 0;
  width: 108px; height: 108px;
}
.stamp-ring {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  animation: spin 26s linear infinite;
}
.stamp-ring svg { width: 100%; height: 100%; }
.stamp-ring path { stroke: #D9E0C9; stroke-dasharray: 2 4; }
.stamp-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .06em;
  color: #D9E0C9;
  padding: 22px;
  object-fit: cover; /* Hace que la imagen llene el contenedor */
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .stamp { display: none; } }


/* -------------------- Cards (sobre la casa) -------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}
.card {
  background: var(--white);
  padding: 40px 32px;
  transition: background-color .3s var(--ease);
}
.card:hover { background: var(--paper); }
.card-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  color: var(--sage-dark);
  margin-bottom: 20px;
}
.card-icon svg { width: 100%; height: 100%; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* -------------------- Carousels -------------------- */
.gallery-title {
  margin-top: 56px;
  margin-bottom: 20px;
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.gallery-title:first-of-type { margin-top: 0; }

.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 auto;
  width: min(72vw, 420px);
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: var(--radius);
  background: var(--line);
}
.carousel-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.carousel-item:hover img { transform: scale(1.06); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.carousel-btn:hover { background: var(--sage-dark); color: var(--white); }
.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }
@media (max-width: 640px) { .carousel-btn { display: none; } }

/* -------------------- Servicios -------------------- */
.services-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 32px;
}
.services-grid li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
  font-size: .98rem;
}
.services-grid li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--clay);
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* -------------------- Videos -------------------- */
.video-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-slot {
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--ink-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .85rem;
  text-align: center;
  padding: 16px;
}
.video-grid video { width: 100%; border-radius: var(--radius); }
@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* -------------------- Restricciones -------------------- */
.restrictions-panel {
  border: 1px solid var(--clay);
  padding: 40px;
}
.restrictions-panel h2 { margin-bottom: .6em; }
.restrictions-list { margin-top: 20px; }
.restrictions-list li {
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
}
.restrictions-list li:first-child { border-top: none; }
.restrictions-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--clay);
  font-family: var(--font-mono);
}

/* -------------------- Ubicación -------------------- */
.map-frame {
  margin: 40px 0 8px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.map-frame iframe { display: block; filter: grayscale(15%); }

/* -------------------- Reseñas -------------------- */
.review-grid {
  margin: 40px 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.review-card {
  margin: 0;
  padding: 32px;
  background: var(--paper);
  border-left: 2px solid var(--sage-dark);
}
.review-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}
.review-card cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* -------------------- FAQ -------------------- */
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--sage-dark);
  transition: transform .25s var(--ease);
  margin-left: 16px;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

/* -------------------- CTA final -------------------- */
.cta-section { text-align: center; }
.cta-section .lead { margin: 0 auto 2em; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--ink);
  color: #C9CDBF;
  padding: 56px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: .2em;
}
.footer-grid p { margin: 0 0 .3em; font-size: .92rem; }

/* -------------------- Floating WhatsApp -------------------- */
#whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(34,38,31,.25);
  z-index: 200;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
#whatsapp-float svg { width: 30px; height: 30px; }
#whatsapp-float:hover { background: var(--whatsapp-dark); transform: scale(1.07); }
#whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  opacity: .5;
  animation: pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .45; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* -------------------- Scroll reveal -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
