/* =====================================================
   MILK FOOD GROUP
   ESTILOS GENERALES + CARRITO (IPAD FIX) + CHECKOUT
===================================================== */

/* =====================================================
   1. RESET Y CONFIGURACIÓN BASE
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #24354a;
    overflow-x: hidden;
}

/* =====================================================
   2. VARIABLES DE COLOR Y DISEÑO
===================================================== */
:root {
    --azul: #063b87;
    --azulClaro: #0A74DA;
    --celeste: #0ea5ff;
    --dorado: #f7b500;
    --verde: #25D366;
    --gris: #f5f7fb;
    --texto: #4c617a;
    --blanco: #ffffff;
}

/* =====================================================
   3. ESTILOS GENERALES Y CONTENEDORES
===================================================== */
.container {
    width: min(1200px, 92%);
    margin: auto;
}

section {
    padding: 100px 0;
}

img {
    max-width: 100%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

a {
    text-decoration: none;
    transition: .35s ease;
}

button {
    transition: .35s ease;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title span {
    display: inline-block;
    color: var(--azulClaro);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 48px;
    color: var(--azul);
    margin-bottom: 20px;
}

.section-title p {
    color: var(--texto);
    line-height: 1.8;
    max-width: 750px;
    margin: auto;
}

/* =====================================================
   4. HEADER Y NAVEGACIÓN
===================================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(4, 48, 111, .88);
    backdrop-filter: blur(15px);
    transition: .35s;
}

.nav {
    height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 65px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

nav ul li a {
    color: white;
    font-weight: 600;
    transition: .3s;
}

nav ul li a:hover {
    color: var(--dorado);
}

.btn-menu {
    background: var(--dorado);
    color: #063b87 !important;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
}

.btn-menu:hover {
    transform: translateY(-3px);
}

.menu-mobile {
    display: none;
    color: white;
    font-size: 34px;
    cursor: pointer;
}

/* =====================================================
   5. SECCIÓN HERO (TÍTULO REDUCIDO UN 30%)
===================================================== */
.hero {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #10a7ff55, transparent 30%), linear-gradient(135deg, #042b68, #0863bf, #0da0ff);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
}

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

.badge {
    display: inline-block;
    background: #ffffff20;
    color: white;
    padding: 10px 22px;
    border-radius: 40px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    color: white;
    font-size: 48px; /* Reducido un 30% para mejor proporción */
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--dorado);
}

.hero p {
    color: #eef7ff;
    line-height: 1.9;
    font-size: 19px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--dorado);
    color: #063b87;
    padding: 18px 36px;
    border-radius: 40px;
    font-weight: 700;
    transition: .35s;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 18px 36px;
    border-radius: 40px;
    font-weight: 700;
    transition: .35s;
}

.btn-secondary:hover {
    background: white;
    color: #063b87;
}

.hero-datos {
    display: flex;
    gap: 40px;
    margin-top: 45px;
}

.hero-datos h3 {
    color: white;
    font-size: 32px;
}

.hero-datos p {
    margin-top: 8px;
    color: #d9efff;
    font-size: 15px;
}

.hero-imagen {
    display: flex;
    justify-content: center;
}

.logo-principal {
    width: 100%;
    max-width: 520px;
    animation: flotar 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, .35));
}

