/* ============================================= */
/* --- ESTILOS GLOBALES Y BASE --- */
/* ============================================= */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-color: #313131;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

main {
    padding-top: 12.5rem;
    width: 100%;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Clases de utilidad para validación de formularios */
.text-danger {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #F33757;
  opacity: 1;
  transition: all 0.5s ease;
  margin-left: 15px;
}

.is-invalid {
  border: 1px solid #F33757;
  box-shadow: 0px 0px 4px #F33757;
}

/* Animación de carga */
.loader {
  border: 16px solid #313131;
  border-top: 16px solid #e1530f;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Color de selección de texto */
::-moz-selection { /* Code for Firefox */
  color: white;
  background: #e1530f;
}
::selection {
  color: white;
  background: #e1530f;
}

/* Iconos flotantes (ej. WhatsApp) */
.chat-icons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 2;
}
.chat-icons a {
  display: block;
  margin: 5px 0;
}
.chat-icons img {
  width: 40px;
  height: 40px;
}

/* Chat de ayuda y recomendación */

.help-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 260px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none; /* Oculto por defecto */
  flex-direction: column;
  font-family: Arial, sans-serif;
  z-index: 9999;
}
.help-header {
  background: #0c0c0c;
  color: white;
  padding: 8px;
  font-weight: bold;
  border-radius: 12px 12px 0 0;
}

.help-header .brand-logo {
    height: 2rem;     
    width: auto;       
    margin-left: 0.8rem; 
    vertical-align: middle; 
}

.help-body {
  padding: 12px;
  font-size: 14px;
}
.help-buttons a img {
  width: 40px;
  margin: 5px;
  transition: transform 0.2s;
}
.help-buttons a img:hover {
  transform: scale(1.1);
}
#close-help {
  position: absolute;
  top: 6px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}


/* --- ESTILOS BANNER DE COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: black;
    color: white;
    padding: 1rem 2rem;
    display: none; /* Oculto por defecto, JS lo mostrará */
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    box-sizing: border-box;
    border-top: 1px solid #444;
}
.cookie-banner p {
    margin: 0;
    flex-grow: 1;
}
.cookie-banner a {
    color: #e1530f;
    font-weight: bold;
}
#cookie-accept-btn {
    background-color: #e1530f;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 2rem;
}

/* ============================================= */
/* --- ESTILOS HEADER (LOGO Y NAVBAR) --- */
/* ============================================= */

/* Contenedor principal de todo el encabezado */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Sección superior del header con el logo (fondo gris oscuro) */
.hero-banner {
  background-color: #313131; /* El color gris oscuro */
  display: flex;
  justify-content: center;
  padding: 0rem 0; /* Padding vertical para dar altura al logo */
}

/* Estilo para el logo en escritorio (dentro de hero-banner) */
.main-logo-desktop img {
  height: 100%; /* Tamaño del logo en escritorio */
  width: auto;
  display: block;
  margin: 0 auto;
}


/* Barra de navegación negra (inferior) */
.main-nav {
  background-color: black;
  padding: 1rem 0; /* Padding vertical para la altura del navbar */
  display: flex;
  justify-content: center; /* Centra los enlaces horizontalmente */
  width: 100%;
}

/* Contenedor interno para alinear elementos */
.main-nav-container {
    max-width: 1200px; /* Ancho máximo para el contenido */
    width: 100%;
    display: flex;
    justify-content: center; /* Por defecto centramos los links */
    align-items: center;
    position: relative; /* Para posicionar el dropdown y toggle en móvil */
}

/* La lista <ul> que contiene los enlaces */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4rem; /* Espacio entre enlaces POR DEFECTO */
  align-items: center; /* Centra los items verticalmente */
}

/* Espacio extra para el tercer elemento del menú ("Nosotros") - Tu estilo original */
.nav-links li:nth-child(3) {
  margin-left: 1rem;
}

/* Estilos para cada enlace <a> del menú */
.nav-link {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1rem;
  padding-bottom: 0rem;
  border-bottom: 0rem solid transparent;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.nav-link:hover {
  color: #e1530f;
  border-bottom-color: #e1530f;
}

.nav-link.active {
    color: #e1530f;
}

/* --- Dropdown para Escritorio (HOVER) --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%; /* Posiciona justo debajo del enlace padre */
  left: 0;
  background-color: black;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.5rem 0;
  list-style: none;
  min-width: 200px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px); /* Ligero desplazamiento para animación */
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: white;
  text-decoration: none;
}
.dropdown-menu a:hover {
  background-color: #313131;
}

/* --- ESTILOS PARA EL CARRITO EN NAVBAR --- */

.nav-cart {
    margin-left: auto;
    padding-left: 0.1rem;
}

.cart-link {
    position: relative;
    display: flex; /* Para alinear verticalmente la imagen y el contador */
    align-items: center;
    /* font-size: 1.8rem; Ya no es necesario para el ícono de font awesome */
}

/* Nuevo estilo para la imagen del carrito */
.cart-icon-img {
    height: 35px; /* Ajusta este valor según el tamaño deseado */
    width: auto;
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -10px; /* Ajusta la posición si la imagen es más grande */
    background-color: #e1530f;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================= */
/* --- ESTILOS PARA LA SESIÓN DE USUARIO EN NAVBAR --- */
/* ============================================= */

/* Estilo para el botón de Login cuando NO hay sesión */
.login-link-item {
    margin-left: 3rem; /* Separación extra de "Contacto" */
}
.login-link-item a {
    color: #ccc !important; /* Tono gris claro */
}

/* --- Estilos para cuando SÍ hay sesión --- */

/* Contenedor del menú de usuario (el <li>) */
.user-session {
    margin-left: 3rem; /* Misma separación que el login */
}

/* El enlace principal que contiene el ícono y el nombre */
.user-session > .nav-link {
    display: flex; /* Pone el ícono y el nombre en la misma línea */
    align-items: center; /* Los alinea verticalmente */
    color: #e1530f !important; /* Color naranja/rojo */
}

/* Estilo para el ícono/logo del usuario */
.user-icon {
    height: 25px; /* Tamaño del ícono */
    width: auto;
    margin-right: 8px; /* Espacio entre el ícono y el nombre */
}

/* El menú desplegable para "Perfil" y "Salir" */
.user-dropdown {
    right: 0; /* Alinea el menú a la derecha del contenedor */
    left: auto; /* Anula la alineación a la izquierda por defecto */
}

/* Enlaces dentro del menú de usuario */
.user-dropdown a {
    font-size: 0.9rem; /* <-- LETRA MÁS PEQUEÑA */
    text-transform: none; /* Quitamos las mayúsculas para un look más sutil */
}


/* ============================================= */
/* --- ESTILOS DEL FOOTER (adaptado a _footer.html) --- */
/* ============================================= */

footer.footer {
    background-color: #313131;
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem; /* Espacio entre columnas */
}

.footer-col {
    flex: 1;
}

/* Logo */
.footer-col.branding img {
    max-width: 250px; /* <-- Mantiene tu valor aumentado */
    margin-bottom: 0.5rem;
}

/* Títulos de columna */
.footer-col h3 {
    color: #e1530f;
    text-transform: uppercase;
    margin-top: 0;
    font-size: 1.4rem; /* <-- Mantiene tu valor aumentado */
}

/* Párrafos de contacto */
.footer-col p {
    margin: 0.5rem 0;
    font-size: 1rem; /* <-- Mantiene tu valor aumentado */
    color: #ccc;
}

/* Enlaces de navegación */
.footer-col ul li {
    margin-bottom: 0.7rem;
    font-size: 1.4rem; /* <-- Mantiene tu valor aumentado */
}

/* Enlace específico de Términos y Condiciones */
.terms-link {
    font-size: 1rem;
}

/* Links generales */
.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link:hover {
    text-decoration: underline;
    color: #e1530f;
}

/* Línea inferior */
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #555;
    font-size: 0.8rem;
    color: #888;
}

/* Redes sociales */
.social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icons img {
    width: 35px; /* <-- Mantiene tu valor */
    height: auto;
    transition: opacity 0.3s ease;
}

.social-icons img:hover {
    opacity: 0.8;
}



/* ============================================= */
/* --- OTROS COMPONENTES Y PÁGINAS --- */
/* ============================================= */

.Hero {
    display: flex;
    justify-content: center; /* La clave para centrar la imagen */
    margin: 0; /* Eliminamos el margin-top de 200px */
    padding: 0;
    line-height: 0;
}

.nosotros-content-wrapper .Hero img,
.mayoreo-hero img {
    width: 60%; /* <-- Le decimos que la imagen sea más angosta que su contenedor */
}

.ContactContainer {
    color: white;
    max-width: 900px;
    margin: auto;
    margin-top: 50px; /* Reducido para que no se vea tan abajo */
    padding-bottom: 50px;
}

.Contact {
    display: flex;
    background-color: black;
    justify-content: space-evenly;
    border-radius: 30px;
    align-items: baseline;
    padding: 2rem;
}

/* ============================================= */
/* --- ESTILOS PÁGINA "NOSOTROS"  --- */
/* ============================================= */

.AboutUs {
    background-color: black;
    position: relative;
}

.AboutUsTitle {
    background-color: #e1530f;
    width: 350px;
    height: 85px;
    text-transform: uppercase;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-85px/2);
}

.AboutUsTitle h2 {
    margin: 0;
    font-size: 1.5rem;
}

.AboutUsContent {
    padding: 10%;
}

.History {
    display: flex;
    gap: 4rem;  /* Un poco más de espacio entre elementos */
    align-items: center;
    max-width: 1400px; /* Un poco más ancho para dar espacio al texto */
    background-color: #313131;
    margin: auto;
    border-radius: 15px;
    margin-bottom: 5%;
    padding: 4rem; 
}

.History.reverse {
    flex-direction: row-reverse;
}

.ImageDesktop {
    width: 25%; /* Le damos un poco más de espacio a la imagen */
    padding: 0;
}

