@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&family=Quicksand:wght@400;500;600;700&display=swap");
@import url(vendors/normalize.css);
@import url(vendors/bootstrap.min.css);
@import url(vendors/uicons-regular-straight.css);
@import url(plugins/magnific-popup.css);
@import url(plugins/select2.min.css);
@import url(plugins/slick.css);
@import url(plugins/perfect-scrollbar.css);

/* RESET Y BASE */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; }
*:focus, select:focus, button:focus, textarea:focus, input:focus { outline: none !important; box-shadow: none !important; }

/* VARIABLES */
:root {
    --primary: #1f368d;
    --secondary: #FDC040;
    --accent: #253D4E;
    --text: #7E7E7E;
    --border: #ececec;
    --success: #81B13D;
    --warning: #ff9900;
    --danger: #FD6E6E;
    --bg-light: #F4F6FA;
    --white: #ffffff;
}

/* TIPOGRAFÍA BASE */
body { 
    color: var(--text); 
    font-family: "Lato", sans-serif; 
    font-size: 14px; 
    line-height: 24px; 
    font-weight: 400; 
}

h1, h2, h3, h4, h5, h6, .font-heading { 
    font-family: "Quicksand", sans-serif; 
    color: var(--accent); 
    font-weight: 700; 
    line-height: 1.2; 
}

h1 { font-size: 48px; } 
h2 { font-size: 40px; } 
h3 { font-size: 32px; } 
h4 { font-size: 24px; } 
h5 { font-size: 20px; } 
h6 { font-size: 16px; }

/* UTILIDADES RESPONSIVE */
.container { width: 100%; max-width: 1610px; margin: 0 auto; padding: 0 15px; }
.section { float: left; width: 100%; }
.text-brand { color: var(--primary) !important; }
.text-brand-2 { color: var(--secondary) !important; }
.bg-brand { background-color: var(--primary) !important; }
.bg-grey-9 { background-color: #f4f5f9; }
.border-radius { border-radius: 4px; }
.border-radius-10 { border-radius: 10px; }
.border-radius-15 { border-radius: 15px; }

/* BOTONES */
.btn {
    display: inline-block;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 4px;
    color: var(--white);
    background-color: var(--primary);
    cursor: pointer;
    transition: all 300ms linear;
    font-family: "Quicksand", sans-serif;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 18px !important; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-rounded { border-radius: 50px; }

/* FORMULARIOS */
input, textarea, select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    background: transparent;
}

.form-group { margin-bottom: 1rem; }

/* HEADER MOBILE FIRST */
.header-top-ptb-1 {
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    display: none; /* Oculto en móvil */
}

.header-middle-ptb-1 {
    padding: 15px 0;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo a img {
    width: 120px;
    height: auto;
}

/* Header Actions para móvil */
.header-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-action-icon {
    position: relative;
    font-size: 20px;
    color: var(--accent);
}

.header-action-icon > a {
    color: var(--accent);
    font-size: 20px;
    display: block;
}

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

/* Search Mobile */
.search-style-1 {
    width: 100%;
    margin: 10px 0;
}

.search-style-1 form {
    position: relative;
    width: 100%;
}

.search-style-1 input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 0 50px 0 20px;
    background: var(--bg-light);
}

.search-style-1 button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: var(--primary);
}

