/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: #2b2b2b;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.narrow {
  max-width: 920px;
}

.section {
  padding: 90px 0;
  text-align: center;
  position: relative;
}

.section h2 {
  font-size: 2.3rem;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.section-text {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 1rem;
}

/* COLORES SECCIONES */
.verde {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 30%),
    linear-gradient(135deg, #0f4f3c, #1d6e54);
  color: #ffffff;
}

.verde h2,
.verde p {
  color: #ffffff;
}

.gris {
  background:
    radial-gradient(circle at top left, rgba(15,79,60,0.06), transparent 24%),
    #f3f4f5;
}

/* HEADER PREMIUM */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(9, 46, 35, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  height: 58px;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-menu a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  transition: 0.35s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, #83d8af);
  transition: width 0.35s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: #d8f5e6;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.10);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
}

.lang-flag {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.35s ease;
}

.lang-flag:hover {
  transform: translateY(-2px) scale(1.07);
}

.lang-flag.active {
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.btn-whatsapp {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, #25d366, #18b757);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37,211,102,0.22);
  transition: 0.35s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(37,211,102,0.30);
}

.menu-toggle {
  display: none;
  border: none;
  background: #ffffff;
  color: #0f4f3c;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* HERO PREMIUM */
.hero-logo {
  min-height: 58vh;
  position: relative;
  background:
    radial-gradient(circle at center, rgba(15,79,60,0.10), transparent 50%),
    linear-gradient(180deg, #eef1f1, #e6eaea);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/logo.png') center no-repeat;
  background-size: 80%;
  opacity: 0.18;
  z-index: 1;
  animation: floatLogo 7s ease-in-out infinite;
}

.hero-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.35), rgba(255,255,255,0.08));
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle, rgba(15,79,60,0.10) 1.2px, transparent 1.2px),
    radial-gradient(circle, rgba(40,163,106,0.07) 1.2px, transparent 1.2px);
  background-size: 90px 90px, 120px 120px;
  background-position: 0 0, 40px 60px;
  animation: particlesMove 22s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  padding: 30px 20px;
}

.hero-content h1 {
  font-size: 2.9rem;
  color: #0f4f3c;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  text-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.hero-content p {
  font-size: 1.08rem;
  color: #525252;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-animate {
  animation: heroFade 1.2s ease both;
}

/* BOTONES */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.35s ease;
  background: linear-gradient(135deg, #0f4f3c, #1f7a5c);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15,79,60,0.18);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(15,79,60,0.24);
}

.btn-green {
  background: linear-gradient(135deg, #25d366, #18b757);
  color: #ffffff;
}

.btn-light {
  background: #ffffff;
  color: #0f4f3c;
  box-shadow: 0 12px 24px rgba(0,0,0,0.14);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.90);
}

/* PRODUCTOS */
.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.filtros button {
  background: rgba(255,255,255,0.95);
  color: #0f4f3c;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.35s ease;
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}

.filtros button:hover,
.filtros button.activo {
  background: linear-gradient(135deg, #ffffff, #d8f4e6);
  color: #0f4f3c;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 26px rgba(0,0,0,0.14);
}

.mensaje-productos {
  margin-bottom: 25px;
  color: #e8f5ee;
  font-size: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  padding: 26px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.55);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(40,163,106,0.14), rgba(15,79,60,0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -40%;
  width: 60%;
  height: 220%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.35), transparent);
  transform: rotate(20deg);
  transition: 0.6s ease;
  opacity: 0;
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  left: 120%;
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px) scale(1.025);
  box-shadow: 0 22px 42px rgba(0,0,0,0.16);
}

.card h3 {
  position: relative;
  z-index: 2;
  color: #0f4f3c;
  font-size: 1.06rem;
}

.oculto {
  display: none;
}

/* ESPECIALIDADES */
.grid-especial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card-especial {
  position: relative;
  height: 290px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.card-especial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}


.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7,35,26,0.90), rgba(15,79,60,0.18));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
  transition: 0.4s ease;
}

.overlay h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.overlay p {
  font-size: 0.95rem;
  opacity: 0.95;
}

.card-especial:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0,0,0,0.20);
}

.card-especial:hover img {
  transform: scale(1.09);
}

.card-especial:hover .overlay {
  background:
    linear-gradient(to top, rgba(15,79,60,0.92), rgba(40,163,106,0.22));
}

/* CONTACTO */
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* FOOTER */
.footer {
  background: #082b20;
  color: #ffffff;
  text-align: center;
  padding: 26px 0;
}

/* ANIMACIONES SCROLL PREMIUM */
.reveal {
  opacity: 0;
  transition:
    opacity 1s cubic-bezier(.22,.61,.36,1),
    transform 1s cubic-bezier(.22,.61,.36,1),
    filter 1s cubic-bezier(.22,.61,.36,1);
  filter: blur(8px);
}

.reveal-up {
  transform: translateY(70px);
}

.reveal-left {
  transform: translateX(-70px);
}

.reveal-right {
  transform: translateX(70px);
}

.reveal-scale {
  transform: scale(0.90) translateY(30px);
}

.reveal.active {
  opacity: 1;
  transform: translate(0,0) scale(1);
  filter: blur(0);
}

/* KEYFRAMES */
@keyframes heroFade {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.98);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.01);
  }
}

@keyframes particlesMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(60px);
  }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-especial {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-logo::before {
    background-size: 92%;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-menu {
    width: 100%;
    display: none;
  }

  .nav-menu.open {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0 8px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-logo {
    min-height: 50vh;
  }

  .hero-logo::before {
    background-size: 110%;
    opacity: 0.15;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .container {
    width: 92%;
  }

  .logo img {
    height: 50px;
  }

  .lang-flag {
    width: 40px;
    height: 40px;
  }

  .btn-whatsapp,
  .menu-toggle {
    padding: 10px 13px;
    font-size: 0.92rem;
  }

  .hero-logo {
    min-height: 44vh;
  }

  .hero-logo::before {
    background-size: 130%;
    opacity: 0.13;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .section {
    padding: 72px 0;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .grid,
  .grid-especial {
    grid-template-columns: 1fr;
  }

  .card-especial {
    height: 245px;
  }

  .filtros button {
    width: 100%;
  }

  .hero-buttons,
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-light,
  .btn-outline-light {
    width: 100%;
    text-align: center;
  }
}