/*
 * Estilos principales para Banda de Estilo
 *
 * Este archivo define la paleta de colores, tipografías y estructura
 * responsiva del sitio. Se ha priorizado la legibilidad, el orden
 * semántico de los encabezados y la optimización para motores de búsqueda
 * mediante el uso de HTML5 y atributos descriptivos.
 */

/* Variables de color para fácil mantenimiento */
:root {
  --color-primary: #e14f80; /* color acento (rosa coral) */
  --color-primary-dark: #c43b68;
  --color-dark: #0a0c10;   /* tono oscuro para fondos */
  --color-light: #ffffff; /* blanco para textos sobre oscuro */
  --color-gray: #f5f5f5;  /* gris muy claro para secciones */
  --color-text: #333333;  /* color de texto principal */
}

/* Restablecimientos básicos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--color-primary);
}

ul {
  list-style: none;
}

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

h1, h2, h3 {
  font-weight: 700;
  color: var(--color-dark);
}

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
  margin-top: 0.5rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* Contenedor general */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Barra de navegación */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--color-dark);
  color: var(--color-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: var(--color-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 0.5rem 0;
}

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

/* Botón de menú para móviles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  margin-left: auto;
}

.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: "";
  width: 100%;
  height: 3px;
  background-color: var(--color-light);
  display: block;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle .hamburger::before {
  position: absolute;
  top: -8px;
}

.menu-toggle .hamburger::after {
  position: absolute;
  top: 8px;
}

/* Animación del menú hamburguesa a cruz cuando está activo */
.menu-toggle.open .hamburger {
  background-color: transparent;
}
.menu-toggle.open .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 0;
  /* Fondo degradado para mayor profundidad */
  background-image: radial-gradient(circle at 20% 50%, #281d45 0%, #0a0c10 100%);
  color: var(--color-light);
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 45%;
  padding: 1rem;
}

.hero-content h1 {
  color: var(--color-light);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.hero-content .marca {
  color: var(--color-primary);
}

.hero-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 480px;
}

.hero-illustration {
  flex: 1 1 45%;
  padding: 1rem;
  text-align: center;
}

.hero-illustration img {
  width: 100%;
  max-width: 480px;
  height: auto;
}

/* Secciones */
.section {
  padding: 4rem 0;
}

.section:nth-of-type(odd) {
  background-color: var(--color-gray);
}

.section:nth-of-type(even) {
  background-color: var(--color-light);
}

/* Sección Producto */
.producto-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.producto-media {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.producto-media img {
  max-width: 350px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Representación CSS de la Banda de Estilo como aro */
.banda-visual {
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border: 28px solid #1a1a1a;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background-color: transparent;
}

.producto-info {
  flex: 1 1 50%;
}

.producto-info ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.producto-info .precio {
  margin: 1.5rem 0;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.producto-info .precio .envio {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* -----------------------------------------------
 * Nueva sección Descubre
 * Esta sección reemplaza la sección de producto para
 * mostrar la Banda de Estilo con mayor profundidad
 */
.descubre-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.descubre-media {
  flex: 1 1 45%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.descubre-media .producto-img {
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Reutilizamos la representación CSS del aro como elemento decorativo */
.descubre-media .banda-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.descubre-info {
  flex: 1 1 50%;
}

.descubre-info ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.descubre-info .precio {
  margin: 1.5rem 0;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.descubre-info .precio .envio {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* -----------------------------------------------
 * Sección Galería / Inspiración
 */
.galeria {
  background-color: var(--color-gray);
}

.galeria .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.galeria .gallery-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.galeria .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galeria .gallery-item:hover img {
  transform: scale(1.05);
}

/* -----------------------------------------------
 * Sección Sobre Nosotros
 */
.nosotros {
  background-color: var(--color-light);
}

.nosotros-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.nosotros-img {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
}

.nosotros-img img {
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.nosotros-content {
  flex: 1 1 50%;
}

/* Responsividad adicional para secciones personalizadas */
@media (max-width: 768px) {
  .descubre-wrapper,
  .nosotros-grid {
    flex-direction: column;
  }
  .descubre-media,
  .nosotros-img,
  .descubre-info,
  .nosotros-content {
    flex: 1 1 100%;
  }
  .descubre-media .banda-visual {
    position: static;
    transform: none;
    margin-top: 1rem;
  }
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-light);
}

/* Pasos */
.pasos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.paso {
  flex: 1 1 30%;
  background-color: var(--color-light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.paso .numero {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem auto;
  background-color: var(--color-primary);
  color: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.paso h3 {
  margin-bottom: 0.5rem;
}

.usos {
  margin-top: 2rem;
  padding: 1rem;
  border-left: 4px solid var(--color-primary);
  background-color: #fff;
}

/* Testimonios */
.testimonios-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonio {
  flex: 1 1 30%;
  background-color: var(--color-light);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonio blockquote {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonio cite {
  font-size: 0.9rem;
  color: var(--color-dark);
  font-style: normal;
}

/* FAQ */
.faq .faq-item {
  margin-bottom: 1.5rem;
}

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

.faq .faq-item p {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Blog */
.blog-list {
  margin-top: 1.5rem;
  padding-left: 1rem;
}

.blog-list li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.2rem;
}

.blog-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-size: 1rem;
}

.blog-list a {
  color: var(--color-dark);
  font-weight: 500;
}

.blog-list a:hover {
  color: var(--color-primary);
}

/* -----------------------------------------------
 * Blog cards
 * Presenta artículos de blog como tarjetas con imágenes, resúmenes y botón
 */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background-color: var(--color-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.blog-card-content h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.blog-card-content p {
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.blog-card-content .btn {
  align-self: flex-start;
}

/* Sección de características */
.caracteristicas .features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.caracteristicas .feature {
  flex: 1 1 30%;
  text-align: center;
  padding: 1rem;
}

.caracteristicas .feature img,
.caracteristicas .feature .feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  border-radius: 50%;
  background-color: #f7f7f7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.caracteristicas .feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--color-dark);
}

.caracteristicas .feature p {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Sección video tutorial */
.video-tutorial .video-wrapper {
  margin-top: 2rem;
  text-align: center;
}

.video-tutorial .video-wrapper img {
  max-width: 400px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 3rem 0;
  font-size: 0.9rem;
}

.footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer .footer-col {
  flex: 1 1 200px;
}

.footer .footer-col h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--color-light);
}

.footer .footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer .footer-col ul li a {
  color: var(--color-light);
  font-size: 0.9rem;
}

.footer .footer-col ul li a:hover {
  color: var(--color-primary);
}

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

.footer .social-links a {
  color: var(--color-light);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.8rem;
}

/* Carrito de compras */
.nav-cart {
  position: relative;
  margin-left: 0.5rem;
}

.cart-button {
  background: none;
  border: none;
  color: var(--color-light);
  cursor: pointer;
  position: relative;
  padding: 0;
}

.cart-button svg {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: var(--color-primary);
  color: var(--color-light);
  border-radius: 50%;
  padding: 2px 5px;
  font-size: 0.7rem;
}

.cart-modal.hidden {
  display: none;
}

.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-modal .cart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.cart-modal .cart-content {
  position: relative;
  background-color: var(--color-light);
  border-radius: 8px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.cart-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--color-dark);
  cursor: pointer;
}

.cart-items {
  margin-top: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
}

.cart-item-name {
  flex: 1;
}

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

.cart-item-controls button {
  border: none;
  background-color: var(--color-primary);
  color: var(--color-light);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.cart-item-controls button:hover {
  background-color: var(--color-primary-dark);
}

.cart-summary {
  margin-top: 1.5rem;
  text-align: center;
}

.cart-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

/* Responsividad */
@media (max-width: 992px) {
  .nav-links {
    gap: 1rem;
  }
  .producto-wrapper {
    flex-direction: column;
  }
  .producto-media,
  .producto-info {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--color-dark);
    flex-direction: column;
    align-items: center;
    gap: 0;
    display: none;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links li a {
    display: block;
    padding: 1rem 0;
    width: 100%;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links.active {
    display: flex;
  }
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content, .hero-illustration {
    flex: 1 1 100%;
  }
  .pasos {
    flex-direction: column;
  }
  .paso {
    flex: 1 1 100%;
  }
  .testimonios-wrapper {
    flex-direction: column;
  }
  .testimonio {
    flex: 1 1 100%;
  }
  .footer .footer-grid {
    flex-direction: column;
  }
  .footer .footer-col {
    flex: 1 1 100%;
  }
}