﻿/* ========================================
   TODOCONCEPCION SHOP - CSS REDISENO TOTAL
   ======================================== */

:root {
    --bg-page: #f3f7ff;
    --bg-surface: #ffffff;
    --bg-soft: #eaf2ff;
    --bg-strong: #0a2a5a;

    --text-main: #17315d;
    --text-muted: #54688d;
    --text-on-dark: #f8fbff;

    --brand-700: #0f3f8a;
    --brand-600: #1f5fbf;
    --brand-500: #2f77e1;
    --brand-300: #9bc2ff;

    --success: #1f9f6a;
    --danger: #cc3a57;
    --warning: #d48716;

    --border: rgba(23, 49, 93, 0.14);
    --border-soft: rgba(23, 49, 93, 0.08);

    --shadow-xs: 0 2px 8px rgba(14, 40, 89, 0.08);
    --shadow-sm: 0 8px 22px rgba(17, 52, 114, 0.12);
    --shadow-md: 0 16px 34px rgba(17, 52, 114, 0.14);
    --shadow-lg: 0 26px 52px rgba(9, 31, 70, 0.22);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 34px;

    --space-xs: 0.5rem;
    --space-sm: 0.875rem;
    --space-md: 1.25rem;
    --space-lg: 1.75rem;
    --space-xl: 2.5rem;
    --space-2xl: 3.5rem;

    --trans-fast: 180ms cubic-bezier(0.2, 0.6, 0.2, 1);
    --trans-main: 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 8% 6%, rgba(140, 187, 255, 0.3), transparent 28%),
        radial-gradient(circle at 96% 10%, rgba(103, 164, 255, 0.24), transparent 26%),
        linear-gradient(180deg, #f9fbff 0%, #f2f7ff 45%, #eef4ff 100%);
    min-height: 100vh;
    line-height: 1.55;
    overflow-x: hidden;
}

img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

button,
a,
select,
input,
textarea {
    font-family: inherit;
}

a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color var(--trans-fast), opacity var(--trans-fast);
}

a:hover {
    color: var(--brand-700);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

.container,
.container-fluid {
    width: min(1200px, 100% - 2.25rem);
    margin-inline: auto;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

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

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.p-1 {
    padding: var(--space-sm);
}

.p-2 {
    padding: var(--space-md);
}

.p-3 {
    padding: var(--space-lg);
}

/* ========================================
   HEADER
   ======================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1200;
    padding: 0.9rem 0;
    background: rgba(9, 29, 66, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(203, 223, 255, 0.16);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.logo {
    color: var(--text-on-dark);
    font-size: 1.18rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
}

nav a {
    color: #d5e6ff;
    padding: 0.5rem 0.82rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.93rem;
    letter-spacing: 0.02em;
    transition: background var(--trans-fast), color var(--trans-fast), transform var(--trans-fast);
}

nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.menu-toggle,
.cart-trigger {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #f2f7ff;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--trans-fast), background var(--trans-fast), box-shadow var(--trans-fast);
}

.menu-toggle:hover,
.cart-trigger:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xs);
}

.menu-toggle {
    display: none;
    font-size: 1.15rem;
}

.cart-trigger {
    position: relative;
    font-size: 1.2rem;
}

.cart-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.carrito-badge {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4a66, #d02a4e);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(208, 42, 78, 0.42);
}

/* ========================================
   HERO
   ======================================== */

.banner {
    position: relative;
    isolation: isolate;
    margin: 1.4rem auto 0;
    width: min(1200px, 100% - 2.25rem);
    padding: clamp(2.7rem, 5vw, 4.4rem) clamp(1.1rem, 3vw, 3rem);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 14% 22%, rgba(186, 219, 255, 0.46), transparent 32%),
        radial-gradient(circle at 82% 76%, rgba(117, 176, 255, 0.32), transparent 29%),
        linear-gradient(130deg, #08367b 0%, #1952a5 56%, #2d74db 100%);
    color: var(--text-on-dark);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    inset: auto -100px -130px auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    filter: blur(2px);
    z-index: -1;
}

.banner::after {
    content: '';
    position: absolute;
    left: -70px;
    top: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    z-index: -1;
}

.banner h1 {
    color: #fff;
    font-size: clamp(1.95rem, 5vw, 3rem);
    max-width: 760px;
    margin: 0 auto 0.8rem;
}

.banner p {
    color: rgba(244, 250, 255, 0.9);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin: 0 auto 1.4rem;
    max-width: 700px;
}

.btn-primary {
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.45rem;
    background: linear-gradient(135deg, #9fd1ff, #e6f2ff);
    color: #0c3b81;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(0, 18, 51, 0.25);
    transition: transform var(--trans-fast), box-shadow var(--trans-fast), filter var(--trans-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 18, 51, 0.34);
    filter: brightness(1.03);
}

/* ========================================
   BUSQUEDA Y FILTROS
   ======================================== */

.busqueda-filtros {
    padding: var(--space-xl) 0 var(--space-lg);
}

.busqueda-filtros .container {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(25, 82, 165, 0.12);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 3vw, 1.4rem);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.72rem;
    margin-bottom: 0.9rem;
}

.search-box input,
.search-box button,
.filtro-grupo select,
.form-grupo input,
.form-grupo select,
.form-grupo textarea {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color var(--trans-fast), box-shadow var(--trans-fast), transform var(--trans-fast);
}

.search-box input,
.form-grupo input,
.form-grupo select,
.form-grupo textarea,
.filtro-grupo select {
    width: 100%;
    padding: 0.85rem 0.95rem;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #fff;
}

.search-box input::placeholder {
    color: #6a7ea4;
}

.search-box input:focus,
.filtro-grupo select:focus,
.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(47, 119, 225, 0.16);
}

.search-box button {
    border: none;
    padding: 0.85rem 1.4rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    cursor: pointer;
}

.search-box button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}