.Text {
    width: 80%; /* Y al texto */
    padding: 0;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

/* LA REGLA CLAVE: Aplicamos el tamaño directamente a los párrafos */
.Text p {
    font-size: 25px;
    margin-bottom: 3em; /* Añade un espacio entre párrafos */
}

.Text h2 {
    color: #e1530f;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: 35px;
}


/* ============================================= */
/* --- ESTILOS PARA PÁGINAS DE CONTENIDO --- */
/* ============================================= */

/* Título principal de la página */
.page-header h1 {
  font-size: 2.5rem;
  color: #fff;           /* ← blanco para TODOS los h1 dentro de .page-header */
}


.page-content {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    color: white;
    line-height: 1.7;
}

/* Párrafos de texto normal */
.page-content p {
    font-size: 1.2rem; /* <-- AJUSTA EL TAMAÑO DEL TEXTO NORMAL (1rem = 16px) */
}

/* Subtítulos naranjas */
.page-content h2 {
    color: #e1530f;
    font-size: 1.8rem; /* <-- AJUSTA EL TAMAÑO DE LOS SUBTÍTULOS H2 */
}

/* Subtítulos blancos-gris */
.page-content h3 {
    color: #f0f0f0;
    font-size: 1.6rem; /* <-- AJUSTA EL TAMAÑO DE LOS SUBTÍTULOS H3 */
}

/* ============================================= */
/* --- ESTILOS PÁGINA "MAYOREO"  --- */
/* ============================================= */

/*
   Aunque .Hero se usa en ambas páginas, podemos crear una
   regla específica si queremos un tamaño de imagen diferente en Mayoreo.
*/
.mayoreo-hero img {
    width: 70%; 
}

/* Usamos .mayoreo-content-wrapper para anidar las reglas
  y asegurarnos de que solo afecten a esta página.
*/
.mayoreo-content-wrapper .History {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    background-color: #313131;
    margin: auto;
    border-radius: 15px;
    margin-bottom: 5%;
    padding: 4rem; 
}

.mayoreo-content-wrapper .History.reverse {
    flex-direction: row-reverse;
}

.mayoreo-content-wrapper .ImageDesktop {
    width: 25%;
    padding: 0;
}

.mayoreo-content-wrapper .ImageDesktop img {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    border: 3px solid white;
    object-fit: cover;
}

.mayoreo-content-wrapper .Text {
    width: 70%;
    padding: 0;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.mayoreo-content-wrapper .Text p {
    font-size: 20px;
    margin-bottom: 3em;
}

.mayoreo-content-wrapper .Text h2 {
    color: #e1530f;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
}

.faq-section-wrapper {
    background-color: #313131;
    position: relative;
    padding-bottom: 2rem;
}

.faq-container {
    max-width: 1200px;
    margin: auto;
}

.faq-item {
    background-color: transparent; /* Remove the old background */
    border-radius: 15px;
    margin-bottom: 1rem;
    color: white;
    overflow: hidden; /* Helps with the border-radius */
    border: 2px solid white;

}

.faq-question {
    background-color: black; /* <-- NUEVO FONDO NEGRO */
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none; 
    position: relative;
    padding-right: 2rem; 
}

/* Remove the old '+' symbol */
.faq-question::after {
    content: ' '; /* Clears the old content */
    /* NEW ARROW STYLES */
    width: 15px;
    height: 15px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-75%) rotate(45deg); /* Positions the arrow pointing down */
    transition: transform 0.3s ease;
}

/* When the question is open, rotate the arrow to point up */
.faq-item[open] > .faq-question::after {
    transform: translateY(-50%) rotate(-135deg); 
}

.faq-answer {
    background-color: #313131; /* <-- NUEVO FONDO GRIS OSCURO */
    padding: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
    /* Removed the border-top and margin-top for a cleaner look */
}

.faq-section-wrapper .AboutUsContent {
    padding-top: 5rem; 
    padding-bottom: 5rem;
    padding-left: 10%;
    padding-right: 10%;
}

.faq-answer h4 {
    color: #e1530f; 
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.faq-answer ul {
    margin-top: 0.5rem;
    padding-left: 25px;
}


/* ============================================= */
/* --- ESTILOS PÁGINA "RECLUTAMIENTO" --- */
/* ============================================= */

.recruitment-background {
    background-color: #313131;
}

/* Contenedor principal de la página de reclutamiento */
.recruitment-content-wrapper {
    position: relative;
    margin-top: 5rem; 
    margin-bottom: 5rem;
    padding-left: 2rem; /* Añadimos padding para que no se pegue a los bordes */
    padding-right: 2rem;
}

/* NUEVA CLASE PARA EL TÍTULO */
.recruitment-title {
    background-color: #e1530f;
    color: white;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem .2rem;
    border-radius: 15px;
    max-width: 20rem;
    margin: 0 auto -2rem auto; 
        /* --- LÍNEAS AÑADIDAS PARA LA SUPERPOSICIÓN --- */
    position: relative; /* Activa el sistema de capas */
    z-index: 1;         /* Pone esta capa por encima de las demás (que tienen z-index 0 por defecto) */
}

.recruitment-content-wrapper .AboutUsContent {
    padding: 0; /* Eliminamos el padding que causaba el espacio */
}

.recruitment-title h2 {
    margin: 0;
    font-size: 1.8rem;
}

/* Le damos el fondo negro al recuadro principal de esta página */
.recruitment-content-wrapper .History {
    background-color: black;
}

/* El resto de las reglas se quedan como estaban */
.recruitment-content-wrapper .Text p {
    font-size: 18px;
    margin-bottom: 1.5em;
}

.recruitment-content-wrapper .Text h2 {
    font-size: 30px;
}

.benefits-list {
    list-style: disc; 
    padding-left: 25px; 
    margin-top: 0;
    font-size: 18px;
}

.benefits-list li {
    margin-bottom: 1em;
}

.contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 2px solid #555;
    border-radius: 10px;
    background-color: #222; 
}

/* ============================================= */
/* --- ESTILOS PÁGINA "CONTACTO"  --- */
/* ============================================= */

.contact-page-wrapper {
    padding-top: 5rem; 
    margin-bottom: 5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Título de la página */
.contact-title {
    background-color: #e1530f;
    color: white;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem 0.2rem;
    border-radius: 15px;
    max-width: 400px;
    margin: 0 auto -2rem auto; /* Tu margen negativo para superponer */

    /* --- LÍNEAS AÑADIDAS PARA LA SUPERPOSICIÓN --- */
    position: relative; /* Activa el sistema de capas */
    z-index: 1;         /* Pone esta capa por encima de las demás (que tienen z-index 0 por defecto) */
}

.contact-title h2 {
    margin: 0;
    font-size: 1.8rem;
}

/* El recuadro principal que contiene las dos columnas */
.contact-page-wrapper .History {
    display: flex;
    gap: 3rem;
    background-color: black;
    
    /* --- LÍNEA AÑADIDA PARA AJUSTAR EL TAMAÑO --- */
    max-width: 1000px; /* <-- AJUSTA ESTE VALOR para hacerlo más pequeño (ej. 1000px) */
    margin: 0 auto; /* Centra el recuadro en la página */
    align-items: flex-start;
}

/* Columna Izquierda: Detalles de Contacto */
.contact-details {
    width: 40%;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.2rem;
}

/* Estilo para el logo en la página de contacto */
.contact-logo img {
    max-width: 250px; /* Ajusta el tamaño del logo como necesites */
    margin-bottom: .1rem; /* Espacio entre el logo y el primer ícono */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item img {
    width: 30px;
    height: auto;
}

/* Columna Derecha: Formulario */
.contact-form-side {
    width: 60%;
}

/* --- ESTILOS PARA EL FORMULARIO --- */
/* Estos son similares a los de Reclutamiento */
.contact-form-side .form-group {
    margin-bottom: 1rem;
}

.contact-form-side .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #ccc;
}

.contact-form-side .form-group input,
.contact-form-side .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #313131; /* Fondo gris oscuro */
    border: 1px solid #777;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form-side .btn-submit {
    display: block;
    width: 20%;
    padding: 1rem;
    background-color: #e1530f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form-side .btn-submit:hover {
    background-color: #c14b0e;
}

.contact-map {
    margin-top: 2rem; 
    width: 100%;
}

.contact-map iframe {
    border-radius: 15px; 
    width: 100%; 
}


/* ============================================= */
/* --- ESTILOS PÁGINA "INDEX" --- */
/* ============================================= */

.index-hero-video {
    height: calc(100dvh - 12.5rem) !important; /* ocupa la altura visible menos el padding-top del <main> */
    /* fallbacks por si el navegador no soporta dvh */
    height: calc(100svh - 12.5rem) !important;
    height: calc(100vh  - 12.5rem) !important;
    display: block;
    overflow: hidden;
  }
  .index-hero-video video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;        /* <- ahora entra completo */
  object-position: center;    /* centrado dentro del contenedor */     
    display: block;
  }

/* Contenedor para el resto del contenido */
.index-page-wrapper {
    background-color: black;
    position: relative; /* Necesario para posicionar el título */
    padding: 2rem;
}

/* Título superpuesto */
.index-title-box {
    background-color: white;
    color: black;
    text-align: center;
    border-radius: 15px;
    padding: 1rem 2rem;
    max-width: 380px;
    margin: auto;
    position: relative;
    top: 2rem; /* Sube el título para que se superponga */
    z-index: 1;
}

.index-title-box h2 {
    margin: 0;
    text-transform: uppercase;
    font-size: 1.5rem;
}

/* Sección de contenido */
.index-page-wrapper .History {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: auto;
    background-color: #313131;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 5rem;
    padding: 2rem; 
    gap: 0;
}
.index-page-wrapper .History .ImageDesktop { 
    order: -1; 
}
  .index-page-wrapper .History .Text { 
    order: 0; 
}
.index-page-wrapper .ImageDesktop {
    width: 50%;
}

.index-page-wrapper .ImageDesktop img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px; 
}
.index-page-wrapper .Text {
    width: 50%;
    color: white;
    font-family: 'Montserrat', sans-serif;
    padding: 4rem; 
    text-align: center;
}
.index-page-wrapper .Text h3 {
    font-size: 30px;
    color: white; 
}
.index-page-wrapper .Text p {
    font-size: 20px;
    margin-bottom: 0rem;
}
.index-page-wrapper .cta-text {
    font-weight: bold;
    text-transform: uppercase;
    color: #e1530f; /* Texto de llamada a la acción en naranja */
}

