/* ===== CSS Variables ===== */
:root {
  --color-primary: #aed6f1;
  --color-secondary: #fadadd;
  --color-accent: #ffb6c1;
  --color-background: #f5f5f5;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  --font-primary: "Montserrat", sans-serif;
  --font-logo: "Pacifico", cursive;
  --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  font-family: var(--font-logo);
  font-size: 1.8rem;
  color: var(--color-primary);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
  transition: var(--transition);
}

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

.cart-link {
  background-color: var(--color-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  transition: var(--transition);
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ===== Hero Section ===== */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-primary) 20%, #fdeef1 100%);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  padding: 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
  height: 500px;
  /* Altura fija para el slider */
  width: 100%;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1s ease;
  transform: rotate(2deg) scale(0.95);
}

.slider-img.active {
  opacity: 1;
  transform: rotate(2deg) scale(1);
}

.hero-image:hover .slider-img.active {
  transform: rotate(0deg) scale(1.02);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text);
}

.btn-primary:hover {
  background-color: #85c1e9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
  background-color: #f8bbd0;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-text);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}

/* ===== Features Section ===== */
.features {
  padding: 4rem 0;
  background-color: var(--color-white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  background-color: var(--color-background);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.feature-card p {
  color: var(--color-text-light);
}

/* ===== Section Titles ===== */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-text);
}

/* ===== Products Section ===== */
.featured-products,
.products-section {
  padding: 4rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background-color: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.product-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.product-actions .btn {
  flex: 1;
  padding: 0.8rem;
  font-size: 0.9rem;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 4rem 0;
  background-color: var(--color-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--color-background);
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--color-primary);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-text);
}