@keyframes flotar {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.scroll {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll a {
    color: white;
    font-size: 38px;
    animation: subir 2s infinite;
}

@keyframes subir {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

/* BURBUJAS DE FONDO HERO */
.burbujas {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.burbujas span {
    position: absolute;
    bottom: -150px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    animation: burbujas 20s linear infinite;
}

.burbujas span:nth-child(1) { left: 8%; width: 35px; height: 35px; }
.burbujas span:nth-child(2) { left: 25%; animation-duration: 18s; }
.burbujas span:nth-child(3) { left: 45%; width: 55px; height: 55px; }
.burbujas span:nth-child(4) { left: 65%; animation-duration: 23s; }
.burbujas span:nth-child(5) { left: 82%; }
.burbujas span:nth-child(6) { left: 94%; width: 60px; height: 60px; }

@keyframes burbujas {
    from { transform: translateY(0) scale(.3); opacity: 0; }
    20% { opacity: 1; }
    to { transform: translateY(-120vh) scale(1.2); opacity: 0; }
}

/* =====================================================
   6. QUIÉNES SOMOS
===================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .15);
    transition: .4s;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-info h3 {
    color: var(--azul);
    font-size: 42px;
    margin-bottom: 25px;
}

.about-info p {
    color: var(--texto);
    line-height: 2;
    margin-bottom: 35px;
    font-size: 17px;
}

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

.valor {
    background: white;
    padding: 30px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .35s;
}

.valor:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);
}

.valor .icono {
    width: 75px;
    height: 75px;
    margin: auto auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul), var(--celeste));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
}

.valor h4 {
    color: var(--azul);
    margin-bottom: 10px;
}

.valor p {
    margin: 0;
    font-size: 15px;
}

/* =====================================================
   7. PRODUCTOS Y TARJETAS
===================================================== */
.productos {
    background: var(--gris);
}

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

.producto-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
    transition: .35s;
}

.producto-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .15);
}

.producto-img {
    position: relative;
    overflow: hidden;
    height: 360px;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .45s;
}

.producto-card:hover .producto-img img {
    transform: scale(1.08);
}

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

.producto-badge {
    display: inline-block;
    background: #f7b500;
    color: #063b87;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.producto-badge.nuevo {
    background: #27c96b;
    color: white;
}

.producto-info h3 {
    color: var(--azul);
    font-size: 31px;
    margin-bottom: 18px;
}

.producto-info p {
    color: var(--texto);
    line-height: 1.8;
    margin-bottom: 25px;
}

.precio {
    font-size: 48px;
    color: var(--azul);
    font-weight: 800;
    margin-bottom: 5px;
}

.precio span {
    display: block;
    font-size: 17px;
    color: #888;
    font-weight: 500;
}

.producto-lista {
    list-style: none;
    margin-bottom: 35px;
}

.producto-lista li {
    margin-bottom: 12px;
    color: #516377;
}

.variantes-producto {
    display: flex;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.variante-btn {
    flex: 1;
    min-width: 150px;
    border: 2px solid var(--azul);
    background: #fff;
    color: var(--azul);
    border-radius: 14px;
    padding: 15px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-family: 'Poppins', sans-serif;
    transition: .25s ease;
}

.variante-btn:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

.variante-btn.active {
    background: var(--azul);
    color: #ffffff;
    border-color: var(--azul);
    box-shadow: 0 4px 14px rgba(6, 59, 135, 0.3);
}

.variante-btn.active span,
.variante-btn.active strong {
    color: #ffffff;
}

.variante-btn span {
    font-size: 14px;
    font-weight: 600;
}

.variante-btn strong {
    font-size: 15px;
}

.btn-producto {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, #25D366, #1da851);
    color: #fff;
    padding: 16px 20px;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
    margin-top: auto;
}

.btn-producto:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 215, 96, .25);
}

/* =====================================================
   8. INFORMACIÓN NUTRICIONAL
===================================================== */
#nutricional {
    background: #ffffff;
}

.nutricional-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.nutricional-card {
    background: #fff;
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .08);
    transition: .35s;
}

.nutricional-card:hover {
    transform: translateY(-8px);
}

.nutricional-card h3 {
    color: var(--azul);
    margin-bottom: 25px;
    font-size: 28px;
}

.nutri-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #ececec;
}

.nutri-item:last-child {
    border: none;
}

.tabla-nutricional {
    width: 100%;
    border-collapse: collapse;
}

.tabla-nutricional th {
    background: linear-gradient(135deg, var(--azul), var(--celeste));
    color: white;
    padding: 15px;
}

.tabla-nutricional td {
    padding: 14px;
    border-bottom: 1px solid #ececec;
}

.tabla-nutricional tr:hover {
    background: #f7fbff;
}

/* =====================================================
   9. GALERÍA, CTA Y CONTACTO
===================================================== */
.galeria {
    background: var(--gris);
}

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

.galeria-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 25px;
    transition: .4s;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
}

.galeria-grid img:hover {
    transform: scale(1.05);
}

.cta {
    background: linear-gradient(135deg, #04326e, #0a74da);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 54px;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: auto auto 40px;
    line-height: 1.8;
}

.btn-pedido {
    display: inline-block;
    padding: 20px 42px;
    border-radius: 50px;
    background: #25D366;
    color: white;
    font-size: 20px;
    font-weight: 700;
    transition: .35s;
}

.btn-pedido:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(37, 211, 102, .35);
}

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

.contacto-grid div {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
}

.contacto-grid h3 {
    color: var(--azul);
    font-size: 32px;
    margin-bottom: 20px;
}

.contacto-grid p {
    margin-bottom: 15px;
    color: var(--texto);
}

.contacto iframe {
    width: 100%;
    height: 360px;
    border: none;
    border-radius: 20px;
}

/* =====================================================
   10. FOOTER
===================================================== */
footer {
    background: #02285d;
    color: white;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-logo {
    width: 220px;
    margin-bottom: 20px;
}

footer h4 {
    margin-bottom: 20px;
}

footer a {
    display: block;
    color: #dbe7ff;
    margin-bottom: 12px;
    transition: .3s;
}

footer a:hover {
    color: #f7b500;
}

footer p {
    color: #dbe7ff;
    line-height: 1.8;
}

.copyright {
    margin-top: 70px;
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: #b8cff5;
}

/* =====================================================
   11. BOTONES FLOTANTES (CARRITO Y WHATSAPP)
===================================================== */
.cart-floating {
    position: fixed !important;
    right: 25px !important;
    bottom: 105px !important;
    width: 64px !important;
    height: 64px !important;
    border: none !important;
    border-radius: 50% !important;
    background: var(--dorado) !important;
    color: var(--azul) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 27px !important;
    cursor: pointer;
    z-index: 9998 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .20);
    transition: transform .2s ease;
}

