/* ==============================================
   1. RESET, FUENTES Y VARIABLES
   ============================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

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

:root {
    --primary-red: #d32f2f;
    --text-dark: #333333;
    --white: #ffffff;
    --bg-light: #f4f4f4;
    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --footer-bg: #1a1a1a;
    --offer-color: #ff0000;
    /* Color brillante para ofertas */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

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

.hidden {
    display: none !important;
}

/* ==============================================
   2. NAVBAR
   ============================================== */
.navbar {
    background: var(--white);
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

.cart-icon-menu {
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
}

.cart-icon-menu span {
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    position: absolute;
    top: -8px;
    right: -10px;
}

/* ==============================================
   3. UI COMPONENTS
   ============================================== */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 250px;
    background: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease, fadeOut 0.5s 2.5s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.toast.success {
    border-left: 5px solid var(--success);
}

.toast.error {
    border-left: 5px solid var(--danger);
}

.toast i {
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 4000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal-overlay.active {
    display: flex;
}

.confirm-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.confirm-box h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-confirm-yes {
    background: var(--danger);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-confirm-no {
    background: #ccc;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    position: relative;
}

.login-box h3 {
    margin-bottom: 20px;
    color: var(--primary-red);
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-login {
    background: var(--primary-red);
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

/* ==============================================
   4. HOME & SECTIONS
   ============================================== */
.hero-section {
    width: 100%;
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1607623814075-e51df1bdc82f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px 80px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-overlay-box h1 {
    color: var(--primary-red);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.btn-hero {
    background: var(--primary-red);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
}

.welcome-animate {
    animation: zoomFadeIn 1.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.5);
    color: var(--primary-red);
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1;
}

@keyframes zoomFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.typewriter-container {
    font-size: 1.5rem;
    color: #444;
    font-weight: 600;
    min-height: 40px;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
}

#typewriter-text {
    color: #333;
}

.cursor {
    display: inline-block;
    background-color: var(--primary-red);
    width: 3px;
    height: 1.2em;
    margin-left: 5px;
    vertical-align: bottom;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.mission-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 500px;
}

.mission-left {
    flex: 1;
    background-color: #D6230E;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.mission-content-left h2 {
    font-size: 3rem;
    line-height: 1.2;
}

.mission-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.mission-content-right h3 {
    color: #D6230E;
    font-size: 1.3rem;
    font-weight: 700;
}

.products-section {
    padding: 60px 0;
}

.products-header {
    text-align: center;
    margin-bottom: 40px;
}

.products-header h2 {
    color: var(--primary-red);
    font-size: 2.5rem;
}

.products-grid,
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding-bottom: 50px;
}
/* ==============================================
   5. CATALOGO & PRODUCTOS (CON OFERTAS)
   ============================================== */
.catalog-header {
    background-color: #333;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: background-image 0.5s ease-in-out;
}

.catalog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.catalog-header .container {
    position: relative;
    z-index: 2;
}

.filter-buttons {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: bold;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    /* Para el badge */
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

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

.p-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.p-info h4 {
    margin-bottom: 5px;
    color: #333;
}

/* PRECIOS Y OFERTAS */
.p-info .price {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
    margin-right: 5px;
    font-weight: normal;
}

.offer-price {
    color: #d32f2f;
    font-weight: 800;
    font-size: 1.3rem;
}

/* BADGE DE OFERTA */
.offer-badge-card {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--offer-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 5;
    animation: pulse 2s infinite;
}

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

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-add {
    background: #333;
    color: white;
    border: none;
    padding: 8px;
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
}

.btn-add:hover {
    background: var(--primary-red);
}

.unit-pills-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0 10px;
}

.unit-pill {
    padding: 5px 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-weight: 600;
}

.unit-pill.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    box-shadow: 0 2px 5px rgba(211, 47, 47, 0.3);
}

.unit-badge-fixed {
    display: inline-block;
    background: #eee;
    color: #555;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 5px;
    vertical-align: middle;
}

.box-info-badge {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 5px;
    text-align: center;
    font-weight: 600;
}

.box-info-badge i {
    margin-right: 5px;
}

/* ==============================================
   6. CARRITO & CHECKOUT
   ============================================== */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100vh;
    background: transparent;
    z-index: 2000;
    transition: 0.3s;
    display: flex;
    justify-content: flex-end;
}

.cart-modal.active {
    right: 0;
    background: rgba(0, 0, 0, 0.3);
}

.cart-content {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-header {
    padding: 20px;
    background: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.close-cart {
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.qty-btn {
    background: #eee;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #ddd;
}

.qty-number {
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-remove {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    padding: 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
    flex-shrink: 0;
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: white;
    border: none;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
}

.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-red);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1500;
}

.float-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #333;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
}

/* MODAL CHECKOUT */
.checkout-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.checkout-box h3 {
    margin-bottom: 20px;
    color: var(--primary-red);
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.checkout-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.checkout-options label {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f4f4f4;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.checkout-options label:has(input:checked) {
    background: #ffebee;
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.checkout-form-group {
    margin-bottom: 15px;
}

.checkout-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

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

.checkout-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-confirm-order {
    flex: 1;
    background: #25D366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

.btn-cancel-order {
    flex: 1;
    background: #ccc;
    color: #333;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* ==============================================
   7. ADMIN PANEL
   ============================================== */
.admin-container {
    padding: 40px 15px;
    background: #f4f4f4;
    min-height: 100vh;
}

.admin-card-form {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.file-input-wrapper {
    border: 1px dashed #ccc;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    background: #fafafa;
}

.current-img-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    display: none;
    margin: 10px auto;
    border: 1px solid #ddd;
}

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

.btn-save {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-clear {
    background: #666;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.admin-search-bar {
    margin-bottom: 30px;
    position: relative;
}

.admin-search-bar input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    outline: none;
}

.admin-search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.admin-category-section {
    margin-bottom: 40px;
}

.admin-category-title {
    font-size: 1.5rem;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: capitalize;
    color: #444;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.admin-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-admin-edit {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px;
    flex: 1;
    cursor: pointer;
    border-radius: 4px;
}

.btn-admin-delete {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px;
    flex: 1;
    cursor: pointer;
    border-radius: 4px;
}

/* SECCION DE OFERTAS EN ADMIN */
.offer-management-section {
    background: #fff8e1;
    /* Fondo amarillo claro */
    padding: 15px;
    border: 1px solid #ffecb3;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* --- ESTILOS DE OFERTAS --- */

/* Sección amarilla en el admin */
.offer-management-section {
    background: #fff8e1;
    padding: 15px;
    border: 1px solid #ffecb3;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Precios en la tarjeta */
.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
    margin-right: 5px;
    font-weight: normal;
}

.offer-price {
    color: #d32f2f;
    /* Rojo intenso */
    font-weight: 800;
    font-size: 1.3rem;
}

/* Badge (Etiqueta) sobre la imagen */
.offer-badge-card {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d32f2f;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 5;
    animation: pulse 2s infinite;
}

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

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ==============================================
   8. PAGINAS EXTRA (Contact, Products) & FOOTER
   ============================================== */
.contact-section {
    padding: 50px 0;
    border-top: 1px solid #eee;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #ddd;
}

.contact-box {
    text-align: center;
    padding: 40px 20px;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-box:last-child {
    border-right: none;
}

.social-icons a {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s;
}

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

.split-hero-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 60vh;
    background: white;
}

.split-left-img {
    flex: 1;
    min-width: 300px;
    height: 100%;
}

.split-left-img img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

.split-right-text {
    flex: 1;
    min-width: 300px;
    padding: 50px;
    background: white;
}

.split-right-text h2 {
    color: #D6230E;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle-red {
    color: #D6230E;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.red-services-section {
    background-color: #D6230E;
    padding: 60px 0;
    text-align: center;
    color: white;
}

.section-title-white {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.section-subtitle-white {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    color: #333;
    padding: 40px 20px;
    border-radius: 5px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-circle {
    background-color: #1e3a8a;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    top: -30px;
}

.service-card h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

.text-sm {
    font-size: 0.85rem;
    color: #777;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.providers-section {
    background-color: #D6230E;
    padding: 40px 0 80px;
    text-align: center;
}

.carousel-container {
    background: white;
    padding: 40px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 50px;
    align-items: center;
}

.brand-slide {
    min-width: 200px;
    display: flex;
    justify-content: center;
}

.brand-slide img {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    transition: 0.3s;
}

.brand-slide img:hover {
    filter: grayscale(0%);
}

.carousel-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #33333376;
    cursor: pointer;
    padding: 0 15px;
    z-index: 10;
}

.carousel-btn:hover {
    color: #D6230E;
}

.usda-section {
    background: rgb(255, 255, 255);
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.usda-logo {
    height: 80px;
    width: auto;
}

.contact-page-header {
    text-align: center;
    padding: 60px 0 40px;
    background: white;
}

.contact-page-header h1 {
    color: #D6230E;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-page-header p {
    color: #D6230E;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
}

.contact-info-top {
    padding: 40px 0;
    background: white;
}

.info-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.info-top-item h3 {
    color: #1F3A66;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-subtitle {
    color: #555;
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 25px;
    border-bottom: 1px solid transparent;
}

.info-content p {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 5px;
}

.map-section {
    padding: 20px 0 60px;
}

.map-section iframe {
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.main-footer {
    background-color: var(--footer-bg);
    color: #ccc;
    padding: 50px 0 30px;
    margin-top: 0;
    border-top: 5px solid var(--primary-red);
}

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

.footer-col-left {
    flex: 1;
    text-align: left;
}

.footer-col-left p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-col-center {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
}

.footer-logo-box {
    background: var(--white);
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    display: block;
}

.footer-col-right {
    flex: 1;
    text-align: right;
}

.footer-social-links a {
    color: var(--white);
    font-size: 1.4rem;
    margin-left: 20px;
    transition: 0.3s;
}

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

.footer-developer-credit {
    margin-top: 25px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-developer-credit p {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.footer-developer-credit a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-developer-credit a:hover {
    color: var(--primary-red);
    text-shadow: 0 0 5px rgba(214, 35, 14, 0.5);
}

/* ==============================================
   9. RESPONSIVE MOBILE
   ============================================== */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 20px 0;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .products-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        border: none;
    }

    .contact-box {
        border: none;
        border-bottom: 1px solid #ddd;
    }

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

    .footer-flex {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-col-left,
    .footer-col-right {
        text-align: center;
    }

    .footer-social-links a {
        margin: 0 10px;
    }

    .split-hero-section {
        flex-direction: column;
    }

    .split-left-img,
    .split-right-text {
        width: 100%;
    }

    .split-left-img img {
        min-height: 300px;
    }

    .services-grid,
    .info-top-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .service-card {
        margin-top: 20px;
    }

    .welcome-animate {
        font-size: 2.2rem;
    }

    .typewriter-container {
        font-size: 1rem;
        min-height: 50px;
    }

    .contact-page-header h1 {
        font-size: 2.5rem;
    }

    .mission-section {
        flex-direction: column;
    }
}

@media (max-width: 600px) {

    .products-grid,
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CREDITOS DEL DESARROLLADOR (FOOTER) --- */

.footer-developer-credit {
    margin-top: 25px;
    /* Espacio para separarlo de los iconos de redes */
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Una línea muy sutil de separación */
}

.footer-developer-credit p {
    font-size: 0.75rem;
    /* Letra pequeña y elegante */
    color: #888;
    /* Gris suave para no distraer */
    margin: 0;
    letter-spacing: 0.5px;
    /* Un poco de espacio entre letras */
    font-weight: 400;
}

.footer-developer-credit a {
    color: #ffffff;
    /* Tu marca en blanco para que resalte */
    font-weight: 600;
    /* Un poco más grueso (Semibold) */
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-developer-credit a:hover {
    color: var(--primary-red);
    /* Se pone rojo al pasar el mouse */
    text-shadow: 0 0 5px rgba(214, 35, 14, 0.5);
    /* Pequeño brillo opcional */
}

/* --- NUEVOS ESTILOS PARA EL LOOK TIENDA --- */

/* Hero Moderno */
.new-hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-badge {
    background: var(--primary-red);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-main {
    background: var(--primary-red);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* Categorías Estilo Burbuja */
.quick-categories {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 50px 0;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.cat-circle {
    width: 80px;
    height: 80px;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.category-item:hover .cat-circle {
    background: var(--primary-red);
    color: white;
    transform: translateY(-5px);
}

.category-item span {
    font-weight: bold;
    font-size: 0.9rem;
}

/* Marcas / Logos */
.brands-divider {
    background: #fdfdfd;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.brands-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.9;
    flex-wrap: wrap;
    gap: 20px;
}



.brand-logo-img {
    height: 50px;
    width: auto;
    position: relative;
    filter: none;
    transition: transform 0.3s cubic-bezier(0.4, 2, 0.3, 1), filter 0.3s, box-shadow 0.3s;
    z-index: 1;
}


.brand-logo-img:hover {
    transform: scale(1.12);
    filter: none;
    z-index: 2;
}

/* Línea verde animada debajo de la imagen */
.brand-logo-img {
    box-shadow: none;
}

.brand-logo-img::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 4px;
    background: #2ecc71;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 2, 0.3, 1);
    z-index: 3;
}

.brand-logo-img:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Header de Secciones */
.section-header-store {
    text-align: center;
    margin: 40px 0;
}

.section-header-store h2 {
    font-size: 2rem;
    color: var(--text-dark);
    text-transform: uppercase;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 10px auto;
}

/* Botón Ver Todo */
.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 5px;
}

/* Misión Compacta */
.mission-compact {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.mission-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m-text h3 {
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .brands-flex {
        justify-content: center;
    }
}

/* ==============================================
   NUEVAS CARDS ESTILO CJ TROPICAL
   ============================================== */

/* Grid de 2 columnas en móvil como en la captura */
@media (max-width: 600px) {

    .products-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
    }
}

.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    /* Borde muy sutil */
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 15px;
}

/* Contenedor de Imagen y Botón Agregar */
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* El botón verde "AGREGAR" arriba a la derecha */
.add-badge-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #28a745;
    /* Verde de la captura */
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    z-index: 10;
    text-transform: uppercase;
}

/* Detalles del producto */
.product-details {
    padding: 0 12px;
    text-align: left;
    /* Alineado a la izquierda según la imagen */
}

/* El selector de unidad (Cuadro con borde verde) */
.unit-selector {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border: 1.5px solid #28a745;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    min-width: 80px;
    cursor: pointer;
}

.unit-selector span {
    color: #28a745;
    font-size: 13px;
    font-weight: 600;
}

.unit-selector i {
    color: #28a745;
    font-size: 10px;
    margin-left: 5px;
}

/* Contenedor de Precio */
.price-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    color: #000;
    font-weight: 700;
}

.price-container .currency {
    font-size: 14px;
    margin-top: 4px;
    margin-right: 2px;
}

.price-container .integer {
    font-size: 22px;
    line-height: 1;
}

.price-container .decimals {
    font-size: 12px;
    margin-top: 2px;
}

/* Título del producto */
.product-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 5px 0;
    text-transform: uppercase;
    line-height: 1.2;
}

/* SKU */
.sku-text {
    display: block;
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

/* MODAL AUTH ESTILOS */
.auth-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 95%;
    max-width: 400px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    color: #888;
}

.tab-btn.active {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.btn-auth-submit {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.auth-divider {
    margin: 20px 0;
    position: relative;
    border-bottom: 1px solid #eee;
}

.auth-divider span {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 10px;
    color: #888;
    font-size: 0.8rem;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-google img {
    width: 20px;
    height: 20px;
    display: block;
    /* Asegura que no se oculte */
}

.btn-google:hover {
    background: #f9f9f9;
}

.btn-logout {
    margin-top: 20px;
    background: #555;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

.user-icon-menu {
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

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

/* Evitar que el modal se vea mal sobre el navbar */
#auth-modal {
    z-index: 5000;
    /* Por encima de todo */
}

/* ==============================================
   NUEVO HERO SPLIT LAYOUT
   ============================================== */

.hero-split {
    background-color: #ffffff;
    padding: 60px 0 100px 0;
    overflow: hidden;
}

.hero-split-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Dos columnas: Izquierda más ancha */
    gap: 40px;
    align-items: center;
}

/* --- LADO IZQUIERDO --- */
.hero-main-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.green-text {
    color: #28a745;
}

.dark-text {
    color: #000;
}

.hero-main-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 450px;
    margin-bottom: 30px;
}

.btn-black-hero {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
    transition: 0.3s;
}

/* Contenedor de las 3 tarjetas */
.hero-cards-container {
    display: flex;
    gap: 15px;
}

.hero-cards-container :hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(144, 166, 215, 0.564);
    transition: 0.3s;
}

.mini-card {
    text-decoration: none;
    /* Quita el subrayado */
    display: flex;
    /* Mantiene la estructura interna */
    color: inherit;
    /* Mantiene los colores originales de los textos */
    cursor: pointer;
    /* Asegura que salga la manito al pasar el mouse */
}

.mini-card:hover {
    transform: translateY(-5px);
    /* Un pequeño efecto de elevación al pasar el mouse */
    transition: 0.3s;
}

/* Tarjeta Amarilla */
.card-yellow {
    background-color: #ffeb99;
    padding: 20px;
    justify-content: center;
    border-radius: 25px;
}

.discount-num {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    color: #333;
}

.discount-text {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    color: #333;
    margin-top: -5px;
}

.discount-sub {
    font-size: 0.8rem;
    color: #886b00;
    margin-top: 15px;
    font-weight: 600;
}

/* Tarjetas con Imagen */
.card-image {
    background: #e0f2ff;
    position: relative;
    border: #06535d solid 1px;
    border-radius: 20px;
}

.card-green-bg {
    background: #d4edda;
}

.mini-card img {
    width: 50%;
    height: 150px;
    object-fit: cover;
}

.card-label {
    padding: 2px;
}

.card-label small {
    font-size: 1rem;
    color: #666;
    display: block;
    margin-bottom: 5px;
    line-height: 1.2;
}

.card-label h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a3a5a;
}

/* --- LADO DERECHO --- */
.hero-right-visual {
    position: relative;
}

.main-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: visible;
}

.hero-img-main {
    width: 110%;
    height: 550px;
    object-fit: cover;
    border-radius: 20px;
}

/* Testimonio Flotante */
.testimonial-floating-box {
    position: absolute;
    bottom: 30px;
    left: -60px;
    /* Hace que sobresalga a la izquierda */
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 280px;
}

.testimonial-floating-box p {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.customer-faces {
    display: flex;
    align-items: center;
}

.customer-faces img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-right: -10px;
    /* Efecto de encimado */
}

.heart-icon-circle {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    font-size: 0.8rem;
}

/* ==============================================
   AJUSTE PARA QUE EL HERO SE VEA EN MÓVIL
   ============================================== */

@media (max-width: 1100px) {
    .hero-split-container {
        grid-template-columns: 1fr; /* Pasa de 2 columnas a 1 sola */
        text-align: center;
        padding-top: 20px;
    }

    .hero-right-visual {
        display: block; /* ¡IMPORTANTE! Volver a mostrar la imagen */
        order: 2; /* La imagen va después del texto principal */
        margin-top: 30px;
    }

    .hero-left-content {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-main-title {
        font-size: 2.8rem; /* Título más pequeño para que quepa en el móvil */
    }

    .hero-main-subtitle {
        margin: 0 auto 20px;
    }

    .hero-img-main {
        width: 100%;
        height: 350px; /* Reducimos la altura en móvil para que no sea infinita */
        object-fit: cover;
        border-radius: 15px;
    }

    /* Ajuste del cuadro de testimonios para que no se salga de la pantalla */
    .testimonial-floating-box {
        position: relative; /* Deja de ser flotante para no tapar el contenido */
        left: 0;
        bottom: 0;
        margin: -40px auto 0; /* Lo subimos un poco para que muerda la imagen */
        width: 90%;
        padding: 15px;
    }

    .hero-cards-container {
        order: 3; /* Las 3 tarjetitas van al final en el móvil */
        flex-direction: column; /* Una debajo de otra */
        align-items: center;
        width: 100%;
        margin-top: 40px;
        gap: 20px;
    }

    .mini-card {
        width: 90%; /* Que ocupen casi todo el ancho del celular */
        height: auto;
    }
}

/* Ajuste extra para celulares muy pequeños */
@media (max-width: 480px) {
    .hero-main-title {
        font-size: 2.2rem;
    }
    
    .hero-img-main {
        height: 250px;
    }
}

/* ==============================================
   SECCIÓN DE BENEFICIOS CON LÍNEA VERDE
   ============================================== */
.features-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 60px 0;
    text-align: center;
}

.feature-item {
    flex: 1;
    padding: 30px 20px;
    position: relative; /* Necesario para posicionar la línea */
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

/* El círculo del icono */
.feature-icon-circle {
    width: 60px;
    height: 60px;
    background-color: #28a745; /* Verde CJ Tropical */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #333;
}

.feature-item p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
}

/* --- LA LÍNEA VERDE (Efecto Hover) --- */
.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Grosor de la línea */
    background-color: #28a745;
    transform: scaleX(0); /* Empieza invisible (ancho 0) */
    transform-origin: bottom left; /* La animación sale de izquierda a derecha */
    transition: transform 0.3s ease-out;
}

.feature-item:hover::after {
    transform: scaleX(1); /* Se expande al 100% al pasar el mouse */
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .features-section {
        flex-direction: column;
    }
    .feature-item {
        border-bottom: 1px solid #eee;
    }
    .feature-item::after {
        display: none; /* Quitamos la línea en móvil para que no se vea raro */
    }
}
/* ==============================================
   BARRA DE BÚSQUEDA ESTILO CJ TROPICAL
   ============================================== */

.search-wrapper {
    position: absolute;
    top: 90px; /* Debajo del navbar */
    right: 15px;
    width: 350px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none; /* Oculto por defecto en PC */
    z-index: 1100;
}

.search-wrapper.active {
    display: block; /* Se muestra al dar clic en la lupa (PC) */
}

.search-input-container {
    position: relative;
    width: 100%;
}

.search-input-container input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 50px; /* Redondeado total como en la imagen */
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.search-input-container input:focus {
    border-color: var(--primary-green);
}

.search-inside-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    font-size: 1rem;
}

/* --- RESPONSIVE MÓVIL (Como en tu captura) --- */
@media (max-width: 900px) {
    .search-icon-menu {
        display: none; /* Ocultamos la lupa individual en móvil */
    }

    .navbar {
        height: auto; /* Dejamos que el navbar crezca para albergar la barra */
        padding-bottom: 15px;
    }

    .nav-container {
        flex-wrap: wrap; /* Permite que la barra baje a la siguiente línea */
    }

    .search-wrapper {
        position: relative; /* Ya no flota, ocupa su lugar */
        top: 10px;
        right: 0;
        width: 100%; /* Ancho total en móvil */
        display: block; /* SIEMPRE VISIBLE EN MÓVIL */
        box-shadow: none;
        padding: 0;
    }

    .search-input-container input {
        background-color: #f5f5f5; /* Un gris muy claro como en la imagen */
        border: none;
    }
}
/* Contenedor principal de resultados */
.search-live-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    display: none; /* Se activa con JS */
    z-index: 1200;
    border: 1px solid #eee;
}

/* Cada fila de producto encontrado */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

/* Miniatura del producto en el buscador */
.search-result-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: #fff;
    border-radius: 5px;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-info h4 {
    font-size: 0.85rem;
    margin: 0;
    color: #333;
    text-transform: uppercase;
}

.search-result-info span {
    font-size: 0.75rem;
    color: var(--primary-green);
    font-weight: 700;
}

/* Footer del buscador (Search for "...") */
.search-results-footer {
    padding: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #666;
    border-top: 1px solid #eee;
}

/* ==============================================
   FLYERS PREMIUM (ESTILO CJ TROPICAL)
   ============================================== */
.flyers-grid-premium {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 60px auto;
}

.flyer-item {
    flex: 1;
    height: 480px; /* Altura fija para que se vean como posters */
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.flyer-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Fondos específicos */
.flyer-green-solid { background-color: #9fcb4a; } /* Verde Lima */
.flyer-dark-solid { background-color: #222222; }  /* Negro/Gris oscuro */
.flyer-bg-image { 
    background-size: cover; 
    background-position: center; 
}

/* Capa de texto sobre la imagen */
.flyer-overlay {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    text-align: center;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flyer-top-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.flyer-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    max-width: 250px;
}

.flyer-sub {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* BOTÓN ESTILO "SHOP NOW" (REDONDEADO Y BLANCO) */
.btn-shop-now {
    background: white;
    color: #333;
    padding: 10px 25px;
    border-radius: 50px; /* Redondeado total */
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    margin-top: 10px;
}

.btn-shop-now i { font-size: 0.7rem; }

.btn-shop-now:hover {
    transform: scale(1.05);
    background: #f8f8f8;
}

/* Logos de socios en el tercer flyer */
.partner-logos {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.partner-logos img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Imágenes decorativas en la parte inferior */
.flyer-bottom-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    pointer-events: none; /* No interfiere con el clic */
}

/* RESPONSIVE */
@media (max-width: 950px) {
    .flyers-grid-premium {
        flex-direction: column;
        align-items: center;
    }
    .flyer-item {
        width: 100%;
        max-width: 450px;
        height: 400px;
    }
}