/* ============================================================
   style.css - Pets Yanasu
   ============================================================ */
   /* ============================================================
   LOGIN SCREEN (SIMPLE)
   ============================================================ */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A4D2E 0%, #2d6a4f 50%, #F2C94C 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.login-logo h1 {
    color: var(--verde-oscuro);
    font-size: 2rem;
    margin-bottom: 5px;
}

.login-logo p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}

.login-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.login-form input:focus {
    border-color: var(--amarillo-turqueza);
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--verde-oscuro);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover {
    background: var(--amarillo-turqueza);
    color: var(--verde-oscuro);
}

.login-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 600;
}
/* ========== ACORDEÓN DESCRIPCIÓN ========== */
.accordion-item {
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: #f9f9f9;
    border: none;
    padding: 12px 15px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--verde-oscuro);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f0f7f3;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: var(--amarillo-turqueza);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.accordion-content p {
    padding: 15px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
   /* ========== BOTONES DE PRESENTACIÓN ========== */
.btn-presentacion {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    border: 2px solid var(--verde-oscuro);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--verde-oscuro);
    transition: all 0.3s ease;
}

.btn-presentacion:hover {
    background: #f0f7f3;
}

.btn-presentacion.active {
    background: var(--verde-oscuro);
    color: white;
}

#presentacionesContainer h4 {
    margin-bottom: 10px;
    color: var(--verde-oscuro);
    font-size: 1rem;
}
   /* ========== BOTÓN COMPRAR ========== */
.btn-comprar {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: var(--verde-oscuro);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-comprar:hover {
    background: var(--amarillo-turqueza);
    color: var(--verde-oscuro);
}

/* ========== MODAL QR ========== */
.qr-container {
    text-align: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    border: 2px dashed var(--amarillo-turqueza);
    margin: 10px 0;
}

.qr-code {
    max-width: 180px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

.qr-label {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
    width: 100%;
}

.btn-whatsapp:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: white;
}
/* ---------- VARIABLES ---------- */
:root {
    --amarillo-turqueza: #F2C94C;
    --verde-oscuro: #1A4D2E;
    --blanco: #ffffff;
    --gris-fondo: #f5f5f5;
    --gris-texto: #333;
    --sombra-suave: 0 2px 8px rgba(0, 0, 0, 0.05);
    --sombra-media: 0 5px 15px rgba(0, 0, 0, 0.1);
    --sombra-fuerte: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

body {
    background-color: var(--gris-fondo);
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: var(--blanco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-text {
    color: var(--verde-oscuro);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.header-icons {
    display: flex;
    gap: 15px;
}

.icon-btn {
    color: var(--verde-oscuro);
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: var(--amarillo-turqueza);
}

.cart-icon .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--amarillo-turqueza);
    color: var(--verde-oscuro);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.badge.pulse {
    animation: pulseBadge 0.3s ease;
}

@keyframes pulseBadge {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* ---------- MEGA MENU ---------- */
.main-nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 10px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--verde-oscuro);
    cursor: pointer;
    padding: 8px;
}

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

.mega-link {
    text-decoration: none;
    color: var(--gris-texto);
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 0;
    display: block;
    transition: color 0.2s;
}

.mega-link:hover {
    color: var(--amarillo-turqueza);
}

.mega-item {
    position: relative;
}

.mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--blanco);
    width: 400px;
    box-shadow: var(--sombra-media);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    border-top: 3px solid var(--amarillo-turqueza);
    z-index: 50;
}

.mega-item:hover .mega-dropdown {
    display: block;
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mega-col h4 {
    margin-bottom: 10px;
}

.mega-col h4 a {
    color: var(--verde-oscuro);
    text-decoration: none;
}

.mega-col ul {
    list-style: none;
}

.mega-col ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.8;
    display: block;
    transition: color 0.2s;
}

.mega-col ul li a:hover {
    color: var(--amarillo-turqueza);
}

/* ---------- SEARCH ---------- */
.search-bar {
    display: flex;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    width: 300px;
    transition: box-shadow 0.2s;
}

.search-bar:focus-within {
    box-shadow: 0 0 0 2px var(--amarillo-turqueza);
}

.search-bar input {
    border: none;
    background: transparent;
    padding: 8px 15px;
    flex: 1;
    outline: none;
}

.search-bar button {
    border: none;
    background: var(--amarillo-turqueza);
    padding: 0 20px;
    color: var(--verde-oscuro);
    cursor: pointer;
    transition: background 0.2s;
}

.search-bar button:hover {
    background: #e6b83c;
}

/* ============================================================
   SLIDER
   ============================================================ */
.hero-slider {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: var(--gris-fondo);
}

.slider-track {
    display: flex;
    gap: 10px;
    animation: scroll 111s linear infinite;
    width: max-content;
}

.slider-track img {
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

/* ============================================================
   BENEFITS BAR
   ============================================================ */
.benefits-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: var(--blanco);
    padding: 15px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--amarillo-turqueza);
}

