:root {
  --bg: #f8f4ef;
  --bg-soft: #efe5dc;
  --surface: #ffffff;
  --text: #35261d;
  --muted: #6d5b4e;
  --primary: #84451f;
  --primary-dark: #6e3818;
  --accent: #906e55;
  --olive: #4f7653;
  --border: rgba(132, 69, 31, 0.12);
  --shadow: 0 20px 50px rgba(53, 38, 29, 0.10);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbf8f4 0%, #f4ede6 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(253, 253, 252, 0.82);
  border-bottom: 1px solid rgba(132, 69, 31, 0.08);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(132, 69, 31, 0.18);
}
.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: .02em;
}
.brand span {
  color: var(--muted);
  font-size: .88rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-nav a {
  color: var(--muted);
  font-weight: 600;
}
.site-nav a:hover { color: var(--primary); }
.menu-toggle {
  display: none;
  border: 0;
  background: var(--surface);
  border-radius: 12px;
  padding: .55rem .8rem;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media {
  background: url('../images/portada.jfif') center center / cover no-repeat;
  transform: scale(1.03);
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(31, 19, 12, 0.68) 0%, rgba(31, 19, 12, 0.36) 38%, rgba(31, 19, 12, 0.18) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 5rem 0;
  max-width: 720px;
  margin-left: 0;
  margin-right: auto;
}
.eyebrow,
.section-tag {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: .95;
  margin: .6rem 0 1rem;
}
.hero-text {
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255,255,255,.92);
}
.hero-actions,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-actions {
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.btn {
  min-height: 52px;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  background: rgba(255,255,255,.08);
}

.section { padding: 5.5rem 0; }
.section-alt { background: linear-gradient(180deg, rgba(200,176,159,.14), rgba(255,255,255,.4)); }
.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}
.section-head.left { margin-bottom: 1rem; }
.section-head h2,
.card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin: .45rem 0 1rem;
}
.section-head p,
.card p { line-height: 1.8; color: var(--muted); }

.split-grid,
.contact-grid,
.video-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.5rem;
  align-items: center;
}
.social-grid { grid-template-columns: 1fr .8fr; }
.cards-grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.card.soft {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,244,239,.92));
}
.image-card { padding: .7rem; overflow: hidden; }
.image-card img {
  border-radius: calc(var(--radius) - 8px);
  height: 100%;
  object-fit: cover;
}
.card h3 {
  margin-top: 0;
  margin-bottom: .7rem;
  font-size: 1.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.gallery-item {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.video-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .8rem;
}
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 20px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.center-card {
  text-align: center;
}
.social-logo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  box-shadow: 0 20px 40px rgba(132, 69, 31, .2);
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.contact-list li { margin-bottom: .9rem; color: var(--muted); }
.contact-list a { color: var(--primary); font-weight: 700; }
.contact-form {
  display: grid;
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: .45rem;
  color: var(--text);
  font-weight: 700;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(132, 69, 31, .18);
  border-radius: 16px;
  padding: 1rem 1rem;
  background: #fff;
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(132,69,31,.14);
  border-color: var(--primary);
}

.site-footer {
  background: #201712;
  color: rgba(255,255,255,.85);
  padding: 1.2rem 0;
}
.footer-wrap {
  display: flex;
  justify-content: center;
  text-align: center;
}
.site-footer a { color: #fff; }

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  min-width: 60px;
  min-height: 60px;
  padding: 0 1rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 20px 45px rgba(37,211,102,.35);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 10, 7, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 100;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .split-grid,
  .contact-grid,
  .video-wrap,
  .social-grid,
  .cards-grid.three,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero { min-height: 78vh; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 1rem;
    right: 1rem;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }
  .site-nav.open { display: flex; }
  .hero-content { max-width: 100%; padding: 6rem 0 4rem; }
  .hero h1 { line-height: 1.02; }
  .split-grid,
  .contact-grid,
  .video-wrap,
  .social-grid,
  .cards-grid.three,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 4.2rem 0; }
  .card { padding: 1.35rem; }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp {
    width: 60px;
    padding: 0;
    justify-content: center;
  }
  .floating-whatsapp::before {
    content: 'W';
    font-size: 1.2rem;
  }
}
