﻿:root {
  --verde-1: #2f9e44;
  --verde-2: #1d6f34;
  --naranja-1: #ff8f00;
  --naranja-2: #ffb347;
  --crema: #fff7ec;
  --papel: #ffffff;
  --tinta: #1f2a1f;
  --tinta-suave: #536254;
  --borde: rgba(47, 158, 68, 0.18);
  --sombra: 0 18px 45px rgba(22, 37, 23, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--tinta);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 15%, #e8f8e7 0%, #f5f8ef 35%, #fff8ef 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  opacity: 0.3;
}

body::before {
  top: -12vw;
  left: -10vw;
  background: #8ee39a;
}

body::after {
  bottom: -16vw;
  right: -12vw;
  background: #ffd09e;
}

main {
  flex: 1;
  width: min(1180px, 94%);
  margin: 0 auto;
  padding: 44px 0 56px;
  animation: main-enter 700ms ease both;
}

@keyframes main-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2,
h3,
nav a {
  font-family: "Sora", "Segoe UI", sans-serif;
}

p {
  line-height: 1.65;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: min(1200px, 96%);
  margin: 14px auto 0;
  padding: 12px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(
    100deg,
    rgba(56, 178, 74, 0.8) 0%,
    rgba(78, 168, 74, 0.76) 38%,
    rgba(199, 154, 44, 0.72) 62%,
    rgba(242, 154, 31, 0.82) 100%
  );
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 14px 28px rgba(29, 111, 52, 0.22);
  animation: header-drop 650ms ease both;
}