.benefit-item div {
    display: flex;
    flex-direction: column;
}

.benefit-item strong {
    color: var(--verde-oscuro);
    font-size: 0.9rem;
}

.benefit-item small {
    font-size: 0.75rem;
    color: #777;
}

/* ============================================================
   FILTROS
   ============================================================ */
.category-filters {
    max-width: 1400px;
    margin: 20px auto 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.filter-btn {
    padding: 8px 25px;
    border: 2px solid #ddd;
    background: var(--blanco);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--verde-oscuro);
    color: var(--blanco);
    border-color: var(--verde-oscuro);
}

/* ---------- SUB-FILTROS ---------- */
.sub-filters {
    max-width: 1400px;
    margin: 5px auto 20px;
    display: none;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.sub-filters.show {
    display: flex;
}

.subfilter-btn {
    padding: 5px 18px;
    border: 2px solid var(--amarillo-turqueza);
    background: var(--blanco);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--verde-oscuro);
    transition: all 0.3s ease;
}

.subfilter-btn:hover,
.subfilter-btn.active {
    background: var(--amarillo-turqueza);
    color: var(--verde-oscuro);
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.catalog-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
}

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

.product-card {
    background: var(--blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-media);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background-color: #ffffff;
    padding: 10px;
    border-bottom: 4px solid var(--amarillo-turqueza);
}

.product-info {
    padding: 15px;
}

.product-cat {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gris-texto);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--verde-oscuro);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--verde-oscuro);
    color: var(--blanco);
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--amarillo-turqueza);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--blanco);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    color: #999;
}

/* ============================================================
   POPUP ANUNCIO
   ============================================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.popup-overlay.active .popup-container {
    animation: latido 2s ease-in-out infinite;
}

@keyframes latido {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.popup-container {
    position: relative;
}

.popup-container a {
    display: block;
}

.popup-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    display: block;
    object-fit: contain;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--verde-oscuro);
    color: var(--blanco);
    border: 2px solid var(--blanco);
    font-size: 1.8rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: transform 0.2s;
}

.popup-close:hover {
    background-color: var(--amarillo-turqueza);
    color: var(--verde-oscuro);
    transform: scale(1.1);
}

/* ============================================================
   MODAL PRODUCTO CON QR
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

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

.modal-container {
    background: var(--blanco);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    overflow-y: auto;
    box-shadow: var(--sombra-fuerte);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: sticky;
    top: 10px;
    right: 10px;
    float: right;
    background: var(--verde-oscuro);
    color: var(--blanco);
    border: 2px solid var(--blanco);
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    transition: transform 0.2s;
    margin: 10px;
}

.modal-close:hover {
    background: var(--amarillo-turqueza);
    color: var(--verde-oscuro);
    transform: scale(1.1);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px 30px 40px;
}

.modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
}

.modal-product-img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-category {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.modal-info h2 {
    font-size: 1.8rem;
    color: var(--verde-oscuro);
    margin: 0;
    line-height: 1.2;
}

.modal-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--amarillo-turqueza);
    background: var(--verde-oscuro);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 8px;
    align-self: flex-start;
}

.modal-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--amarillo-turqueza), transparent);
    margin: 10px 0;
}

.modal-payment h3 {
    color: var(--verde-oscuro);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.modal-instructions {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

.modal-phone {
    font-size: 1.2rem;
    color: var(--verde-oscuro);
    background: #f0f7f3;
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    margin: 5px 0 15px;
}

.qr-container {
    text-align: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    border: 2px dashed var(--amarillo-turqueza);
    margin: 10px 0;
}

.qr-code {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

.qr-label {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #444;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--amarillo-turqueza);
    color: var(--verde-oscuro);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    width: 100%;
}

.btn-whatsapp:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-whatsapp i {
    font-size: 1.4rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---------- Tablet ---------- */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-toggle {
        display: block;
        align-self: flex-start;
    }

    .megamenu {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: var(--blanco);
        padding: 10px;
        border-radius: 10px;
        box-shadow: var(--sombra-media);
    }

    .megamenu.open {
        display: flex;
    }

    .mega-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 10px 20px;
        display: block;
        border-top: none;
    }

    .mega-item:hover .mega-dropdown {
        display: block;
    }

    .search-bar {
        width: 100%;
    }

    .benefits-bar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    /* Modal */
    .modal-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .modal-image {
        min-height: 250px;
        padding: 10px;
    }

    .modal-product-img {
        max-height: 300px;
    }

    .modal-info h2 {
        font-size: 1.4rem;
    }

    .modal-price {
        font-size: 1.6rem;
    }

    .modal-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .qr-code {
        max-width: 150px;
    }
}

/* ---------- Móvil ---------- */
@media (max-width: 480px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-title {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-image {
        min-height: 180px;
    }

    .modal-product-img {
        max-height: 200px;
    }

    .modal-info h2 {
        font-size: 1.2rem;
    }

    .modal-price {
        font-size: 1.4rem;
        padding: 4px 15px;
    }

    .btn-whatsapp {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
}