/* Estilo para el recuadro de "Contáctanos" */
.cta-highlight {
    display: inline-block;
    background-color: #e1530f;
    color: white;
    padding: .1rem .5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.cta-highlight p {
    font-weight: bold;
    color: white; /* Nos aseguramos de que el párrafo también sea blanco */
    margin: 0; /* Quitamos márgenes del párrafo para que encaje bien */
}
.who-title {
    background-color: #e1530f;
    color: white;
    text-align: justify;
    border-radius: 15px;
    padding: 1rem 3rem;
    max-width: 38rem; 
    margin: 0rem 0rem -10rem auto;
    position: relative;
    z-index: 2;
}

.who-title h2 {
    margin: 0;
    text-transform: uppercase;
    font-size: 1.5rem;
}

/* Contenedor de la imagen */
.who-section {
    background-color: black;
    padding: 0rem 0rem 0rem 0rem; /* Padding superior para dejar espacio al título */
    border-radius: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.who-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    border: 5px solid white; 
}

.who-section-background {
    background-color: #313131;
    border-radius: 1rem;
    padding: 2rem;
}

/* Título de la sección */
.why-us-title {
    background-color: #e1530f;
    color: white;
    text-align: center;
    border-radius: 1rem;
    padding: 1rem 2rem;
    max-width: 500px;
    margin: -3.5rem auto 0px auto;
    position: relative;
    z-index: 2;
}

.why-us-title h2 {
    margin: 0;
    text-transform: uppercase;
    font-size: 2rem;
}

/* Contenedor principal de la sección con fondo negro */
.why-us-section {
    background-color: black;
    padding: 80px 2rem 2rem 2rem; /* Padding superior para dejar espacio al título */
    border-radius: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

/* La cuadrícula 2x2 para las imágenes */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas de igual tamaño */
    gap: 1.5rem; /* Espacio entre las imágenes */
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px; /* Esquinas redondeadas para las imágenes */
}

.choose-option-section {
    background-color: #313131; /* Fondo gris oscuro */
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.section-main-title {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    border-bottom: 3px solid #e1530f; /* Subrayado naranja */
    display: inline-block; /* Hace que el subrayado se ajuste al texto */
    padding-bottom: 0.5rem;
    color: white;
}

.options-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.option-card {
    flex: 1;
    display: flex;
    flex-direction: column; /* Apila los elementos uno debajo del otro */
    align-items: center;    /* Centra todo horizontalmente */
    justify-content: space-between; /* Distribuye el espacio verticalmente */
}

.option-card img {
    height: 80px; /* Ajusta la altura de los íconos */
    width: auto;
    margin-bottom: 1rem;
}

.option-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* El subrayado naranja para los títulos de las opciones */
.option-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: #e1530f;
}

.option-card p {
    font-size: 1rem;
    color: white;
    height: 50px;
}

.btn-option {
    display: inline-block;
    background-color: #e1530f;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.btn-option:hover {
    background-color: #c14b0e;
}

.brands-section {
    padding: 4rem 2rem; /* Espacio vertical para separar de las otras secciones */
    background-color: black; /* Fondo negro para la sección */
    text-align: center; /* Centra la imagen */
}

.brands-section img {
    max-width: 100%; /* Asegura que la imagen sea responsive */
    height: auto;
}

.quote-section-wrapper {
    background-color: #313131; /* Fondo gris para la sección */
    padding: 4rem 2rem;
    margin-top: 5rem; /* Espacio superior para separar de la FAQ */
}

.quote-content-container {
    display: flex;
    align-items: center; /* Centra verticalmente las dos columnas */
    gap: 3rem;
    max-width: 75rem; /* Ancho máximo del contenedor */
    margin: 0 auto; /* Centra el contenedor en la página */
    border-radius: 1rem;
    padding: 2rem;
}

.quote-video-column {
    flex: 2; /* Ocupa una parte del espacio */
    max-width: 45%; /* El video no debería ser demasiado grande */
    border-radius: 0.6rem;
    overflow: hidden; /* Asegura que el video respete el border-radius */
}

.quote-video-column video {
    width: 100%;
    height: auto;
    display: block;
}

.quote-text-column {
    flex: 1; /* Ocupa más espacio que el video */
    color: white;
    text-align: center;
}

.quote-text-column h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: white;
}

.btn-quote {
    display: inline-block;
    background-color: #e1530f;
    color: white;
    padding: 0.5rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 8px;
    font-size: 2.4rem; 
    transition: background-color 0.3s ease;
}

.btn-quote:hover {
    background-color: #c14b0e;
}


.google-reviews-section {
    padding: 80px 2rem;
    background-color: #313131; /* Fondo gris oscuro */
    position: relative;
    margin-top: 5rem;
}

.google-widget-container {
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenedor */
    display: flex;
    justify-content: center; /* Centra el iframe horizontalmente */
}


/* ============================================= */
/* --- ESTILOS SECCIÓN TESTIMONIOS (DISEÑO FINAL) --- */
/* ============================================= */

.testimonial-section-simple {
    padding: 80px 2rem;
    background-color: black;
    position: relative;
}

.testimonials-grid {
    display: flex; /* Pone las tarjetas una al lado de la otra */
    justify-content: center; /* Centra las tarjetas en el contenedor */
    gap: 2rem; /* Espacio entre las tarjetas */
    max-width: 1400px;
    margin: 3rem auto;
    flex-wrap: wrap; /* Permite que las tarjetas bajen a la siguiente línea si no caben */
}

.testimonial-card-simple {
    background-color: #313131;
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    width: 15rem; /* Ancho fijo para cada tarjeta */
    box-sizing: border-box;
}

.testimonial-card-simple .stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-card-simple .comment {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card-simple .author {
    font-weight: bold;
    color: #e1530f;
}

.google-attribution {
    text-align: center;
    margin-top: 2rem;
}
.google-attribution img {
    height: 15px;
}

/* ============================================= */
/* --- ESTILOS PÁGINA "TIENDA" --- */
/* ============================================= */

.shop-hero {
    text-align: center; /* Centra la imagen */
    padding: 0rem 0;    /* Añade un poco de espacio vertical arriba y abajo */
}

.shop-hero img {
    max-width: 100%; /* Asegura que la imagen no se salga de la pantalla */
    height: auto;    /* Mantiene la proporción de la imagen */
    border-radius: 15px; /* Opcional: añade bordes redondeados a la imagen */
}

/* --- ESTILOS CARRUSEL DE PRODUCTOS --- */
.product-carousel-section {
    background-color: #313131;
    padding: 4rem 2rem;
}

.product-carousel {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    overflow: hidden; 
}

.product-card {
    background-color: white;
    color: black; 
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
    width: 23rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
  width: 20rem;     /* Ancho fijo */
  height: 36rem;    /* Alto fijo */
}

.product-material {
  font-size: 0.9rem;
  margin: 0.3rem 0;
  color: #444;
}

.product-short-text {
  font-size: 0.9rem;
  margin: 0.3rem 0;
  color: #555;
}

.product-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: bold;
}

.product-brand img {
  height: 1.5rem; 
  width: auto;
}

.product-image-container {
  position: relative;
  margin-top: 10px;     /* baja el recuadro unos px */
  aspect-ratio: 1 / 0.8;  /* casi cuadrado; prueba 1 / 1.1 si quieres más alto */
  overflow: hidden;     /* recorta sobrantes si usas cover */
  background: #fff;
  
}


.product-image-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centra geométricamente */
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  object-fit: contain;               /* ajusta sin recortar */
}



/* Etiqueta de descuento */
.discount-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #e1530f;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
}

/* Etiqueta de envío gratis */
.envio-gratis-badge {
  position: absolute;
  top: 10px;
  right: 10px; /* 👈 A la derecha */
  background-color: green;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}


.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e1530f;
    margin: 0 0 1rem 0;
}

.product-category {
    font-size: 0.9rem; 
    color: #666; 
    margin: 0.5rem 0;
    text-transform: uppercase;
}

.btn-product {
    display: inline-block;
    background-color: #e1530f;
    color: black;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-product:hover {
    background-color:#666;
}

/* Estilos para el contenedor de precios */
.price-container {
    margin: 0.1rem 0 1rem 0; /* Espacio vertical */
    display: flex; /* Alinea los precios horizontalmente */
    justify-content: center;
    align-items: center; /* Alinea por la base del texto */
    gap: 0rem; /* Espacio entre los dos precios */
    flex-direction: column;  /* Apila los precios verticalmente */
    line-height: 1.2; /* Reduce el espacio entre las líneas de los precios */
}

/* Estilo para el precio original (tachado) */
.original-price {
    font-size: 1rem;
    color: red; /* Color gris */
    text-decoration: line-through; /* ¡La clave para tacharlo! */
}

/* Estilo para el precio final (destacado) */
.final-price {
    font-size: 1.5rem;
    font-weight: bold;
    color:#90EE90;
}

/* Botón: centrado y dentro de la card */
.product-card .product-info {
  padding: 1rem 1.25rem 1.25rem;  /* da aire y evita que “toque” el borde */
}
/* Divisor entre imagen y texto más notorio */
.product-card .product-info {
  border-top: 2px solid #d9d9d9;   /* más grueso y más oscuro */
  padding-top: 1.25rem;            /* un poco de aire sobre el texto */
}

/* ---- Estructura para fijar el botón abajo ---- */
.product-card,
.product-card-inner{
  display: flex;
  flex-direction: column;
  height: 100%;                 /* la card ocupa todo el alto de su celda */
}

.product-card .product-info{
  display: flex;
  flex-direction: column;
  flex: 1;                      /* el contenido crece y deja hueco para el botón */
}

.product-card .btn-product {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
margin-top: auto;   /* empuja el botón hacia abajo */
margin-bottom: 0;
  border: none;
  background: #e1530f;
  color: #fff;
  border-radius: 10px;
  box-sizing: border-box;
}
/* ====== Cards: alturas uniformes y textos controlados ====== */

/* 1) La card y su wrapper ocupan todo el alto de su celda */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 2) Imagen con proporción fija (todas iguales) */
.product-image-container {
  aspect-ratio: 4 / 3;         /* prueba 1/1 si prefieres cuadrada */
  overflow: hidden;
  background: #fff;
}
.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* usa cover si quieres llenar recortando */
  object-position: center;
  display: block;
}

/* 3) El cuerpo crece y deja espacio para el botón */
/* (esto ya lo tienes, lo reafirmamos por si otro bloque lo pisa) */
.product-card .product-info {
  display: flex;
  flex-direction: column;
  flex: 1;                      /* ocupa todo el espacio disponible */
}

/* 4) Botón pegado abajo (esto lo tienes con margin-top:auto) */
.product-card .btn-product {
  margin-top: auto;
}

/* 5) Limita líneas para que el texto no “rompa” la altura */
.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* máximo 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2rem;           /* reserva el espacio de esas 2 líneas */
}

.product-short-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;        /* máximo 3 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6rem;           /* reserva aprox 3 líneas */
}

/* 6) En el grid, que todas las cards se “estiren” igual */
.product-grid { 
  align-items: stretch;          /* asegura misma altura visual por fila */
}
/* ====== Cards: reserva de alturas por sección ====== */

/* Título: 2 líneas fijas */
.product-title{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2rem;            /* ≈ 2 líneas */
}

/* Precio: reserva espacio igual para todos (tachado + final) */
.price-container{
  min-height: 3.2rem;            /* ajusta si usas fuente más grande */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* “Material:” en 1 línea (o 2 si lo necesitas) *

/* Título más grande dentro de la card */
.product-card .product-title {
  font-size: 1.35rem;   /* prueba 1.4–1.6rem si lo querés aún más grande */
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .25rem;
}

/* ====== Tarjeta estilo ML (overrides) ====== */

/* Card: borde claro, sin altura/anchos fijos */
.product-card {
  background: #fff;
  color: #333;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  width: 100% !important;      /* ocupa toda la columna del grid */
  height: auto !important;      /* elimina el alto fijo */
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* Imagen contenida (no recortada) y más compacta */
.product-image-container {
  position: relative;
  background: #fff;
}
.product-image-container img {
  width: 100%;
  height: 300px;                /* 180–220px funciona bien */
  object-fit: contain;          /* que se vea completa */
  display: block;
}

/* % OFF en pastilla gris redondeada (arriba-izquierda) */
.discount-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #eee;
  color: #333;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: .9rem;
}
.discount-tag::after {
  content: " OFF";
}

/* Envío gratis: pill verde (arriba-derecha) */
.envio-gratis-badge {
  top: 12px;
  right: 12px;
  background: #00a650;          /* verde ML */
  color: #fff;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: .9rem;
}

/* Contenido con separador y tipografía compacta */
.product-info {
  padding: 16px;
  text-align: left;
  border-top: 1px solid #eee;
}

/* Título más chico, semibold y con menos margen */
.product-title {
  font-size: 1rem;              /* ≈ 16px */
  font-weight: 600;
  color: #333;
  margin: 8px 0 6px;
}

/* Precios: columna, original tachado gris y final grande/negro */
.price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 6px 0 10px;
}
.original-price {
  font-size: .9rem;
  color: #9e9e9e;
  text-decoration: line-through;
}
.final-price {
  font-size: 1.6rem;            /* grande */
  font-weight: 800;
  color: #111;                   /* negro */
}

