:root {
  --bg: #f8f1e8;
  --bg-soft: #fffaf4;
  --primary: #9a6b3f;
  --primary-dark: #5c3c22;
  --accent: #d8c2a3;
  --text: #433126;
  --muted: #7b6655;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(78, 55, 34, 0.16);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg-soft);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  position: relative;
  background: url('../images/portada.jpg') center/cover no-repeat;
  color: var(--white);
  isolation: isolate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(68, 41, 22, 0.78), rgba(84, 58, 34, 0.38));
  z-index: -1;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
}
.brand strong {
  display: block;
  font-size: 1.1rem;
}
.brand small { color: rgba(255,255,255,0.86); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
}
.nav-links a {
  color: rgba(255,255,255,0.95);
}
.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
  padding: 72px 0 88px;
}
.eyebrow,
.section-tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: inherit;
  font-weight: 800;
  letter-spacing: .03em;
}
.hero h1,
.section-heading h2,
.intro h2,
.video-wrap h2,
.contact-copy h2,
.promo-wrap h2 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.06;
  margin: 18px 0 14px;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.hero p {
  max-width: 620px;
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .25s ease, opacity .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.45);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 88px 0;
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
}
.intro { background: linear-gradient(180deg, var(--bg-soft), #f5eadc); }
.intro h2, .section-heading h2, .video-wrap h2, .contact-copy h2, .promo-wrap h2 { color: var(--primary-dark); font-size: clamp(2rem, 4vw, 3.4rem); }
.intro p, .section-heading p, .video-wrap p, .contact-copy p { color: var(--muted); font-size: 1.05rem; }
.info-card,
.service-card,
.social-card,
.contact-form,
.video-frame {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-card {
  padding: 28px;
}
.info-card h3,
.contact-form h3,
.social-card h3 { margin-top: 0; color: var(--primary-dark); }
.info-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.info-card li + li { margin-top: 10px; }

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 34px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  padding: 24px;
  border: 1px solid rgba(154, 107, 63, 0.1);
}
.service-card h3 { color: var(--primary-dark); margin-top: 0; }
.service-card p { color: var(--muted); margin-bottom: 0; }

.promo-band {
  padding: 32px 0;
  background: linear-gradient(90deg, #eedcc4, #fff6ea);
}
.promo-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.video-section { background: #f5eadc; }
.video-frame {
  overflow: hidden;
  padding: 0;
}
.video-frame iframe {
  width: 100%;
  aspect-ratio: 16/10;
  border: 0;
  display: block;
}

.social-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.social-card,
.contact-form { padding: 26px; }
.social-card p,
.contact-form small { color: var(--muted); }
.social-embed {
  border-radius: 20px;
  overflow: hidden;
  margin: 18px 0 12px;
  background: #f6efe7;
  display: flex;
  justify-content: center;
}
.instagram-fallback {
  background: linear-gradient(135deg, #f7ecdf, #fff8f1);
  border-radius: 20px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  margin: 18px 0 12px;
  text-align: center;
}
.instagram-fallback img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
}
.text-link {
  color: var(--primary);
  font-weight: 800;
}
.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.contact-list a,
.contact-list p {
  background: var(--white);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  color: var(--text);
  margin: 0;
}
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-dark);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dbc7b3;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fffdf9;
}
.contact-form textarea { resize: vertical; }
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  padding: 26px 0;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer a { color: #fff1da; }

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
}
.floating-whatsapp a {
  background: #25d366;
  color: white;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 18px 35px rgba(37, 211, 102, 0.35);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(23, 15, 9, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(980px, 100%);
  max-height: 88vh;
  border-radius: 20px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

@media (max-width: 980px) {
  .hero-content,
  .split,
  .social-grid,
  .contact-grid,
  .cards-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .nav,
  .promo-wrap,
  .footer-wrap,
  .hero-content,
  .split,
  .social-grid,
  .contact-grid,
  .cards-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .nav { align-items: flex-start; }
  .nav-links { gap: 12px; }
  .hero { min-height: auto; }
  .hero-content { padding: 40px 0 64px; }
  .hero-card { order: -1; }
  .gallery-grid,
  .cards-grid,
  .social-grid,
  .contact-grid,
  .split { display: grid; }
  .gallery-grid { grid-template-columns: 1fr; }
  .cards-grid,
  .social-grid,
  .contact-grid,
  .split { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .floating-whatsapp a span { display: inline; }
}