.cart-floating:hover {
    transform: scale(1.08);
}

.cart-floating .cart-count {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    min-width: 24px !important;
    height: 24px !important;
    padding: 0 6px !important;
    border-radius: 50% !important;
    background: #e53935 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.whatsapp {
    position: fixed !important;
    right: 25px !important;
    bottom: 25px !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 34px !important;
    text-decoration: none !important;
    z-index: 9999 !important;
    box-shadow: 0 15px 40px rgba(37, 211, 102, .45);
    animation: pulse 2s infinite;
}

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

/* =====================================================
   12. PANEL LATERAL DEL CARRITO (CORREGIDO IPAD / IOS)
===================================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 9997;
}

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

.cart-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 430px;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    background: #fff;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform .35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .18);
}

.cart-panel.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 25px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cart-header h2 {
    color: var(--azul);
    font-size: 22px;
}

.cart-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f2f4f7;
    color: #333;
    font-size: 24px;
    cursor: pointer;
}

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

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    color: var(--azul);
    font-size: 15px;
    margin-bottom: 4px;
}

.cart-item-info span {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 7px;
}

.cart-item-info strong {
    display: block;
    color: var(--azulClaro);
    font-size: 15px;
}

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

.quantity button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--azul);
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.quantity span {
    font-weight: 700;
    color: #333;
}

.remove-item {
    position: absolute;
    top: 12px;
    right: 0;
    border: none;
    background: transparent;
    color: #999;
    font-size: 22px;
    cursor: pointer;
}

.remove-item:hover { color: #e53935; }

.cart-empty {
    text-align: center;
    padding: 70px 25px;
    color: #666;
}

.cart-empty-icon { font-size: 55px; margin-bottom: 15px; }

.cart-footer {
    padding: 20px 25px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--azul);
    font-size: 18px;
    font-weight: 700;
}

.cart-total strong { color: var(--azulClaro); font-size: 22px; }

.btn-checkout {
    width: 100%;
    border: none;
    background: var(--dorado);
    color: var(--azul);
    padding: 16px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-checkout:disabled { opacity: .5; cursor: not-allowed; }

/* =====================================================
   13. CHECKOUT MODAL Y MÉTODOS DE PAGO
===================================================== */
.checkout-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

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

.checkout-box {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.checkout-box .cart-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

.checkout-step { display: none; }
.checkout-step.active { display: block; }

.checkout-step h3 {
    color: var(--azul);
    font-size: 22px;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: var(--texto);
    line-height: 1.5;
    margin-bottom: 18px;
}

.checkout-step input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.checkout-step input:focus {
    border-color: var(--azulClaro);
    outline: none;
}

#deliveryMap {
    height: 200px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.cart-summary {
    background: var(--gris);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.summary-product {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.summary-product img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
}

.summary-product div { flex: 1; }
.summary-product strong { display: block; font-size: 14px; color: var(--azul); }
.summary-product span { font-size: 12px; color: #666; }

/* SELECTOR DE MÉTODOS DE PAGO */
.payment-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.payment-option:hover {
    border-color: var(--azulClaro);
    background: #f0f7ff;
}

.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--azul);
}

.payment-option .option-content {
    display: flex;
    flex-direction: column;
}

.payment-option .option-content strong {
    font-size: 14px;
    color: var(--azul);
}

.payment-option .option-content span {
    font-size: 12px;
    color: #666;
}

.payment-instructions {
    margin: 15px 0;
}

.payment-instructions h4 {
    font-size: 14px;
    color: var(--azul);
    margin-bottom: 10px;
}

.payment-method-card {
    background: #f7fbff;
    border: 1px solid #d0e4ff;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 8px;
}

.payment-method-card .method-header {
    font-size: 13px;
    color: var(--azul);
}

.payment-method-card .account-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--azulClaro);
    margin: 2px 0;
}

.payment-method-card .account-owner {
    font-size: 12px;
    color: #666;
}

.payment-note {
    font-size: 12px;
    color: #d97706;
    background: #fffbe3;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.hidden {
    display: none !important;
}

/* =====================================================
   14. PANTALLA DE CARGA (LOADER)
===================================================== */
.loader {
    position: fixed;
    inset: 0;
    background: #063b87;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: .6s;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader img {
    width: 180px;
    animation: loaderLogo 2s infinite ease-in-out;
}

@keyframes loaderLogo {
    0%, 100% { transform: scale(.9); }
    50% { transform: scale(1); }
}

/* =====================================================
   15. ADAPTATIVO (MEDIA QUERIES IPAD Y MÓVILES)
===================================================== */
@media (max-width: 768px) {
    .hero {
        padding-top: 110px;
    }

    .hero-grid, .about-grid, .productos-grid, .nutricional-grid, .galeria-grid, .contacto-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 { font-size: 29px; } /* Reducido un 30% para celular */
    .cart-floating { right: 18px !important; bottom: 100px !important; }
    .whatsapp { right: 18px !important; bottom: 22px !important; }
    .cart-panel { width: 100%; }
}