/* Texto secundario más sutil (y opcionalmente ocultable) */
.product-material,
.product-short-text,
.product-brand,
.product-category {
  color: #777;
  font-size: .95rem;
  line-height: 1.35;
}

/* Marca a la izquierda y logo alineado al texto */
.product-card .product-brand {
  justify-content: flex-start;   /* ya no centrado */
  text-align: left;
}

.product-card .product-brand span {
  display: inline-flex;          /* texto + logo en línea */
  align-items: center;           /* alinea verticalmente */
  gap: .4rem;                    /* espacio entre "Marca:" y el logo */
}

.product-card .product-brand .brand-logo {
  height: 1.2rem;
  width: auto;
  position: relative;
  top: 1px;                      /* microajuste opcional */
}

/* Si quieres un look aún más limpio, descomenta para ocultarlos: */
/*
.product-material,
.product-short-text,
.product-brand,
.product-category { display: none; }
*/

/* Botón tipo “Agregar al carrito”: blanco con borde negro, full width */
.btn-product {
  display: block;
  width: 100%;
  text-align: center;
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: none;
  transition: background .2s ease, transform .05s ease;
}
.btn-product:hover { background: #f7f7f7; }
.btn-product:active { transform: translateY(1px); }

/* --- ESTILOS SECCIÓN "TIPOS DE FUNDAS" (ANCHO COMPLETO) --- */

/* Nuevo contenedor que fuerza el ancho completo */
.full-width-container {
    width: 100vw; /* 100% del ancho de la ventana */
    background-color: #313131; /* Fondo gris oscuro */
    margin-left: calc(-50vw + 50%); /* Truco para centrarlo y que ocupe todo el ancho */
}

.types-section {
    padding: 4rem 2rem;
    max-width: 87rem; /* Limitamos el contenido interior para que no sea demasiado ancho */
    margin: 0 auto; /* Centramos el contenido */
}

/* La cuadrícula ahora no tiene límite de ancho, se ajusta a su padre */
.types-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 18rem 18rem;
    gap: 1.5rem;
    height: 38rem; /* <-- DEFINE LA ALTURA FIJA DE LA SECCIÓN */
}

/* La tarjeta de la izquierda le decimos que ocupe 2 filas */
.large-card {
    grid-row: 1 / 3;
}

/* Las imágenes llenan su tarjeta/celda sin deformarse */
.type-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 15px;
}

/* Hacemos que cada tarjeta sea un contenedor de posicionamiento */
.type-card {
    position: relative; /* Esencial para posicionar el texto encima */
    overflow: hidden; /* Asegura que la barra respete los bordes redondeados */
    border-radius: 15px;
}

/* La barra de texto semitransparente */
.image-overlay-text {
    position: absolute; /* Permite que flote sobre la imagen */
    bottom: 0; /* La pega en la parte inferior de la tarjeta */
    left: 0;
    width: 100%; /* Ocupa todo el ancho de la tarjeta */
    
    background-color: rgba(49, 49, 49, 0.7); /* Gris oscuro con 70% de opacidad */
    color: white;
    
    padding: 3rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-sizing: border-box; /* Para que el padding no afecte el ancho */
}

.product-carousel .swiper-slide {
    padding: 0 0; 
}

/* ============================================= */
/* --- ESTILOS PÁGINA "FICHA DE PRODUCTO" --- */
/* ============================================= */
.product-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.product-detail-container {
    display: flex;
    gap: 3rem;
    color: black;
}

/* Columna Izquierda */
.product-images-column {
    flex: 1;
    min-width: 0; /* Solución para un bug común de Flexbox con Swiper */
}

.main-image img {
    width: 100%;
    border-radius: 15px;
    border: 3px solid #555;
}
.thumbnail-images {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.thumbnail-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #777;
    cursor: pointer;
}

/* Columna Derecha */
.product-details-column {
    flex: 1; /* Ocupa la otra mitad */
}
.product-main-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: white;
    margin-top: 0;
}
.price-container-detail {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 1rem 0;
}
.discount-badge {
    background-color: #28a745; /* verde ahorro */
    color: white;
    font-weight: bold;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    display: inline-block;
}

.price-container-detail .original-price {
    font-size: 1.5rem;
    color: #888;
    text-decoration: line-through;
}
.price-container-detail .final-price {
    font-size: 2rem;
    font-weight: bold;
    color: #e1530f;
}
.product-long-description {
    line-height: 1.7;
    font-size: 1.1rem;
}
.btn-buy {
    display: inline-block;
    background-color: #e1530f;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
    font-size: 1.2rem;
}
.btn-buy:hover {
    background-color: #c14b0e;
}

/* --- Estilos para la Galería de Producto --- */
.product-gallery-main{
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1rem;
  border: 2px solid #111;   /* línea negra del marco */
  background: #fff;         /* fondo blanco de la caja */
  overflow: hidden;         /* mantiene todo dentro del marco */
  padding: 1rem;            /* aire interno; baja a .5rem o quita si estorba */
}

.product-gallery-main .swiper-slide{
  background: #fff !important;  /* fuerza blanco dentro del carrusel */
}

.product-gallery-main .swiper-slide img,
.product-gallery-main .swiper-slide video{
  width: 100%;
  height: 520px;      /* ajusta 480–560px a gusto */
  object-fit: contain;/* sin recortes; respeta el blanco alrededor */
  background: #fff;
  border: 0;
}

.product-gallery-main .swiper-button-next,
.product-gallery-main .swiper-button-prev {
    color: #e1530f !important;
}

.product-gallery-thumbs {
    height: 100px;
}
.product-gallery-thumbs .swiper-slide {
    opacity: 0.4;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
}
.product-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #e1530f;
}
.product-gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-thumb {
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #e1530f;
}


/* Fondo blanco para la página */
.white-background {
    background-color: white;
}
.white-background .product-page-wrapper,
.white-background .product-main-title,
.white-background .product-long-description {
    color: black; /* Cambiamos el texto a negro sobre fondo blanco */
}

/* Resumen de Reseñas */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.reviews-summary span {
    color: #e1530f; /* Estrellas en naranja */
    font-size: 1.2rem;
}
.reviews-summary a {
    color: #555;
    text-decoration: none;
}

/* Contenedor de Opciones */
.product-options {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
}
.option-group {
    display: flex;
    flex-direction: column;
}
.option-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Selector de Color */
.color-selector {
    display: flex;
    gap: 0.5rem;
}
.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ccc;
}
/* Ocultamos el radio button real */
.color-selector input[type="radio"] {
    display: none;
}
/* Estilo para el color seleccionado */
.color-selector input[type="radio"]:checked + .color-swatch {
    border: 3px solid #e1530f; /* Borde naranja al seleccionar */
}

.material-text {
    font-size: 1rem;
    font-weight: bold;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    color: black;
}

.related-products-section .section-main-title {
    color: black;
    padding-top: 3rem;
}

/* --- Estilos para el Selector de Cantidad --- */
.quantity-selector {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: fit-content; /* Se ajusta al contenido */
}

.quantity-selector input[type="number"] {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    -moz-appearance: textfield; /* Oculta las flechas por defecto del navegador */
}
/* Oculta las flechas por defecto para Chrome, Safari, etc. */
.quantity-selector input[type="number"]::-webkit-outer-spin-button,
.quantity-selector input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-btn {
    background-color: #f4f4f4;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0 1rem;
    font-weight: bold;
}
.quantity-btn.minus {
    border-right: 1px solid #ccc;
}
.quantity-btn.plus {
    border-left: 1px solid #ccc;
}

/* --- ESTILOS SECCIÓN DE RESEÑAS --- */
.reviews-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

.reviews-section .section-main-title {
    color: black;
}

/* ===== FICHA: reseñas – layout con grid ===== */
.reviews-container {
  display: grid;
  grid-template-columns: 320px 1fr;  /* resumen | lista */
  gap: 2rem;
  align-items: start;
  color: black;
}

.reviews-summary-box { grid-column: 1; }
.reviews-list        { grid-column: 2; }

/* Formulario y mensajes: a lo ancho, debajo de ambas columnas */
.reviews-container > .review-form,
.reviews-container > .already-reviewed-note,
.reviews-container > .login-to-review-note {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Columna Izquierda: Resumen */
.reviews-summary-box {
    flex: 1;
    text-align: center;
}
.summary-total-stars {
    font-size: 4rem;
    font-weight: bold;
    margin: 1rem 0;
}
.summary-stars {
    color: #e1530f;
    font-size: 1.5rem;
}

/* Columna Derecha: Lista de Reseñas */
.reviews-list {
    flex: 2;
}
.review-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.review-author {
    font-weight: bold;
}
.review-item .stars {
    color: #e1530f;
}

/* --- FORMULARIO DE RESEÑAS --- */
.review-form {
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 1rem;
  max-width: 40rem;
  margin-left: auto;   /* centrado */
  margin-right: auto;  /* centrado */
}

.review-form h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.review-form .brand-logo {
    height: 2rem;     
    width: auto;       
    margin-left: 0.8rem; 
    vertical-align: middle; 
}

.review-form label {
    display: block;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #444;
}

/* --- STAR RATING --- */
.star-rating {
    display: flex;
    flex-direction: row-reverse; /* estrellas alineadas de derecha a izquierda */
    justify-content: flex-end;
    gap: 0.3rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #e1530f; /* estrellas en naranja */
}

.rating-group {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* espacio entre el texto y las estrellas */
}

.rating-group label {
    margin: 0; /* quitamos margen extra */
}

/* Comentario */
.review-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;          
    margin: 0; 
    display: block;
    box-sizing: border-box; 
}

.review-form textarea:focus {
    border-color: #e1530f;
}

/* Botón */
.btn-submit-review {
    display: inline-block;
    margin-top: 1rem;
    background-color: #e1530f;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit-review:hover {
    background-color: #c14b0e;
}



/* ============================================= */
/* --- ESTILOS PÁGINA "REGISTRO" --- */
/* ============================================= */

