/* --- Variables CSS --- */
@import 'base/_variables.css';
@import 'base/_reset.css';
@import 'base/_typography.css';

@import 'components/_modals.css';
@import 'components/_chatbot.css';
@import 'components/_header.css';
@import 'components/_footer.css';
@import 'components/_buttons.css';

@import 'sections/_hero.css';
@import 'sections/_deals.css';

/* Daily Deals (Swiper) */
.daily-deals-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-light);
}

.daily-deals-section h2 {
    font-size: 2.8em;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.daily-deals-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    /* Ajusta estos paddings si los botones de navegación no se ven bien */
}

.daily-deals-swiper .swiper-slide {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px;
    text-align: center;
    height: auto; /* Permite que la altura se ajuste al contenido */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.daily-deals-swiper .swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.daily-deals-swiper .deal-card img {
    max-width: 180px; /* Tamaño un poco más grande para las imágenes de oferta */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.daily-deals-swiper .deal-card h3 {
    font-size: 1.4em;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.daily-deals-swiper .deal-card p {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1; /* Permite que el párrafo ocupe el espacio disponible */
}

.daily-deals-swiper .deal-card .price-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.daily-deals-swiper .deal-card .original-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.daily-deals-swiper .deal-card .current-price {
    font-size: 1.6em;
    color: var(--accent-color);
    font-weight: 700;
}

/* Swiper navigation buttons */
.daily-deals-swiper .swiper-button-next,
.daily-deals-swiper .swiper-button-prev {
    color: var(--primary-color) !important;
    font-size: 2.5em !important;
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.daily-deals-swiper .swiper-button-next:hover,
.daily-deals-swiper .swiper-button-prev:hover {
    background-color: white;
    transform: scale(1.1);
}

/* Swiper pagination dots */
.daily-deals-swiper .swiper-pagination-bullet {
    background: var(--text-light) !important;
    opacity: 0.5 !important;
}

.daily-deals-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1 !important;
}

.daily-deals-section .center-btn {
    margin-top: 50px;
    text-align: center;
}

/* Call to Action Shop */
.call-to-action-shop {
    background: var(--text-dark);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.call-to-action-shop .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.call-to-action-shop .cta-content {
    max-width: 800px;
    text-align: center;
}

.call-to-action-shop h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.call-to-action-shop p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
}

.call-to-action-shop .cta-image {
    width: 100%;
    max-width: 800px;
}

.call-to-action-shop .cta-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Services Grid Section */
.services-grid-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.services-grid-section h2 {
    font-size: 2.8em;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.services-grid-section .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.services-grid-section .service-item {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.services-grid-section .service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.services-grid-section .service-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.services-grid-section .service-item h3 {
    font-size: 1.5em;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.services-grid-section .service-item p {
    font-size: 1em;
    color: var(--text-light);
    line-height: 1.5;
}

/* TecniBot Section */
.tecnibot-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #004d99);
    color: white;
    position: relative;
    overflow: hidden;
}

.tecnibot-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.tecnibot-section .tecnibot-content {
    flex: 1;
    min-width: 450px;
    text-align: left;
}

.tecnibot-section .tecnibot-content h2 {
    font-size: 2.8em;
    color: white;
    margin-bottom: 20px;
    text-align: left;
}

.tecnibot-section .tecnibot-content p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.tecnibot-section .tecnibot-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tecnibot-section .tecnibot-features li {
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.tecnibot-section .tecnibot-features i {
    color: #ffc107;
    font-size: 1.3em;
}

.tecnibot-section .tecnibot-image {
    flex: 1;
    min-width: 400px;
    text-align: right;
}

.tecnibot-section .tecnibot-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.testimonials-section h2 {
    margin-bottom: 50px;
    font-size: 2.5em;
    color: var(--text-dark);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 900px; /* Adjust as needed */
}

.testimonial-item {
    display: none; /* Controlled by JS */
    padding: 0 50px; /* Padding for arrows */
}

.testimonial-item.active {
    display: block;
}

.testimonial-item p {
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-item span {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1em;
}

.slider-dots {
    margin-top: 30px;
    text-align: center;
}

.slider-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* --- Media Queries --- */

.desktop-auth-controls,
.desktop-user-controls {
    display: flex; /* Muestra los botones de texto de autenticación en escritorio */
    gap: 10px;    /* Espacio entre los botones */
}

.mobile-fixed-controls { /* Para los iconos de autenticación en el header */
    display: none; /* **OCULTA** los iconos por defecto en escritorio */
}

/* Tablet & Smaller Desktop Adjustments (max-width: 992px) */
@media (max-width: 992px) {
    .main-header .container {
        padding: 0 20px;
    }

    /* Ocultar el botón "Comprar Ahora" en móvil (si aplica) */
    .header-actions .btn-primary {
        display: none;
    }

    /* Muestra el botón de hamburguesa */
    .menu-toggle {
        display: block; /* Muestra la hamburguesa en móvil */
    }

    /* Asegura que el botón de cerrar general en header-actions esté oculto */
    .close-menu {
        display: none;
    }

    /* Oculta los controles de autenticación de escritorio en móvil */
    .desktop-auth-controls,
    .desktop-user-controls {
        display: none; /* **OCULTA** los botones de texto de autenticación en móvil */
    }

    /* Muestra los controles de autenticación móviles (iconos) en el header */
    .mobile-fixed-controls {
        display: flex; /* **MUESTRA** los iconos en móvil */
        gap: 8px; /* Espacio entre los botones de icono */
        align-items: center; /* Centra verticalmente los iconos */
    }

    /* Estilos base para los botones de icono móviles (aplican desde 992px hacia abajo) */
    .btn-icon {
        background: none; /* Sin fondo */
        border: none;     /* Sin borde */
        font-size: 1.5em; /* Tamaño base del icono */
        color: var(--text-dark); /* Color del icono */
        padding: 5px;     /* Pequeño padding para el área de clic */
        cursor: pointer;
        transition: color 0.3s ease, transform 0.3s ease;
        display: flex; /* Para centrar el icono si el padding lo hace flotar */
        align-items: center;
        justify-content: center;
        flex-shrink: 0; /* Evita que los iconos se achiquen en espacios reducidos */
    }

    .btn-icon:hover {
        color: var(--primary-color); /* Color al pasar el ratón */
        transform: scale(1.1);
    }

    /* ---------------------------------------------------------------------- */
    /* --- Estilos para el menú de navegación móvil (el panel que se desliza) --- */
    .main-nav.mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    }

    /* Muestra el botón de cerrar DENTRO del menú móvil */
    .main-nav .close-menu {
        display: block;
    }

    /* Clase que JavaScript debe añadir para abrir el menú */
    .main-nav.is-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    /* Opcional: Ocultar o atenuar el logo cuando el menú está abierto */
    .main-header.menu-open .logo {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 25px;
        width: 90%;
        max-width: 400px;
        text-align: center;
        padding: 40px 0;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 15px 0;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        font-size: 1.8em;
        padding: 15px 0;
        display: block;
    }

    .main-nav ul li a::after {
        left: 50%;
        transform: translateX(-50%);
        width: 0%;
        height: 3px;
    }

    .main-nav ul li a:hover::after,
    .main-nav ul li a.active::after {
        width: 80%;
    }

    /* Hero Principal */
    .hero-main-focus .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-main-focus .hero-content-left {
        min-width: unset;
        width: 100%;
    }
    .hero-main-focus .hero-content-left h1 {
        font-size: 2.8em;
    }
    .hero-main-focus .hero-content-left .subtitle {
        font-size: 1.2em;
        margin-bottom: 30px;
    }
    .hero-main-focus .hero-main-actions {
        justify-content: center;
    }
    .hero-main-focus .usp-items {
        justify-content: center;
    }
    .hero-main-focus .hero-image-right {
        min-width: unset;
        width: 80%;
        text-align: center;
        margin-top: -33px;
    }

    /* Call to Action Shop */
    .call-to-action-shop h3 {
        font-size: 2em;
    }
    .call-to-action-shop p {
        font-size: 1em;
    }
    .btn-primary-cta {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* Services Grid Section */
    .services-grid-section h2 {
        font-size: 2.2em;
    }
    .services-grid-section .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* TecniBot Section */
    .tecnibot-section .container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .tecnibot-section .tecnibot-content {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .tecnibot-section .tecnibot-content h2 {
        font-size: 2.2em;
        text-align: center;
    }
    .tecnibot-section .tecnibot-content p {
        font-size: 1em;
    }
    .tecnibot-section .tecnibot-features {
        grid-template-columns: 1fr;
        align-items: center;
    }
    .tecnibot-section .tecnibot-features li {
        justify-content: center;
    }
    .tecnibot-section .tecnibot-image {
        min-width: unset;
        width: 80%;
        text-align: center;
        margin-bottom: 40px;
    }

    /* Daily Deals (Swiper) */
    .daily-deals-swiper .swiper-button-prev,
    .daily-deals-swiper .swiper-button-next {
        font-size: 2em !important;
        width: 35px !important;
        height: 35px !important;
    }

    /* Footer */
    .main-footer .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .main-footer .footer-section {
        min-width: unset;
        width: 100%;
    }
    .main-footer .social-media {
        justify-content: center;
    }
}

/* Mobile Adjustments (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px; /* Smaller padding on very small screens */
    }
    .main-header {
        height: 70px;
    }

    .logo {
        font-size: 1.2em;
    }

    .logo img {
        height: 35px;
    }

    .menu-toggle {
        font-size: 1.8em;
        padding: 5px;
    }

    .close-menu {
        top: 20px;
        right: 20px;
        font-size: 2em;
    }

    .main-nav ul {
        gap: 20px;
        width: 95%;
        padding: 30px 0;
    }

    .main-nav ul li a {
        font-size: 1.5em;
        padding: 12px 0;
    }

    .main-nav ul li a::after {
        bottom: 3px;
        width: 70%;
    }

    /* Ajustes específicos para los botones de icono móviles en este breakpoint (768px) */
    .btn-icon {
        font-size: 1.3em; /* Un poco más pequeños que en el breakpoint de 992px */
        padding: 4px;
    }

    h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    p.section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* General section padding */
    .daily-deals-section, .call-to-action-shop, .services-grid-section, .tecnibot-section, .testimonials-section {
        padding: 60px 0;
    }

    /* Header */
    .main-header .logo span {
        display: none; /* Hide text logo on small screens */
    }
    .main-header .logo img {
        height: 35px;
        margin-right: 0;
    }

    /* Hero Principal */
    .hero-main-focus {
        padding: 60px 0;
        min-height: auto;
    }
    .hero-main-focus .hero-content-left h1 {
        font-size: 2.2em;
    }
    .hero-main-focus .hero-content-left .subtitle {
        font-size: 1em;
    }
    .hero-main-focus .hero-main-actions {
        flex-direction: column;
        gap: 15px;
    }
    .btn-primary-hero-large, .btn-secondary-hero-large {
        width: 100%;
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .hero-main-focus .usp-items {
        flex-direction: column;
        gap: 10px;
    }

    /* Call to Action Shop */
    .call-to-action-shop h3 {
        font-size: 1.8em;
    }
    .call-to-action-shop p {
        font-size: 0.9em;
    }

    /* Services Grid Section */
    .services-grid-section h2 {
        font-size: 2em;
    }
    .services-grid-section .services-grid {
        grid-template-columns: 1fr;
    }
    .services-grid-section .service-item {
        padding: 25px;
    }

    /* TecniBot Section */
    .tecnibot-section .tecnibot-content h2 {
        font-size: 2em;
    }
    .tecnibot-section .tecnibot-content p {
        font-size: 0.95em;
    }
    .tecnibot-section .tecnibot-features {
        gap: 10px;
    }
    .tecnibot-section .tecnibot-features li {
        font-size: 1em;
    }

    /* Daily Deals (Swiper) */
    .daily-deals-swiper .swiper-button-prev,
    .daily-deals-swiper .swiper-button-next {
        display: none !important; /* Hide navigation buttons on mobile */
    }
    .daily-deals-swiper {
        padding-bottom: 30px; /* Adjust padding if no arrows */
    }

    /* Chatbot UI */
    .chatbot-container {
        width: calc(100% - 40px); /* Adjust width to fit screen */
        bottom: 20px;
        left: 20px;
        right: 20px;
        height: 80vh; /* Make it taller */
    }

    #openChatBtn {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }

    .chat-badge {
        padding: 2px 6px;
        font-size: 0.6em;
    }

    /* Testimonials */
    .testimonial-item p {
        font-size: 1em;
        padding: 0 20px;
    }
    .testimonials-section h2 {
        font-size: 2em;
    }
}
@media (max-width: 375px) {
    .main-header {
        height: 65px;
    }
    .logo {
        font-size: 1.1em;
    }
    .logo img {
        height: 30px;
    }
    .menu-toggle {
        font-size: 1.6em;
    }
    .close-menu {
        top: 15px;
        right: 15px;
        font-size: 1.8em;
    }
    .main-nav ul {
        gap: 15px;
        padding: 20px 0;
    }
    .main-nav ul li a {
        font-size: 1.3em;
        padding: 10px 0;
    }
    .main-nav ul li a::after {
        bottom: 3px;
        width: 70%;
    }

    /* Ajustes específicos para los botones de icono móviles en este breakpoint (375px) */
    .btn-icon {
        font-size: 1.1em; /* Más pequeños para pantallas muy chicas */
        padding: 3px;
    }
}