/* ===== Newsletter ===== */
.newsletter {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.newsletter p {
  margin-bottom: 2rem;
  color: var(--color-text-light);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
}

.newsletter-form button {
  white-space: nowrap;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.page-header p {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

/* ===== Filters ===== */
.filters-sectio.filters-section {
  padding: 2rem 0;
  background-color: var(--color-white);
}

.filters-section {
  /* CAMBIO CLAVE: Aumentar el padding superior para separarlo del encabezado */
  padding: 4rem 0;
  /* Aplicamos 4rem arriba y abajo, o puedes usar 4rem 0 2rem 0 si quieres menos abajo */
  background-color: var(--color-white);
}

.filters-section {
  /* CAMBIO CLAVE 1: Reiniciamos el padding vertical para evitar conflictos con el margen */
  padding: 2rem 0;
  /* Mantenemos 2rem para los laterales y la separación inferior de la sección */
  background-color: var(--color-white);
}

.filters {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  /* CAMBIO CLAVE 2: Forzamos la separación superior con un margen explícito y amplio */
  margin-top: 3rem;

  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  justify-content: flex-start;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.filter-group label {
  /* Tamaño de fuente corregido (1.1rem) */
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.filter-select {
  flex-grow: 1;
  padding: 0.7rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font-size: 1rem;
  background-color: var(--color-white);
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.no-results {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: var(--color-text-light);
}

/* ===== About Page ===== */
.about-content {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  /* CAMBIO CLAVE: Definimos un template de grilla para la imagen y el texto */
  /* La primera columna (imagen) será más pequeña, la segunda (texto) más grande. */
  grid-template-columns: 400px 1fr;
  /* Cambia de 1fr 1fr a una columna fija de 400px y una columna flexible */
  gap: 3rem;
  align-items: center;
}

.about-image {
  /* CAMBIO CLAVE: Aseguramos que el contenedor de la imagen soporte el centrado en móvil */
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  /* CAMBIO CLAVE: Hacer la imagen circular y de tamaño fijo (como el logo) */
  width: 400px;
  /* Tamaño de ancho de la columna */
  height: 400px;
  /* Mismo tamaño para hacerla un círculo perfecto */
  border-radius: 50%;
  /* ¡Hacerla circular! */
  object-fit: cover;
  /* Asegura que la imagen llene el círculo sin deformarse */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}


.values-section,
.materials-section,
.shipping-section {
  padding: 4rem 0;
  background-color: var(--color-white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--color-background);
  border-radius: 15px;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.value-card p {
  color: var(--color-text-light);
  line-height: 1.6;
}

.materials-content {
  max-width: 900px;
  margin: 0 auto;
}

.material-item {
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: var(--color-background);
  border-radius: 15px;
}

.material-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.material-item p {
  color: var(--color-text-light);
  line-height: 1.8;
}

.shipping-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.shipping-content>p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--color-text-light);
}

.shipping-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.shipping-option {
  padding: 2rem;
  background-color: var(--color-background);
  border-radius: 15px;
  text-align: left;
}

.shipping-option h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.shipping-option p {
  color: var(--color-text-light);
}

.cta-section {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--color-text-light);
}

/* ===== Contact Page ===== */
.contact-section {
  padding: 4rem 0;
}

/* ELIMINAR LA GRILLA DE DOS COLUMNAS */
.contact-grid {
  /* display: grid;  <-- ELIMINADO/SOBREESCRITO */
  /* grid-template-columns: 1fr 1fr; <-- ELIMINADO/SOBREESCRITO */
  display: block;
  /* Ahora fluye como un bloque normal */
  gap: 3rem;
  /* Ya no aplica, pero lo dejamos si es necesario en otras paginas */
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.contact-info {
  /* Aseguramos que ocupe todo el ancho disponible */
  width: 100%;
}

/* 2. NUEVA GRILLA PARA MÉTODOS Y HORARIO */
.contact-main-grid {
  display: grid;
  /* Por defecto en una columna, para móviles */
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

/* 3. MEJORAS EN LA DISTRIBUCIÓN DE CONTACT-METHODS */
.contact-methods {
  /* Hacemos que los métodos se muestren en dos columnas dentro de su contenedor */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0;
  /* Ya no necesitamos el margen aquí, la grilla lo maneja */
}

.contact-method {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--color-background);
  border-radius: 15px;
}

.contact-icon {
  font-size: 2rem;
}

.contact-method h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.contact-method p {
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.contact-link {
  color: var(--color-primary);
  font-weight: 600;
}

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

.contact-hours {
  padding: 1.5rem;
  background-color: var(--color-background);
  border-radius: 15px;
  height: fit-content;
  /* Se ajusta a su contenido */
}

.contact-hours h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.contact-hours p {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

/* 4. MEDIAS QUERY PARA PC */
@media (min-width: 992px) {

  /* En PC, aplicamos la grilla principal de dos columnas */
  .contact-main-grid {
    grid-template-columns: 2fr 1fr;
    /* 2/3 para métodos, 1/3 para horario */
    gap: 4rem;
  }
}

@media (max-width: 768px) {

  /* ===== Fix for About Page Layout (Sobre Mi - SOLUCIÓN B) ===== */
  .about-grid {
    grid-template-columns: 1fr;
    /* Apila en una sola columna */
    gap: 2rem;
    /* Reduce el espacio */
  }

  /* CLAVE: Invertir el orden: Texto (order: 1) va arriba de Imagen (order: 2) */
  .about-image {
    order: 2;
    /* Manda la imagen al final */
  }

  .about-text {
    order: 1;
    /* Manda el texto al inicio */
    text-align: center;
    /* Centra el texto */
  }

  .about-text h2,
  .about-text p {
    text-align: center;
    /* Asegura que el contenido también se centre */
  }

  .about-image img {
    /* Hacemos la imagen más pequeña para móvil */
    width: 250px;
    height: 250px;
  }

  /* En móvil, los contact methods vuelven a apilarse, pero su distribución interna es de dos en dos */
  .contact-methods {
    grid-template-columns: 1fr;
  }

  .contact-method {
    /* Eliminamos el padding extra para móvil */
    padding: 1rem;
  }
}

.text-small {
  font-size: 0.9rem;
  font-style: italic;
}

.contact-form-container h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.contact-form {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 1rem;
  text-align: center;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
  text-align: center;
}

.faq-section {
  padding: 4rem 0;
  background-color: var(--color-white);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.faq-item {
  padding: 1.5rem;
  background-color: var(--color-background);
  border-radius: 15px;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--color-text);
}

.faq-item p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===== Cart Page ===== */
.cart-section {
  padding: 4rem 0;
  min-height: 60vh;
}

.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--color-white);
  border-radius: 15px;
  grid-column: 1 / -1;
  /* Ocupa todo el ancho si el carrito está vacío */
}

.empty-cart-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.empty-cart h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.empty-cart p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--color-text-light);
}

.cart-summary {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 15px;
  height: fit-content;
  position: sticky;
  top: 120px;
  /* Espacio desde la barra de navegación */
}

.cart-summary h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.summary-row.total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  border-bottom: none;
  margin-top: 1rem;
}

.shipping-note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ===== ESTILOS DEFINITIVOS PARA EL CARRITO (LAYOUT HORIZONTAL) ===== */

.cart-items {
  padding: 0;
  background-color: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 100px 1fr 150px 1fr 50px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-item-row .cart-item-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item-row .cart-item-details {
  text-align: left;
}

.cart-item-row .cart-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.cart-item-row .cart-item-size {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

.cart-item-row .cart-item-quantity {
  justify-self: center;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-border);
  background-color: var(--color-background);
  color: var(--color-text);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

.quantity-btn:hover {
  background-color: #e9e9e9;
}

.quantity-display {
  width: 40px;
  text-align: center;
  font-weight: 600;
}

.cart-item-row .cart-item-subtotal {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: right;
  color: var(--color-text);
}

.cart-item-row .cart-item-remove {
  justify-self: center;
}

.cart-item-row .remove-btn {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--color-text-light);
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.cart-item-row .remove-btn:hover {
  color: #e74c3c;
  text-decoration: none;
}


/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .cart-container {
    grid-template-columns: 1fr;
    /* Apila el carrito y el resumen en móvil */
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .filter-select {
    width: 100%;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2rem 20px;
  }

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

  .hero-content {
    padding: 0 1rem;
    margin-top: 2rem;
  }

  .hero-image img {
    width: 250px;
    height: 250px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  /* --- Estilos responsive del carrito --- */
  /* --- Estilos responsive del carrito (SOLUCIÓN A) --- */
  .cart-item-row {
    /* CLAVE 1: Ahora tiene 4 filas para organizar mejor los elementos */
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 0.5rem 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    /* Asegura que la línea divisoria se mantenga */
  }

  .cart-item-row:last-child {
    border-bottom: none;
  }

  .cart-item-row .cart-item-image {
    /* Ocupa las 4 filas para mantener la imagen centrada */
    grid-row: 1 / 5;
    grid-column: 1;
    align-self: center;
  }

  .cart-item-row .cart-item-image img {
    width: 80px;
    height: 80px;
  }

  .cart-item-row .cart-item-details {
    grid-column: 2;
    grid-row: 1;
    /* Fila 1: Título y Talle */
    align-self: end;
  }

  /* CLAVE 2: Convertimos Fila 2 en un contenedor flex para Cantidad y Eliminar */
  .cart-item-quantity {
    grid-column: 2;
    grid-row: 2;
    /* Fila 2: Cantidad */
    /* Hacemos que Cantidad, Subtotal y Eliminar ya no peleen por la celda (2,2) */
    display: flex;
    /* Mantiene los botones en línea */
    justify-content: flex-start;
    align-items: center;
    width: auto;
  }

  .cart-item-row .cart-item-subtotal {
    grid-column: 2;
    grid-row: 3;
    /* Fila 3: Precio */
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    /* Alineación a la izquierda para mejor lectura */
    color: var(--color-text);
  }

  .cart-item-row .cart-item-remove {
    grid-column: 2;
    grid-row: 4;
    /* Fila 4: Botón Eliminar (solo) */
    justify-self: flex-start;
    padding-top: 0.5rem;
  }

  /* Sobreescribimos la antigua agrupación que causaba el conflicto */
  .cart-item-quantity,
  .cart-item-subtotal,
  .cart-item-remove {
    /* Eliminamos las propiedades de solapamiento del CSS anterior */
    order: unset;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

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

  .products-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 50px;
    height: 50px;
  }
}

/* Estilos para productos sin stock */
.product-card.out-of-stock .product-image img {
  filter: grayscale(80%);
}

.product-card .product-badge-stock {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #777;
  color: var(--color-white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-size-selector {
  margin-bottom: 1rem;
}

.product-card .btn[disabled] {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.product-card .product-size-selector.hidden {
  display: none;
}

/* ===== CSS PARA MEJORAR EL LOGO Y LA SECCIÓN HERO ===== */

/* 1. Contenedor principal de la sección hero */
/* Usamos Flexbox para alinear el texto y la imagen fácilmente. */
.hero {
  display: flex;
  align-items: center;
  /* Centra verticalmente el texto y la imagen */
  gap: 2rem;
  /* Añade un espacio entre el texto y la imagen */
  min-height: 80vh;
  /* Asegura que la sección tenga una buena altura */
  padding: 4rem 20px;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-primary) 100%);
}

/* 2. Contenedores del texto y de la imagen */
/* Hacemos que cada uno ocupe la mitad del espacio disponible. */
.hero-content,
.hero-image {
  flex: 1;
  /* Esto hace que ambos divs compartan el espacio por igual */
}

/* 3. Contenedor específico de la imagen del logo */
.hero-image {
  display: flex;
  justify-content: center;
  /* Centra la imagen horizontalmente en su contenedor */
  align-items: center;
  /* Centra la imagen verticalmente en su contenedor */
}

/* 4. Estilos para la imagen del logo */
.hero-image img {
  max-width: 100%;
  /* La imagen nunca será más ancha que su contenedor */
  width: 450px;
  /* Le damos un tamaño base, pero nunca superará el 100% */
  height: auto;
  /* Mantiene la proporción correcta de la imagen */
  border-radius: 50%;
  /* ¡Esto la hará circular! */
  object-fit: cover;
  /* Asegura que la imagen cubra el círculo sin deformarse */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  /* Añade una sombra sutil para darle profundidad */
}

/* ===== ADAPTACIÓN PARA MÓVILES (Responsive Design) ===== */

/* Cuando la pantalla sea de 768px o menos (tablets y móviles)... */
@media (max-width: 768px) {

  /* ===== INICIO DE LA CORRECCIÓN PARA EL FILTRO EN MÓVIL ===== */
  .filter-group {
    /* Apila la etiqueta y el selector verticalmente */
    flex-direction: column;
    /* Alinea la etiqueta a la izquierda para que no se centre */
    align-items: flex-start;
    /* Reduce el espacio entre la etiqueta y el selector */
    gap: 0.5rem;
  }

  .filter-select {
    /* Asegura que el selector ocupe todo el ancho disponible */
    width: 100%;
  }

  /* ===== FIN DE LA CORRECCIÓN ===== */

  .hero {
    flex-direction: column-reverse;
    /* Apila la imagen encima del texto */
    text-align: center;
    /* Centra el texto */
    padding: 2rem 20px;
    /* Reduce el espaciado para pantallas pequeñas */
  }

  .hero-content {
    margin-top: 2rem;
    /* Añade un espacio entre la imagen y el texto */
  }

  .hero-image img {
    width: 250px;
    /* Hacemos el logo más pequeño en móviles */
    height: 250px;
  }
}

/* ===== Image Modal Styles (Lightbox) ===== */
.modal {
  display: none;
  /* Oculto por defecto, se cambia a 'flex' en JS al abrir */
  position: fixed;
  /* Posición fija para cubrir toda la pantalla */
  z-index: 2000;
  /* Asegura que esté por encima de todo */
  left: 0;
  top: 0;
  width: 100%;
  /* Ancho completo */
  height: 100%;
  /* Alto completo */
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  /* Fondo negro con opacidad */

  /* MODIFICACIÓN CLAVE PARA CENTRADO ABSOLUTO */
  align-items: center;
  justify-content: center;
}

.modal-content {
  display: block;
  width: 90%;
  max-width: 800px;
  /* Tamaño máximo para la imagen ampliada */
  max-height: 90vh;
  /* Altura máxima del 90% del viewport */
  object-fit: contain;
  /* Ajusta la imagen sin recortarla */
  /* Eliminada la animación de zoom, no es necesaria para el fix */
}

/* Botón de Cierre */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

/* ... (rest of styles.css) ... */

/* ===== Guía de Talles ===== */
.size-guide-section {
  padding: 4rem 0;
  background-color: var(--color-white);
}

.size-guide-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto 3rem auto;
  line-height: 1.7;
}

.size-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.size-guide-card {
  background-color: var(--color-background);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 450px;
}

.size-guide-card h3 {
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.size-guide-card img {
  border-radius: 10px;
  max-width: 100%;
}

/* ===== Estilos para el Formulario del Carrito ===== */

.checkout-form {
  margin-top: 2rem;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

.form-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  text-align: left;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
  text-align: left;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.form-group input:focus {
  outline: none;
  border-color: #83a4ff;
  /* Un color de acento suave */
  box-shadow: 0 0 0 2px rgba(131, 164, 255, 0.3);
}

/* ===== Estilos para la Notificación Toast ===== */

.toast {
  position: fixed;
  /* Se queda fijo en la pantalla */
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  /* Centra horizontalmente */
  background-color: #333;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  /* Asegura que esté por encima de todo */

  /* Estado inicial (oculto) */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  /* Empieza un poco abajo */
  transition: all 0.3s ease-in-out;
}

/* Estado visible */
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  /* Sube a su posición final */
}

/* Tipos de notificación */
.toast.success {
  background-color: #28a745;
  /* Verde para éxito */
}

.toast.error {
  background-color: #e85d75;
  /* Rojo para error */
}

.toast p {
  margin: 0;
  font-weight: 500;
}

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

/* Shipping breakdown */
#shippingRow {
  color: #666;
  font-size: 0.95rem;
  margin-top: 5px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #eee;
}

#shippingPrice {
  font-weight: 600;
}

.total-row {
  margin-top: 15px;
  font-size: 1.4rem !important;
  color: var(--primary-color);
}

.total-row span:last-child {
  font-weight: 800;
}


.btn-mercadopago {
  background-color: #009EE3 !important;
  color: white !important;
}

.btn-mercadopago:hover {
  background-color: #0081bb !important;
  opacity: 0.9;
}

.btn-icon {
  margin-right: 8px;
}

/* ===== Shipping Type Selector (Carrito) ===== */
.shipping-type-selector {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.radio-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
  font-weight: 500;
}

.radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border-radius: 50%;
}

.radio-container:hover input~.checkmark {
  background-color: #ccc;
}

.radio-container input:checked~.checkmark {
  background-color: var(--color-primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.radio-container input:checked~.checkmark:after {
  display: block;
}

.radio-container .checkmark:after {
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.shipping-calc-container {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

#branchSelection {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Blog Listing Page ===== */
.blog-header {
  padding: 4rem 0;
  background-color: var(--color-white);
  text-align: center;
  margin-bottom: 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.blog-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

.blog-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ===== Individual Note Page ===== */
.nota-header {
  padding: 6rem 0 3rem;
  background-color: var(--color-white);
}

.nota-meta {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.nota-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.nota-hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 30px;
  margin-bottom: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.nota-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
}

.nota-content h2 {
  margin: 2.5rem 0 1.5rem;
  font-size: 2rem;
}

.nota-content p {
  margin-bottom: 1.5rem;
}

.nota-sidebar {
  padding: 2rem;
  background: var(--color-secondary);
  border-radius: 20px;
  margin-top: 4rem;
}

/* ===== Responsive Hero ===== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}