/* PRODUCT CARDS */
.product-cart-wrap {
    position: relative;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.product-cart-wrap:hover {
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.product-img-action-wrap {
    position: relative;
    padding: 20px 20px 0 20px;
    background-color: var(--white);
}

.product-img-action-wrap img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-badges span {
    display: inline-block;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 15px 0 20px 0;
    color: var(--white);
    font-weight: 700;
}

.product-badges span.hot { background: #f74b81; }
.product-badges span.new { background: var(--primary); }
.product-badges span.sale { background: #67bcee; }

.product-content-wrap {
    padding: 15px 20px 20px 20px;
}

.product-content-wrap h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-content-wrap h2 a {
    color: var(--accent);
    text-decoration: none;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.product-price span.old-price {
    font-size: 14px;
    color: #adadad;
    text-decoration: line-through;
    margin-left: 8px;
}

.rating-result {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.rating-result::before {
    font-family: "uicons-regular-straight";
    content: '\f225 \f225 \f225 \f225 \f225';
    color: var(--warning);
    font-size: 11px;
    letter-spacing: 2px;
}

/* SLIDER HERO */
.hero-slider-1 {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.single-hero-slider {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slider-content h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--white);
}

.slider-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
}

/* NAVEGACIÓN MÓVIL */
.mobile-header-wrapper-style {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

.mobile-header-wrapper-style.sidebar-visible {
    left: 0;
}

.mobile-header-wrapper-inner {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.mobile-menu-wrap nav .mobile-menu li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-wrap nav .mobile-menu li a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    display: block;
}

/* BANNERS */
.banner-left-icon {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.banner-left-icon .banner-icon {
    width: 50px;
    margin-right: 15px;
}

.banner-left-icon .banner-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.banner-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-img img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.banner-img:hover img {
    transform: scale(1.05);
}

.banner-text {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--accent);
}

/* FOOTER */
footer {
    background: var(--bg-light);
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list li a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
}

/* MEDIA QUERIES PARA TABLETS */
@media (min-width: 768px) {
    .header-top-ptb-1 { display: block; }
    .header-middle-ptb-1 { padding: 25px 0; }
    
    .search-style-1 {
        width: auto;
        margin: 0 20px 0 0;
    }
    
    .search-style-1 form { width: 300px; }
    
    .hero-slider-1 .single-hero-slider { height: 400px; }
    .slider-content h1 { font-size: 36px; }
    
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .banner-left-icon {
        margin-bottom: 0;
    }
}

/* MEDIA QUERIES PARA DESKTOP */
@media (min-width: 992px) {
    .header-wrap { flex-wrap: nowrap; }
    
    .search-style-1 form { width: 370px; }
    
    .hero-slider-1 .single-hero-slider { height: 500px; }
    .slider-content { left: 50px; }
    .slider-content h1 { font-size: 48px; }
    
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .banner-section {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    footer .footer-content {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* MEDIA QUERIES PARA GRANDES PANTALLAS */
@media (min-width: 1200px) {
    .container { padding: 0 30px; }
    
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* UTILIDADES ESPECÍFICAS PARA MÓVIL */
.mobile-only { display: block; }
.desktop-only { display: none; }

@media (min-width: 768px) {
    .mobile-only { display: none; }
    .desktop-only { display: block; }
}

/* MEJORAS DE RENDIMIENTO */
.img-hover-scale img {
    transition: transform 0.5s ease;
}

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

.hover-up {
    transition: all 0.25s cubic-bezier(0.02, 0.01, 0.47, 1);
}

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

/* LOADING STATES */
.preloader {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ACCESSIBILITY */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FIX PARA IOS */
input, textarea {
    -webkit-appearance: none;
    border-radius: 10px;
}

/* SCROLL SUAVE */
html {
    scroll-behavior: smooth;
}

/* BOTÓN SCROLL TO TOP */
#scrollUp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

#scrollUp.show {
    opacity: 1;
}

/* ANIMACIONES SUAVES */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MEJORAS DE FORMULARIO MÓVIL */
@media (max-width: 767px) {
    input, select, textarea {
        font-size: 16px; /* Previene zoom en iOS */
    }
    
    .btn {
        padding: 14px 24px; /* Más fácil de tocar */
    }
    
    .product-content-wrap {
        padding: 15px;
    }
    
    .slider-content {
        left: 15px;
        right: 15px;
        text-align: center;
    }
    
    .slider-content h1 {
        font-size: 24px;
    }
}

/* OPTIMIZACIONES DE RENDIMIENTO */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}