/* Mostrar submenús anidados al hacer hover */
.main-nav .dropdown li.has-dropdown:hover>a {
    background: var(--primary-red);
    color: #fff;
}

.main-nav .dropdown li.has-dropdown:hover>.dropdown {
    display: block !important;
}

.main-nav .dropdown li.has-dropdown {
    position: relative;
}

.main-nav .dropdown li.has-dropdown>.dropdown {
    display: none;
    top: 0;
    left: 100%;
    margin-left: -4px;
    /* para unir el borde rojo */
}

.main-nav .dropdown li.has-dropdown:hover>.dropdown {
    display: block;
}

/* Variables y Reset Básico */
:root {
    --primary-red: #cc0033;
    --primary-dark: #000000;
    --text-light: #f5f5f5;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* -------------------------------------------
    HEADER: BARRAS NO STICKY (ROJA Y LOGO)
    ------------------------------------------- */

/* BARRA ROJA SUPERIOR */
.header-red-bar {
    background-color: var(--primary-red);
    color: white;
    font-size: 0.9rem;
    padding: 10px 0;
}

.top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.top-message {
    line-height: 1.3;
    letter-spacing: 0.3px;
}

/* Negrita selectiva para PATINETES ELECTRICOS*/
.top-message {
    font-weight: 400;
}

.top-message strong {
    font-weight: 1000;
}

/* Estilo para la "D" roja del distribuidor */
.distribuidor-badge {
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin-right: 8px;
    font-family: Arial, sans-serif;
}

.top-social-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    transition: var(--transition);
}

.main-nav a[href*="whatsapp"] {
    text-decoration: none !important;
    border: none !important;
}


/* ZONA DEL LOGO (NO STICKY) */
.header-logo-section {
    padding: 30px 0;
    background-color: white;
}

.logo-content {
    display: flex;
    justify-content: center;
}

.logo-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    letter-spacing: 5px;
    line-height: 1;
    margin-bottom: 5px;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 500px;
    object-fit: contain;
}

.logo-footer-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(16%) sepia(88%) saturate(7413%) hue-rotate(348deg) brightness(90%) contrast(101%);
}

.logo-slogan {
    font-size: 0.85rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -10px;
    padding-bottom: 20px;
}

/* -------------------------------------------
    BARRA DE NAVEGACIÓN (STICKY)
    ------------------------------------------- */

.header-nav-section {
    /* CLAVE: ÚNICO ELEMENTO STICKY */
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 900;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    position: relative;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 12px 8px;
    border-radius: 4px;
}

.main-nav a:hover {
    background: rgba(204, 0, 51, 0.08);
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color var(--transition);
    padding: 10px 5px;
}

.main-nav a:hover {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

.main-nav a.active {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

/* Dropdown de menú */
.main-nav .has-dropdown {
    position: relative;
}

.main-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0;
    min-width: 260px;
    border-radius: 0 0 12px 12px;
    display: none;
    z-index: 1000;
    border-top: 4px solid var(--primary-red);
    overflow: hidden;
}

.main-nav .dropdown li {
    padding: 0;
}

.main-nav .dropdown li a {
    display: block;
    padding: 16px 28px;
    color: var(--primary-dark);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: background var(--transition), color var(--transition);
}

.main-nav .dropdown li a:hover {
    background: var(--primary-red);
    color: #fff;
}

.main-nav .has-dropdown:hover .dropdown {
    display: block;
}

/* Submenús anidados estilo imagen */
.main-nav .dropdown .dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    border-radius: 0 12px 12px 0;
    border-top: 4px solid var(--primary-red);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0;
    display: none;
    z-index: 1001;
}

.main-nav .dropdown li.has-dropdown:hover>.dropdown {
    display: block !important;
}

.main-nav .dropdown li {
    border-bottom: 1px solid #f0f0f0;
}

.main-nav .dropdown li:last-child {
    border-bottom: none;
}

.main-nav .dropdown li a.active,
.main-nav .dropdown li a:focus {
    background: var(--primary-red);
    color: #fff;
}

/* BOTONES DE ACCIÓN (ÍCONOS DE TIENDA) */
.action-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
}

/* Ajuste para tamaños de icono, manteniendo consistencia */
.icon-btn {
    padding: 8px 10px;
}

@media (max-width: 1024px) {
    .action-icons {
        gap: 14px;
    }
}

@media (max-width: 960px) {
    .main-nav a {
        font-size: 0.9rem;
        padding: 9px 6px;
    }
}

