/* ===================================================
   Viva el Mate 🌿 — Estilos unificados 2025
   =================================================== */

/* --- RESET GENERAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #fdf8ef;
  color: #2e2e2e;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================================================
   VARIABLES
=================================================== */
:root {
  --color-fondo: #fdf8ef;
  --color-acento: #58b6aa;
  --color-secundario: #f3d6b1;
  --color-texto: #2e2e2e;
  --color-titulo: #2e2a26;
  --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===================================================
   BANNER SUPERIOR
=================================================== */
#banner-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  background-color: #fff3e3;
  color: var(--color-titulo);
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #f2e2c4;
}

.banner-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-item img {
  width: 42px;
  height: 42px;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.banner-item:hover img {
  transform: scale(1.1);
  opacity: 1;
}

/* ===================================================
   ENCABEZADO Y NAVEGACIÓN
=================================================== */
header {
  background-color: #fffaf4;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-logo h1 {
  font-family: 'Pacifico', cursive;
  font-size: 2.4rem;
  color: var(--color-titulo);
  text-shadow: 0 1px 0 #fff, 0 3px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mate-icon {
  width: 34px;
  height: 34px;
  transform: translateY(3px);
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--color-titulo);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--color-acento);
}

nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #4cb5ae, #f9b233);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 0.6rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===================================================
   HERO PRINCIPAL
=================================================== */
#hero {
  text-align: center;
  padding: 6rem 2rem 5rem;
  background: linear-gradient(180deg, #fffaf4 0%, var(--color-fondo) 100%);
  animation: fadeInHero 1.2s ease;
}

@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

#hero h2 {
  font-family: 'Marcellus', serif;
  font-size: 2.8rem;
  color: var(--color-titulo);
  margin-bottom: 1.2rem;
}

#hero p {
  font-size: 1.1rem;
  color: var(--color-texto);
  margin-bottom: 3rem;
  max-width: 650px;
  margin-inline: auto;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.9rem 1.8rem;
  border-radius: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--color-acento);
  color: #fff;
}

.btn-secondary {
  background-color: var(--color-secundario);
  color: var(--color-titulo);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover { background-color: #3a9d97; }
.btn-secondary:hover { background-color: #f0d9b8; }

@media (max-width: 768px) {
  #hero { padding: 4rem 1.5rem; }
  #hero h2 { font-size: 2.2rem; }
  .cta-buttons { gap: 1rem; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 320px; }
}

/* ===================================================
   TIENDA
=================================================== */
#tienda {
  text-align: center;
  padding: 4rem 1rem;
}

#tienda h3 {
  font-family: 'Marcellus', serif;
  font-size: 1.9rem;
  margin-bottom: 2.5rem;
}

.tienda-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.producto {
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--sombra-suave);
  padding: 1rem;
  width: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.producto img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

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

/* ===================================================
   TESTIMONIOS
=================================================== */
#testimonios {
  text-align: center;
  padding: 4rem 2rem;
  background: #fffaf4;
}

#testimonios h3 {
  font-family: 'Marcellus', serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.testimonios-carousel {
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.testimonios-track {
  display: flex;
  gap: 2rem;
  animation: scrollTestimonials 30s linear infinite;
}

@keyframes scrollTestimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonio {
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--sombra-suave);
  padding: 1rem;
  flex: 0 0 250px;
}

.testimonio img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* ===================================================
   TALLERES
=================================================== */
#talleres {
  text-align: center;
  padding: 5rem 2rem;
}

.talleres-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.taller-video video {
  width: 100%;
  max-width: 400px;
  border-radius: 1rem;
  box-shadow: var(--sombra-suave);
}

.taller-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 350px;
  width: 100%;
}

.taller-form input,
.taller-form select {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.taller-form button {
  background-color: var(--color-acento);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.taller-form button:hover {
  background-color: #3a9d97;
}

/* ===================================================
   PORTFOLIO
=================================================== */
#portfolio {
  text-align: center;
  padding: 4rem 2rem;
}

#portfolio h3 {
  font-family: 'Marcellus', serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.slider-container {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.6s ease-in-out;
}

figure {
  position: relative;
  flex: 0 0 300px;
}

figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--sombra-suave);
  transition: transform 0.5s ease, filter 0.5s ease;
}

