
/* ===========================
   RESET GLOBAL
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* evita barra horizontal */
}

body {
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===========================
   BANNER NEWSLETTER
=========================== */

.newsletter-banner {
  width: 100%;
  overflow: hidden;
  background-color: #111;
  color: white;
  padding: 12px 0;            /* AUMENTA LA ALTURA */
  font-size: 18px;
  line-height: 1.4;           /* Evita que el texto se corte */
  position: relative;
  white-space: nowrap;
  display: flex;              /* Asegura alineación vertical */
  align-items: center;        /* Centrado vertical */
}


.banner-track span {
  padding-right: 50px;
  display: inline-block;
  font-weight: 500;
}


/* ===========================
   HEADER / TOPBAR
=========================== */
.topbar, .site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s, background-color 0.3s;
}

.topbar.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo img {
  height: 100px;       /* tamaño normal */
  width: auto;
  transition: transform 0.3s ease;  /* transición suave */
  cursor: pointer;      /* indica que es clicable */
}

.logo img:hover {
  transform: scale(1.05);  /* aumenta un 5% al pasar el cursor */
}

/* Botones del header */
.topbar .actions a, .login-btn {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color 0.3s, transform 0.2s;
}

.topbar .actions a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.login-btn {
  border: 1px solid #111;
  padding: 15px 30px;       /* más grande que antes */
  border-radius: 5px;
  font-size: 1.2rem;        /* letra más grande */
  font-weight: 500;
  text-decoration: none;
  color: #111;
  transition: color 0.3s, background-color 0.3s, transform 0.2s;
}

.login-btn:hover {
  background-color: #111;
  color: #ffffff;
  transform: translateY(-2px);
}


/* Carrito */
/* Botones del header (Login y Cesta) */
.actions a.login-btn,
.actions a.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  color: #111;
  border: 1px solid #111;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  position: relative; /* importante para el contador */
  vertical-align: middle;
}

/* Hover solo cambia fondo y texto, icono permanece visible */
.actions a.login-btn:hover{
  background-color: #111;
  color: #fff;
  transform: translateY(-2px);
}

.actions a.cart-btn:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}
/* Contenido interno de la cesta */
.cart-btn .cart-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Icono de la cesta */
.cart-btn .cart-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Contador de la cesta */
.cart-btn #cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background-color: #000; /* fondo negro */
  color: #fff;            /* letra blanca */
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  pointer-events: none;
}

/*Para cambiar de Iniciar sesión a Hola, usuario*/
.user-greeting {
  font-size: 1.2rem;
  font-weight: 500;
  margin-right: 10px; /* separa del botón Cerrar sesión */
  display: inline-flex;
  align-items: center;
}


@media (max-width: 768px) {
  .topbar .actions { display: none; }
  .hamburger, .hamburger-menu { display: flex; }
  main { padding: 40px 20px; }
}


/* ===========================
   COOKIES
=========================== */

/* Fondo de la ventana de cookies */
.ventana-cookies {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenido de la ventana */
.contenido-cookies {
  background: #fff;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.contenido-cookies h2 {
  margin-bottom: 15px;
  font-size: 22px; /* Texto más grande */
}

.contenido-cookies p {
  margin-bottom: 25px;
  font-size: 18px; /* Texto más grande */
  color: #555;
}

/* Botones en columna */
.botones-cookies {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Espacio entre los botones */
  align-items: center;
}

.botones-cookies button {
  width: 70%; /* Botones más grandes y consistentes */
  padding: 12px 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px; 
  transition: opacity 0.3s; /* Transición suave para hover */
}

/* Efecto hover: disminuye la opacidad */
.botones-cookies button:hover {
  opacity: 0.8;
}

.btn-aceptar {
  background-color: black;
  color: #fff;
}

.btn-rechazar {
  background-color: black;
  color: #fff;
}

.btn-configurar {
  background-color: white;
  color: black;
  border-color: black;;
}




/* ===========================
        HERO
=========================== */
.hero-full {
  position: relative;
  width: 100%;
  height: 80vh;  /* ajustable */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background: #000; /* fallback */
}

/* contenedor donde se crean las capas */
.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* cada slide (capa) */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* visible = slide activa */
.hero-slide.visible {
  opacity: 1;
}

/* overlay para oscurecer la imagen y mejorar legibilidad */
.hero-full::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
  pointer-events: none;
}