/* --- ESTILOS PÁGINAS DE AUTENTICACIÓN (Login/Registro) --- */
.auth-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); /* Ajusta la altura para centrar verticalmente */
    padding: 2rem; /* Reduced padding */
    color: white;
}

.auth-form-container {
    background-color: #1a1a1a; /* Fondo más oscuro para el contraste */
    padding: 2.5rem 3.5rem; /* Aumentado el padding para más espacio */
    border-radius: 15px;
    width: 100%;
    max-width: 480px; /* Ancho máximo ligeramente ajustado */
    box-shadow: 0 8px 30px rgba(0,0,0,0.8); /* Sombra más pronunciada */
    border: 1px solid #333; /* Borde sutil */
}

.auth-logo {
    display: block; /* Para centrarlo */
    margin: 0 auto 1.5rem auto; /* Centra y añade margen inferior */
    width: 150px; /* Ajusta el tamaño del logo */
    height: auto;
}

.auth-form-container h2 {
    text-align: center;
    color: #e1530f; /* Naranja de tu marca */
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-size: 2rem; /* Tamaño de fuente más grande */
    letter-spacing: 1px;
}


/* Estilos mejorados para los grupos de formulario */
.form-group {
    margin-bottom: 1.5rem; /* Más espacio entre campos */
}

.form-group label {
    display: block; /* La etiqueta ocupa su propia línea */
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: #ccc; /* Color de texto más suave */
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.9rem 1.2rem; /* Más padding para los inputs */
    background-color: #333; /* Fondo oscuro para los inputs */
    border: 1px solid #555; /* Borde sutil */
    border-radius: 8px; /* Bordes redondeados */
    color: white; /* Texto blanco */
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Transiciones suaves */
}


.form-group input:focus {
    border-color: #e1530f; /* Borde naranja al enfocar */
    box-shadow: 0 0 0 3px rgba(225, 83, 15, 0.3); /* Sombra al enfocar */
    outline: none; /* Quitar el contorno predeterminado del navegador */
}

/* Estilo para el botón de submit */
.btn-submit {
    display: block; /* Ocupa todo el ancho */
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #e1530f; /* Naranja de tu marca */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 2rem; /* Margen superior para separarlo de los campos */
}

.btn-submit:hover {
    background-color: #c14b0e; /* Tono más oscuro al pasar el ratón */
    transform: translateY(-2px); /* Pequeño efecto de elevación */
}

.auth-switch-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
}
.auth-switch-link p {
    color: #aaa; /* Color de texto más suave */
}
.auth-switch-link a {
    color: #e1530f;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}
.auth-switch-link a:hover {
    color: #f06a2a; /* Ligeramente más claro al pasar el ratón */
    text-decoration: underline;
}


/* --- ESTILOS PARA MENSAJES FLASH --- */
.alert {
    padding: 1rem;
    margin: 1rem auto; /* Centra el alert */
    max-width: 800px; /* Ancho máximo */
    border-radius: 8px;
    color: white; /* Color del texto */
    font-weight: bold;
    text-align: center;
    border: 1px solid transparent;
}
.alert-success {
    background-color: #28a745; /* Fondo verde para éxito */
    border-color: #1e7e34;
}
.alert-danger {
    background-color: #dc3545; /* Fondo rojo para error */
    border-color: #b21f2d;
}

/* ============================================= */
/* --- ESTILOS PÁGINA "PERFIL" --- */
/* ============================================= */

.profile-page-wrapper {
    max-width: 45rem;
    margin: 4rem auto;
}

.page-main-title {
    background-color: #e1530f;
    color: white;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem 0.2rem;
    border-radius: 15px;
    max-width: 400px;
    margin: 0 auto 2rem auto;
    position: relative;
    z-index: 1;
}

.page-main-title h1 {
    margin: 0;
    font-size: 1.8rem;
}

.profile-card {
    background-color: black;
    border-radius: 15px;
    border: 1px solid #444;
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-card-title {
    background-color: #313131;
    color: white;
    font-size: 1.5rem;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.profile-card-title h2 {
    margin: 0;
}

.profile-title-icon {
    height: 1.5em;
    width: auto;
}

.profile-card-content {
    padding: 1rem 1.5rem;
}

/* --- Datos del perfil --- */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid #333;
    font-size: 1.1rem;
    color: white;
}
.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-weight: bold;
    color: #ccc;
}

.profile-card-footer {
    padding: 1.5rem;
    text-align: center;
    background-color: #1a1a1a;
}
.btn-edit {
    display: inline-block;
    background-color: #e1530f;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}

/* Botones modo edición */
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-edit-cancel {
    display: inline-block;
    background-color: #555;
    color: white;
    padding: 0.8rem 2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

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

.profile-card .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: #ccc;
    font-weight: bold;
}

.profile-card .form-group input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.static-field span {
    color: white;
}

/* --- Historial de Compras --- */
.order-history {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    color: white;
    font-size: 0.95rem;
}
.order-history th, .order-history td {
    padding: 0.9rem;
    text-align: center;
    border-bottom: 1px solid #444;
}
.order-history th {
    text-transform: uppercase;
    color: #e1530f;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.order-history tr:hover {
    background-color: #1f1f1f;
}

/* --- Iconos de descarga --- */
.download-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}
.download-icon:hover {
    transform: scale(1.2);
}

/* Bloque de descargar todas */
.download-all-wrapper {
    margin-top: 20px;
    text-align: right;
}
.download-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e1530f;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}
.download-all-link:hover {
    color: #ff6f3c;
}
.download-all-icon {
    width: 36px;
    height: 36px;
    transition: transform 0.2s ease;
}
.download-all-link:hover .download-all-icon {
    transform: scale(1.2);
}

/* Divisor y subtítulos dentro del formulario */
.form-divider {
    border-color: #444;
    margin: 2rem 0;
}
.form-subtitle {
    text-align: center;
    color: white;
    margin-bottom: 1rem;
}


/* ============================================= */
/* --- ESTILOS PÁGINA "CARRITO DE COMPRAS" --- */
/* ============================================= */
.cart-page-wrapper {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.cart-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start; /* Alinea la parte de arriba de las columnas */
}

/* Columna Izquierda */
.cart-items {
    flex: 2; /* Ocupa 2/3 del espacio */
}
.cart-items table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}
.cart-items th, .cart-items td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #444;
}
.cart-items th {
    text-transform: uppercase;
    color: #ccc;
}
.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

/* Columna Derecha */
.cart-summary {
    flex: 1; /* Ocupa 1/3 del espacio */
    background-color: black;
    color: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #444;
    margin-right: clamp(12px, 2vw, 28px);
}
.cart-summary h3 {
    margin-top: 0;
    text-transform: uppercase;
    border-bottom: 1px solid #555;
    padding-bottom: 1rem;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.total-row {
    font-weight: bold;
    font-size: 1.2rem;
}
.btn-checkout {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #e1530f;
    color: white;
    padding: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}
.btn-checkout:hover {
    background-color: #c14b0e;
}

/* Estilo para el carrito vacío */
.empty-cart {
    text-align: center;
    padding: 4rem;
    color: white;
    font-size: 1.2rem;
}

.btn-remove {
    color: #dc3545; /* Rojo */
    text-decoration: none;
    font-weight: bold;
}
.btn-remove:hover {
    text-decoration: underline;
}

.quantity-form {
    display: flex;
    align-items: center;
}
.quantity-form input {
    width: 50px;
    text-align: center;
    border: 1px solid #555;
    background-color: #313131;
    color: white;
    border-radius: 5px;
    margin-right: 10px;
}
.quantity-form button {
    background-color: #555;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
.quantity-form button:hover {
    background-color: #e1530f;
}

.cart-items a {
    color: white;
    text-decoration: none;
}

.cart-items a:hover {
    color: #e1530f;
}

/* ============================================= */
/* --- ESTILOS PÁGINA "CATEGORÍAS" --- */
/* ============================================= */
.category-page-container {
    display: flex;
    gap: 2rem;
    max-width: 1600px; /* Ancho máximo de la página */
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Columna de la izquierda (más pequeña) */
.category-sidebar {
    flex: 0 0 250px; /* No crece, no se encoge, ancho base de 250px */
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 15px;
    color: white;
    align-self: flex-start; /* Se alinea arriba */
}
.category-sidebar h3 {
    color: #e1530f;
    text-transform: uppercase;
    border-bottom: 2px solid #555;
    padding-bottom: 0.5rem;
    margin-top: 0;
}
.category-sidebar ul {
    list-style: none;
    padding: 0;
}
.category-sidebar ul li a {
    display: block;
    padding: 0.8rem;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
.category-sidebar ul li a:hover {
    background-color: #313131;
}

/* Estilo para la categoría seleccionada en la barra lateral */
.category-sidebar ul li.active a {
    background-color: #e1530f; /* Naranja/rojo */
    font-weight: bold;
}



/* CUADRÍCULA DE PRODUCTOS: ESTA ES LA CLAVE */
.product-grid {
    display: grid;
    /* Esto crea columnas que intentan ser de 300px, pero se ajustan si no hay espacio */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20rem; /* Espacio entre las tarjetas */
}

/* ============================================= */
/* --- ESTILOS PÁGINA "CHECKOUT / PAGO" --- */
/* ============================================= */
.checkout-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}
.checkout-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}
.customer-info-col {
    flex: 2; /* Ocupa 2/3 del espacio */
    color: white;
}
.order-summary-col {
    flex: 1; /* Ocupa 1/3 del espacio */
    background-color: black;
    color: white;
    padding: 2rem;
    border-radius: 15px;
}
.order-summary-col h3 {
    margin-top: 0;
}
.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.summary-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.summary-item-details {
    flex-grow: 1;
}

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

.faq-answer .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: bold;
    color: #ccc;
}

.faq-answer .form-group input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

/* --- ESTILOS PARA VALIDACIÓN DE CHECKOUT --- */
.faq-question {
    display: flex; /* Para alinear el título y los íconos */
    align-items: center;
}

.step-icon {
    margin-left: 1rem; /* Empuja los íconos a la derecha */
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.step-complete {
    color: #28a745; /* Verde */
    display: none; /* Oculto por defecto */
}
.step-incomplete {
    color: #dc3545; /* Rojo */
    display: block; /* Visible por defecto */
}

/* Cuando la sección está completa, mostramos la palomita y ocultamos el tache */
.checkout-step.completed .step-complete {
    display: block;
}
.checkout-step.completed .step-incomplete {
    display: none;
}

/* Estilo para el botón deshabilitado */
.btn-checkout:disabled {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.shipping-summary h4 {
    margin-top: 0;
    color: #e1530f;
}
.shipping-summary p {
    line-height: 1.6;
    color: #ccc;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 0.5rem 1rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}


.order-summary-col #summary_payment_method img {
  height: 30px;
  max-width: 140px;
  object-fit: contain;
  vertical-align: middle;
}



/* Estilo del buscador global */
.search-bar-global {
  background: #e1530f;
  padding: 10px 1rem;
  border-bottom: 1px solid black;
  margin-top: 1rem;
  z-index: 5;
  position: relative;
}

/* Ajuste fino del logo dentro del buscador */
.search-bar-global .logo-global img {
  position: relative;
  top: 2px;        /* prueba 3–8px según lo que te guste */
  /* alternativa: transform: translateY(6px); */
}


.search-form {
  flex: 1; 
  display: flex;
}

.search-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.search-form button {
  padding: 8px 16px;
  background: #e1530f;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.search-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  width: 60%; 
  max-width: none; 
}

.logo-global img {
  height: 32px;   
  width: auto;    
  object-fit: contain;
  margin-right: 8px;
}

/* --- MÉTODOS DE PAGO --- */
.payment-methods {
    display: flex;
    flex-direction: column; /* cada opción en una línea */
    gap: 1rem;
    margin-top: 1rem;
}

.payment-methods label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    background-color: white;
    padding: 0.8rem 1rem;
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: black;
    font-size: 0.6rem;
}

.payment-methods label:hover {
    background-color: #e1530f;
}

.payment-methods input[type="radio"] {
    accent-color: #e1530f; /* color del radio button */
    transform: scale(1.2);
}

.payment-methods img {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
    align-items: center;
}



/* ============================================= */
/* --- ESTILOS PÁGINA BUSCAR.HTML --- */
/* ============================================= */

.page-header {
  margin-bottom: 2rem; /* separa el título de los resultados */
  background-color: #e1530f;
}
.search-page .page-header h1 { color: #fff; }

.search-page .page-header p  { color: #fff; }

.product-grid-main {
  margin-top: 2rem; /* separa del header */
      flex-grow: 1; /* Ocupa todo el espacio restante */
    padding: 0;
}

.product-grid {
    display: grid;
    /* Esto crea columnas que intentan ser de 300px, pero se ajustan si no hay espacio */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 3rem; /* 👈 aumenta el espacio entre las tarjetas */
}

/* ============================================= */
/* --- ESTILOS DE PAGINACION --- */
/* ============================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 6rem;   /* separación con las tarjetas */
}

.pagination a,
.pagination span {
    background-color: #e1530f;  /* rojo/naranja */
    color: #fff;               /* texto blanco */
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #313131; 
}

.pagination span {
    cursor: default;
}

/* ============================================= */
/* --- ESTILOS DE BOTONES DE WHATSAPP/TELEGRAM/MESSENGER --- */
/* ============================================= */

.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.fab {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab img {
  width: 3rem;
  height: 3rem;
    object-fit: contain;

}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}


/* ============================================= */
/* --- ESTILOS DE PAGINA AGRADECIMIENTO.HTML --- */
/* ============================================= */


.thankyou-container {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
    padding: 20px;
}

.thankyou-container h1 {
    font-size: 2.2rem;
    color: #28a745;
    margin-bottom: 10px;
}

.thankyou-container .subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: white;
}

.orders-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.order-box {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.order-box h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.order-id {
    color: #e1530f;
    font-weight: bold;
}

.btn-volver {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1rem;
    color: #fff;
    background-color: #e1530f;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-volver:hover {
    background-color: #dc3545;
}


/* ============================================= */
/* --- ESTILOS DE ERROR 404 --- */
/* ============================================= */

/* --- PÁGINA DE ERROR 404 --- */
.error-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    color: black;
}

.error-container {
    max-width: 600px;
    padding: 2rem;
}

.error-logo {
    width: 250px;
    margin-bottom: 2rem;
}

.error-container h1 {
    font-size: 6rem;
    font-weight: bold;
    color: #e1530f;
    margin: 0;
}

.error-container h2 {
    font-size: 2rem;
    margin: 1rem 0;
    color: #333;
}

.error-container p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.btn-home {
    display: inline-block;
    background-color: #e1530f;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-home:hover {
    background-color: #c14b0e;
}


/* ============================================= */
/* --- ESTILOS DE PENDING.HTML --- */
/* ============================================= */ 

.pending-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
}

.pending-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 600px;
}