figure img:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}

@media (max-width: 768px) {
  figure img {
    height: 220px;
    transform: none !important;
    filter: none !important;
  }
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-texto);
}

/* ===================================================
   PORTFOLIO — BOTONES DE NAVEGACIÓN
=================================================== */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  font-size: 2rem;
  color: var(--color-titulo);
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--color-acento);
  color: #fff;
  transform: scale(1.1) translateY(-50%);
}

.slider-btn.prev { left: -1.5rem; }
.slider-btn.next { right: -1.5rem; }

@media (max-width: 768px) {
  .slider-btn.prev { left: 0.3rem; }
  .slider-btn.next { right: 0.3rem; }
}

/* ===================================================
   SOBRE, CONTACTO, HISTORIA, BOTONES
=================================================== */
#sobre-vivaelmate {
  padding: 4rem 2rem;
  background: #fffaf4;
}

.sobre-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.sobre-imagen img {
  width: 320px;
  border-radius: 1rem;
  box-shadow: var(--sombra-suave);
}

.sobre-texto {
  max-width: 500px;
}

.sobre-texto h3 {
  font-family: 'Marcellus', serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.sobre-texto a.btn-sobre {
  display: inline-block;
  margin-top: 1rem;
  background: linear-gradient(90deg, #f3d6b1, #58b6aa);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 0.8rem;
  text-decoration: none;
  font-weight: 600;
}

/* CONTACTO */
#contacto {
  text-align: center;
  padding: 3rem 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.social {
  text-decoration: none;
  background-color: var(--color-acento);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0.8rem;
  transition: background 0.3s ease;
}

.social:hover { background-color: #3a9d97; }

footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #555;
  background: #fffaf4;
}

/* ===================================================
   HISTORIA Y BOTONES DE COMPRA
=================================================== */
#historia-viva {
  background: #fffaf4;
  padding: 5rem 2rem;
}

.historia-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.historia-bloque {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.historia-bloque.visible { opacity: 1; transform: translateY(0); }
.historia-bloque.invert { flex-direction: row-reverse; }

.historia-imagen img {
  width: 360px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.historia-texto { max-width: 500px; text-align: left; }
.historia-texto h2, .historia-texto h3 {
  font-family: 'Marcellus', serif;
  color: #2e2e2e;
}

.btn-comprar {
  display: inline-block;
  background-color: var(--color-acento);
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-comprar:hover {
  background-color: #3a9d97;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
/* ===================================================
   GUIAS DEL RITUAL — Carrusel versión cálida 2025
=================================================== */
#guias {
  background-color: #fffaf4;
  padding: 4rem 2rem;
  text-align: center;
}

#guias h3 {
  font-family: 'Marcellus', serif;
  font-size: 1.9rem;
  color: var(--color-titulo);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

#guias .icono-mate {
  width: 26px;
  height: 26px;
  transform: translateY(2px);
}

.intro-guias {
  font-size: 1rem;
  color: var(--color-texto);
  opacity: 0.9;
  max-width: 650px;
  margin: 0.5rem auto 2.5rem;
}

/* --- Carrusel estilo Testimonios --- */
.guias-carousel {
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.guias-track {
  display: flex;
  gap: 1.5rem;
  animation: scrollGuias 35s linear infinite;
}

@keyframes scrollGuias {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.guia-item {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  padding: 1.5rem;
  flex: 0 0 280px;
  text-align: left;
  transition: all 0.3s ease;
}

.guia-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.guia-item h4 {
  font-family: 'Marcellus', serif;
  color: var(--color-titulo);
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.guia-item p {
  font-size: 0.95rem;
  color: var(--color-texto);
  line-height: 1.5;
}

.link-guias {
  color: var(--color-acento);
  text-decoration: none;
  font-weight: 500;
}

.link-guias:hover {
  text-decoration: underline;
}
