/* =========================================================
   BLAZZA STORE - STYLE.CSS
   Archivo principal de estilos.
   Edita aquí colores, tamaños, botones, header, footer y tarjetas.
   ========================================================= */

/* 1. COLORES Y MEDIDAS GLOBALES */
:root {
  --color-principal: #0b4672;
  --color-principal-oscuro: #083656;
  --color-texto: #15171b;
  --color-texto-suave: #667085;
  --color-borde: #e6e8ec;
  --color-fondo-suave: #f6f8fb;
  --color-whatsapp: #25d366;
  --color-blanco: #ffffff;
  --color-footer: #0b0d10;

  --radio: 22px;
  --sombra: 0 18px 48px rgba(11, 70, 114, 0.14);
  --ancho-maximo: 1440px;
  --alto-header: 78px;
}

/* 2. REINICIO BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-texto);
  background: var(--color-blanco);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

body.menu-abierto {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

/* 3. BOTONES */
.button,
.header-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.button:hover,
.header-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--color-principal);
  background: var(--color-blanco);
}

.button-outline {
  color: var(--color-blanco);
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
}

.button-whatsapp {
  color: #073d1b;
  background: var(--color-whatsapp);
}

/* 4. HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--alto-header);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--color-borde);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100%, var(--ancho-maximo));
  min-height: var(--alto-header);
  margin: auto;
  padding: 0 clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: 250px 1fr 220px;
  align-items: center;
  gap: 28px;
}

.brand {
  width: 220px;
}

.brand img {
  width: 100%;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.header-button {
  justify-self: end;
  color: var(--color-blanco);
  background: var(--color-texto);
}

/* 5. MENÚ */
.main-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-weight: 800;
}

.main-menu > a,
.submenu-button {
  position: relative;
  padding: 27px 0 24px;
  border: 0;
  color: var(--color-texto);
  background: transparent;
  font-weight: 800;
}

.main-menu > a::after,
.submenu-button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--color-principal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.main-menu > a:hover::after,
.submenu-button:hover::after {
  transform: scaleX(1);
}

/* 6. SUBMENÚ */
.menu-dropdown {
  position: relative;
}

.submenu-button {
  display: flex;
  align-items: center;
  gap: 6px;
}

.submenu {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  width: 310px;
  padding: 12px;
  border: 1px solid var(--color-borde);
  border-radius: 18px;
  background: var(--color-blanco);
  box-shadow: var(--sombra);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: .22s ease;
}

.menu-dropdown:hover .submenu,
.menu-dropdown.abierto .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.submenu a {
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px;
}

.submenu a:hover {
  color: var(--color-principal);
  background: var(--color-fondo-suave);
}

/* 7. BOTÓN MENÚ MÓVIL */
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--color-texto);
  transition: .25s ease;
}

.menu-button.activo span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.activo span:nth-child(2) {
  opacity: 0;
}

.menu-button.activo span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 8. SLIDER */
.hero-slider {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--color-principal-oscuro);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 90px clamp(20px, 7vw, 110px);
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-content {
  max-width: 850px;
  color: var(--color-blanco);
}

