*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2a2525;
  background-color: #f5f5f5;
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(90, 6, 6, 0.97);
  backdrop-filter: blur(10px);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #f9e1a4;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.logo-subtitle {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* NAV */

.main-nav {
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  font-size: 0.9rem;
}

.nav-list a {
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-list a:hover {
  background: #f9e1a4;
  color: #5a0606;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.header-whatsapp {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #25d366;
  color: #0f2615;
  font-weight: 600;
  white-space: nowrap;
}

/* HERO */

.hero {
  position: relative;
  min-height: 70vh;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(110deg, rgba(90, 6, 6, 0.88), rgba(90, 6, 6, 0.35)), url("../images/portada.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(243, 204, 114, 0.2), transparent 55%),
              radial-gradient(circle at 90% 80%, rgba(243, 204, 114, 0.18), transparent 55%);
  z-index: -1;
}

.hero-content {
  padding: 6rem 0 4rem;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  margin: 0 0 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.hero-text {
  font-size: 0.98rem;
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: #f9e1a4;
  color: #5a0606;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background: #ffe8b5;
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  border-color: #f9e1a4;
  color: #f9e1a4;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(249, 225, 164, 0.12);
}

.btn.full {
  width: 100%;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.badge {
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(249, 225, 164, 0.5);
}

/* SECTIONS */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #faf4eb;
}

.section-title {
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
  color: #5a0606;
}

.section-intro {
  max-width: 640px;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* CARDS */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card img {
  height: 190px;
  object-fit: cover;
}

.card-body {
  padding: 1.1rem 1.1rem 1.3rem;
  font-size: 0.9rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #5a0606;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* TWO COLS */

.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}

/* ENLACE COMERCIAL VISUAL */

.enlace-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.enlace-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  padding: 0.4rem;
  background-image: radial-gradient(circle at 30% 20%, #ffe8b5, #8b0000);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.enlace-circle img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enlace-note {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7b1111;
}

/* LISTAS */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
}

.feature-list li {
  margin-bottom: 0.4rem;
}

/* GALERÍA */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-item::after {
  content: "Ampliar";
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  color: #fff;
  text-align: right;
}

.gallery-item img {
  height: 170px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.13);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
}

.lightbox img {
  width: 100%;
  border-radius: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f9e1a4;
  color: #5a0606;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

/* REDES */

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  padding: 0.6rem 0.9rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid rgba(90, 6, 6, 0.16);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link::before {
  content: "🔗";
}

.social-embeds iframe {
  border-radius: 1rem;
}

/* MAPA */

.map-wrap {
  margin-top: 2rem;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

/* FORMULARIO */

.contact-form {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: #5a0606;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #c23333;
  box-shadow: 0 0 0 1px rgba(194, 51, 51, 0.2);
}

/* WHATSAPP FLOTANTE */

.whatsapp-floating {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 1100;
  animation: float 2.4s ease-in-out infinite;
}

.whatsapp-floating span {
  font-size: 1.6rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* FOOTER */

.main-footer {
  background: #3b0202;
  color: #f8efe1;
  padding: 1.4rem 0 1.6rem;
  font-size: 0.8rem;
}

.footer-inner {
  text-align: center;
}

.footer-inner a {
  color: #f9e1a4;
  font-weight: 500;
}

/* ANIMACIONES DE ENTRADA */

.fade-in-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .two-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .enlace-visual {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    min-height: 65vh;
  }
}

@media (max-width: 768px) {
  .header-inner {
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: 110%;
    flex-direction: column;
    align-items: flex-start;
    background: #5a0606;
    padding: 0.8rem 1.2rem;
    border-radius: 0.9rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
  }

  .nav-list.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .header-whatsapp {
    display: none;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-text {
    font-size: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-subtitle {
    display: none;
  }
}