.pending-logo {
    max-width: 250px;
    margin-bottom: 1.5rem;
}

.btn-home {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #e1530f;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-home:hover {
    background-color: #c4420c;
}


/* ===== Landing Colchonetas (scope: .landing-colchonetas) ===== */

/* Layout base */
.landing-colchonetas .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.landing-colchonetas .section {
  padding: 24px 0;
}

.landing-colchonetas .section-title {
  text-align: center;
  margin: 8px 0 16px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
}

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

/* 1) Hero/logo con fondo #313131 */
.landing-colchonetas .hero-logo {
  background: #313131;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;

  position: sticky;
  top: 0;          /* punto donde se “pega” */
  z-index: 20;     /* por encima del resto */
}
.landing-colchonetas .hero-logo img {
  max-width: 900px;
  width: 100%;
  height: auto;
  display: block;
}

/* Imágenes full width genéricas */
.landing-colchonetas .shop-hero,
.landing-colchonetas .shop-hero img {
  width: 100%;
  display: block;
  height: auto;
}

/* 3) Grilla de 3 columnas (colchonetaInfo1/2/3) */
.landing-colchonetas .media-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.landing-colchonetas .media-grid-3 img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* 4) Video */
.landing-colchonetas .video-wrap {
  max-width: 1000px;
  margin: 0 auto;
}
.landing-colchonetas .video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* 5) Grid de productos (si no existe en tu sitio principal) */
.landing-colchonetas .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== Footer compacto para la landing ===== */
.footer {
  background: #111;
  color: #eee;
  margin-top: 32px;
}
.footer a { color: #eee; text-decoration: none; }
.footer a:hover { opacity: 0.85; }

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* branding | contacto | redes */
  gap: 24px;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.footer-col p { margin: 0 0 8px; }
.footer-col address { font-style: normal; }

.footer .branding img {
  max-width: 220px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.footer-links .footer-link {
  display: inline-block;
  font-size: 0.95rem;
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-icons img {
  width: 28px;
  height: 28px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #bbb;
}



















/* ============================================= */
/* --- MEDIA QUERIES (Estilos Responsive Móvil) --- */
/* ============================================= */



/* ===== Breakpoints ===== */
@media (max-width: 1200px) {
  .landing-colchonetas .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .landing-colchonetas .media-grid-3 { grid-template-columns: 1fr; }
  .landing-colchonetas .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .landing-colchonetas .product-grid { grid-template-columns: 1fr; }
}



/* --- Menú Hamburguesa para Móvil --- */
    .menu-toggle {
        display: none; /* Oculto por defecto en escritorio */
        cursor: pointer;
        position: absolute; /* Para que quede a la derecha en móvil */
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: white;
        transition: all 0.3s ease-in-out;
    }

    /* ===== MENÚ label + carrito fijo SOLO en móvil ===== */
    .mobile-label {
    display: none;                 /* Desktop: oculto */
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .95rem;
    pointer-events: none;
    }

    .nav-cart-standalone {
    display: none;                 /* Desktop: oculto */
    }

    /* Mantén el orden normal en desktop */
    .nav-links .auth-entry {
    order: 0;
    margin-left: 5rem;
    }



    @media (min-width: 960px) {
  .white-background .related-products-section .product-carousel .swiper-wrapper {
    margin: 0 -24px;              /* compensa el padding de los slides */
  }
  .white-background .related-products-section .product-carousel .swiper-slide {
    padding: 0 24px;              /* 👈 separa las tarjetas (ajusta 16–40px) */
  }
}

/* ============================================= */
/* --- MEDIA QUERIES (Estilos Responsive Móvil) --- */
/* ============================================= */

/* Estilos que aplican en pantallas de 960px de ancho o menos */
@media screen and (max-width: 960px) {

    /* --- NAVBAR MÓVIL --- */
    .main-logo-mobile {
        display: block;
    }
    .main-logo-mobile img {
        height: 50px;
        width: auto;
    }
    .nav-links {
        display: none;             
        position: absolute;
        top: 70px;
        right: 0;
        width: 80%;
        max-width: 18rem;
        height: 50vh;  
        background-color: #111;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        padding: 1.5rem 1rem;
        border-radius: 0 0 0 10px;
        overflow-y: auto; 
        z-index: 2000;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        padding: 1rem 0;
    }
    .nav-links li:nth-child(3) {
        margin-left: 0;
    }
    .dropdown-menu {
        position: static;
        background-color: #1a1a1a;
        border: none;
        border-left: 2px solid #ff5722;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block;
        margin-top: 1rem;
        padding-left: 1rem;
    }
    .dropdown-menu li {
        padding: 0.5rem 0;
    }
    .menu-toggle {
        display: block;
        z-index: 2;
    }
    .main-nav-container {
        position: relative;
        height: 2rem;                
    }
    .mobile-label {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
    }
    .nav-cart-standalone {
        position: absolute;
        right: max(1rem, env(safe-area-inset-right)); /* notch-safe en iOS */
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        z-index: 3;
        left: auto;         /* anula el left:21rem anterior */
        margin-right: 5rem;
    }
    .nav-cart-standalone .cart-icon-img {
        height: 28px;
    }
    .nav-cart-standalone .cart-counter {
        top: -6px; 
        right: -8px;
    }
    .nav-cart {
        display: none;
    }
    .nav-links .auth-entry {
        order: -100;
        border-bottom: 1px solid #2a2a2a;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* --- FOOTER MÓVIL --- */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-col {
        margin-bottom: 2rem;
    }
    .footer-col:last-child {
        margin-bottom: 0;
    }

    /* --- CONTENIDO DE PÁGINAS EN MÓVIL --- */
    .History {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 2rem 1rem;
    }
    .History .Text,
    .History .ImageDesktop {
        width: 100% !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }
    .nosotros-page-wrapper .Hero img {
        width: 100%;
    }
    /* --- ESTILOS RESPONSIVE PARA "NOSOTROS" --- */
    .nosotros-content-wrapper .Text h2 {
        font-size: 1rem; /* Tamaño más pequeño para el título en móvil */
    }

    .nosotros-content-wrapper .Text p {
        font-size: 18px; /* Tamaño más pequeño para el párrafo en móvil */
        margin-bottom: 1.5em; /* Menos espacio entre párrafos */
    }


    /* --- ESTILOS RESPONSIVE PARA "INDEX.HTML" --- */

    /* Ajustamos el video principal */
    .index-hero-video {
    height: calc(100dvh - 12.5rem) !important; /* ocupa la altura visible menos el padding-top del <main> */
    /* fallbacks por si el navegador no soporta dvh */
    height: calc(100svh - 12.5rem) !important;
    height: calc(100vh  - 12.5rem) !important;
    display: block;
    overflow: hidden;
  }
  .index-hero-video video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;              /* llena sin deformar */
    display: block;
  }
    /* Ajustamos el contenedor principal de contenido */
    .index-page-wrapper {
        padding: 1rem;
    }

    /* Hacemos que los títulos superpuestos sean más pequeños */
    .index-title-box, .who-title, .why-us-title {
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        top: -30px; /* Ajustamos la superposición */
        margin-bottom: -30px;
    }
    .index-title-box h2, .who-title h2, .why-us-title h2 {
        font-size: 1.2rem;
    }

    /* 1) Quita la superposición del título "¿POR QUÉ ELEGIRNOS?" */
  .index-title-box.why-us-title {
    position: static !important;     /* no offsets relativos */
    top: 0 !important;               /* anula el top móvil previo */
    margin: 1.25rem auto 0 !important; /* sin margen negativo; centrado */
  }

  /* 2) (Opcional) Reduce el padding-top de la sección negra
        porque ya no necesitamos espacio para “meter” el título encima */
  .why-us-section {
    padding-top: 2rem; /* antes: 80px */
  }

    .who-section-background {
    display: grid;                 
    grid-template-areas:
      "img"
      "text";
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* IMAGEN ARRIBA */
  .who-section {
    grid-area: img;
  }

  /* TEXTO ABAJO */
  .who-title {
    grid-area: text;
    /* anula superposición y márgenes pensados para desktop */
    top: 0 !important;
    margin: 0.75rem auto 0 !important;
    width: min(90%, 38rem);         /* mantiene tu ancho máximo y lo centra */
  }

    /* Apilamos las tres opciones de vehículos */
    .options-container {
        flex-direction: column;
    }

    /* Ajustamos la cuadrícula de "Por qué elegirnos" a una sola columna */
    .why-us-grid {
        grid-template-columns: 1fr; /* Una sola columna */
    }

    /* Apilamos la sección del video de cotización */
    .quote-content-container {
        flex-direction: column;
    }
    .quote-video-column, .quote-text-column {
        width: 100%;
        max-width: 100%;
    }

    /* Ajustamos el tamaño de las tarjetas de testimonio */
    .testimonials-grid {
        flex-direction: column;
        align-items: center;
    }
    .testimonial-card-simple {
        width: 90%; /* Ocupan casi todo el ancho */
    }

    /* ===== PERFIL > HISTORIAL DE COMPRAS (RESPONSIVE) ===== */


  /* 1) Oculta cabecera y convierte cada fila en "tarjeta" */
  .order-history thead { 
    display: none; 
  }

  .order-history {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .order-history tbody {
    display: block;               /* permite apilar filas */
  }

  .order-history tbody tr {
    display: block;               
    background: #1a1a1a;          /* contraste con la card negra */
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  /* 2) Cada celda muestra su "etiqueta" y el valor */
  .order-history td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .45rem 0;
    border: none;
    color: white;                 /* asegura contraste */
    word-break: break-word;       /* evita desbordes en textos largos */
  }

  .order-history td::before {
    color: #e1530f;               /* etiqueta */
    font-weight: bold;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .02em;
  }

  /* 3) Etiquetas por columna (en el orden actual del HTML) */
  .order-history td:nth-child(1)::before { content: "Orden"; }
  .order-history td:nth-child(2)::before { content: "Fecha"; }
  .order-history td:nth-child(3)::before { content: "Producto"; }
  .order-history td:nth-child(4)::before { content: "Color"; }
  .order-history td:nth-child(5)::before { content: "Monto"; }
  .order-history td:nth-child(6)::before { content: "Acciones"; }

  /* 4) Ajustes visuales para la columna de acciones */
  .order-history td:nth-child(6) {
    justify-content: flex-start;  /* icono alineado a la izquierda del valor */
  }
  .order-history td:nth-child(6) .download-icon {
    width: 28px;
    height: 28px;
  }

  /* 5) Botón "Descargar todas" centrado en móvil */
  .download-all-wrapper {
    text-align: center;
  }



/* ===== TIENDA ===== */

/* Reorganiza la cuadrícula */
  .types-grid {
    grid-template-columns: 1fr 1fr;   /* dos columnas para las pequeñas */
    grid-template-rows: auto auto;    /* dos filas */
    gap: 1rem;                         /* un poco menos de gap en móvil */
    height: auto;                      /* anula altura fija de desktop */
  }

  /* La grande ocupa toda la primera fila */
  .types-grid .large-card {
    grid-column: 1 / -1;              /* de la col 1 a la última */
    grid-row: 1;                       /* primera fila */
    /* Mantén una proporción agradable para móvil */
    aspect-ratio: 2 / 1;               /* más “panorámica” para la grande */
  }

  /* Las pequeñas comparten la segunda fila, una por columna */
  .types-grid .small-card-top,
  .types-grid .small-card-bottom {
    grid-row: 2;
    aspect-ratio: 16 / 9;              /* proporción estándar para las pequeñas */
  }
  .types-grid .small-card-top    {
    grid-column: 1; 
}
  .types-grid .small-card-bottom { 
    grid-column: 2; 
}

  /* Asegura que las imágenes llenen su tarjeta correctamente */
  .type-card { 
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    }
  .type-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}
  .image-overlay-text { 
    padding: 1rem; 
} 

.shop-hero picture { 
    display: block; 
}
.shop-hero picture img { 
    display: block; 
    width: 100%; 
    height: auto;
 }













/* === Botones en estado cargando (compatibles con tu main.js) === */
button[disabled],
.btn[disabled],
.btn-submit[disabled],
.btn-checkout[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Clase de loading: oculta el texto original y muestra overlay con el mensaje */
.is-loading {
  position: relative;
  pointer-events: none;
}

.is-loading > .btn-label {
  visibility: hidden; /* mantiene el tamaño del botón */
}

.is-loading::after {
  content: attr(data-loading-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Spinner opcional a la izquierda (si no te gusta, elimina este bloque) */
.is-loading::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  opacity: .8;
}

/* Mostrar el texto del botón directamente cuando usamos show-label */
.is-loading.show-label > .btn-label { visibility: visible; }
.is-loading.show-label::after,
.is-loading.show-label::before { display: none; } /* sin overlay/spinner */
/* Cursor tipo "espera" mientras se procesa */
body.cursor-wait, body.cursor-wait * {
  cursor: progress !important; /* o "wait" si lo prefieres */
}

/* Cursor global "espera" muy prioritario */
html.cursor-wait, html.cursor-wait *,
body.cursor-wait, body.cursor-wait * {
  cursor: wait !important; /* usa 'wait' si prefieres */
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}













/* ===== BUSCAR.HTML (responsive) ===== */

/* 1) Encabezado de la página más compacto y legible */
.page-header {
  padding: 1rem 1rem;            /* añade padding en móvil */
  text-align: center;            /* centra el título y el subtítulo */
}
.page-header h1 {
  font-size: 1.4rem;             /* reduce tamaño del título */
  margin: 0 0 .25rem 0;
}
.page-header p {
  font-size: 1rem;               /* tamaño cómodo para el subtítulo */
  margin: 0;
  word-break: break-word;        /* evita desbordes con búsquedas largas */
}

/* 2) Grid de productos SOLO en buscar.html (usamos el hermano inmediato) */
.page-header + .product-grid-main {
  padding: 0 1rem;               /* respirito lateral en móvil */
}

@media (min-width: 100px) and (max-width: 400px) {
  .page-header + .product-grid-main .product-grid {
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
  }
}

/* 3) La tarjeta debe ocupar el ancho completo del grid en móvil */
.page-header + .product-grid-main .product-card {
  width: 100% !important;        /* override al width: 20rem; de desktop */
  /* si prefieres, puedes dejar la altura fija; si la ves muy alta en móvil,
     comenta la altura fija de desktop o agrega: height: auto; */
  /* height: auto !important; */
}

/* 4) Paginación más compacta en móvil */
.page-header + .product-grid-main .pagination {
  gap: 1rem;                     /* antes: 4rem */
  margin-top: 2.5rem;            /* antes: 6rem */
}
.page-header + .product-grid-main .pagination a,
.page-header + .product-grid-main .pagination span {
  padding: .5rem 1rem;           /* pildas más chicas */
  font-size: 1rem;
}


/* CARRITO.HTML */

/* ===== CARRITO (responsive) ===== */

/* 0) Estructura general: apilar columnas */
.cart-container {
  flex-direction: column;
  gap: 1.25rem;
}

/* 1) Tabla -> tarjetas */
.cart-items .cart-table thead {
  display: none;                  /* ocultamos cabecera en móvil */
}
.cart-items .cart-table,
.cart-items .cart-table tbody,
.cart-items .cart-table tr,
.cart-items .cart-table td {
  display: block;                 /* apilado */
  width: 100%;
}
.cart-items .cart-table tr {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

/* 2) Cada celda muestra etiqueta (simulamos los th) + valor */
.cart-items .cart-table td {
  display: grid;
  grid-template-columns: 8rem 1fr; /* etiqueta | valor */
  align-items: center;
  gap: .75rem;
  padding: .45rem 0;
  border: none;
  color: #fff;
  word-break: break-word;
}

/* Etiquetas por columna (según el orden de tus <td>) */
.cart-items .cart-table td:nth-child(1)::before { content: "Imagen"; }
.cart-items .cart-table td:nth-child(2)::before { content: "Producto"; }
.cart-items .cart-table td:nth-child(3)::before { content: "Material"; }
.cart-items .cart-table td:nth-child(4)::before { content: "Color"; }
.cart-items .cart-table td:nth-child(5)::before { content: "Precio"; }
.cart-items .cart-table td:nth-child(6)::before { content: "Cantidad"; }
.cart-items .cart-table td:nth-child(7)::before { content: "Subtotal"; }
.cart-items .cart-table td:nth-child(8)::before { content: "Acciones"; }

.cart-items .cart-table td::before {
  color: #e1530f;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .02em;
}

/* 3) Ajustes visuales específicos */
.cart-item-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
}

/* Título del producto: que no se corte feo */
.cart-items td:nth-child(2) a {
  color: #fff;
  text-decoration: none;
}
.cart-items td:nth-child(2) a:hover {
  color: #e1530f;
}

/* Precio y subtotal un poco más marcados */
.cart-items td:nth-child(5),
.cart-items td:nth-child(7) {
  font-weight: 700;
}

/* Cantidad: que el formulario se vea bien en móvil */
.quantity-form {
  gap: .5rem;
}
.quantity-form .quantity-input {
  width: 64px;        /* un poco más cómodo para dedo */
}
.quantity-form .btn-update {
  background: #555;
  color: #fff;
  border: none;
  padding: .5rem .75rem;
  border-radius: 6px;
  cursor: pointer;
}
.quantity-form .btn-update:hover {
  background: #e1530f;
}

/* Acciones: botón eliminar como enlace claro */
.cart-items .btn-remove {
  display: inline-block;
  font-weight: 700;
}

/* 4) Resumen: ancho completo y respiración */
.cart-summary {
  width: 100%;
  margin-top: .5rem;
  padding: 1.25rem;
}
.cart-summary .btn-checkout {
  margin-top: 1rem;
}

/* 5) Header de la página más compacto en móvil */
.page-header {
  padding: 1rem;
  text-align: center;
}
.page-header h1 {
  font-size: 1.4rem;
  margin: 0;
}

.cart-page-wrapper {
  padding: 0 !important;           /* anula el padding 0 2rem de desktop */
}
.cart-container {
  padding-inline: 1rem;            /* 👉 mismo espacio L/R para TODO el contenido */
}

.search-bar-container {
    padding: 0 1rem; /* iguala gutters con el contenedor */
  }

  .category-page-container {
    flex-direction: column;      /* apila sidebar + grid */
    gap: 1rem;
    padding: 0 1rem;             /* gutters simétricos en móvil */
    margin: 1rem auto;           /* un poco menos de margen vertical */
  }

  /* --- Sidebar a ancho completo y “pills” --- */
  .category-sidebar {
    flex: 0 0 auto;
    width: 100%;
    align-self: stretch;         /* ocupa el ancho del contenedor */
    padding: 1rem;
  }

  .category-sidebar h3 {
    margin: 0 0 .75rem;
    text-align: center;
  }

  .category-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .category-sidebar ul li {
    margin: 0;
  }

  .category-sidebar ul li a {
    display: inline-block;
    padding: .6rem .9rem;
    border: 1px solid #2a2a2a;
    border-radius: 9999px;       /* pills */
    text-decoration: none;
    color: #fff;
    background: transparent;
    transition: background-color .2s ease, color .2s ease;
  }

  .category-sidebar ul li a:hover {
    background: #313131;
  }

  .category-sidebar ul li.active a {
    background-color: #e1530f;
    border-color: #e1530f;
    color: #fff;
    font-weight: 700;
  }

  /* --- Grid de productos en móvil --- */
  .product-grid-main {
    padding: 0;                  /* ya damos gutters en el contenedor padre */
  }

  /* 1 columna por defecto en móvil */
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Asegura que las cards no desborden el ancho del grid */
  .product-grid .product-card {
    width: 100%;
    max-width: 100%;
  }

  /* Paginación más compacta en móvil */
  .pagination {
    gap: 1rem;
    margin-top: 2rem;
  }


/* --- 2 columnas solo en tablets (701–959px) --- */
@media (min-width: 701px) and (max-width: 959px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }
}



/* ===== FICHA DE PRODUCTO (≤960px) ===== */


  /* layout general */
  .product-page-wrapper {
    padding: 1rem;
  }

  .product-detail-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .product-images-column,
  .product-details-column {
    flex: none;
    width: 100%;
    min-width: 0;           /* evita overflow de Swiper */
  }

  /* Layout y espaciado de la columna derecha */
.product-details-column{
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto; /* título | precios | talla/desc | opciones | relleno | botón */
  row-gap: 1rem;
  align-content: start;
  max-width: 760px;
}

/* Título un poco más compacto verticalmente */
.product-main-title{
  margin: 0;
  line-height: 1.15;
}

/* Precios con respiración y wrap si se requiere */
.price-container-detail{
  margin: .25rem 0 .5rem;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Opciones alineadas en rejilla y con separación clara */
.product-options{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* Color | Material | Cantidad */
  gap: 1rem 1.5rem;
  align-items: center;
}

/* Botón con aire y borde suave */
.btn-buy{
  margin-top: .75rem;
  align-self: start;
  padding: 1rem 2rem;
  border-radius: 10px;
}

/* Responsive: en móvil las opciones bajan a una columna, y la imagen no tan alta */
@media (max-width: 960px){
  .product-options{ grid-template-columns: 1fr; }
  .product-gallery-main .swiper-slide img,
  .product-gallery-main .swiper-slide video{ height: 360px; }
}

  /* galería principal */
  .product-gallery-main {
    border-width: 2px;
    margin-bottom: .5rem;
  }
  .product-gallery-main .swiper-slide img,
  .product-gallery-main .swiper-slide video {
    width: 100%;
    height: min(65vw, 420px);   /* altura flexible en móvil */
    object-fit: contain;
  }
  .product-gallery-main .swiper-button-next,
  .product-gallery-main .swiper-button-prev {
    /* si estorban, baja opacidad */
    color: #e1530f !important;
    /* opacity: .75; */
  }

  /* miniaturas */
  .product-gallery-thumbs {
    height: 70px;
    margin-top: .25rem;
  }
  .product-gallery-thumbs .swiper-slide {
    border: 1px solid #777;
    border-radius: 8px;
    opacity: .85;
  }
  .product-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #e1530f;
  }

  /* título + precios */
  .product-main-title {
    font-size: 1.6rem;
    margin: .25rem 0 .5rem;
  }
  .price-container-detail {
    gap: .75rem;
    margin: .75rem 0;
    flex-wrap: wrap;
  }
  .price-container-detail .original-price { font-size: 1.1rem; }
  .price-container-detail .final-price    { font-size: 1.6rem; }
  .discount-badge {
    font-size: .8rem;
    margin: .25rem 0 0 0;  /* bajo el precio en móvil */
  }

  .product-long-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* opciones */
  .product-options {
    flex-direction: column;
    gap: 1rem;
  }
  .option-group label { margin-bottom: .35rem; }

  .color-selector { gap: .6rem; }
  .color-swatch   { width: 28px; height: 28px; }

  .material-text {
    font-size: .95rem;
    padding: .6rem .8rem;
  }

  /* cantidad */
  .quantity-selector { border-radius: 8px; }
  .quantity-btn { padding: 0 .9rem; font-size: 1.4rem; }
  .quantity-selector input[type="number"] {
    width: 56px;
    font-size: 1.1rem;
  }

  /* CTA */
  .btn-buy {
    width: 100%;
    text-align: center;
    margin-top: 1.25rem;
  }

/* reseñas */
.reviews-section { padding-top: 1.5rem; }

/* ⚠️ Grid también en móvil, pero en 1 columna */
.reviews-container {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1rem;
  color: black;
}
.reviews-summary-box,
.reviews-list,
.reviews-container > .review-form,
.reviews-container > .already-reviewed-note,
.reviews-container > .login-to-review-note {
  grid-column: 1;
}

.reviews-summary-box { text-align: center; }
.review-item { padding: 1rem; }

/* formulario de reseña en móvil */
.review-form {
  max-width: 100%;
  margin: 1.5rem 0 0;
  padding: 1rem;
  box-sizing: border-box;
}
  .star-rating label { 
    font-size: 1.8rem; 
}


/* ====== MÉTODO DE PAGO (≤960px) ====== */

  /* Layout: apila columnas y agrega gutters simétricos */
  .checkout-wrapper {
    margin: 1rem auto;
    padding: 0;                   /* usamos padding en el contenedor interno */
  }
  .checkout-container {
    flex-direction: column;
    gap: 1rem;                    /* más compacto que desktop */
    padding: 0 1rem;              /* 👉 mismos márgenes L/R que el resto del sitio */
  }
  .customer-info-col,
  .order-summary-col {
    flex: none;
    width: 100%;
    min-width: 0;                 /* evita overflow en inputs largos */
  }

  /* Acordeones (steps) más cómodos al tacto */
  .faq-item {
    border-radius: 12px;
    overflow: hidden;             /* respeta el radio en el contenido */
  }
  .faq-question {
    padding: 1rem;                /* mayor área de toque */
    font-size: 1.05rem;
  }
  .faq-answer {
    padding: 1rem;
  }
  .faq-answer .form-group {
    margin-bottom: 1rem;
  }
  .field-hint {
    display: block;
    margin: .25rem 0 .5rem;
    color: #aaa;
    font-size: .9rem;
  }

  /* Inputs más cómodos en móvil (si heredan estilos globales, esto solo afina) */
  .faq-answer .form-group input,
  .faq-answer .form-group textarea {
    font-size: 1rem;
    padding: .9rem .9rem;
  }

  /* Métodos de pago: logos compactos y tarjetas “clicables” */
  .payment-methods {
    gap: .75rem;
    margin-top: .5rem;
  }
  .payment-methods > div {
    width: 100%;
  }
  .payment-methods label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;   /* texto/imagen separados */
    gap: .75rem;
    padding: .75rem 1rem;             /* más cómodo al tacto */
  }
  .payment-methods img {
    height: 2.25rem;                  /* reduce (desktop = 3.5rem) */
    width: auto;
  }
  /* El “Contra entrega…” venía en <h1>: baja tamaño en móvil */
  .payment-methods h1 {
    font-size: 1rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
  }

  /* Resumen del pedido: tarjeta full-width con mejor legibilidad */
  .order-summary-col {
    margin-right: 0;                  /* anula el margen de desktop */
    padding: 1.25rem;
    border-radius: 12px;
  }
  .summary-item {
    align-items: center;
    gap: .75rem;
  }
  .summary-item-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
  }
  .summary-item-price {
    font-weight: 700;
    white-space: nowrap;
  }
  .shipping-summary p {
    word-break: break-word;           /* evita desbordes con direcciones largas */
    margin: .5rem 0 0 0;
  }

  /* CTA */
  .summary-actions .btn-checkout {
    width: 100%;
    padding: .9rem 1rem;
    margin-top: .5rem;
  }


/* ====== MÉTODO DE PAGO (tablets 701–959px): un poco más de aire ====== */
@media (min-width: 701px) and (max-width: 959px) {
  .checkout-container { 
    gap: 1.5rem; 
}
  .order-summary-col   { 
    padding: 1.5rem; 
}
  .payment-methods img { 
    height: 2.6rem; 
}
}

/* ===== PENDING.HTML (≤960px) ===== */
  .pending-page-wrapper {
    padding: 1rem;                      /* gutters laterales en móvil */
    min-height: calc(100vh - 4rem);     /* centra mejor en pantallas bajas */
  }

  .pending-container {
    max-width: 560px;                   /* tamaño cómodo para móvil/tablet */
    padding: 1.25rem;                   /* reduce padding interno */
    border-radius: 12px;                /* radios un poco más chicos */
  }

  .pending-logo {
    max-width: clamp(150px, 60vw, 220px);
    height: auto;
    margin-bottom: 1rem;
  }

  .pending-container h1 {
    font-size: 1.8rem;
    margin: .25rem 0;
  }

  .pending-container h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
  }

  .pending-container p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 .75rem 0;
    word-break: break-word;             /* evita desbordes con textos largos */
  }

  /* Botón a ancho completo solo en esta página */
  .pending-container .btn-home {
    display: block;
    width: 100%;
    padding: .9rem 1rem;
    font-size: 1rem;
  }


/* ===== PENDING.HTML (≤400px): micro-ajustes para teléfonos muy angostos ===== */
@media (max-width: 400px) {
  .pending-container {
    padding: 1rem;
     }
  .pending-container h1 {
     font-size: 1.6rem; 
    }
  .pending-container h2 { 
    font-size: 1.05rem; 
    }
  .pending-container p  { 
    font-size: .95rem; 
    }
  .pending-container .btn-home { 
    padding: .8rem 1rem;
    font-size: .95rem; 
    }
}

}

