/* ===== RESET / BASE ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #1d1d1f;
}

a { color: inherit; }

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo h2 { margin: 0; }

.logo img {
  height: 90px;
}

.menu a {
  margin-left: 22px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}

.menu a:hover {
  color: #09ad32;
  background: rgba(0, 255, 85, 0.079);
}

.menu a.is-active {
  color: #0a4fa3;
  background: rgba(10,79,163,0.12);
}

/* ===== NAV MOVIL (HAMBURGUESA) ===== */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(7, 163, 54, 0.1);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #0a4fa3;
  border-radius: 10px;
}

/* Mobile */
@media (max-width: 860px) {
  .header {
    position: sticky;
    top: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 64px;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.14);
    display: grid;
    gap: 6px;

    /* Cerrado por defecto */
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: 200ms ease;
  }

  .menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu a {
    margin-left: 0;
    padding: 12px 12px;
    border-radius: 12px;
  }
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #0a4fa3;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

/* ===== HERO VIDEO ===== */
.hero {
  position: relative;
  height: 88vh;
  overflow: hidden;
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
}

.hero-overlay h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: white;
  background: rgba(0,0,0,0.45);
  padding: 14px 22px;
  border-radius: 14px;
}

.hero-sub {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* ===== INTRO TEXTO ===== */
.intro {
  text-align: center;
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.intro h2 {
  color: #0a4fa3;
  margin-bottom: 18px;
}

.intro p {
  line-height: 1.65;
  font-size: 18px;
  margin: 0;
}

/* ===== BANNERS ===== */
.banners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 40px;
}

.banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 450ms ease, opacity 450ms ease, box-shadow 250ms ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  text-decoration: none;
}

.banner.is-loaded {
  transform: translateY(0);
  opacity: 1;
}

.banner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 450ms ease;
  display: block;
}

.banner:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.banner:hover img {
  transform: scale(1.08);
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  pointer-events: none;
}

.banner-texto {
  position: absolute;
  bottom: 18px;
  left: 18px;
  color: white;
  font-size: 22px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  z-index: 1;
}

/* ===== NOSOTROS ===== */
.nosotros-hero {
  background: url("../img/banner.png") center/cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nosotros-hero h1 {
  background: rgba(0,0,0,0.5);
  padding: 15px 30px;
  border-radius: 10px;
  margin: 0;
}

.nosotros-contenido {
  display: flex;
  gap: 40px;
  padding: 60px;
  align-items: center;
}

.nosotros-contenido .texto { flex: 1; }
.nosotros-contenido .imagen { flex: 1; transition: 0.5s; }

.imagen:hover { transform: scale(1.03); }

.nosotros-contenido img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.mvv {
  display: flex;
  gap: 30px;
  padding: 40px 60px 80px;
}

.card {
  flex: 1;
  background: #f5f5f5;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.10);
}








/* =========================
   PRODUCTOS 
========================= */

.productos {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: stretch;
  background: #ffffff;
}

.productos-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  width: 100%;
  gap: 26px;
  padding: 28px 40px 40px;
}

.sidebar {
  border-right: 1px solid rgba(0,0,0,0.08);
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-btn {
  background: none;
  border: none;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 700;
  color: #000000;
  transition: background 160ms ease, color 160ms ease;
}

.brand-btn:hover {
  background: rgba(10,79,163,0.08);
  color: #0a4fa3;
}

.brand-btn.is-active {
  background: rgba(17, 124, 255, 0.12);
  color: #0a4fa3;
}

.brand-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #0b84c6;
  display: flex;
  align-items: center;
  padding: 30px;
}

.brand-stage.is-switching {
  opacity: 0.0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.brand-stage:not(.is-switching) {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 240ms ease, transform 240ms ease;
}

/* Fondo tipo “círculo” detrás del producto */
.brand-stage-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 40%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.0) 55%),
    linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.18));
  pointer-events: none;
}

/* Variantes por marca */
.brand-stage[data-variant="vakita"] { background: #0ebe1dbb; }
.brand-stage[data-variant="zamba"]  { background: #f0a417c0; }
.brand-stage[data-variant="tampico"]{ background: #f0a417c0; }
.brand-stage[data-variant="nutri"]  { background: #279dcc; }
.brand-stage[data-variant="alborada"]  { background: #005c83; }

.brand-stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 26px;
  width: 100%;
}

/* Slider wrap */
.brand-slider-wrap {
  display: grid;
  place-items: center;
}

/* Swiper */
.brandSwiper {
  width: min(520px, 90%);
  height: 520px;
  position: relative;
}

.swiper-slide {
  display: grid;
  place-items: center;
}

.product-hero {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.product-hero img {
  width: min(360px, 70%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,0.22));
  transform: translateY(-10px);
}

/* Info */
.brand-info {
  color: white;
  padding: 10px 6px;
}

.brand-title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0,0,0,0.18);
}

.brand-desc {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 44ch;
  color: rgba(255,255,255,0.92);
}

.brand-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-weight {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  font-weight: 800;
}

/* Flechas */
.brandSwiper .swiper-button-next,
.brandSwiper .swiper-button-prev {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.22);
}

.brandSwiper .swiper-button-next::after,
.brandSwiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 900;
  color: white;
}

.brandSwiper .swiper-button-next { right: 12px; }
.brandSwiper .swiper-button-prev { left: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .banners { grid-template-columns: repeat(2, 1fr); }
  .productos-container { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.08); padding-right: 0; padding-bottom: 14px; }
  .brand-stage-grid { grid-template-columns: 1fr; }
  .brandSwiper { width: 100%; height: 420px; }
}

@media (max-width: 520px) {
  .header { padding: 12px 16px; }
  .menu a { margin-left: 10px; }
  .banners { padding: 18px; gap: 14px; }
  .banner img { height: 210px; }
  .productos-container { padding: 18px; }
}










/* =========== SWIPER ANIMATION ===========*/
body.has-product-anim .product-hero img{
  /* keep your existing sizing/shadow from earlier rule; we only animate visibility/motion */
  opacity: 0;
  transform: translateX(60px) scale(0.95);
  transition: opacity 300ms ease, transform 300ms ease;
}

body.has-product-anim .product-hero img.is-active{
  opacity: 1;
  transform: translateX(0) scale(1);
}






/* ===== CONTACTO ===== */
.contact-hero {
  padding: 46px 40px 20px;
}

.contact-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(10,79,163,0.10), rgba(11,132,198,0.10));
}

.contact-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-hero p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}

.contact-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  color: #0a4fa3;
  border: 2px solid rgba(10,79,163,0.22);
}

.btn-outline:hover {
  background: rgba(10,79,163,0.08);
}

.btn-whatsapp {
  background: #128C7E;
}

.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 40px 60px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.contact-card {
  grid-column: span 6;
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.contact-card h2 {
  margin: 0 0 14px;
  color: #0a4fa3;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0,0,0,0.03);
}

.contact-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: rgba(0,0,0,0.55);
  text-transform: uppercase;
}

.contact-value {
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 700;
}

.contact-mini {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-link {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(10,79,163,0.08);
  color: #0a4fa3;
  text-decoration: none;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(10,79,163,0.40);
  box-shadow: 0 0 0 4px rgba(10,79,163,0.10);
}

.form-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(0,0,0,0.55);
}

.contact-map {
  grid-column: span 12;
}

.map-frame {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.04);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .contact-card { grid-column: span 12; }
  .contact-grid { padding: 22px 18px 50px; }
  .contact-hero { padding: 30px 18px 10px; }
}