/* contenido encima de todo */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  padding: 0 20px;
}

/* botones y texto */
.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 0.6rem;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 18px);
  margin-bottom: 1rem;
  opacity: 0.95;
}

.hero-cta {
  background: #fff;
  color: #000;
  padding: 1rem 2rem;
  font-size: 1.3rem;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  transition: transform .18s ease, opacity .18s;
}

.hero-cta:hover {
  transform: translateY(-4px);
  opacity: 0.95;
}

/* responsive: altura menor en móviles */
@media (max-width: 768px) {
  .hero-full { height: 60vh; }
}


/* ===========================
   CATALOGO / GRID DE PRODUCTOS
=========================== */

.titulo-catalogo img {
  height: 150px; /* Ajusta según tu diseño */
  width: auto;
  display: block;
  margin: 0 auto; /* Centra la imagen si quieres */
}

.contenedor-catalogo {
  width: 100%;
  max-width: 1500px; /* antes 1200px */
  margin: 60px auto 0;
  padding: 0 20px;
}

.titulo-catalogo {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin-top: 100px;
  margin-bottom: 80px; /* espacio entre título y grid */
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Siempre 4 columnas */
  gap: 25px;
  margin: 0 auto;
}

.producto-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.producto-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
}

.thumb-placeholder {
  background-color: #ddd;
  height: 280px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

/* Textos de productos */
.producto-card h3 {
  font-size: 1.5rem;
  margin: 15px 0 5px;
  color: #222;
}

.descripcion {
  font-size: 1.2rem;
  color: #666;
  min-height: 40px;
}

.precio {
  margin: 10px 0;
  font-size: 1.2rem;
  color: #000;
}

.producto-color, .producto-stock {
  font-size: 1rem;
  margin: 5px 0;
}

.agotado { color: #d32f2f; font-weight: bold; }
.pocas-unidades { color: #ff9800; font-weight: bold; }

/* Formulario añadir al carrito */
.add-to-cart-form {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.select-talla, .input-cantidad {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9rem;
  width: 80%;
  text-align: center;
}

.btn-add {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 18px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}

.btn-add:hover { background-color: #444; }
.btn-add:disabled { background-color: #999; cursor: not-allowed; }

/* Responsive productos */
@media (max-width: 768px) {
  .productos-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .producto-card img { height: 220px; }
  .producto-card h3 { font-size: 1rem; }
}



/* ===========================
   SECCIÓN NEWSLETTER
=========================== */
.newsletter {
  background-color: #f5f5f5;
  padding: 100px 50px; /* más espacio arriba y abajo */
  text-align: center;
}

.newsletter h2 {
  font-size: 2.5rem; /* un poco más grande */
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* espacio entre texto y imagen */
}

.newsletter-img {
  height: 100px; /* tamaño adecuado */
  width: auto;
}

.newsletter p {
  margin-bottom: 30px;
  font-size: 1.4rem; /* letra más grande */
}

.newsletter-form {
  max-width: 600px; /* contenedor más ancho */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.newsletter-form input[type="email"] {
  padding: 15px; /* más grande para escribir */
  font-size: 1.2rem; /* letra más visible */
  width: 100%;
  box-sizing: border-box;
}

.checkbox-container {
  display: flex;           /* pone checkbox y texto en línea */
  align-items: center;     /* centra verticalmente */
  gap: 10px;               /* separación entre checkbox y texto */
  font-size: 1rem;
  cursor: pointer;         /* cambia cursor al pasar por encima */
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: black;     /* hace que el check sea negro al marcarlo */
}


.newsletter-form button {
  padding: 15px;
  background-color: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem; /* botón más visible */
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: #333;
}


/* ===========================
   FORMULARIO LOGIN
=========================== */
form {
  max-width: 500px;
  margin: 150px auto;
  padding: 60px 40px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-title {
  text-align: center;       /* centra la imagen */
  margin-bottom: 30px;
  margin-top: 30px;
}

.login-title .login-img {
  height: 150px;            /* ajusta según tu diseño */
  width: auto;
}

form label { display: flex; flex-direction: column; font-size: 18px; color: #333; font-weight: 500; }
form input[type="email"], form input[type="password"] {
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 18px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
form input:focus { border-color: #111; box-shadow: 0 0 5px rgba(0,0,0,0.1); outline: none; }

form button {
  padding: 16px;
  background-color: #111;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}
form button:hover { background-color: #333; transform: translateY(-2px); }

/* Mensajes flash/error */
.flash {
  background-color: #e6f7ff;
  color: #0050b3;
  border: 1px solid #91d5ff;
  max-width: 400px;
  margin: 10px auto;
  padding: 10px 15px;
  border-radius: 4px;
  text-align: center;
}

.error {
  background-color: #fff1f0;
  color: #a8071a;
  border: 1px solid #ffa39e;
  max-width: 400px;
  margin: 10px auto;
  padding: 10px 15px;
  border-radius: 4px;
  text-align: center;
}

@media (max-width: 480px) { form { padding: 30px 20px; margin: 30px 10px; } }



/* ===========================
   CARRITO DE COMPRAS
=========================== */

.cart-page {
    min-height: calc(100vh - 200px); /* 200px es aproximado de header+footer */
    display: flex;
    flex-direction: column;
}


.cart-title {
    text-align: center;
    margin-bottom: 20px;
}

.cart-img-title {
    height: 100px;
    width: auto;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.3rem;
    color: #333;
}

.cart-empty p {
    margin-top: 20px;
}

.cart-title {
  text-align: center;  /* centra la imagen */
  margin-bottom: 20px; /* separación con la tabla */
}

.cart-title .cart-img-title {
  height: 150px;       /* ajusta según tu diseño */
  width: auto;
}


/* Contenedor para reducir el tamaño de la tabla entera */
.cart-wrapper {
    max-width: 1000px;     /* AJUSTA AQUÍ: ancho total más pequeño */
    margin: 0 auto;       /* centrar */
    padding: 12px 0;
}

/* La tabla ocupa el 100% del contenedor reducido */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cart-table th,
.cart-table td {
    padding: 4px 8px;
    text-align: center;
    margin: -1;
}

.cart-table tbody td {
    font-size: 18px;   /* AJUSTA AQUÍ EL TAMAÑO GENERAL */
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

/* Encabezado */
.cart-table thead th {
    background: #111;
    color: white;
    font-size: 16px;
    padding: 12px 8px;
}

/* Imagen  */
.cart-table img {
    width: 200px;
    height: auto;
    margin-left: 8px;
}

.row-total td {
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-size: 16px;
}



/* ===========================
   TABLAS / ADMIN / PEDIDOS
=========================== */
table {
  width: 80%;
  border-collapse: collapse;
  margin: 0 auto 30px auto;
  font-family: Arial, sans-serif;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-top: 60px;
  margin-bottom: 120px;
}

thead { background-color: #222; color: #fff; }
thead th { padding: 12px 15px; text-align: left; }
tbody td { padding: 10px 15px; border-bottom: 1px solid #ddd; }
tbody tr:nth-child(even) { background-color: #f9f9f9; }
tbody tr:hover { background-color: #f1f1f1; }

a { color: #2196F3; text-decoration: none; font-weight: bold; }
a:hover { text-decoration: underline; }

/* Responsive tablas */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead tr { display: none; }
  tbody tr { margin-bottom: 15px; border-bottom: 2px solid #ddd; }
  tbody td {
    padding: 10px;
    text-align: right;
    position: relative;
  }
  tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 50%;
    text-align: left;
    font-weight: bold;
  }
}


/* ===========================
   FOOTER
=========================== */
/* FOOTER */
.footer {
    background: #000;
    color: white;
    padding: 60px 20px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* ==== TITULOS ==== */
.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ==== TEXTO E ICONOS ==== */
.footer-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.footer-item i {
    color: #fff;
}

/* ==== LISTA DE ENLACES ==== */
.footer-list {
    list-style: none;
    padding: 0;
    line-height: 1.9;
}

.footer-list a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.footer-list a:hover {
    opacity: 1;
}

/* ==== REDES SOCIALES ==== */
.footer-social {
    display: flex;
    gap: 20px;
    font-size: 26px;
}

.footer-social a {
    color: white;
    transition: 0.3s;
}

.footer-social a:hover {
    opacity: 0.7;
}

/* ==== APP BUTTON ==== */
.app-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #111;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.app-btn i {
    font-size: 26px;
}

.app-btn small {
    font-size: 10px;
    opacity: 0.8;
}

.app-btn strong {
    font-size: 14px;
}

.app-btn:hover {
    background: #222;
}

/* ==== BOTTOM ==== */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    opacity: 0.7;
}


/* ===========================
   ANIMACIONES
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

