@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  --verde: #00ff29;
  --verde-oscuro: #00c821;
  --negro: #000;
  --negro-suave: #101010;
  --gris: #202020;
  --blanco: #fff;
  --texto-suave: #cfcfcf;
  --sombra: 0 18px 45px rgba(0, 0, 0, 0.18);
  --radio: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  color: #151515;
  background: #f4f4f4;
}

body.modal-abierto {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--negro);
  border-bottom: 1px solid rgba(0, 255, 41, 0.2);
}

.header__container {
  width: min(1400px, 100%);
  min-height: 86px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
}

.menu a {
  color: var(--verde);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

.menu a:hover {
  color: var(--blanco);
  transform: translateY(-2px);
}

.redes-sociales {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.redes-sociales a {
  display: grid;
  place-items: center;
  color: var(--verde);
  text-decoration: none;
  font-size: 23px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.redes-sociales a:hover {
  color: var(--blanco);
  transform: translateY(-3px) scale(1.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--verde);
  border-radius: 10px;
  color: var(--verde);
  background: transparent;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 520px;
  padding: 90px 24px;
  display: grid;
  place-items: center;
  text-align: center;
 background:
    linear-gradient(rgba(0, 0, 0, 0.505), rgba(0, 0, 0, 0.938)),
    url('/img/fondotienda.png') center / cover no-repeat;
}

.hero__contenido {
  width: min(1000px, 100%);
}

.hero__etiqueta {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--verde);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero h1 {
  margin: 0;
  color: var(--verde);
  font-size: clamp(48px, 8vw, 102px);
  font-weight: 900;
  line-height: 0.98;
  overflow-wrap: break-word;
}

.hero p {
  max-width: 760px;
  margin: 28px auto 36px;
  color: var(--blanco);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.boton {
  min-height: 50px;
  padding: 14px 24px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.boton:hover {
  transform: translateY(-3px);
}

.boton--principal {
  color: var(--negro);
  background: var(--verde);
  box-shadow: 0 12px 30px rgba(0, 255, 41, 0.25);
}

/* PRODUCTOS */
.productos {
  padding: 90px 7%;
  background: #f5f5f5;
}

.seccion-encabezado {
  max-width: 850px;
  margin: 0 auto 55px;
  text-align: center;
}

.seccion-encabezado span {
  color: #0cad27;
  font-weight: 800;
  letter-spacing: 2px;
}

.seccion-encabezado h2 {
  margin: 8px 0 12px;
  color: #111;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.05;
}

.seccion-encabezado p {
  color: #555;
  line-height: 1.7;
}

.productos-grid {
  width: min(1250px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.producto {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.2);
}

.producto__imagen {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: hidden;
  background: #f7f7f7;
}

.producto__imagen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.producto:hover .producto__imagen img {
  transform: scale(1.05);
}

.producto__etiqueta {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #000;
  background: var(--verde);
  font-size: 12px;
  font-weight: 900;
}

.producto__contenido {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.producto__contenido h3 {
  margin: 0 0 10px;
  color: #111;
  font-size: 20px;
  line-height: 1.35;
}

.producto__contenido p {
  min-height: 76px;
  margin: 0 0 24px;
  color: #626262;
  font-size: 14px;
  line-height: 1.7;
}

.producto__pie {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.producto__pie strong {
  color: #111;
  font-size: 20px;
}

.boton-comprar {
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 9px;
  color: #000;
  background: var(--verde);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.boton-comprar:hover {
  background: #57ff70;
  transform: scale(1.04);
}

/* CONFIANZA */
.confianza {
  padding: 35px 7%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  background: #111;
}

.confianza article {
  min-width: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(0, 255, 41, 0.35);
  border-radius: 14px;
}

.confianza i {
  color: var(--verde);
  font-size: 32px;
}

.confianza h3 {
  margin: 0 0 5px;
  color: var(--verde);
}

.confianza p {
  margin: 0;
  color: #d8d8d8;
  font-size: 14px;
  line-height: 1.6;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.activo {
  display: grid;
}

.modal__fondo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.modal__contenido {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px;
  border: 2px solid var(--verde);
  border-radius: 20px;
  background: #111;
  box-shadow: 0 0 55px rgba(0, 255, 41, 0.22);
}

.modal__cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #272727;
  font-size: 20px;
  cursor: pointer;
}

.resumen-producto {
  padding-right: 42px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 24px;
}

.resumen-producto img {
  width: 150px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.resumen-producto span {
  color: var(--verde);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.resumen-producto h2 {
  margin: 5px 0 8px;
  color: #fff;
  font-size: 27px;
}

.resumen-producto p {
  margin: 0 0 8px;
  color: #cfcfcf;
  line-height: 1.6;
}

.resumen-producto strong {
  color: var(--verde);
  font-size: 22px;
}

.form-compra {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.campo {
  min-width: 0;
}

.campo:nth-of-type(4) {
  grid-column: 1 / -1;
}

.campo label {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.campo input,
.campo textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #4a4a4a;
  border-radius: 9px;
  outline: none;
  color: #fff;
  background: #1d1d1d;
}

.campo input:focus,
.campo textarea:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(0, 255, 41, 0.1);
}

.campo textarea {
  resize: vertical;
}

.aceptacion,
.acciones-compra,
.nota-pago {
  grid-column: 1 / -1;
}

.aceptacion {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #d9d9d9;
  font-size: 13px;
  line-height: 1.6;
}

.aceptacion input {
  margin-top: 4px;
  accent-color: var(--verde);
}

.acciones-compra{
    display:flex;
}

.boton--whatsapp{
    width:100%;
    justify-content:center;
    min-height:55px;
    font-size:18px;
}

.boton--whatsapp {
  color: #fff;
  background: #1ebe5d;
}

.boton--pago {
  color: #000;
  background: var(--verde);
}

.nota-pago {
  margin: 0;
  color: #a9a9a9;
  text-align: center;
  font-size: 12px;
}

/* FOOTER */
.footer {
  padding: 45px 7% 20px;
  color: #fff;
  background: #000;
}

.footer__contenido {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.footer__contenido img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.footer h2 {
  margin: 0 0 5px;
  color: var(--verde);
}

.footer p {
  margin: 0;
  color: #d1d1d1;
}

.footer__redes {
  display: flex;
  gap: 20px;
}

.footer__redes a {
  color: var(--verde);
  font-size: 24px;
}

.footer__copy {
  margin-top: 30px !important;
  padding-top: 18px;
  border-top: 1px solid #2a2a2a;
  text-align: center;
  font-size: 13px;
}

/* TABLET */
@media (max-width: 1050px) {
  .header__container {
    gap: 18px;
  }

  .menu {
    gap: 18px;
  }

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

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

/* CELULAR */
@media (max-width: 760px) {
  .header__container {
    min-height: 72px;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
  }

  .logo img {
    width: 52px;
    height: 52px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    justify-self: center;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    flex-direction: column;
    gap: 0;
    background: #080808;
    border-top: 1px solid rgba(0, 255, 41, 0.2);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .menu.abierto {
    max-height: 380px;
    padding: 12px 18px 18px;
  }

  .menu a {
    width: 100%;
    padding: 13px 0;
    text-align: center;
    border-bottom: 1px solid #202020;
  }

  .redes-sociales {
    gap: 12px;
  }

  .redes-sociales a {
    font-size: 20px;
  }

  .hero {
    min-height: 430px;
    padding: 70px 18px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 68px);
  }

  .hero p {
    font-size: 16px;
    line-height: 1.65;
  }

  .productos {
    padding: 65px 16px;
  }

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

  .producto__contenido p {
    min-height: auto;
  }

  .confianza {
    padding: 28px 16px;
  }

  .confianza article {
    align-items: flex-start;
  }

  .modal {
    padding: 10px;
  }

  .modal__contenido {
    max-height: calc(100vh - 20px);
    padding: 25px 18px;
    border-radius: 15px;
  }

  .resumen-producto {
    padding-right: 0;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .resumen-producto img {
    width: 130px;
    height: 105px;
    margin: 0 auto;
  }

  .form-compra {
    grid-template-columns: 1fr;
  }

  .campo:nth-of-type(4),
  .aceptacion,
  .acciones-compra,
  .nota-pago {
    grid-column: auto;
  }

  .acciones-compra {
    grid-template-columns: 1fr;
  }

  .footer__contenido {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .header__container {
    padding: 9px 10px;
  }

  .redes-sociales {
    gap: 8px;
  }

  .redes-sociales a {
    font-size: 18px;
  }

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

  .boton-comprar {
    width: 100%;
  }
}

.producto {
  position: relative;
  z-index: 1;
}

.producto__contenido {
  position: relative;
  z-index: 5;
}

.producto__pie {
  position: relative;
  z-index: 10;
}

.boton-comprar {
  position: relative;
  z-index: 20;

  pointer-events: auto;
  touch-action: manipulation;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.producto__imagen {
  position: relative;
  z-index: 1;
}

.producto__imagen::before,
.producto__imagen::after {
  pointer-events: none;
}

@media screen and (max-width: 760px) {
  .producto__pie {
    width: 100%;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .boton-comprar {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* =========================================================
   CORRECCIONES FINALES PARA TIENDA RESPONSIVA
========================================================= */
.productos-grid{align-items:stretch;}
.producto__contenido h3,.producto__contenido p{overflow-wrap:anywhere;}
@media (max-width:760px){
  .hero{
    min-height:0;
    padding:64px 16px;
    background:
      linear-gradient(rgba(0,0,0,.34),rgba(0,0,0,.84)),
      url('/img/fondotienda.png') center top / 100% auto no-repeat;
    background-color:#000;
  }
  .hero__contenido{width:100%;max-width:680px;padding:24px 12px;border-radius:16px;background:rgba(0,0,0,.28);}
  .hero h1{font-size:clamp(36px,11vw,58px);line-height:1.04;}
  .productos{padding:54px 14px;}
  .producto{width:100%;max-width:430px;margin-inline:auto;}
  .producto__imagen{aspect-ratio:4 / 3;padding:12px;}
  .producto__contenido{padding:18px;}
}
@media (max-width:390px){
  .hero{padding:48px 12px;}
  .hero p{font-size:15px;}
}
