:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f5f7;
    --text-main: #333333;
    --accent: #d97706; 
    --whatsapp: #25D366; 
}

/* Reset y caja base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-primary);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------
   HEADER 
-------------------- */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    width: 100%;
    padding: 0 5%; 
}

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

.logo {
    width: 50px;
    height: auto;
}

.menu {
    list-style-type: none;
    display: flex;
    gap: 25px;
}

.menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.menu a:hover,
.menu a.active {
    color: var(--accent);
    font-weight: 700;
}

/* --------------------
   SECCIONES GENERALES
-------------------- */
.landing {
    text-align: center;
    padding: 150px 20px; 
    background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.38)), url('../assets/images/footwear-design-1920-x-1200-wallpaper-35gu86l06hc76lxp.webp');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    color: #ffffff; 
}

.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.landing h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.7); 
}

.landing p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.main-content {
    padding: 60px 20px;
}

.mb-4 {
    margin-bottom: 40px;
}

.mt-2 {
    margin-top: 20px;
}

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

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 28px;
    margin-top: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #b35f00;
}

/* --------------------
   GRID DE PRODUCTOS 
-------------------- */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.product-card {
    background-color: var(--bg-primary);
    padding: 20px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.product-icon-img {
    width: 65px; 
    height: 65px;
    object-fit: contain; 
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto; 
    transition: filter 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-icon-img {
    transform: scale(1.05);
}

.product-card h3 {
    margin-bottom: 8px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
    min-height: 2.7em;
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.2em;
}

.product-card-actions,
.product-card > div:last-child {
    margin-top: auto;
}

/* --------------------
   GRID DE NOSOTROS (FEATURES)
-------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.feature-box h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.feature-box p {
    font-size: 0.95rem;
    color: #4b5563;
}

/* --------------------
   CARRUSEL DE MARCAS
-------------------- */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background-color: var(--bg-primary);
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    animation: scroll-brands 20s linear infinite; 
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.carousel-track img {
    height: 120px; 
    width: 160px; 
    object-fit: contain; 
    transition: all 0.3s ease;
}

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

/* --------------------
   LOCATION & CONTACT 
-------------------- */
.location-contact {
    background-color: var(--bg-secondary);
    padding: 70px 0;
    border-top: 1px solid #e5e7eb;
}

.contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; 
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-list {
    margin-top: 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-list i {
    width: 20px;
    color: var(--accent);
    margin-right: 8px;
}

.whatsapp-btn {
    display: inline-block;
    background-color: var(--whatsapp);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.whatsapp-btn i {
    color: white; 
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
}

.circular-map {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden; 
    flex-shrink: 0; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    border: 5px solid var(--bg-primary); 
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.circular-map iframe {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* --------------------
   FOOTER 
-------------------- */
.footer {
    background-color: #1f2937;
    color: #f9fafb;
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* --------------------
   BOTÓN FLOTANTE WHATSAPP
-------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float i {
    color: white; 
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

/* --------------------
   RESPONSIVIDAD TOTAL (MÓVILES)
-------------------- */
@media (max-width: 850px) {
    /* Header apilado */
    .header-content {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .menu {
        flex-wrap: wrap; /* Permite que los enlaces del menú bajen de línea si no caben */
        justify-content: center;
    }

    /* Hero más compacto */
    .landing {
        padding: 100px 20px;
    }

    .landing h2 {
        font-size: 2rem; /* Reduce el tamaño del título en móviles */
    }

    /* Carrusel más pequeño */
    .carousel-track img {
        width: 120px;
        height: 60px;
    }

    /* Contacto centrado */
    .contact-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-list {
        align-items: center;
    }
    
    .circular-map {
        margin-top: 30px;
        width: 280px;
        height: 280px;
    }

    /* WhatsApp más pequeño para no estorbar en la pantalla */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}

/* Alinea el texto y el logo en la misma línea */
.developer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Separación entre el texto y el logo */
    margin-top: 5px;
}

/* Controla el tamaño y hace el logo perfectamente circular */
.dev-logo {
    width: 30px; 
    height: 30px;
    border-radius: 50%; /* Esto crea el círculo */
    object-fit: cover; /* Evita que el logo se deforme si no es cuadrado */
    background-color: white; /* Opcional: Útil si tu SVG tiene fondo transparente y líneas oscuras */
}

/* ----------------------------------------------------
   CATÁLOGO DE PRODUCTOS: 2 COLUMNAS Y PAGINACIÓN
---------------------------------------------------- */
.products-layout-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 24px;
}

.category-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    position: sticky;
    top: 20px;
}

.category-sidebar h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
}

.category-link:hover {
    background-color: #f8fafc;
    color: #d97706;
}

.category-link.active {
    background-color: #fff7ed;
    color: #d97706;
    border-left: 4px solid #d97706;
    font-weight: 700;
}

.category-link-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-badge {
    background-color: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.category-link.active .category-badge {
    background-color: #fef3c7;
    color: #b45309;
}

.search-sidebar-box {
    margin-bottom: 20px;
    position: relative;
}

.search-sidebar-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-sidebar-input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.search-sidebar-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Paginador */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.page-link-btn:hover {
    border-color: #d97706;
    color: #d97706;
    background-color: #fff7ed;
}

.page-link-btn.active {
    background-color: #d97706;
    color: white;
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.page-link-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    background: #f1f5f9;
}

@media (max-width: 900px) {
    .products-layout-grid {
        grid-template-columns: 1fr;
    }
    .category-sidebar {
        position: static;
    }
}

/* ----------------------------------------------------
   MODAL DE DETALLE DE PRODUCTO
---------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-in-out;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s ease-in-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.modal-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}

.modal-img-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.modal-img-wrap img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

@media (max-width: 640px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-card {
        padding: 24px 18px;
    }
}

/* Rejilla 4x2 equilibrada para Productos Destacados (8 Slots) */
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}