/* =============================================
   YUMBOX - Estilos Globales
   ============================================= */
:root {
    --pink-bg: #fce4ec;
    --green-bg: #c8e6c9;
    --orange: #f57c00;
    --orange-dark: #e65100;
    --yellow-bg: #fff9c4;
    --teal-bg: #b2dfdb;
    --text-dark: #333;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --radius: 20px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    color: var(--text-dark);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* =============================================
   NAVBAR
   ============================================= */
header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 20px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 60px;
    margin: 0;
    padding: 0;
}

nav ul a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul a:hover,
nav ul a.active {
    color: var(--orange);
}

.btn-order {
    background-color: var(--orange);
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.btn-order:hover { background-color: var(--orange-dark); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-menu {
    display: none;
    background: white;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.mobile-menu.open {
    display: block;
    max-height: 300px;
}
.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.mobile-menu a {
    color: var(--text-dark);
    font-weight: 500;
}

/* =============================================
   HERO - INICIO
   ============================================= */
.hero {
    background-color: var(--pink-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 50px 10%;
    gap: 50px;
}

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

.hero h1 {
    font-size: 3rem;
    color: #d84315;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.hero-image img {
    max-width: 500px;
    width: 100%;
}

.btn-primary {
    background-color: var(--orange);
    color: white;
    border: none;
    padding: 15px 60px;
    border-radius: 25px;
    font-weight: bold;
    width: fit-content;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s, transform 0.2s;
    font-size: 1rem;
}
.btn-primary:hover { background-color: var(--orange-dark); transform: translateY(-2px); }

/* =============================================
   STATS
   ============================================= */
.stats {
    background-color: var(--teal-bg);
    display: flex;
    justify-content: space-around;
    padding: 40px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: #00695c;
}

.stat-item p { margin: 5px 0 0; }

/* =============================================
   ABOUT SECTION - INICIO
   ============================================= */
.about-section {
    padding: 60px 10%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.about-card {
    background-color: #f1f1f1;
    padding: 40px;
    border-radius: 80px;
    max-width: 900px;
    text-align: left;
    box-shadow: var(--shadow);
}

.about-card h2 {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 2rem;
    margin-bottom: 25px;
    font-style: italic;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
    color: #333;
}

/* =============================================
   TEAM
   ============================================= */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.team-preview { padding: 20px 10% 50px; }

.team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 10% 50px;
    text-align: center;
}

.member {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.member:hover { transform: translateY(-5px); }

.member img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    height: 300px;
    object-position: center top;
}

.member h3 { margin: 15px 0 5px; }
.member p { color: #666; margin: 5px 0; }

.member-bio {
    font-size: 0.9rem !important;
    color: #888 !important;
    margin-top: 10px !important;
}

.member-social {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.member-social a {
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: color 0.3s;
}
.member-social a:hover { color: var(--orange); }

/* =============================================
   SOCIOS
   ============================================= */
.socios-section {
    background-color: var(--yellow-bg);
    padding: 60px 10%;
    text-align: center;
}

.socios-section h2 { margin-bottom: 40px; font-size: 2rem; }

.socios-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.socios-container img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.socios-container img:hover { transform: scale(1.1); }

/* =============================================
   FOOTER
   ============================================= */
footer {
    background-color: white;
    padding: 40px 10%;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-links a {
    display: block;
    text-decoration: none;
    color: #333;
    margin-bottom: 20px;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--orange); }

.footer-info p {
    margin: 5px 0 20px;
    font-size: 0.9rem;
}

.footer-social .social-icons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.footer-social .social-icons a {
    color: #000 !important;
    text-decoration: none;
    font-size: 1.5rem;
}
.footer-social .social-icons a:hover { color: var(--orange) !important; }

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.85rem;
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37,211,102,0.5);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.7);
}

/* =============================================
   PAGE HERO (PAGES INTERNAS)
   ============================================= */
.page-hero {
    padding: 70px 10%;
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    letter-spacing: 3px;
}

.page-hero p { font-size: 1.1rem; color: #666; }

.about-hero { background-color: var(--pink-bg); }
.productos-hero { background-color: var(--yellow-bg); color: #c85000; }
.contacto-hero { background-color: #ffd6b0; }

/* =============================================
   SOBRE NOSOTROS - PÁGINA COMPLETA
   ============================================= */
.about-full {
    padding: 60px 10%;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    color: #d84315;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-badge {
    background: var(--orange);
    color: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.badge-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
}

.badge-text { font-size: 1rem; opacity: 0.9; }

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.value-item {
    background: #f9f9f9;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.value-item:hover { transform: translateY(-3px); }

.value-item i {
    font-size: 1.8rem;
    color: var(--orange);
    margin-bottom: 10px;
    display: block;
}

.value-item h4 { margin: 0 0 5px; font-size: 1rem; }
.value-item p { margin: 0; font-size: 0.85rem; color: #777; }

/* Misión / Visión */
.mission-vision {
    padding: 60px 10%;
    background: var(--teal-bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.mv-icon {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 15px;
}

.mv-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.mv-card p { line-height: 1.8; color: #555; }

.team-full { padding: 60px 10% 20px; background: #fafafa; }

/* =============================================
   PRODUCTOS - PÁGINA
   ============================================= */
.productos-section {
    padding: 40px 10% 60px;
    background: white;
}

.productos-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f0f0f0;
    border: 2px solid transparent;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

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

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

.producto-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.producto-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

.producto-etiqueta {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--orange);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.producto-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--pink-bg);
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.producto-card:hover .producto-img img { transform: scale(1.05); }

.producto-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.producto-info h3 { margin: 0 0 10px; font-size: 1.2rem; }
.producto-info > p { color: #666; font-size: 0.9rem; line-height: 1.5; flex: 1; }

.producto-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.precio {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--orange);
}

.producto-actions { display: flex; gap: 10px; align-items: center; }

.btn-ver-detalle {
    background: var(--orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.btn-ver-detalle:hover { background: var(--orange-dark); }

.btn-carrito {
    background: var(--teal-bg);
    color: #00695c;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
}
.btn-carrito:hover { background: #80cbc4; }

/* =============================================
   MODAL DE PRODUCTO
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-producto {
    background: white;
    border-radius: 30px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}
.modal-close:hover { background: #ddd; }

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-img {
    background: var(--pink-bg);
    border-radius: 30px 0 0 30px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.modal-img img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.modal-thumbs {
    display: flex;
    gap: 10px;
}

.thumb {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 10px;
    cursor: pointer;
}
.thumb.active { border: 2px solid var(--orange); }

.modal-info {
    padding: 30px 25px 30px;
    overflow-y: auto;
}

.modal-info h2 { font-size: 1.5rem; margin-bottom: 10px; }
.modal-info > p { color: #666; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }

.modal-cantidad {
    margin-bottom: 15px;
}
.modal-cantidad label { font-size: 0.9rem; color: #666; display: block; margin-bottom: 8px; }

.cantidad-control {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: fit-content;
    overflow: hidden;
}

.cantidad-control button {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.cantidad-control button:hover { background: #f0f0f0; }

.cantidad-control span {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.modal-precio-total {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-precio-total span { font-size: 0.85rem; color: #666; }
.modal-precio-total strong { font-size: 1.2rem; color: var(--orange); }

.btn-agregar-carrito {
    display: block;
    background: var(--orange);
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
    margin-bottom: 20px;
}
.btn-agregar-carrito:hover { background: var(--orange-dark); }

.modal-reviews {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.review-count { color: #666; font-size: 0.85rem; }

.stars { color: #f9a825; font-size: 0.9rem; }

.btn-ver-resenas {
    background: var(--pink-bg);
    color: #d84315;
    border: none;
    padding: 6px 14px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    max-height: 160px;
    overflow-y: auto;
}

.review-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-text strong { font-size: 0.9rem; }
.review-text p { margin: 5px 0 0; font-size: 0.82rem; color: #666; }
.stars-small { color: #f9a825; font-size: 0.8rem; }

.productos-relacionados-mini h4 { margin-bottom: 10px; font-size: 0.95rem; }

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.related-card {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}
.related-card:hover { transform: scale(1.02); }

.related-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    background: var(--pink-bg);
}

.related-card h5 { margin: 8px 8px 2px; font-size: 0.8rem; }
.related-card span { display: block; margin: 0 8px 8px; font-size: 0.8rem; color: var(--orange); font-weight: bold; }

/* Barra de última selección */
.ultima-seleccion {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    padding: 12px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 500;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.ultima-precio { color: #666; font-size: 0.9rem; }

.btn-ultima {
    background: var(--orange);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* =============================================
   CONTACTO
   ============================================= */
.contacto-section {
    padding: 60px 10%;
    background: white;
}

.contacto-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacto-form-wrap {
    background: #f9f9f9;
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.required { color: var(--orange); }

.form-group input,
.form-group textarea {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.btn-submit {
    background: var(--orange);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-submit:hover { background: var(--orange-dark); transform: translateY(-2px); }

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success i {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 20px;
    display: block;
}

.form-success h3 { font-size: 1.8rem; margin-bottom: 10px; }
.form-success p { color: #666; margin-bottom: 25px; }

.form-error {
    background: #ffebee;
    color: #c62828;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.contacto-info h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--orange);
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    background: var(--pink-bg);
    color: var(--orange);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-item strong { display: block; font-size: 0.9rem; margin-bottom: 3px; }
.info-item p { margin: 0; color: #666; font-size: 0.95rem; }
.info-item a { color: var(--orange); }

.contacto-social { margin-top: 30px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    nav ul, nav .btn-order { display: none; }
    .menu-toggle { display: block; }

    .hero {
        flex-direction: column;
        padding: 40px 5%;
        text-align: center;
    }
    .hero-content { align-items: center; }
    .hero h1 { font-size: 2rem; }

    .stats { flex-direction: column; gap: 20px; }

    .team, .team-full .team {
        grid-template-columns: 1fr;
        padding: 20px 5% 40px;
    }

    .about-grid,
    .mission-vision,
    .contacto-container,
    .modal-content {
        grid-template-columns: 1fr;
    }

    .modal-img { border-radius: 30px 30px 0 0; }

    .productos-grid { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .about-values { grid-template-columns: 1fr 1fr; }

    .footer-content { flex-direction: column; }

    .page-hero h1 { font-size: 2rem; }

    .ultima-seleccion { padding: 12px 5%; }
}