.eyebrow,
.section-label {
  color: #7ed8ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.section h2,
.cta-section h2 {
  margin: 12px 0 18px;
  font-size: clamp(46px, 6vw, 86px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero-content p {
  max-width: 720px;
  color: #dbe6ed;
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: var(--color-blanco);
  background: rgba(0,0,0,.24);
  font-size: 28px;
  transform: translateY(-50%);
}

.slider-prev {
  left: 24px;
}

.slider-next {
  right: 24px;
}

.slider-dots {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
}

.slider-dots button.active {
  background: var(--color-whatsapp);
}

/* 9. SECCIONES */
.section {
  padding: 88px clamp(20px, 7vw, 110px);
}

.section-light {
  background: var(--color-fondo-suave);
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
}

.section-intro p,
.section-heading p {
  color: var(--color-texto-suave);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(38px, 5vw, 68px);
}

/* 10. CATEGORÍAS - SOLO IMAGEN Y NOMBRE */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: var(--radio);
  background: var(--color-principal);
  box-shadow: 0 8px 24px rgba(11,70,114,.08);
  transition: .25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transition: transform .35s ease;
}

.category-card:hover img {
  transform: scale(1.04);
}

.category-name {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 60px 20px 20px;
  color: var(--color-blanco);
  background: linear-gradient(transparent, rgba(0,0,0,.82));
}

.category-name h3 {
  margin: 0;
  font-size: 25px;
}

/* 11. BENEFICIOS */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-grid article {
  padding: 28px;
  border: 1px solid var(--color-borde);
  border-radius: var(--radio);
  background: var(--color-blanco);
}

.feature-grid article > span {
  color: var(--color-principal);
  font-weight: 900;
}

.feature-grid h3 {
  margin: 9px 0;
}

.feature-grid p {
  margin: 0;
  color: var(--color-texto-suave);
}

/* 12. CTA */
.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 70px clamp(20px, 7vw, 110px);
  color: var(--color-blanco);
  background: var(--color-texto);
}

.cta-section h2 {
  font-size: clamp(38px, 5vw, 68px);
}

/* 13. HERO INTERIOR */
.page-hero {
  padding: 90px clamp(20px, 7vw, 110px);
  background: linear-gradient(135deg, #f9fbfd, #edf5fa);
}

.page-hero h1 {
  color: var(--color-texto);
  font-size: clamp(50px, 7vw, 92px);
}

.page-hero p {
  color: var(--color-texto-suave);
  font-size: 18px;
}

/* 14. TARJETAS DE PRODUCTO - SOLO IMAGEN Y NOMBRE */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--color-borde);
  border-radius: var(--radio);
  background: var(--color-blanco);
  transition: .25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra);
}

.product-card button {
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card h3 {
  margin: 0;
  padding: 18px 20px 22px;
  font-size: 22px;
}

/* 15. MODAL DE INFORMACIÓN */
.product-modal {
  width: min(920px, 94vw);
  max-height: 90vh;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

.product-modal::backdrop {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--color-blanco);
  font-size: 26px;
}

.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-layout img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.modal-info {
  padding: 42px;
}

.modal-info h2 {
  margin-top: 0;
  font-size: 38px;
  line-height: 1.1;
}

.modal-info p,
.modal-info li {
  color: var(--color-texto-suave);
}

.modal-info ul {
  padding-left: 20px;
}

.modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* 16. NOSOTROS */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.about-grid p {
  color: var(--color-texto-suave);
}

.about-logo {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--color-principal), var(--color-principal-oscuro));
}

.about-logo img {
  max-width: 420px;
}

/* 17. CONTACTO */
.contact-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 42px;
}

.contact-card {
  margin-bottom: 12px;
  padding: 20px;
  border: 1px solid var(--color-borde);
  border-radius: 18px;
}

.contact-card span,
.contact-card strong {
  display: block;
}

.contact-card span {
  color: var(--color-texto-suave);
  font-size: 12px;
}

.contact-card strong {
  font-size: 24px;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  border-radius: var(--radio);
  background: var(--color-fondo-suave);
}

.quote-form label {
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--color-borde);
  border-radius: 12px;
  background: var(--color-blanco);
}

.quote-form small {
  display: block;
  margin-top: 6px;
  color: var(--color-texto-suave);
}

.form-full {
  grid-column: 1 / -1;
}

/* 18. FOOTER */
.site-footer {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr .8fr;
  gap: 36px;
  padding: 48px clamp(20px, 7vw, 110px);
  color: var(--color-blanco);
  background: var(--color-footer);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand img {
  width: 210px;
  filter: brightness(0) invert(1);
}

.site-footer h3 {
  margin: 0 0 10px;
}

.site-footer p,
.site-footer span {
  color: #aeb4bd;
}

.site-footer a:hover {
  color: #7ed8ff;
}

/* 19. WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  padding: 13px 17px;
  border-radius: 999px;
  color: #073d1b;
  background: var(--color-whatsapp);
  box-shadow: 0 15px 34px rgba(37,211,102,.35);
  font-weight: 900;
}
