/* --- Admin Panel: Cards de productos agrupados por categoría --- */
.admin-category-section {
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}
.admin-product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.admin-product-card {
    background: #232323;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 18px 12px 14px 12px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.admin-product-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transform: translateY(-4px) scale(1.02);
}
.admin-product-card img {
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #eee;
}
.admin-product-card button {
    margin: 0 4px;
    font-size: 0.95em;
    padding: 5px 10px;
}
/* --- Variables de Color --- */
    :root {
        --color-rosa: #d35d6e;
        --color-dorado: #c4a265;
        --color-fondo-oscuro: #1a1a1a;
        --color-blanco: #ffffffe5;
        --color-texto: #333;
    }

    html { scroll-behavior: smooth; }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: 'Roboto', sans-serif; color: var(--color-texto); line-height: 1.6; }
    h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--color-dorado); margin-bottom: 20px; }

    /* --- Header y Banner --- */
    .main-header {
        background: linear-gradient(rgba(45, 45, 45, 0.56), rgba(45, 45, 45, 0.6)), url('img/card-black.png') no-repeat center center/cover;
        height: 100vh;
        color: var(--color-blanco);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 20px;
        background-attachment: fixed;
        padding-top: 150px;
    }
    .main-nav { position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background-color: rgba(34, 32, 32, 0.629); }
    .logo img { height: 90px; }
    .main-nav ul { list-style: none; display: flex; }
    .main-nav ul li { margin-left: 30px; }
    .main-nav ul li a { color: var(--color-blanco); text-decoration: none; font-weight: bold; font-size: 1rem; transition: color 0.3s; }
    .main-nav ul li a:hover { color: var(--color-dorado); }
    .banner-text-box { position: relative; padding: 3rem 4rem; background-color: rgba(50, 48, 48, 0.104); border-radius: 15px; max-width: 850px; width: 90%; z-index: 1; overflow: hidden; backdrop-filter: blur(2px); border: 1px solid rgba(255, 255, 255, 0.1); }
    .banner-content h1 { font-size: 3.5rem; color: var(--color-blanco); text-shadow: 2px 2px 8px rgba(0,0,0,0.7); margin-bottom: 15px; }
    .banner-content p { font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
    .btn { background-color: var(--color-rosa); color: var(--color-blanco); padding: 15px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; transition: background-color 0.3s, transform 0.3s; border: none; cursor: pointer; }
    .btn:hover { background-color: #b94d5d; transform: translateY(-2px); }

    /* --- Secciones --- */
    section { padding: 80px 50px; text-align: center; }
    .product-section { background-color: #fffbfb; }
    .product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 40px; max-width: 1200px; margin-left: auto; margin-right: auto; }
    .category-card { background: var(--color-blanco); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
    .category-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
    .category-card img { width: 100%; height: 150px; object-fit: contain; padding: 5px; }
    .card-details { padding: 15px; }
    .card-details h3 { margin-bottom: 0; font-size: 1.1rem; }
    
    /* --- Ventanas Modales --- */
    .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 1000; }
    .modal-content { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgb(255, 252, 252); padding: 30px; border-radius: 10px; width: 90%; max-width: 900px; max-height: 80vh; overflow-y: auto; z-index: 1001; }
    .modal-overlay.active, .modal-content.active { display: block; }
    .modal-close-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2.5rem; color: #888; cursor: pointer; }
    .modal-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
    .modal-product-card { text-align: center; }
    .modal-product-card img { width: 100%; height: 180px; object-fit: contain; border-radius: 5px; margin-bottom: 10px; padding: 5px; border: 1px solid #eee; cursor: pointer; transition: opacity 0.3s; }
    .modal-product-card img:hover { opacity: 0.8; }
    .modal-product-card h4 { font-size: 1.1rem; margin-bottom: 5px; }
    .modal-product-card .price { font-size: 1.1rem; font-weight: bold; color: var(--color-rosa); }

    /* --- Estilos para el Visor de Imagen (Lightbox) --- */
    .image-viewer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; cursor: pointer; }
    .image-viewer-overlay.active { opacity: 1; visibility: visible; }
    .image-viewer-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 5px; }
    .image-viewer-close-btn { position: absolute; top: 20px; right: 30px; color: rgb(255, 251, 251); font-size: 3rem; font-weight: bold; cursor: pointer; }

    /* --- Secciones Sobre Nosotros y Contacto --- */
    .about-section { background-color: var(--color-rosa); color: var(--color-blanco); }
    .about-content h2 { color: var(--color-blanco); }
    .about-content { max-width: 800px; margin: 0 auto; }
    .contact-section { background-color: var(--color-fondo-oscuro); }
    .contact-section h2 { font-size: 2.5rem; }
    .contact-details-wrapper { max-width: 800px; margin: 20px auto 0 auto; color: var(--color-blanco); }
    .contact-details-wrapper h3 { font-size: 2.5rem; margin-bottom: 5px; }
    .contact-subtitle { font-size: 1.2rem; color: #ccc; margin-bottom: 50px; }
    .contact-links { display: flex; flex-direction: column; align-items: center; gap: 25px; }
    .contact-links a { color: var(--color-blanco); text-decoration: none; font-size: 1.2rem; display: inline-flex; align-items: center; transition: color 0.3s, transform 0.3s; }
    .contact-links a:hover { color: var(--color-rosa); transform: scale(1.05); }
    .contact-links a i { font-size: 1.8rem; margin-right: 15px; width: 30px; text-align: center; }

    /* ========================================================== */
    /*      ESTILOS RESTAURADOS PARA MÉTODOS DE PAGO             */
    /* ========================================================== */
    .payment-info { margin-top: 80px; padding-top: 40px; border-top: 1px solid #444; width: 100%; }
    .payment-title { color: var(--color-dorado); font-size: 2rem; }
    .payment-instruction { color: #ccc; max-width: 600px; margin: 0 auto 40px auto; }
    .payment-methods-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 900px; margin: 0 auto; }
    .method-card { background-color: #2a2a2a48; padding: 30px; border-radius: 10px; text-align: left; color: #eee; border: 1px solid var(--color-rosa); }
    .method-header { display: flex; align-items: center; margin-bottom: 20px; }
    .method-header i { font-size: 2.5rem; color: var(--color-rosa); margin-right: 15px; }
    .method-header h4 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--color-blanco); margin: 0; }
    .method-card p { font-family: 'Roboto', sans-serif; color: #ccc; line-height: 1.8; }
    .account-details p { margin-bottom: 10px; }
    .account-details strong { color: #fff; }

    /* --- Estilos del Footer --- */
    .main-footer { background-color: var(--color-fondo-oscuro); color: #aaa; padding: 40px 20px; border-top: 1px solid #333; }
    .footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
    .logo-azalia img { height: 90px; opacity: 0.8; }
    .footer-payment img { max-height: 180px; border-radius: 8px; }
    .copyright { width: 100%; text-align: center; margin-top: 20px; font-size: 0.9rem; }

    /* ========================================================== */
    /*      ESTILOS RESTAURADOS PARA CRÉDITO DEL DESARROLLADOR     */
    /* ========================================================== */
    .developer-credit { width: 100%; text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #444; font-size: 0.9rem; color: #888; }
    .developer-credit a { color: var(--color-dorado); text-decoration: none; font-weight: bold; transition: color 0.3s; }
    .developer-credit a:hover { color: #ffffff; text-decoration: underline; }

    /* --- Estilos del Carrito --- */
    .cart-icon { position: relative; font-size: 1.5rem; }
    .cart-count { position: absolute; top: -8px; right: -12px; background-color: var(--color-rosa); color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.7rem; font-weight: bold; border: 1px solid white; }
    #cart-items-container { margin: 20px 0 30px 0; max-height: 300px; overflow-y: auto; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 10px 0; }
    .cart-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 5px; font-size: 1rem; border-bottom: 1px solid #f0f0f0; }
    .cart-item-actions { display: flex; align-items: center; gap: 15px; }
    .cart-item-price { font-weight: bold; }
    .cart-item-remove { background-color: #e74c3c; color: white; border: none; border-radius: 50%; width: 24px; height: 24px; font-size: 1rem; font-weight: bold; line-height: 24px; text-align: center; cursor: pointer; transition: background-color 0.3s; }
    .cart-item-remove:hover { background-color: #c0392b; }
    .cart-summary { text-align: right; margin-bottom: 30px; font-size: 1.5rem; font-weight: bold; }
    .cart-summary span { color: var(--color-rosa); }
    .btn-whatsapp-cart { display: block; width: 100%; background-color: #25D366; color: white; padding: 15px; border-radius: 5px; text-decoration: none; font-weight: bold; text-align: center; font-size: 1.1rem; transition: background-color 0.3s; }
    .btn-whatsapp-cart:hover { background-color: #1DAE56; }
    .add-to-cart-btn { background-color: var(--color-dorado); width: 100%; margin-top: 10px; }
    .add-to-cart-btn:hover { background-color: #a88a53; }
    .add-to-cart-btn i { margin-right: 8px; }
    
    /* --- Media Queries para Responsividad --- */
    @media (max-width: 992px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 768px) {
        section { padding: 60px 20px; }
        .main-nav { flex-direction: column; padding: 15px; background-color: rgba(20, 20, 20, 0.85); }
        .logo img { height: 60px; margin-bottom: 10px; }
        .main-nav ul { padding: 0; margin-top: 10px; }
        .main-nav ul li { margin: 0 15px; }
        .main-header { min-height: 80vh; height: auto; }
        .banner-text-box { padding: 2rem 1.5rem; width: 100%; }
        .banner-content h1 { font-size: 2.5rem; }
        .banner-content p { font-size: 1rem; }
        .product-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
        .footer-content { flex-direction: column; gap: 30px; }
    }