/* Estilos generales */
:root {
    --primary: #e63946;
    --secondary: #1d3557;
    --light: #f1faee;
    --dark: #1d3557;
    --gray: #a8dadc;
}

html {
    background-color: #ffffff !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #ffffff; /* Fondo blanco para todo el body */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Barra de navegación */
.navbar {
    color: #f1faee; /* Color del texto claro */
    position: fixed; /* Fijar la barra en la parte superior */
    top: 0;
    width: 100%;
    z-index: 1000; /* Asegurar que esté por encima de otros elementos */
    padding: 10px 20px; /* Espaciado interno */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para destacar */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px; /* Reduce el tamaño de la fuente */
    font-weight: bold;
    color: white !important; /* Cambiado a blanco */
    text-decoration: none;
    letter-spacing: 0.5px; /* Reduce el espacio entre letras */
    text-transform: uppercase; /* Convierte el texto a mayúsculas */
    background: linear-gradient(90deg, var(--primary), var(--secondary)); /* Gradiente de color */
    -webkit-text-fill-color: transparent; /* Hace el texto transparente para mostrar el gradiente */
}

.logo span {
    color: var(--primary);
    font-style: italic; /* Añade estilo cursiva al span */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #f1faee; /* Color de los enlaces */
    text-decoration: none; /* Eliminar subrayado */
    margin: 0 15px; /* Espaciado entre enlaces */
    font-weight: bold; /* Texto en negrita */
    transition: color 0.3s ease; /* Transición suave al pasar el mouse */
    position: relative;
    padding: 10px 15px;
}

.nav-links a:hover {
    color: #a8dadc; /* Color al pasar el mouse */
}

.nav-links a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px; /* Mantener el ancho de la línea */
    height: 50%; /* Reducir la altura de la línea al 50% del enlace */
    background-color: white; /* Color blanco para la línea */
}

.nav-links a:last-child::after {
    display: none; /* Eliminar el separador del último elemento */
}

.navbar .nav-links a {
    font-size: 16px; /* Ajusta el tamaño de la fuente */
    font-weight: bold; /* Hace el texto más destacado */
    color: var(--dark); /* Color principal */
    padding: 10px 15px; /* Espaciado interno para mayor clicabilidad */
    border-radius: 5px; /* Bordes redondeados para un diseño más moderno */
    transition: background-color 0.3s ease, color 0.3s ease; /* Transiciones suaves */
}

.navbar .nav-links a:hover {
    background-color: var(--primary); /* Fondo al pasar el mouse */
    color: white; /* Texto blanco para contraste */
}

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