@media (max-width: 768px) {
    .action-icons {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 15px;
    }

    .main-nav a {
        font-size: 0.85rem;
        padding: 8px 6px;
    }
}

.icon-btn {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color var(--transition);
    position: relative;
    padding: 8px;
    text-decoration: none;
    /* Para que funcione en <a> también */
}

.icon-btn:hover {
    color: var(--primary-red);
}

/* Burbuja flotante de WhatsApp */
.whatsapp-float-btn i,
.whatsapp-float-btn svg {
    text-decoration: none !important;
    border-bottom: none !important;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

/* Contadores dentro de los iconos (carrito, comparador, favoritos) */
.icon-btn span {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
    background: var(--primary-red);
    color: white;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

/* Etiquetas de notificación */
.wish-btn .fa-heart,
.cart-btn .fa-cart-shopping {
    position: relative;
}

/* Simulación de contador/notificación (el span.cart-count debe ir aquí) */
/* Lo dejo comentado, ya que el diseño inicial usaba ::after */

/* .wish-btn::after,
.cart-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 6px;
    background-color: var(--primary-red);
    border-radius: 50%;
    border: 1px solid white;
} */


.hamburger-btn {
    display: none;
}

/* -------------------------------------------
    SECCION PRINCIPAL: HERO BANNER (IMAGEN)
    ------------------------------------------- */

.callout-box {
    background: rgba(204, 0, 51, 0.08);
    border: 1px solid rgba(204, 0, 51, 0.2);
    border-radius: 8px;
    padding: 18px;
    margin: 20px 0;
}

.callout-box h4 {
    margin-top: 0;
}

.callout-box p {
    margin: 0;
}

.hero-banner {
    background-image: url('Imagenes/inicio1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    min-height: 600px;
    padding: 100px 0;

    color: white;
    text-align: center;
    position: relative;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-subtext {
    font-size: 1.2rem;
    font-weight: 600;
}


/* -------------------------------------------
    ESTILOS PARA LA PÁGINA DE TIENDA
    ------------------------------------------- */

.store-page-content {
    padding: 40px 0 80px;
    background-color: #fcfcfc;
}


/* Títulos y Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: var(--primary-dark);
    text-decoration: none;
}

.breadcrumbs .current-page {
    color: var(--primary-red);
    font-weight: 600;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-dark);
    text-align: left;
    margin-bottom: 40px;
}

/* Layout Principal (Sidebar y Productos) */
.store-layout {
    display: flex;
    gap: 40px;
}

/* --- SIDEBAR DE FILTROS --- */
.sidebar-filters {
    width: 250px;
    flex-shrink: 0;
    padding-top: 20px;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.filter-group ul {
    list-style: none;
}

.filter-group a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    display: block;
    padding: 5px 0;
}

.filter-group a:hover {
    color: var(--primary-red);
}

.filter-group label {
    display: block;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
    cursor: pointer;
}

.filter-btn-apply {
    background-color: var(--primary-red);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn-apply:hover {
    background-color: #a00028;
}

/* --- CONTENEDOR DE PRODUCTOS --- */
.products-container {
    flex-grow: 1;
}

/* Barra superior de ordenación */
.toolbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.result-count {
    font-size: 0.9rem;
    color: #777;
}

.sort-dropdown {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* Cuadrícula de Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columnas en desktop */
    gap: 30px;
}

/* Tarjeta de Producto (Estilos ajustados para el catálogo) */
.product-card {
    background-color: white;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    position: relative;
    transition: box-shadow var(--transition);
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.product-sku {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 10px;
}

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

.add-to-cart-btn {
    background-color: var(--primary-dark);
    color: white;
    padding: 10px 20px;
    border: 2px solid var(--primary-dark);
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

/* Tags de Oferta/Novedad */
.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    border-radius: 3px;
}

.sale-tag {
    background-color: var(--primary-red);
}

.new-tag {
    background-color: #007bff;
}

/* Paginación */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    color: var(--primary-dark);
    border: 1px solid #ccc;
    border-radius: 3px;
    transition: var(--transition);
}

.pagination a:hover {
    background-color: #eee;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.pagination .current {
    background-color: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
    font-weight: bold;
}

.empty-wishlist-content {
    text-align: center;
    padding: 80px 0;
}

.empty-icon {
    font-size: 8rem;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

.empty-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-dark);
}

/* -------------------------------------------
    Search overlay (CORREGIDO)
    ------------------------------------------- */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;

    /* Estado inicial: OCULTO */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ⭐️ REGLA CLAVE AGREGADA PARA LA LÓGICA DE JAVASCRIPT */
#search-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.search-content {
    max-width: 800px;
    /* Ajustado el margen superior para que no esté pegado al top si se usa fixed */
    margin: 15% auto 0;
    padding: 20px;
    text-align: center;
    color: white;
}

.search-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
}

.search-content form {
    display: flex;
    border-bottom: 2px solid var(--primary-red);
    margin-bottom: 10px;
}

.search-content input[type="search"] {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: white !important;
    font-size: 2rem;
    padding: 10px 0;
    outline: none;
    font-family: var(--font-heading);
}

.search-content input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-content button[type="submit"] {
    border: none;
    background: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding-left: 10px;
    transition: color 0.3s ease;
}

.search-content button[type="submit"]:hover {
    color: var(--primary-red);
}

#close-search-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

#close-search-btn:hover {
    color: var(--primary-red);
}

/* -------------------------------------------
    Pagina de comparador
    ------------------------------------------- */
.compare-section {
    padding: 60px 0 80px;
    background-color: #fcfcfc;
}

.compare-section .page-title {
    text-align: center;
    margin-bottom: 40px;
}

.compare-table-wrapper {
    overflow-x: auto;
    width: auto;
    margin: 0 auto;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.compare-table td,
.compare-table th {
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #eee;
    vertical-align: top;
    font-size: 0.95rem;
}

.compare-table td:first-child {
    text-align: left;
    background-color: #f9f9f9;
    font-weight: 600;
    width: 20%;
    border-left: none;
}

.compare-table th:first-child {
    text-align: left;
    background-color: #f4f4f4;
}

.product-header {
    position: relative;
    padding: 20px 10px;
}

.product-img {
    max-width: 80%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.remove-btn:hover {
    color: var(--primary-red);
}

.spec-group-header td {
    background-color: var(--primary-dark);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-align: left !important;
    padding: 10px 20px;
    border-color: var(--primary-dark);
}

.highlight {
    font-weight: 700;
    color: var(--primary-red);
}

.add-col .product-header {
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.add-icon {
    font-size: 2.5rem;
    color: #ccc;
    margin-bottom: 10px;
}

.add-info {
    font-size: 0.85rem;
    color: #888;
}

.compare-actions td {
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: none;
    border-top: 2px solid #ddd;
}

.compare-actions td:first-child {
    background-color: transparent;
    border-left: none;
}

.add-to-cart-btn {
    background-color: var(--primary-red);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.add-to-cart-btn:hover {
    background-color: #a00028;
}


@media (max-width: 900px) {
    .compare-section .page-title {
        margin-bottom: 20px;
    }

    .compare-table-wrapper {
        border-radius: 0;
    }

    .compare-table {
        min-width: 900px;
    }

    /* Ocultar mensaje de distribuidor en tablet y móvil */
    .top-message {
        display: none;
    }
}

/* -------------------------------------------
    FOOTER Y ENLACES
    ------------------------------------------- */

/* SECCIÓN DE ENLACES (Footer Superior) */
.footer-links-section {
    background-color: white;
    padding: 50px 0;
    border-top: 1px solid #ddd;
}

.footer-links-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-info-col .logo-red {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.footer-links-col h4,
.footer-search-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    display: block;
    padding: 5px 0;
    transition: color var(--transition);
}

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

.search-input-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
}

.search-input-group input {
    border: none;
    padding: 10px 15px;
    width: 100%;
    font-size: 1rem;
    outline: none;
}

.search-input-group button {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color var(--transition);
}

.search-input-group button:hover {
    background-color: #a00028;
}

/* FOOTER NEGRO CON REDES SOCIALES (CENTRADOS) */
.main-footer-dark {
    background-color: var(--primary-dark);
    color: white;
    padding: 20px 0;
}

.footer-dark-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.social-icon-sphere {
    position: absolute;
    left: 20px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 10px 10px, #00FFC2, #000000);
    border-radius: 50%;
}

.social-links-list {
    display: flex;
    gap: 30px;
    margin: 0 auto;
}

.social-link {
    text-decoration: none;
    color: #007bff;
    /*Color azul por defecto*/
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-red);
}

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

.social-link .label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* -------------------------------------------
    ESTILOS PARA LA PÁGINA DE CONTACTO
    ------------------------------------------- */

.contact-section {
    padding: 80px 0;
    background-color: white;
}

.contact-layout {
    display: grid;
    /* Divide el espacio en dos columnas: 1/3 para la información, 2/3 para el formulario */
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    /* Sombra ligera para el bloque completo */
    border-radius: 5px;
}

/* --- COLUMNA IZQUIERDA: Sidebar de Información (Fondo gris y borde rojo) --- */
.contact-info-sidebar {
    background-color: #f7f7f7;
    padding: 40px;
    border-radius: 5px 0 0 5px;
    border-left: 5px solid var(--primary-red);
    /* Borde rojo que simula el diseño */
}

.contact-info-sidebar .contact-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.contact-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.contact-item .icon {
    font-size: 1.2rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

/* --- COLUMNA DERECHA: Formulario --- */
.contact-form-container {
    padding: 40px;
}

.contact-form-container .form-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row input {
    flex: 1;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

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

/* --- FORMULARIO DE MATRICULACIÓN VMP --- */
.matricula-form-section {
    margin-top: 40px;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 6px;
    background-color: #fafafa;
}

.matricula-form-section h3 {
    margin-top: 0;
}

.matricula-form-section p {
    margin-bottom: 20px;
    color: #444;
}

.matricula-form {
    max-width: 900px;
}

.matricula-form .form-row label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.matricula-form .form-row input {
    margin-top: 8px;
}

.matricula-form .form-note {
    margin-top: 18px;
    font-size: 0.9rem;
    color: #666;
}

.note-text {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

/* Opciones de Radio Button */
.form-options {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.form-options label {
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 400;
}

/* Footer del Formulario (Checkbox y Botón) */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.checkbox-label {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.submit-btn {
    background-color: #eee;
    color: var(--primary-dark);
    padding: 12px 30px;
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--primary-red);
    color: white;
}

/* --- RESPONSIVE PARA CONTACTO --- */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        /* Una sola columna en móvil */
        gap: 0;
    }

    .contact-info-sidebar {
        border-radius: 5px 5px 0 0;
        border-right: 5px solid var(--primary-red);
        border-left: none;
    }

    .contact-form-container {
        padding: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* -------------------------------------------
    RESPONSIVE ADJUSTMENTS
    ------------------------------------------- */

@media (max-width: 900px) {

    /* Header ajustes */
    .header-logo-section {
        padding: 15px 0;
    }

    /* ⭐️ Corrección clave para el menú móvil */
    .main-nav {
        /* Estado por defecto: oculto */
        display: none;
        position: absolute;
        top: 100%;
        /* Posicionarlo debajo de la barra sticky */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.05);
        padding: 10px 0;
    }

    /* ⭐️ Estado activo: MOSTRAR MENÚ */
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .main-nav li {
        border-bottom: 1px solid #eee;
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        padding: 15px 20px;
        display: block;
        border-bottom: none !important;
    }


    .action-icons {
        /* Los íconos de acción están en el menú de hamburguesa en móvil */
        display: none;
    }

    .hamburger-btn {
        display: block;
        /* Reubicar si es necesario, ya que .nav-content ahora es flex-start */
    }

    .nav-content {
        justify-content: space-between;
        padding: 10px 20px;
        /* Asegura padding en los bordes */
    }

    /* Ajustes de Footer */
    .social-icon-sphere {
        display: none;
    }

    .footer-dark-content {
        justify-content: center;
    }

    .social-links-list {
        gap: 20px;
    }

    .footer-links-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links-col h4,
    .footer-search-col h4 {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-info-col {
        order: -1;
    }

    /* Responsive Shop */
    .store-layout {
        flex-direction: column;
        gap: 20px;
    }

    /* Ocultar filtros completamente en móvil */
    .sidebar-filters {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas en tablet/móvil ancho */
        gap: 20px;
    }

    .toolbar-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
        /* 1 columna en móvil */
    }

    /* Asegurar que el mensaje se oculte también en móviles pequeños */
    .top-message {
        display: none;
    }
}

/* ======================================
   ESTILOS PARA NUEVAS FUNCIONALIDADES
   ====================================== */

/* --- CARRITO DE COMPRAS --- */
.cart-page-content {
    padding: 20px 0 60px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 30px;
}

.cart-items-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 120px 100px 50px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

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

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

.item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.item-price {
    color: #666;
    font-size: 0.9rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.item-quantity span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.item-total {
    font-weight: 600;
    font-size: 1.1rem;
}

.remove-item {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.cart-summary-section {
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.order-summary h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.total-row {
    font-size: 1.2rem;
    font-weight: 600;
    border-top: 2px solid var(--primary-red);
    margin-top: 10px;
    padding-top: 15px;
}

.shipping-free {
    color: #28a745;
    font-weight: 600;
}

.shipping-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-section {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.coupon-section input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: #a00229;
}

.continue-shopping {
    display: block;
    text-align: center;
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.9rem;
}

.payment-methods {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.payment-icons i {
    font-size: 2rem;
    color: #666;
}

.payment-methods p {
    font-size: 0.8rem;
    color: #666;
}

/* --- PÁGINA DE CUENTA --- */
.account-page-content {
    padding: 20px 0 60px 0;
}

.account-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 30px;
}

.account-sidebar {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.account-nav h3 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.account-nav ul {
    list-style: none;
}

.account-nav li {
    margin-bottom: 5px;
}

.account-nav a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #666;
    border-radius: 6px;
    transition: var(--transition);
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--primary-red);
    color: white;
}

.account-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.recent-activity {
    margin-top: 40px;
}

.activity-list {
    margin-top: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-item i {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.activity-item small {
    color: #666;
    margin-left: auto;
}

.empty-orders {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-orders i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.profile-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    cursor: pointer;
}

.wishlist-items {
    display: grid;
    gap: 20px;
}

.wishlist-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.wishlist-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.setting-group {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.setting-group h4 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

/* --- PÁGINA DE PRODUCTO INDIVIDUAL --- */
.product-page-content {
    padding: 20px 0 60px 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 30px;
}

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-red);
}

.product-header {
    margin-bottom: 25px;
}

.product-sku {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffc107;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

.price-section {
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
}

.old-price {
    font-size: 1.3rem;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-description {
    margin: 25px 0;
}

.product-description h4 {
    margin: 15px 0 10px 0;
    color: var(--primary-dark);
}

.product-description ul {
    list-style: none;
    padding-left: 0;
}

.product-description li {
    padding: 5px 0;
    color: #555;
}

.product-options {
    margin: 25px 0;
}

.color-selector,
.quantity-selector {
    margin-bottom: 20px;
}

.color-selector h4,
.quantity-selector h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-option.active {
    border-color: var(--primary-red);
    transform: scale(1.1);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.quantity-controls input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-actions {
    margin: 30px 0;
    display: flex;
    gap: 15px;
}

.product-actions .btn {
    flex: 1;
    padding: 15px;
    font-size: 1rem;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-meta {
    margin-top: 20px;
    color: #555;
}

.product-meta p {
    margin: 8px 0;
}

.meta-badge {
    display: inline-block;
    background: rgba(40, 167, 69, 0.12);
    color: #1b5e20;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 6px;
}

.share-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.share-links a {
    color: #666;
    transition: color 0.2s ease;
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-red);
}

.feature h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.feature p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.product-tabs {
    margin-top: 60px;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.spec-label {
    font-weight: 600;
    color: #555;
}

.spec-value {
    color: var(--primary-dark);
}

.reviews-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-red);
}

.reviews-list {
    margin-top: 20px;
}

.review {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.shipping-info ul {
    margin-left: 20px;
}

.shipping-info li {
    margin: 8px 0;
}

.related-products {
    margin-top: 60px;
}

.related-products h3 {
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* --- BÚSQUEDA Y OVERLAYS --- */
.search-results-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.search-results-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.search-result-item {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* --- NOTIFICACIONES --- */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- ICONOS ADICIONALES --- */
.icon-btn .fa-user {
    font-size: 1.1rem;
}

/* ======================================
   PÁGINAS LEGALES Y SERVICIO TÉCNICO
   ====================================== */

.legal-page-content,
.service-page-content {
    padding: 20px 0 60px 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legal-section h2 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.legal-section h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.legal-section h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin: 15px 0 8px 0;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-section ul,
.legal-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-section a {
    color: var(--primary-red);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* === SERVICIO TÉCNICO === */
.service-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.intro-content h2 {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.intro-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.service-sections {
    margin-top: 50px;
}

.service-section {
    margin-bottom: 50px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-section h2 {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 30px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.service-item h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.service-item ul {
    margin: 15px 0;
}

.service-item li {
    margin-bottom: 8px;
    color: #555;
}

.service-item .price {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 15px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.step-content p {
    color: #666;
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.contact-info h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-details p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.service-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.service-submit:hover {
    background: #a00229;
}

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

.faq-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.faq-item h4 {
    color: var(--primary-red);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* === TABLAS DE COOKIES === */
.cookie-table {
    overflow-x: auto;
    margin: 20px 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cookie-table th {
    background: var(--primary-red);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.cookie-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tr:hover {
    background: #f8f9fa;
}

/* === GUÍAS DE NAVEGADOR === */
.browser-guides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.browser-guide {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.browser-guide h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.browser-guide ol {
    margin-left: 20px;
}

.browser-guide li {
    margin-bottom: 8px;
    color: #555;
}

/* === INFORMACIÓN DE IMPACTO === */
.impact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.impact-item {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.impact-item h4 {
    color: #856404;
    margin-bottom: 10px;
}

.impact-item p {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
}

/* === INFORMACIÓN DE CONTACTO === */
.contact-info {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.contact-info p {
    margin-bottom: 8px;
    color: #004085;
}

.contact-info strong {
    color: var(--primary-dark);
}

/* ======================================
   SISTEMA DE AUTENTICACIÓN
   ====================================== */

.auth-section {
    max-width: 400px;
    margin: 0 auto 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-toggle {
    display: flex;
    background: var(--primary-dark);
}

.auth-btn {
    flex: 1;
    padding: 15px;
    background: transparent;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth-btn.active {
    background: var(--primary-red);
}

.auth-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.auth-forms {
    padding: 30px;
}

.auth-form {
    display: block;
}

.auth-form.hidden {
    display: none;
}

.auth-form h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(204, 0, 51, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary-red);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    background-color: var(--primary-red);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #a00028;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.auth-switch a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.logout-link {
    color: #dc3545 !important;
    font-weight: 600;
    padding: 10px 0;
    display: block;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 20px;
}

.logout-link:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Responsive para autenticación */
@media (max-width: 768px) {
    .auth-section {
        margin: 0 10px 30px;
    }

    .auth-forms {
        padding: 20px;
    }

    .auth-toggle {
        flex-direction: column;
    }

    .auth-btn {
        padding: 12px;
    }
}

/* === RESPONSIVE PARA PÁGINAS LEGALES === */
@media (max-width: 768px) {
    .service-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .intro-content h2 {
        font-size: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .browser-guides {
        grid-template-columns: 1fr;
    }

    .impact-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .legal-section,
    .service-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .feature-card {
        padding: 20px;
    }

    /* Ocultar mensaje de distribuidor en móviles pequeños */
    .top-message {
        display: none;
    }

    .contact-form,
    .contact-info {
        padding: 20px;
    }
}

/* --- RESPONSIVE DESIGN MEJORADO --- */
@media (max-width: 768px) {

    /* Carrito */
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
        text-align: left;
    }

    .item-quantity,
    .item-total,
    .remove-item {
        grid-column: 2;
        margin-top: 10px;
    }

    .cart-summary-section {
        position: static;
        order: -1;
    }

    /* Cuenta */
    .account-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .account-sidebar {
        order: 2;
    }

    .account-nav ul {
        display: flex;
        overflow-x: auto;
        gap: 10px;
    }

    .account-nav li {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .account-nav a {
        white-space: nowrap;
        padding: 10px 15px;
    }

    /* Producto individual */
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        position: static;
    }

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

    .price-section {
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-actions {
        flex-direction: column;
    }

    .tabs-nav {
        overflow-x: auto;
        white-space: nowrap;
    }

    .tab-btn {
        flex-shrink: 0;
    }

    /* Búsqueda */
    .search-results-container {
        width: 95%;
        padding: 20px;
        margin: 0 auto;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Ocultar mensaje de distribuidor en móviles pequeños */
    .top-message {
        display: none;
    }

    .item-quantity,
    .item-total,
    .remove-item {
        grid-column: 1;
    }

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

    .product-features {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .wishlist-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .item-actions {
        justify-content: center;
    }
}

/* --- ICONOS ADICIONALES --- */
.icon-btn .fa-user {
    font-size: 1.1rem;
}

/* --- BANNER DE ENVÍO GRATUITO --- */
.shipping-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 0;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.shipping-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.shipping-info i {
    font-size: 1.5rem;
    animation: truck-move 2s ease-in-out infinite;
}

@keyframes truck-move {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* --- HERO BANNER --- */
.hero-banner {
    background-image: url('Imagenes/inicio1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 80px 0;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    color: white;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-btn:hover {
    background: #a00229;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 0, 51, 0.3);
}