/* ===========================
   VARIABLES
   =========================== */
:root {
  --color-purple:        #7B5EA7;
  --color-purple-dark:   #5a4080;
  --color-purple-darker: #3a2060;
  --color-brown:         #7B4A1E;
  --color-sage:          #8A9B6E;
  --color-cream:         #f5f0e8;
  --color-beige:         #ede4d3;
  --color-cream-2:       #f9f6f1;
  --color-white:         #ffffff;
  --color-text:          #666666;
  --color-whatsapp:      #25D366;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1100px;
  --container-pad: 24px;
  --radius:        10px;
  --shadow:        0 2px 12px rgba(0,0,0,0.08);
}

/* ===========================
   RESET
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
}

/* ===========================
   UTILIDADES
   =========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.label {
  display: inline-block;
  color: var(--color-sage);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  color: var(--color-purple);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 40px;
}

/* ===========================
   BOTONES
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  border: none;
  font-family: var(--font-sans);
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary  { background: var(--color-purple);    color: white; }
.btn-whatsapp { background: var(--color-whatsapp);  color: white; }
.btn-brown    { background: var(--color-brown);     color: white; }

.btn-outline {
  background: white;
  color: var(--color-brown);
  border: 2px solid var(--color-brown);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}

.header-logo img {
  height: 70px;
  width: auto;
}

.nav-main {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: #444;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-purple);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #444;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  text-align: center;
}

.hero-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.52) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-top: 70px;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero .label {
  color: rgba(255,255,255,0.9);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.85);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  opacity: 1;
}

/* Swiper pagination */
.hero-swiper .swiper-pagination {
  z-index: 3;
  bottom: 24px;
}

.hero-swiper .swiper-pagination-bullet {
  background: white;
  opacity: 0.55;
  width: 10px;
  height: 10px;
  transition: opacity 0.3s;
}

.hero-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ===========================
   DIFERENCIALES
   =========================== */
.diferenciales {
  padding: 64px 0;
  background: white;
}

.diferenciales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.diferencial {
  padding: 24px 40px;
  text-align: center;
}

.diferencial:not(:last-child) {
  border-right: 1px solid #eee;
}

.diferencial-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--color-purple);
}

.diferencial-icon svg {
  width: 100%;
  height: 100%;
}

.diferencial h3 {
  font-family: var(--font-serif);
  color: var(--color-brown);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.diferencial p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ===========================
   PRODUCTOS
   =========================== */
.productos {
  padding: 72px 0;
  background: var(--color-cream-2);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.producto-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.producto-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.producto-card h3 {
  font-family: var(--font-serif);
  color: var(--color-brown);
  font-size: 1rem;
  padding: 14px 16px;
  text-align: center;
}

.productos-cta {
  text-align: center;
}

/* ===========================
   NOSOTROS
   =========================== */
.nosotros {
  padding: 72px 0;
  background: white;
}

.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nosotros-texto h2 {
  font-family: var(--font-serif);
  color: var(--color-brown);
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.nosotros-texto p {
  line-height: 1.8;
  font-size: 0.95rem;
}

.nosotros-imagen img {
  border-radius: var(--radius);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* ===========================
   CONTACTO
   =========================== */
.contacto {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
  text-align: center;
  color: white;
}

.contacto-inner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 12px;
}

.contacto-inner > p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 32px;
}

.redes-sociales {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 24px;
}

.red-social {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.red-social:hover {
  color: white;
}

.red-social svg {
  width: 22px;
  height: 22px;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--color-purple-darker);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

.footer-redes {
  display: flex;
  gap: 20px;
}

.footer-redes a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

.footer-redes a:hover {
  color: white;
}

.footer-redes svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  margin: 0;
}

/* ===========================
   RESPONSIVE — TABLET (≤ 768px)
   =========================== */
@media (max-width: 768px) {

  /* Header mobile */
  .nav-main {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 16px var(--container-pad);
    gap: 16px;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .nav-main.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .header-whatsapp {
    display: none;
  }

  /* Hero tablet */
  .hero-title {
    font-size: 2.2rem;
  }

  /* Diferenciales: 1 columna */
  .diferenciales-grid {
    grid-template-columns: 1fr;
  }

  .diferencial:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  /* Productos: 2 columnas */
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Nosotros: apilado */
  .nosotros-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nosotros-imagen { order: -1; }

  .nosotros-imagen img {
    height: 240px;
  }

  /* Botones full-width en hero */
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Botón WhatsApp contacto full-width */
  .contacto .btn-lg {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
}

/* ===========================
   RESPONSIVE — MOBILE (≤ 480px)
   =========================== */
@media (max-width: 480px) {

  .hero {
    min-height: 480px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  /* Productos: 1 columna */
  .productos-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .nosotros-texto h2 {
    font-size: 1.4rem;
  }

  .contacto-inner h2 {
    font-size: 1.6rem;
  }
}