.filtros {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

/* ========================================
   PRODUCTOS
   ======================================== */

#productos {
    padding-bottom: var(--space-2xl);
}

.section-title {
    font-size: clamp(1.55rem, 3.5vw, 2.05rem);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 1.1rem;
}

.productos-vacios {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.2rem 1rem;
    border: 1px dashed rgba(25, 82, 165, 0.25);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.7);
}

.producto-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow: var(--shadow-xs);
    transition: transform var(--trans-main), box-shadow var(--trans-main), border-color var(--trans-main);
    animation: fadeUp 540ms ease both;
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(31, 95, 191, 0.2);
}

.producto-imagen {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef4ff, #dcecff);
}

.producto-imagen img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}

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

.badge-descuento,
.badge-destacado {
    position: absolute;
    top: 0.7rem;
    z-index: 1;
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
    box-shadow: var(--shadow-xs);
}

.badge-descuento {
    right: 0.7rem;
    background: linear-gradient(135deg, #ff5777, #d73657);
}

.badge-destacado {
    left: 0.7rem;
    background: linear-gradient(135deg, #2fa86c, #218958);
}

.producto-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
    flex: 1;
}

.producto-nombre {
    font-size: 1.03rem;
    font-weight: 800;
}

.producto-descripcion {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.producto-precios {
    display: grid;
    gap: 0.44rem;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(25, 82, 165, 0.14);
    background: linear-gradient(145deg, #f9fbff, #eff5ff);
}

.plan-pago {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 600;
}

.plan-pago .precio {
    color: var(--brand-700);
    font-size: 0.97rem;
    font-weight: 800;
}

.producto-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.83rem;
    color: #c78216;
    margin-top: 0.08rem;
}

.stars {
    letter-spacing: 0.08em;
}

.producto-acciones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
    margin-top: auto;
}

.btn-agregar,
.btn-detalle,
.btn-checkout,
.btn-enviar-whatsapp {
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--trans-fast), box-shadow var(--trans-fast), filter var(--trans-fast), background var(--trans-fast);
}

.btn-agregar {
    padding: 0.72rem 0.84rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
}

.btn-agregar:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}

.btn-agregar:disabled,
.btn-checkout:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.btn-detalle {
    padding: 0.72rem 0.84rem;
    color: var(--brand-700);
    background: #e9f2ff;
    border: 1px solid rgba(25, 82, 165, 0.22);
}

.btn-detalle:hover {
    transform: translateY(-1px);
    background: #ddecff;
    box-shadow: var(--shadow-xs);
}

/* ========================================
   PAGINACION
   ======================================== */

#paginacion {
    margin-top: 1.4rem;
}

.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.72rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-weight: 600;
}

.paginacion button {
    border: 1px solid rgba(25, 82, 165, 0.26);
    background: #ffffff;
    color: var(--brand-700);
    border-radius: 999px;
    padding: 0.52rem 0.95rem;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--trans-fast), background var(--trans-fast), box-shadow var(--trans-fast);
}

