/*
Theme Name: Mi Tema Cliente - Magnetize
Theme URI: https://magnetize.com.ar
Author: Magnetize
Description: Tema personalizado para Magnetize fotoimanes
Version: 1.0
Text Domain: magnetize
*/

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

/* ===== VARIABLES ===== */
:root {
  --primario:      #3A7CA5;
  --secundario:    #5EAD8C;
  --resaltado:     #ffd983;
  --acento:        #6DC8C4;
  --soporte:       #4A8FA8;
  --claro1:        #D3E8F0;
  --claro2:        #E2F0E8;
  --fondo:         #F3F7F5;
  --texto:         #121D24;
  --texto-suave:   #3B5563;
}

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

body {
  font-family: 'Fredoka', sans-serif;
  background-color: var(--fondo);
  color: var(--texto);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
  background-color: var(--primario);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.site-logo img {
  height: 50px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.site-nav a {
  color: white;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--resaltado);
}

.nav-carrito a {
  background-color: var(--resaltado);
  color: var(--texto) !important;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.nav-carrito a:hover {
  background-color: white;
  color: var(--primario) !important;
}

/* ===== BANNER ANIMADO ===== */
.banner-bienvenida {
  background: linear-gradient(135deg, var(--primario) 0%, var(--secundario) 100%);
  padding: 6rem 2rem;
  text-align: center;
  overflow: hidden;
}

.banner-logo {
  width: 400px;
  height: auto;
  margin: 0 auto 1.5rem;
  animation: slideUpFade 1.4s ease-out both;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
}

.banner-titulo {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
  animation: slideUpFade 1.4s ease-out 0.3s both;
}

.banner-subtitulo {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--resaltado);
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: slideUpFade 1.4s ease-out 0.6s both, pulso-color 10s ease-in-out 2s infinite;
}

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

@keyframes pulso-color {
  0%, 100% {
    color: var(--resaltado);
    text-shadow: 0 0 10px rgba(255, 217, 131, 0.3);
  }
  50% {
    color: white;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.7);
  }
}

/* ===== ANIMACIÓN DE ENTRADA AL HACER SCROLL ===== */
.animar-entrada {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.animar-entrada.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECCIONES GENÉRICAS ===== */
.seccion-wrap {
  padding: 5rem 2rem;
}

.seccion-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.seccion-titulo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primario);
  margin-bottom: 2.5rem;
  text-align: center;
}

/* ===== PRODUCTOS ===== */
#productos {
  background-color: white;
}

/* ===== QUIÉNES SOMOS ===== */
#quienes-somos {
  background-color: var(--claro2);
}

.quienes-somos-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.quienes-somos-texto {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--texto-suave);
}

/* ===== CÓMO COMPRAR ===== */
#como-comprar {
  background-color: var(--claro1);
}

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

.paso {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.paso-numero {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primario);
  margin-bottom: 0.5rem;
}

.paso-titulo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 0.5rem;
}

.paso-desc {
  font-size: 1rem;
  color: var(--texto-suave);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--texto);
  color: white;
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.95rem;
  line-height: 2;
}

.site-footer a {
  color: var(--resaltado);
  transition: opacity 0.2s;
}

.site-footer a:hover {
  opacity: 0.8;
}

/* ===== WOOCOMMERCE ===== */

/* Layout del producto */
.woocommerce div.product {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Imagen principal del producto */
.woocommerce div.product div.images {
  max-width: 480px;
}

/* Imágenes en descripción */
.woocommerce div.product .woocommerce-Tabs-panel img,
.woocommerce div.product .woocommerce-product-details__short-description img,
.woocommerce div.product .entry-content img,
.woocommerce #tab-description img,
.wc-tab img {
  max-width: 480px !important;
  border-radius: 10px;
}

/* Ocultar valoraciones */
.woocommerce div.product .reviews_tab,
.woocommerce #reviews,
.woocommerce-Reviews {
  display: none !important;
}

/* Ocultar sidebar (Páginas, Archivos, Categorías) */
#secondary,
.widget-area {
  display: none !important;
}

/* ===== INDEX / PÁGINAS INTERNAS ===== */
.pagina-content {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ===== TIENDA / ARCHIVO DE PRODUCTOS ===== */
/* El archivo de productos usa el contenedor por defecto de WooCommerce
   (#primary.content-area), que no tenía estilos: le damos ancho máximo,
   centrado, padding y control de desborde, igual que el resto del sitio. */
.woocommerce #primary,
.woocommerce-page #primary,
.woocommerce .content-area,
.woocommerce-page .content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  overflow-x: hidden;
}

/* Evita que el margin negativo de la grilla de WooCommerce se salga
   del contenedor y tape contenido por la izquierda. */
.woocommerce ul.products,
.woocommerce-page ul.products {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.pagina-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primario);
  margin-bottom: 1.5rem;
}

.pagina-content p,
.pagina-content li {
  font-size: 1.05rem;
  color: var(--texto-suave);
  margin-bottom: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 0.75rem;
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .banner-titulo {
    font-size: 2.4rem;
  }

  .banner-subtitulo {
    font-size: 1.1rem;
  }

  .quienes-somos-content {
    flex-direction: column;
  }

  .pasos {
    flex-direction: column;
    align-items: center;
  }
}

.btn-saber-mas { display: inline-block; background: var(--primario, #3A7CA5); color: #fff; padding: .65rem 1.8rem; border-radius: 24px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: background .2s, transform .15s; }
.btn-saber-mas:hover { background: var(--secundario, #5EAD8C); transform: translateY(-2px); }