@keyframes header-drop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo img {
  max-height: 68px;
  border-radius: 14px;
  padding: 6px 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.logotipo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logotipo img {
  max-height: clamp(54px, 4.2vw, 72px);
  width: auto;
  filter: drop-shadow(0 6px 10px rgba(141, 84, 14, 0.2));
}

.slogan {
  margin-top: 4px;
  color: #f3fff4;
  font-size: clamp(0.86rem, 1.05vw, 1.08rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

nav a.active {
  background: linear-gradient(180deg, #f2bf61, #e8ad47);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(180, 114, 22, 0.35);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.titulo-seccion {
  margin: 18px 0 20px;
  text-align: center;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  color: #1e6e32;
  letter-spacing: -0.02em;
}

.intro-inicio {
  width: min(860px, 95%);
  margin: 0 auto 30px;
  text-align: center;
  color: var(--tinta-suave);
  font-size: 1.06rem;
}

.videos-grid,
.productos-grid {
  display: grid;
  gap: 22px;
}

.videos-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.productos-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

#productos .productos-grid .producto:nth-child(1) { order: 1; }
#productos .productos-grid .producto:nth-child(2) { order: 2; }
#productos .productos-grid .producto:nth-child(3) { order: 3; }
#productos .productos-grid .producto:nth-child(4) { order: 4; }

.video-card,
.producto,
.card-horarios,
.bloque,
.contacto-container {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: var(--sombra);
}

.video-card,
.producto,
.card-horarios,
.bloque {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover,
.producto:hover,
.card-horarios:hover,
.bloque:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(22, 37, 23, 0.18);
}

.video-card {
  padding: 22px;
}

.video-card h3 {
  color: var(--verde-2);
  margin-bottom: 8px;
}

.video-card p {
  color: var(--tinta-suave);
  margin-bottom: 12px;
}

.bloque {
  display: flex;
  gap: 28px;
  margin: 28px 0;
  padding: 28px;
  align-items: center;
}

.bloque.invertido {
  flex-direction: row-reverse;
}

.texto {
  flex: 1;
}

.imagen {
  flex: 1;
  display: flex;
  justify-content: center;
}

.imagen img {
  width: 100%;
  max-width: 330px;
  border-radius: 16px;
  border: 4px solid rgba(255, 143, 0, 0.3);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  transition: transform 0.35s ease;
}

.imagen img:hover {
  transform: scale(1.03) rotate(-0.4deg);
}

.producto {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-align: center;
  min-height: 420px;
}

.producto img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--borde);
  margin-bottom: 12px;
}

.producto h3 {
  color: var(--naranja-1);
  margin: 8px 0;
}

.producto ul {
  list-style: none;
  color: var(--tinta-suave);
  margin-bottom: 14px;
}

.precios {
  width: 100%;
  margin: 8px 0 16px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(130deg, #fff9f0, #fffbf7);
  border: 1px solid rgba(255, 143, 0, 0.2);
}

.producto .precios {
  margin-top: auto;
}

.precios p {
  font-weight: 700;
  margin-bottom: 8px;
  color: #6f4a1b;
}

.precios ul li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  margin: 4px 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f8e4cb;
}

.precios strong {
  color: #c15e00;
}

.btn-whatsapp,
.btn-ver-video {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(110deg, var(--verde-1), #46be5c);
  box-shadow: 0 10px 18px rgba(47, 158, 68, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.producto .btn-whatsapp {
  align-self: center;
}

.btn-whatsapp:hover,
.btn-ver-video:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 22px rgba(47, 158, 68, 0.35);
  filter: saturate(1.1);
}

.contacto {
  padding: 18px 0;
}

.contacto-container {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 24px;
  text-align: center;
}

.contacto h2 {
  color: var(--verde-2);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 10px;
}

.contacto-container > p {
  color: var(--tinta-suave);
}

.contacto-info {
  display: inline-block;
  text-align: left;
  margin: 18px 0 10px;
}

.contacto-info p {
  margin: 8px 0;
}

.contacto-info i {
  margin-right: 8px;
  color: var(--verde-1);
}

.contacto-info a,
.social-links a {
  color: #cf6b00;
  font-weight: 700;
  text-decoration: none;
}

.contacto-info a:hover,
.social-links a:hover {
  color: var(--verde-2);
}

.social-links {
  margin-top: 8px;
}

.social-links a {
  display: inline-block;
  margin: 8px 10px;
}

.horarios-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.card-horarios {
  flex: 1 1 300px;
  max-width: 420px;
  padding: 20px;
}

.card-horarios h3 {
  color: #204f2a;
  text-align: center;
  margin-bottom: 12px;
}

.horario-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #d8e7d8;
}

.horario-row:last-child {
  border-bottom: 0;
}

.dia {
  color: #2b4b31;
  font-weight: 700;
}

.hora {
  color: #5a6c5d;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  padding: 18px;
  justify-content: center;
  align-items: center;
  background: rgba(10, 12, 11, 0.9);
  backdrop-filter: blur(4px);
}

.modal-content {
  width: min(440px, 94vw);
  max-height: calc(100vh - 36px);
  background: #0e1510;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.modal video {
  width: 100%;
  max-height: calc(100vh - 86px);
  object-fit: contain;
  display: block;
  background: #000;
  border-radius: 10px;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 30;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .whatsapp-float {
  opacity: 0;
  pointer-events: none;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 80px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(130deg, #2fb14f, #1d8b3a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.9rem;
  box-shadow: 0 16px 24px rgba(22, 71, 33, 0.32);
  animation: pulse-whatsapp 2.6s infinite;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 177, 79, 0.42);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(47, 177, 79, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 177, 79, 0);
  }
}

footer {
  background: linear-gradient(100deg, #2d9842, #1f7a34);
  color: #fff;
  text-align: center;
  padding: 20px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--stagger, 0ms);
}

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

@media (min-width: 901px) {
  header {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 24px;
    align-items: center;
    min-height: 102px;
  }

  .logo-group {
    align-self: center;
  }

  nav {
    justify-self: end;
    align-self: center;
  }
}

@media (max-width: 900px) {
  header {
    width: min(96%, 720px);
    flex-direction: column;
    padding: 12px;
    background: linear-gradient(
      108deg,
      rgba(47, 159, 67, 0.82) 0%,
      rgba(61, 147, 69, 0.76) 56%,
      rgba(126, 131, 54, 0.72) 82%,
      rgba(180, 136, 47, 0.78) 100%
    );
  }

  .logo-group {
    width: 100%;
    justify-content: flex-start;
  }

  .logo img {
    max-height: 62px;
  }

  .logotipo img {
    max-height: clamp(48px, 9vw, 62px);
  }

  .slogan {
    font-size: 0.92rem;
  }

  nav {
    width: 100%;
  }

  nav ul {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  nav a.active {
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 6px 12px rgba(23, 46, 29, 0.2);
  }

  .bloque,
  .bloque.invertido {
    flex-direction: column;
    text-align: center;
  }

  .imagen img {
    max-width: 260px;
  }
}

@media (max-width: 680px) {
  main {
    width: min(96%, 640px);
    padding-top: 28px;
  }

  header {
    background: linear-gradient(
      118deg,
      rgba(47, 153, 65, 0.84) 0%,
      rgba(50, 127, 62, 0.76) 62%,
      rgba(63, 111, 58, 0.72) 100%
    );
  }

  .logo-group {
    gap: 12px;
  }

  .logo img {
    max-height: 54px;
  }

  .logotipo img {
    max-height: 46px;
  }

  .logotipo {
    padding: 4px 10px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
  }

  .slogan {
    font-size: 0.82rem;
  }

  nav ul {
    flex-direction: column;
    gap: 6px;
  }

  nav a {
    width: 100%;
  }

  nav a.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.26);
  }

  .productos-grid {
    grid-template-columns: 1fr;
  }

  .producto img {
    height: 220px;
  }

  .btn-whatsapp,
  .btn-ver-video {
    width: 100%;
    text-align: center;
  }

  .modal {
    padding: 10px;
  }

  .modal-content {
    width: min(430px, 96vw);
  }

  .modal video {
    max-height: calc(100vh - 74px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-in,
  .fade-in.visible {
    opacity: 1;
    transform: none;
  }
}