.paginacion button:hover {
    transform: translateY(-1px);
    background: #ebf3ff;
    box-shadow: var(--shadow-xs);
}

/* ========================================
   CARRITO
   ======================================== */

.carrito-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: min(400px, 100%);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 1px solid var(--border-soft);
    box-shadow: -20px 0 44px rgba(10, 38, 84, 0.18);
    transition: right var(--trans-main);
    z-index: 1600;
}

.carrito-sidebar.activo {
    right: 0;
}

.carrito-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(120deg, #f8fbff, #eef4ff);
}

.carrito-header h2 {
    margin: 0;
    font-size: 1.16rem;
}

.btn-cerrar,
.modal-close {
    border: 1px solid rgba(23, 49, 93, 0.2);
    background: #fff;
    color: #38527d;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carrito-items {
    flex: 1;
    overflow: auto;
    padding: 0.9rem;
}

.carrito-vacio {
    height: 100%;
    min-height: 220px;
    border: 1px dashed rgba(23, 49, 93, 0.2);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    background: #f9fbff;
}

.carrito-item {
    position: relative;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0.72rem;
    padding: 0.75rem;
    margin-bottom: 0.72rem;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: #fff;
}

.carrito-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.carrito-item-info h4 {
    font-size: 0.89rem;
    margin-bottom: 0.4rem;
    padding-right: 1.8rem;
}

.carrito-cantidad {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.carrito-cantidad button {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(23, 49, 93, 0.2);
    background: #fff;
    border-radius: 7px;
    cursor: pointer;
}

.carrito-cantidad button:hover {
    background: #f1f6ff;
}

.carrito-precio {
    color: var(--brand-700);
    font-weight: 800;
}

.btn-eliminar {
    position: absolute;
    top: 0.42rem;
    right: 0.42rem;
    background: none;
    border: none;
    color: #9a3d55;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem;
}

.btn-eliminar:hover {
    color: #c5304f;
}

.carrito-footer {
    border-top: 1px solid var(--border-soft);
    background: #f8fbff;
    padding: 1rem;
}

.carrito-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.04rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.carrito-total span:last-child {
    color: var(--brand-700);
}

.btn-checkout {
    width: 100%;
    padding: 0.82rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, #218c5d, #25a56d);
    box-shadow: 0 8px 20px rgba(37, 165, 109, 0.22);
}

.btn-checkout:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.activo {
    display: flex;
}

.modal-content {
    width: min(560px, 100%);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    box-shadow: var(--shadow-lg);
}

.modal-content h2 {
    margin-bottom: 1rem;
    font-size: 1.32rem;
}

.modal-producto-content {
    width: min(920px, 100%);
}

.detalle-producto-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 1rem;
}