.cart-icon {
    position: relative;
    cursor: pointer;
    color: white !important; /* Asegura que el color blanco se aplique */
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
/* ====================== */
/* ESTILOS DEL CARRUSEL */
/* ====================== */
/* Estilos ESSENCIALES para el carrusel */
.hero {
    position: relative;
    height: 88vh; /* Reducir la altura del carrusel */
    margin-top: 0; /* Mantener el carrusel alineado con el margen superior */
    margin-bottom: 20px; /* Agregar espacio debajo del carrusel */
}

.hero-swiper {
    position: relative;
    z-index: 1;
    height: 200%; /* Ajustar la altura del carrusel */
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    background: none !important; /* Elimina cualquier fondo aplicado */
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ajustar las imágenes del carrusel para que no se corten */
.hero-swiper img {
    width: 100%; /* Ajustar el ancho de las imágenes al 100% del carrusel */
    height: 100%; /* Ajustar la altura de las imágenes al 100% del carrusel */
    object-fit: cover; /* Asegurar que las imágenes llenen el espacio sin distorsión */
    object-position: center; /* Centrar el contenido de las imágenes */
}

/* Asegura que el contenido esté sobre el carrusel */
.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Eliminar superposición oscura en las diapositivas del carrusel */
.swiper-slide::after {
    content: none !important; /* Elimina cualquier pseudo-elemento aplicado */
}

/* Filtros mejorados responsivos */
.responsive-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-search, .btn-reset {
    min-width: 120px;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.btn-search:hover {
    background: #c1121f;
    transform: translateY(-2px);
}

.btn-reset {
    background: var(--gray);
    color: var(--dark);
}

.btn-reset:hover {
    background: #8bb7ba;
    transform: translateY(-2px);
}

/* Filtros */
.filters {
    padding: 50px 0;
   /*  background: var(--light);*/
}

.filters h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.filters h2, .filters h2 a {
    color: #fff !important;
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-options select {
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid var(--gray);
    min-width: 200px;
}

/* Productos */
.products {
    padding: 50px 0;
    margin-top: -60px; /* Reducir el margen superior del listado de productos aún más */
    background: #ffffff !important; /* Fondo blanco forzado */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

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

.product-card:hover {
    transform: translateY(-10px);
}

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

.product-card h3 {
    padding: 15px 15px 5px;
    color: var(--dark);
}

.product-card .price {
    padding: 0 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

.product-card .specs {
    padding: 0 15px 15px;
    color: #666;
}

.product-card .btn {
    display: block;
    margin: 100px auto; /* Ajuste para acercar aún más el botón a la descripción */
    text-align: center;
}

/* Servicios */
.services {
    padding: 50px 0;
    /* background: var(--light);*/
}

.services h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #111;
    background: none;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.copyright-outside {
  text-align: center;
  color: #111;
  background: none;
  margin: 20px 0 0 0;
  font-size: 1em;
  width: 100%;
  padding-bottom: 40px;
}

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

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #111;
    background: none;
}

/* Ajustar el encabezado del catálogo para bajarlo */
.catalog-header {
    margin-top: 100px; /* Incrementar el espacio superior para bajar más el encabezado */
}

/* MEJORAS PARA DISPOSITIVOS TÁCTILES */
.touch-device .btn,
.touch-device button,
.touch-device .nav-links a,
.touch-device .product-card,
.touch-device .service-card {
    -webkit-tap-highlight-color: rgba(230, 57, 70, 0.3);
}

.touch-device .btn:active,
.touch-device button:active {
    transform: scale(0.98);
}

/* ACCESIBILIDAD MEJORADA */
/* Focus visible para navegación por teclado */
.btn:focus-visible,
button:focus-visible,
select:focus-visible,
.nav-links a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn, button {
        border: 2px solid currentColor;
    }
    
    .product-card, .service-card {
        border: 1px solid #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logos-track {
        animation: none !important;
    }
}

/* LAZY LOADING STYLES */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* ========================================= */
/* DISEÑO COMPLETAMENTE RESPONSIVO MEJORADO */
/* ========================================= */

/* EXTRA LARGE SCREENS (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
    
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .filter-options select {
        min-width: 220px;
        padding: 12px 18px;
        font-size: 16px;
    }
    
    .hero-text-overlay h1 {
        font-size: 3.5rem;
    }
    
    .hero-text-overlay p {
        font-size: 1.6rem;
    }
}

/* LARGE SCREENS (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .filter-options {
        gap: 20px;
    }
    
    .filter-options select {
        min-width: 200px;
        padding: 12px 16px;
    }
}

/* TABLETS (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        width: 95%;
        padding: 0 20px;
    }
    
    /* Navegación en tablets */
    .navbar .container {
        padding: 0 20px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    /* Hero en tablets */
    .hero {
        height: 70vh;
    }
    
    .hero-text-overlay h1 {
        font-size: 2.5rem;
    }
    
    .hero-text-overlay p {
        font-size: 1.3rem;
    }
    
    /* Filtros en tablets */
    .filter-options {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .filter-options select {
        min-width: 180px;
        padding: 10px 14px;
        font-size: 14px;
    }
    
    /* Productos en tablets */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    /* Servicios en tablets */
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Footer en tablets */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-col:not(:first-child) {
        margin-left: 0;
    }
    
    /* WhatsApp button en tablets */
    .whatsapp-btn {
        bottom: 25px;
        right: 25px;
        padding: 10px 14px 10px 10px;
    }
}

/* MÓVILES GRANDES (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    /* Navegación móvil */
    .navbar {
        padding: 8px 15px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(29, 53, 87, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 15px 15px;
    }

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

    .nav-links a {
        color: #f1faee !important;
        padding: 12px 0;
        border-bottom: 1px solid rgba(241, 250, 238, 0.1);
        width: 100%;
        text-align: center;
        font-size: 16px;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: block;
        color: white !important;
        font-size: 22px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    /* Hero móvil */
    .hero {
        height: 60vh;
        margin-top: 60px;
    }
    
    .hero-text-overlay {
        top: 40%;
        padding: 0 15px;
    }
    
    .hero-text-overlay h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .hero-text-overlay p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    /* Filtros móvil */
    .filters {
        padding: 30px 0;
    }
    
    .filters h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        border-radius: 12px;
    }

    .filter-options select {
        width: 100%;
        min-width: auto;
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .filter-options .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        margin-top: 5px;
    }
    
    /* Productos móvil */
    .products {
        padding: 30px 0;
        margin-top: -40px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .product-card {
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .product-card h3 {
        font-size: 1.3rem;
        padding: 20px 20px 10px;
    }
    
    .btn.add-to-cart {
        margin: 15px auto 25px;
        padding: 12px 25px;
        font-size: 14px;
        border-radius: 25px;
    }
    
    /* Servicios móvil */
    .services {
        padding: 30px 0;
    }
    
    .services h2 {
        font-size: 1.8rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* Footer móvil */
    .footer {
        padding: 30px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-col h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .social-icons {
        justify-content: center;
        gap: 20px;
    }
    
    .social-icons a {
        font-size: 24px;
        padding: 8px;
    }
    
    /* WhatsApp móvil */
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        padding: 8px 12px 8px 8px;
        border-radius: 40px;
    }
    
    .whatsapp-text {
        font-size: 12px;
    }
    
    .whatsapp-icon {
        font-size: 24px;
    }
}

/* MÓVILES PEQUEÑOS (320px - 479px) */
@media (max-width: 479px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    /* Navegación móvil pequeño */
    .navbar {
        padding: 6px 10px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .hamburger {
        font-size: 20px;
    }
    
    .nav-links {
        top: 55px;
        padding: 15px;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 10px 0;
    }
    
    /* Hero móvil pequeño */
    .hero {
        height: 50vh;
        margin-top: 55px;
    }
    
    .hero-text-overlay {
        padding: 0 10px;
    }
    
    .hero-text-overlay h1 {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    .hero-text-overlay p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    /* Filtros móvil pequeño */
    .filters {
        padding: 20px 0;
    }
    
    .filters h2 {
        font-size: 1.5rem;
        padding: 8px;
    }
    
    .filter-options {
        padding: 12px;
        gap: 10px;
    }
    
    .filter-options select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .filter-options .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Productos móvil pequeño */
    .products {
        padding: 20px 0;
    }
    
    .product-grid {
        gap: 15px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
        padding: 15px 15px 8px;
    }
    
    .btn.add-to-cart {
        margin: 12px auto 20px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Servicios móvil pequeño */
    .services {
        padding: 20px 0;
    }
    
    .services h2 {
        font-size: 1.5rem;
    }
    
    .service-grid {
        gap: 15px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* Footer móvil pequeño */
    .footer {
        padding: 20px 0;
    }
    
    .footer-grid {
        gap: 20px;
    }
    
    .footer-col h3 {
        font-size: 1.1rem;
    }
    
    .footer-col p {
        font-size: 0.9rem;
    }
    
    .social-icons a {
        font-size: 20px;
        padding: 6px;
    }
    
    /* WhatsApp móvil pequeño */
    .whatsapp-btn {
        bottom: 15px;
        right: 15px;
        padding: 6px 10px 6px 6px;
    }
    
    .whatsapp-text {
        font-size: 11px;
    }
    
    .whatsapp-icon {
        font-size: 20px;
    }
    
    .notification-bubble {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
}

/* ORIENTACIÓN LANDSCAPE EN MÓVILES */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        height: 80vh;
    }
    
    .hero-text-overlay h1 {
        font-size: 1.8rem;
    }
    
    .hero-text-overlay p {
        font-size: 1rem;
    }
    
    .navbar {
        padding: 5px 15px;
    }
    
    .nav-links {
        top: 50px;
    }
}

/* MEJORAS GENERALES DE RESPONSIVIDAD */
/* Asegurar que todas las imágenes sean responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Asegurar que los videos y embeds sean responsivos */
iframe, video, embed, object {
    max-width: 100%;
    height: auto;
}

/* Mejorar la legibilidad en pantallas pequeñas */
@media (max-width: 767px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
    
    /* Asegurar que los botones sean táctiles */
    .btn, button, .nav-links a, .whatsapp-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Mejorar el contraste y espaciado */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 600;
    }
}

/* MODO OSCURO MEJORADO PARA DISPOSITIVOS QUE LO SOPORTEN */
@media (prefers-color-scheme: dark) {
    /* Mantener colores de marca pero ajustar contrastes */
    .product-card {
        background: #2a3f5f;
        color: #f1faee;
    }
    
    .service-card {
        border: 1px solid rgba(241, 250, 238, 0.1);
    }
}

/* PRINT STYLES */
@media print {
    .navbar, .whatsapp-btn, .hero, .social-icons {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Botón de WhatsApp siempre visible */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background: #25D366;
    color: white;
    padding: 10px 15px 10px 10px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
    font-size: 28px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-text {
    font-weight: bold;
    font-size: 14px;
    margin-right: 5px;
}

.notification-bubble {
    position: absolute;
    top: -8px;
    right: -5px;
    background: #FF4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        padding: 8px 12px 8px 8px;
    }
    
    .whatsapp-text {
        font-size: 12px;
    }
    
    .whatsapp-icon {
        font-size: 24px;
    }
    
    .notification-bubble {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -6px;
        right: -4px;
    }
}
/* === Estilos para redes sociales === */


/* Contenedor principal de iconos */
.social-icons {
    display: flex;          /* Esto hace que los iconos se alineen horizontalmente */
    gap: 15px;             /* Espacio entre iconos */
    margin-top: 10px;      /* Espacio arriba del contenedor */
    flex-wrap: wrap;       /* Permite que los iconos pasen a nueva línea si no caben */
}
.social-icons a {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Estilos individuales para cada icono */
.social-icons a {
    color: white;          /* Color del icono */
    font-size: 20px;       /* Tamaño del icono */
    transition: all 0.3s ease;
    background: transparent !important; /* Sin fondo */
    width: auto;           /* Ancho automático */
    height: auto;          /* Alto automático */
    display: inline-flex;  /* Display flexible en línea */
    align-items: center;
    justify-content: center;
    padding: 5px;          /* Espacio interno opcional */
}

/* Colores específicos para cada red social */
.social-icons .fa-facebook-f { color: #3b5998; }
.social-icons .fa-instagram { color: #e4405f; }
.social-icons .fa-whatsapp { color: #25D366; }

/* Efecto hover */
.social-icons a:hover {
    transform: scale(1.1);  /* Escala ligeramente al pasar el mouse */
    opacity: 0.9;
}

.footer-col:not(:first-child) {
    margin-left: 100px;  /* Mueve todas las columnas excepto la primera */
}

/* Texto superpuesto */
.hero-text-overlay {
    position: absolute;
    top: 35%; /* Ajusta este número (40% para normal, 30% para más arriba) */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    color: white;
    pointer-events: none; /* Permite que los clics pasen a través del texto */
}

/* Opcional: Ajuste para móviles */
@media (max-width: 768px) {
    .hero-text-overlay {
        top: 30%; /* Más arriba en móviles */
    }
}

/* Asegura que el hero tenga posición relativa */
.hero {
    position: relative;
}

/* Eliminar superposición oscura en el contenedor del carrusel */
.hero::after {
    content: none !important; /* Elimina cualquier superposición en el contenedor del carrusel */
}

.hero-text-overlay h1 {
    font-size: 2.8rem; /* Tamaño para desktop */
    margin-bottom: 15px;
}

.hero-text-overlay p {
    font-size: 1.4rem;
    margin-bottom: 25px; /* Espacio antes del botón */
}

@media (max-width: 768px) {
    .hero-text-overlay h1 {
        font-size: 2rem; /* Tamaño para móvil */
    }
    .hero-text-overlay p {
        font-size: 1.1rem;
    }
}
.hero-text-overlay {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.hero-text-overlay {
    top: 50%; /* Ajusta este valor:
               40% = centro
               30% = más arriba
               50% = más abajo */
}


/* Contenedor del Swiper */
.hero-swiper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Botones de navegación */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    z-index: 20; /* Asegura que los botones estén por encima del texto */
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.swiper-button-next {
    right: 20px;
}

.swiper-button-prev {
    left: 20px;
}

/* Eliminar estilos temporales de depuración para los botones Swiper */
.swiper-button-next, .swiper-button-prev {
    background: none !important; /* Elimina el fondo */
    color: white; /* Mantiene el color del ícono */
}

/* Ajustar la sección "Encuentra tus llantas" para subirla correctamente */
.encuentra-tus-llantas {
    position: relative;
    margin-top: -200px; /* Subir aún más la sección hacia arriba */
    padding-top: 20px; /* Mantener espacio interno adecuado */
    z-index: 2; /* Asegurar que esté por encima de otros elementos */
}

/* Barra de logos responsiva mejorada */
.brand-logos {
    background-color: #fff;
    padding: 20px 0;
    overflow: hidden;
    width: 100%;
    position: relative;
    display: block;
    margin-top: 2px;
}

.logos-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.logos-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll-logos 30s linear infinite;
}

.logos-track img {
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logos-track img:hover {
    transform: scale(1.1);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive para barra de logos */
@media (max-width: 768px) {
    .brand-logos {
        padding: 15px 0;
    }
    
    .logos-track {
        gap: 30px;
        animation: scroll-logos 25s linear infinite;
    }
    
    .logos-track img {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .brand-logos {
        padding: 10px 0;
    }
    
    .logos-track {
        gap: 20px;
        animation: scroll-logos 20s linear infinite;
    }
    
    .logos-track img {
        height: 60px;
    }
}

/* Asegurar que los logos de marcas reconocidas no se muevan */
.brand-logos .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
    position: relative; /* Asegura que no se muevan */
}

.brand-logos img {
    height: 100px;
    object-fit: contain; /* Evita deformaciones */
    position: static; /* Asegura que no se muevan */
}

/* Asegurar que todos los elementos de la barra de navegación sean blancos */
.navbar .nav-links a, .cart-icon {
    color: white !important; /* Cambia el color de los enlaces y el carrito a blanco */
}

/* Eliminar cualquier fondo de la barra de navegación en la página principal */
body:not(.carrito-page) .navbar {
    background-color: transparent; /* Fondo transparente */
    box-shadow: none; /* Eliminar sombra */
}

/* Forzar el color blanco del texto "SERVICAR E-commerce.com" */
.logo {
    color: white !important; /* Asegura que el texto sea blanco */
    -webkit-text-fill-color: white !important; /* Forzar el color blanco en navegadores WebKit */
}

/* Agregar estilos para el botón "Encuentra tus llantas" si es necesario */
.encuentra-tus-llantas a {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    transition: color 0.3s ease;
}

.encuentra-tus-llantas a:hover {
    color: var(--secondary);
}

/* Ajustar la barra de navegación para carrito.html */
body.carrito-page .navbar {
    background-color: #1d3557; /* Fondo oscuro */
    color: #f1faee; /* Texto claro */
    position: fixed; /* Fijar la barra en la parte superior */
    top: 0;
    width: 100%;
    z-index: 1000; /* Asegurar que esté por encima de otros elementos */
    padding: 10px 20px; /* Espaciado interno */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para destacar */
}

body.carrito-page .nav-links a {
    color: #f1faee; /* Color de los enlaces */
    text-decoration: none; /* Eliminar subrayado */
    margin: 0 15px; /* Espaciado entre enlaces */
    font-weight: bold; /* Texto en negrita */
    transition: color 0.3s ease; /* Transición suave al pasar el mouse */
}

body.carrito-page .nav-links a:hover {
    color: #a8dadc; /* Color al pasar el mouse */
}

/* Ajustar el fondo de la barra de navegación para catalogo.html */
body.catalogo-page .navbar {
    background-color: #1d3557; /* Fondo azul oscuro */
    color: #f1faee; /* Texto claro */
    position: fixed; /* Fijar la barra en la parte superior */
    top: 0;
    width: 100%;
    z-index: 1000; /* Asegurar que esté por encima de otros elementos */
    padding: 10px 20px; /* Espaciado interno */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para destacar */
}

body.catalogo-page .nav-links a {
    color: #f1faee; /* Color de los enlaces */
    text-decoration: none; /* Eliminar subrayado */
    margin: 0 15px; /* Espaciado entre enlaces */
    font-weight: bold; /* Texto en negrita */
    transition: color 0.3s ease; /* Transición suave al pasar el mouse */
}

body.catalogo-page .nav-links a:hover {
    color: #a8dadc; /* Color al pasar el mouse */
}

/* Reducir el espacio entre la barra de logos y el filtro de productos */
.brand-logos {
    margin-top: 2px; /* Reducir el margen superior de la barra de logos aún más */
}

.filters {
    margin-bottom: -40px; /* Reducir el margen inferior del filtro de productos aún más */
}

/* Estilos para el mapa */
.location-map {
    background: #ffffff;
    padding: 60px 0;
    margin: 40px 0;
}

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

.large-map-container iframe {
    width: 100%;
    height: 500px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.large-map-container iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

/* Mapa en el footer */
.map-col {
    min-width: 300px;
}

.map-container {
    margin-top: 15px;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive para mapas */
@media (max-width: 768px) {
    .location-map {
        padding: 40px 0;
        margin: 20px 0;
    }
    
    .large-map-container {
        padding: 0 15px;
    }
    
    .large-map-container iframe {
        height: 350px;
        border-radius: 10px;
    }
    
    .map-container iframe {
        height: 200px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .map-col {
        min-width: auto;
        order: -1; /* Colocar el mapa al principio en móvil */
    }
}

@media (max-width: 480px) {
    .large-map-container iframe {
        height: 300px;
        border-radius: 8px;
    }
    
    .map-container iframe {
        height: 180px;
    }
    
    .location-map h2 {
        font-size: 1.8em !important;
    }
    
    .location-map p {
        font-size: 1em !important;
    }
}