.detalle-producto-imagen {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: linear-gradient(135deg, #f5f9ff, #e9f2ff);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detalle-producto-imagen img {
    width: 100%;
    max-height: min(460px, 58vh);
    object-fit: contain;
}

.detalle-producto-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detalle-producto-titulo {
    font-size: 1.35rem;
    margin: 0;
}

.detalle-producto-descripcion {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.detalle-precios {
    border: 1px solid rgba(25, 82, 165, 0.16);
    border-radius: 12px;
    padding: 0.72rem 0.8rem;
    background: #f8fbff;
    display: grid;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: #23406f;
}

.detalle-lista {
    list-style: none;
    border-top: 1px solid var(--border-soft);
    margin-top: 0.2rem;
    padding-top: 0.65rem;
    display: grid;
    gap: 0.34rem;
    font-size: 0.9rem;
}

.detalle-lista li span {
    color: var(--text-muted);
}

.detalle-acciones {
    margin-top: auto;
}

.detalle-acciones .btn-agregar {
    width: 100%;
}

.modal-close {
    float: right;
    margin-bottom: 0.5rem;
}

.form-grupo {
    margin-bottom: 0.75rem;
}

.form-grupo label {
    display: block;
    margin-bottom: 0.38rem;
    color: #35507c;
    font-size: 0.86rem;
    font-weight: 700;
}

.form-grupo textarea {
    min-height: 92px;
    resize: vertical;
}

.resumen-pedido {
    padding: 0.82rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(25, 82, 165, 0.14);
    border-radius: 12px;
    background: #f8fbff;
}

.resumen-item,
.resumen-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.resumen-item {
    padding: 0.38rem 0;
    color: var(--text-muted);
    font-size: 0.87rem;
}

.resumen-total {
    margin-top: 0.45rem;
    padding-top: 0.62rem;
    border-top: 1px solid rgba(23, 49, 93, 0.16);
    color: var(--text-main);
    font-weight: 800;
}

.btn-enviar-whatsapp {
    width: 100%;
    padding: 0.88rem 1rem;
    background: linear-gradient(135deg, #2aa56f, #218b5e);
    color: #fff;
    box-shadow: 0 8px 20px rgba(33, 139, 94, 0.25);
}

.btn-enviar-whatsapp:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

/* ========================================
   OVERLAY
   ======================================== */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 22, 49, 0.42);
    backdrop-filter: blur(2px);
    z-index: 1500;
    display: none;
}

.overlay.activo {
    display: block;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(145deg, #0a2a5a, #08306a);
    color: #dceaff;
    padding: var(--space-2xl) 0 1.3rem;
    margin-top: var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
    margin-bottom: 1.3rem;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 0.72rem;
    font-size: 1rem;
}

.footer-section p,
.footer-section li,
.footer-section a {
    color: #c5d9f8;
    font-size: 0.9rem;
}

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

.footer-section li + li {
    margin-top: 0.34rem;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(211, 228, 255, 0.16);
    padding-top: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: #bdd3f2;
    margin: 0;
    font-size: 0.82rem;
}

/* ========================================
   TOAST + LOADER
   ======================================== */

.loading {
    opacity: 0.65;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 2rem auto;
    border-radius: 50%;
    border: 4px solid rgba(31, 95, 191, 0.18);
    border-top-color: var(--brand-600);
    animation: spin 900ms linear infinite;
}

.toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    max-width: 320px;
    z-index: 9999;
    padding: 0.78rem 0.9rem;
    border-radius: 11px;
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 250ms ease forwards;
}

.toast.success {
    background: linear-gradient(135deg, #2aa56f, #20865c);
}

.toast.error {
    background: linear-gradient(135deg, #d04664, #a72e4a);
}

.toast.warning {
    background: linear-gradient(135deg, #d59a31, #bf8120);
}

.toast.info {
    background: linear-gradient(135deg, #2e79e1, #1f57b8);
}

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

@media (max-width: 900px) {
    .container,
    .container-fluid,
    .banner {
        width: min(1200px, 100% - 1.5rem);
    }

    .header-content {
        gap: 0.8rem;
    }

    nav {
        position: relative;
    }

    nav ul {
        position: absolute;
        top: calc(100% + 0.9rem);
        right: 0;
        width: min(250px, 70vw);
        padding: 0.72rem;
        border-radius: 14px;
        background: rgba(9, 29, 66, 0.94);
        border: 1px solid rgba(195, 220, 255, 0.18);
        box-shadow: var(--shadow-md);
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    nav.activo ul {
        display: flex;
    }

    nav a {
        text-align: center;
    }

    .menu-toggle {
        display: inline-flex;
    }

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

@media (max-width: 720px) {
    .search-box {
        grid-template-columns: 1fr;
    }

    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 0.8rem;
    }

    .producto-imagen {
        height: 180px;
    }

    .producto-info {
        padding: 0.78rem;
    }

    .producto-acciones {
        grid-template-columns: 1fr;
    }

    .detalle-producto-grid {
        grid-template-columns: 1fr;
    }

    .detalle-producto-imagen img {
        max-height: min(360px, 42vh);
    }

    .carrito-sidebar {
        width: 100%;
        right: -100%;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        line-height: 1.48;
    }

    .logo {
        font-size: 0.95rem;
        letter-spacing: 0.05em;
    }

    .cart-trigger,
    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .banner {
        border-radius: var(--radius-lg);
        margin-top: 1rem;
    }

    .banner h1 {
        font-size: 1.62rem;
    }

    .section-title {
        margin-bottom: 1rem;
    }

    .modal-content {
        padding: 0.88rem;
    }

    .toast {
        left: 0.6rem;
        right: 0.6rem;
        max-width: none;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(16px);
        opacity: 0;
    }

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(14px);
        opacity: 0;
    }
}

@keyframes fadeUp {
    from {
        transform: translateY(12px);
        opacity: 0;
    }

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