/* =====================================================================
   ROPAMÍA · v4.1 — Diseño "Fluidez Orgánica" (corregido para productos)
   ===================================================================== */

:root {
    --teal: #05aaaa;
    --teal-2: #2fbf9a;
    --navy: #154572;
    --pink: #ED3092;
    --yellow: #fbe96b;

    --bg: #f0f9f6;
    --surface: #ffffff;
    --surface-soft: #f6fcf9;
    --border: #d9eee7;
    --muted: #6c8288;
    --muted-2: #8aa0a6;

    --radius: 30px 10px 30px 10px;
    --radius-sm: 18px 6px 18px 6px;
    --radius-card: 40px 12px 40px 12px;
    --shadow: 0 16px 48px rgba(21, 69, 114, 0.10);
    --shadow-lg: 0 32px 72px rgba(21, 69, 114, 0.18);
    --shadow-hover: 0 24px 64px rgba(5, 170, 170, 0.22);

    --header-h: 80px;
    --container: 1200px;
}

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

/* Ciutadella - todos los pesos */
@font-face {
    font-family: 'Ciutadella';
    src: url('/assets/fonts/Ciutadella-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ciutadella';
    src: url('/assets/fonts/Ciutadella-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ciutadella';
    src: url('/assets/fonts/Ciutadella-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ciutadella';
    src: url('/assets/fonts/Ciutadella-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ciutadella';
    src: url('/assets/fonts/Ciutadella-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Agenda - solo Bold */
@font-face {
    font-family: 'Agenda';
    src: url('/assets/fonts/Agenda-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
.ff-agenda{
    font-family: 'Agenda', serif;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    font-family: 'Ciutadella', sans-serif;
    color: var(--navy);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 17px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body.modal-abierto {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

body::before {
    content: '';
    position: fixed;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(5,170,170,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(224,2,91,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

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

button { font-family: inherit; cursor: pointer; }

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

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

header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid rgba(5,170,170,0.15);
    box-shadow: 0 8px 32px rgba(21,69,114,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    max-width: var(--container);
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.header-inner::after {
    content: '~~~';
    position: absolute;
    bottom: -8px;
    left: 20%;
    color: var(--teal);
    font-size: 20px;
    letter-spacing: 12px;
    opacity: 0.15;
    font-weight: 300;
    pointer-events: none;
}

.brand img {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(5,170,170,0.15));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand img:hover { transform: scale(1.05) rotate(-2deg); }

.header-text { flex: 1; min-width: 0; }

.hero-title {
    font-family: 'Agenda', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ---- Menú hamburguesa ---- */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 210;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--navy);
    border-radius: 6px;
    transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--pink);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--pink);
}

.nav-menu {
    display: flex;
    align-items: center;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}
.nav-item {
    position: relative;
}
.nav-link {
    display: block;
    padding: 0.5rem 1.2rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Agenda', serif;
    border-radius: 0;          /* sin redondeo en desktop */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
    position: relative;
}
/* Línea común para hover y active (desktop) */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background: var(--pink);
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.nav-link:hover {
    color: var(--teal);
    transform: translateY(-2px);
}
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}
.nav-link.active {
    color: var(--teal) !important;
    font-weight: 700;
    background: transparent !important;
    box-shadow: none !important;
}
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    background: var(--pink);
    width: 70%;
    bottom: 4px;
}

/* ===== MENÚ MOBILE (hasta 899px) ===== */
@media (max-width: 899px) {
    .hamburger { display: flex; }
    .header-inner::after { display: none; }

    .nav-menu {
        position: fixed;
        top: 0;
        left: auto;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgb(1 171 170); /* teal */
        backdrop-filter: blur(20px);
        padding: 40px 24px 30px;
        transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
        box-shadow: -12px 0 48px rgba(21,69,114,0.12);
        z-index: 200;
        display: block;
        border-left: 2px solid rgba(255,255,255,0.08);
        will-change: right;
        transform: none;
    }
    .nav-menu.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        margin-top: 10px;
    }
    .nav-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.9rem 0;           /* mismo padding para todos */
        border-radius: 0;
        color: #fff !important;
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
    }
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 0;
        transform: none;
        width: 0;
        height: 3px;
        background: var(--yellow);
        border-radius: 0;
        transition: width 0.3s ease;
    }
    .nav-link:hover {
        transform: none;
        background: rgba(255,255,255,0.08);
        color: var(--yellow) !important;
    }
    .nav-link:hover::after {
        width: 100%;
    }
    .nav-link.active {
        background: transparent !important;
        color: #fff !important;
        padding: 0.9rem 0;            /* mismo padding */
        border-radius: 0;
        box-shadow: none !important;
    }
    .nav-link.active::after {
        width: 100%;
        background: var(--yellow);
    }

    .nav-link .nav-icon {
        font-size: 1.1rem;
        opacity: 0.6;
        width: 24px;
        text-align: center;
    }
    .nav-link.active .nav-icon {
        opacity: 1;
    }

    /* Redes sociales en menú mobile */
    .nav-social {
        display: flex;
        justify-content: center;
        gap: 24px;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.15);
    }
    .nav-social a {
        color: #fff;
        opacity: 0.8;
        transition: all 0.2s ease;
    }
    .nav-social a:hover {
        color: var(--yellow);
        opacity: 1;
        transform: scale(1.1);
    }
    .nav-social a svg {
        width: 28px;
        height: 28px;
        display: block;
    }

    /* Color de las rayas del hamburguer en mobile */
    .hamburger span {
        background: var(--navy);
    }
    .hamburger.active span {
        background: #fff;
    }
}

/* Ocultar .nav-social en desktop */
@media (min-width: 900px) {
    .nav-social {
        display: none !important;
    }
    .nav-menu {
        margin-left: auto;
    }
}
/* =====================================================================
   LAYOUT
   ===================================================================== */

.layout {
    max-width: var(--container);
    margin: 0 auto;
    padding: 36px 20px 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.col-main { min-width: 0; }

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Agenda', serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--navy);
    margin: 0 0 18px;
    position: relative;
}
.section-title::before {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--teal), transparent);
    margin-right: 8px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to left, var(--teal), transparent);
    margin-left: 8px;
}
.section-title .num {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50% 30% 50% 30%;
    background: var(--yellow);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    transform: rotate(-6deg);
}

.card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 28px;
    border: 2px solid rgba(255,255,255,0.6);
    transition: all 0.4s ease;
    width: 100%;
    box-sizing: border-box;
}
.card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(5,170,170,0.15);
}

.card + .section-title { margin-top: 32px; }

/* =====================================================================
   BOTONES GRID
   ===================================================================== */

.botones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 0;
    width: 100%;
}

.main-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(5,170,170,0.1);
    border-radius: var(--radius-sm);
    color: var(--navy);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 4px 16px rgba(21,69,114,0.04);
    text-decoration: none;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.main-option-btn:nth-child(1) { border-radius: 40px 12px 40px 12px; }
.main-option-btn:nth-child(2) { border-radius: 12px 40px 12px 40px; }
.main-option-btn:nth-child(3) { border-radius: 40px 12px 12px 40px; }
.main-option-btn:nth-child(4) { border-radius: 12px 40px 40px 12px; }
.main-option-btn:nth-child(5) { border-radius: 40px 12px 40px 12px; }
.main-option-btn:nth-child(6) { border-radius: 12px 40px 12px 40px; }
.main-option-btn:nth-child(7) { border-radius: 40px 12px 12px 40px; }
.main-option-btn:nth-child(8) { border-radius: 12px 40px 40px 12px; }
.main-option-btn:nth-child(9) { border-radius: 40px 12px 40px 12px; }

.main-option-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(5,170,170,0.04) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.6s ease;
    pointer-events: none;
}
.main-option-btn:hover::before {
    top: -30%;
    right: -30%;
    transform: scale(1.4);
}

.main-option-btn .ico-img {
    width: 145px;
    height: 145px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}
.main-option-btn .ico-img.fail { display: none; }

.main-option-btn span {
    font-family: 'Agenda', serif;
    font-size: 18px;
    text-align: center;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1;
    color: var(--navy);
}

.main-option-btn:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--teal);
    box-shadow: var(--shadow-hover);
    background: rgba(255,255,255,0.95);
}
.main-option-btn:hover .ico-img {
    transform: scale(1.18) rotate(-6deg);
}

/* =====================================================================
   PEDIDO
   ===================================================================== */

.col-side { min-width: 0; }
.pedido-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.4s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.pedido-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(251,233,107,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.pedido-card:hover {
    box-shadow: 0 40px 80px rgba(21,69,114,0.15);
    transform: translateY(-4px);
}

.pedido-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 2px solid rgba(5,170,170,0.08);
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
}
.pedido-head h2 {
    font-family: 'Agenda', serif;
    font-size: 22px;
    font-weight: 700;
    flex: 1;
    letter-spacing: 0.3px;
    color: var(--navy);
}

.pedido-titulo-link {
    display: inline-block;
    cursor: pointer;
    color: var(--teal);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 700;
    position: relative;
}
.pedido-titulo-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pink);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.pedido-titulo-link:hover {
    color: var(--pink);
    transform: scale(1.04);
}
.pedido-titulo-link:hover::after {
    transform: scaleX(1);
}

.btn-vaciar {
    background: none;
    border: none;
    color: var(--muted-2);
    padding: 4px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}
.btn-vaciar svg {
    width: 22px;
    height: 22px;
}
.btn-vaciar:hover {
    color: var(--pink);
    transform: rotate(12deg) scale(1.1);
    background: rgba(224,2,91,0.08);
}

.pedido-body { padding: 20px 24px 28px; position: relative; z-index: 1; }

.items-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    padding: 40px 10px;
}
.items-empty .ico-vacio { font-size: 48px; opacity: 0.4; }

#itemsList { max-height: 400px; overflow-y: auto; padding-right: 4px; }
#itemsList::-webkit-scrollbar { width: 4px; }
#itemsList::-webkit-scrollbar-track { background: transparent; }
#itemsList::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 10px; }

.item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(5,170,170,0.08);
}
.item-row:last-child { border-bottom: none; }
.item-info { flex: 1; min-width: 0; }
.item-info .cat {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy);
}
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 40px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tag.producto { background: rgba(5,170,170,0.12); color: var(--teal); }
.tag.promo { background: var(--yellow); color: var(--navy); }
.tag.vale { background: rgba(224,2,91,0.12); color: var(--pink); }
.tag.consulta { background: rgba(108,130,136,0.12); color: var(--muted); }

.item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cantidad-control {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.6);
    border: 2px solid rgba(5,170,170,0.08);
    border-radius: 40px;
    padding: 2px;
    backdrop-filter: blur(4px);
}
.cantidad-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: #fff;
    border-radius: 50%;
    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.cantidad-control button:hover { background: var(--teal); color: #fff; }
.cantidad-control .cant { min-width: 24px; text-align: center; font-size: 16px; font-weight: 700; color: var(--navy); }
.cantidad-control.mini button { width: 24px; height: 24px; font-size: 16px; }

.item-prices { text-align: right; min-width: 74px; }
.item-prices .final { font-size: 16px; font-weight: 700; color: var(--navy); }
.item-prices .final.sin-costo { color: var(--muted); font-size: 15px; font-weight: 600; }
.item-prices .orig {
    font-size: 14px;
    color: var(--muted-2);
    text-decoration: line-through;
}
.remove-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    color: var(--muted-2);
    font-size: 16px;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    transition: all 0.2s;
}
.remove-btn:hover { background: var(--pink); color: #fff; transform: rotate(90deg); }

/* ---- Vale ---- */
.vale-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(5,170,170,0.06);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}
.vale-card:hover { border-color: rgba(5,170,170,0.2); }
.vale-card .txt { flex: 1; }
.vale-card .txt b { display: block; font-size: 16px; color: var(--navy); }
.vale-card .txt span { font-size: 14px; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }

.switch { position: relative; display: inline-block; width: 52px; height: 28px; flex: 0 0 52px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    inset: 0;
    background: rgba(207,220,221,0.6);
    border-radius: 40px;
    transition: background 0.3s ease;
}
.slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
input:checked + .slider { background: var(--teal); }
input:checked + .slider::before { transform: translateX(24px); }

/* ---- Totales ---- */
.total-card {
    margin-top: 20px;
    background: linear-gradient(145deg, var(--navy), #0d2f4a);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
}
.total-card::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5,170,170,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.total-card::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224,2,91,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.desglose-linea {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
    padding: 4px 0;
    color: rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
}
.desglose-linea.promo span:last-child,
.desglose-linea.vale span:last-child,
.desglose-linea.cupon span:last-child { color: var(--yellow); font-weight: 600; }
.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
}
.total-card .label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    font-weight: 600;
}
.total-card .amount {
    font-family: 'Agenda', serif;
    font-weight: 800;
    font-size: 34px;
    background: var(--yellow);
    color: var(--navy);
    padding: 0 18px;
    border-radius: 20px 8px 20px 8px;
    line-height: 1.4;
}
.total-card .ahorro {
    font-size: 15px;
    color: var(--yellow);
    font-weight: 600;
    text-align: right;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 60px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 18px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 32px rgba(37,211,102,0.25);
    position: relative;
    overflow: hidden;
}
.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.whatsapp-btn:hover:not(:disabled)::before {
    opacity: 1;
}
.whatsapp-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 48px rgba(37,211,102,0.35);
}
.whatsapp-btn:disabled {
    background: rgba(207,220,221,0.6);
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
}
.whatsapp-btn svg { width: 24px; height: 24px; flex: 0 0 24px; }
/* =====================================================================
   CARRUSEL — colores vibrantes, texto blanco, responsive (corregido)
   ===================================================================== */

.carousel-section {
    margin: 0 auto;
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}

.carousel-wrapper {
    position: relative;
    overflow: visible;
    border-radius: var(--radius);
    padding: 8px 0;
}

.carousel-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 16px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.carousel-slider::-webkit-scrollbar {
    display: none;
}

/* Estilos base del slide (se aplican a todos) */
.carousel-slide {
    flex: 0 0 520px;          /* Ancho fijo en desktop */
    height: 240px;
    border-radius: 24px 8px 24px 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    scroll-snap-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #fff;
    cursor: pointer;
}

.carousel-slide:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.slide-content {
    display: flex;
    height: 100%;
    width: 100%;
}

.slide-text {
    flex: 1 1 50%;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    min-width: 0;
}

.slide-text h3 {
    font-family: 'Agenda', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.2;
    color: #ffffff;
}

.slide-text p {
    font-size: 0.9rem;
    margin: 4px 0 12px 0;
    opacity: 0.9;
    line-height: 1.4;
    flex: 1;
    color: #ffffff;
}

.slide-text .precio {
    font-weight: 800;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 14px;
    border-radius: 40px 4px 40px 4px;
    backdrop-filter: blur(4px);
    color: #ffffff;
}

.slide-image {
    flex: 1 1 50%;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-size: 26px;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

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

@media (max-width: 899px) {
    .carousel-btn {
        display: none;
    }
    /* En móvil, el slide ocupa casi todo el ancho disponible, sin max-width fijo */
    .carousel-slide {
        flex: 0 0 calc(100% - 20px); /* Ocupa todo el ancho menos un pequeño margen */
        max-width: 100%;            /* Evita que se desborde */
        height: 200px;
        margin: 0 10px;            /* Espacio entre slides */
    }
    .slide-text h3 {
        font-size: 1.1rem;
    }
    .slide-text p {
        font-size: 0.8rem;
    }
    .slide-text .precio {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        flex: 0 0 calc(100% - 16px);
        height: 170px;
        margin: 0 8px;
    }
    .slide-text {
        padding: 12px;
    }
    .slide-text h3 {
        font-size: 1rem;
    }
    .slide-text p {
        display: none;
    }
    .slide-text .precio {
        font-size: 1rem;
    }
}

@media (min-width: 900px) {
    .carousel-slide {
        flex: 0 0 520px;
        max-width: 560px;
        height: 240px;
        margin: 0;
    }
    .carousel-btn {
        width: 52px;
        height: 52px;
        font-size: 30px;
    }
}

/* =====================================================================
   TOASTS
   ===================================================================== */

.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    pointer-events: none;
    width: min(92vw, 440px);
}
.toast {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    color: var(--navy);
    font-size: 16px;
    font-weight: 500;
    padding: 14px 24px;
    border-radius: 60px;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), toastOut 0.4s ease 2.8s forwards;
    border: 2px solid rgba(5,170,170,0.08);
}
.toast .icon { font-size: 22px; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(16px) scale(0.95); }
}

/* =====================================================================
   MODALES
   ===================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(21, 69, 114, 0.5);
    backdrop-filter: blur(6px);
    z-index: 800;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 40px 12px 40px 12px;
    padding: 28px 24px 32px;
    width: 100%;
    max-width: 540px;
    margin: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-box.wide { max-width: 960px; }
.modal-box h2 {
    font-family: 'Agenda', serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-right: 44px;
    color: var(--navy);
}
.modal-box .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    color: var(--navy);
    font-size: 20px;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
}
.modal-box .close-btn:hover { background: var(--pink); color: #fff; transform: rotate(90deg); }
.modal-box .info-text {
    font-size: 16px;
    line-height: 1.6;
    color: #40616f;
    margin-top: 12px;
}
.modal-box .info-text strong { color: var(--navy); }

/* ---- Botón agregar ---- */
.btn-add {
    width: 100%;
    background: linear-gradient(135deg, var(--pink), #c0024a);
    color: #fff;
    border: none;
    border-radius: 40px 8px 40px 8px;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(224,2,91,0.2);
}
.btn-add:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(224,2,91,0.3);
}

/* ---- Formulario modal ---- */
.modal-form label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 18px 0 8px;
}
.modal-form input,
.modal-form textarea {
    width: 100%;
    border: 2px solid rgba(5,170,170,0.12);
    border-radius: 16px 4px 16px 4px;
    padding: 12px 16px;
    font-size: 17px;
    font-family: inherit;
    color: var(--navy);
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.5);
}
.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(5,170,170,0.06);
}

.direccion-wrapper { display: flex; gap: 12px; }
.btn-detectar {
    flex: 0 0 52px;
    border: 2px solid rgba(5,170,170,0.12);
    background: rgba(255,255,255,0.5);
    border-radius: 16px 4px 16px 4px;
    font-size: 24px;
    transition: all 0.3s ease;
}
.btn-detectar:hover { border-color: var(--teal); background: #fff; }
.btn-detectar:disabled { opacity: 0.6; cursor: wait; }

.modal-form .btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 40px 8px 40px 8px;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 24px;
    box-shadow: 0 8px 24px rgba(37,211,102,0.2);
    transition: all 0.3s ease;
}
.modal-form .btn-send:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37,211,102,0.3);
}

.medidas-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.medidas-table th,
.medidas-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 16px;
    border-bottom: 1px solid rgba(5,170,170,0.08);
}
.medidas-table th {
    background: rgba(255,255,255,0.4);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.medida-small{
    color: #40616f;
    font-size: 14px;
    font-weight: normal;
}

.btn-logout {
    width: 100%;
    background: linear-gradient(135deg, var(--pink), #c0024a);
    color: #fff;
    border: none;
    border-radius: 40px 8px 40px 8px;
    padding: 14px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
}
.btn-logout:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(224,2,91,0.25); }

/* ---- Modal: Acolchado ---- */
.acolchado-materiales {
    display: flex;
    gap: 20px;
    margin: 16px 0;
    flex-wrap: wrap;
}
.material-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 40px;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}
.material-option:hover { background: rgba(5,170,170,0.06); }
.material-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

.acolchado-size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 18px 0;
    justify-items: center;
}
.acolchado-size-grid .size-btn:nth-child(4) { grid-column: 1 / span 1; }
.acolchado-size-grid .size-btn:nth-child(5) { grid-column: 2 / span 1; }
.acolchado-size-grid .size-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(5,170,170,0.08);
    border-radius: 24px 6px 24px 6px;
    color: var(--navy);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
    max-width: 180px;
}
.acolchado-size-grid .size-btn img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}
.acolchado-size-grid .size-btn .name {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}
.acolchado-size-grid .size-btn .precio {
    font-size: 17px;
    font-weight: 700;
    color: var(--teal);
}
.acolchado-size-grid .size-btn:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.acolchado-size-grid .size-btn.active {
    border-color: var(--teal);
    background: rgba(5,170,170,0.06);
}
.acolchado-size-grid .size-btn.active .precio { color: var(--pink); }

.acolchado-cantidad {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 16px 0;
}
.acolchado-cantidad label {
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
}
.acolchado-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    color: #fff;
    border-radius: 20px 4px 20px 4px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    margin: 16px 0;
}
.acolchado-preview .amount {
    font-family: 'Agenda', serif;
    font-weight: 800;
    font-size: 28px;
    background: var(--yellow);
    color: var(--navy);
    padding: 0 16px;
    border-radius: 16px 4px 16px 4px;
}

/* ---- Modal: Calzado ---- */
.modal-precio-cantidad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 2px solid rgba(5,170,170,0.06);
    margin-bottom: 20px;
}
.modal-precio-cantidad .precio {
    font-size: 26px;
    font-weight: 800;
    color: var(--pink);
}
.modal-precio-cantidad .precio small {
    font-size: 16px;
    font-weight: 400;
    color: var(--muted);
}

/* ---- Modal: Retiro y Costuras opciones ---- */
.retiro-opciones,
.costuras-opciones {
    display: flex;
    gap: 20px;
    margin: 16px 0;
    flex-wrap: wrap;
}
.retiro-option,
.costuras-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 40px;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}
.retiro-option:hover,
.costuras-option:hover { background: rgba(5,170,170,0.06); }
.retiro-option input,
.costuras-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

.retiro-comentario,
.costuras-comentario,
.otros-lavados-input {
    margin: 16px 0;
}
.retiro-comentario label,
.costuras-comentario label,
.otros-lavados-input label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}
.retiro-comentario textarea,
.costuras-comentario textarea,
.otros-lavados-input textarea {
    width: 100%;
    border: 2px solid rgba(5,170,170,0.12);
    border-radius: 16px 4px 16px 4px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--navy);
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.4);
}
.retiro-comentario textarea:focus,
.costuras-comentario textarea:focus,
.otros-lavados-input textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(5,170,170,0.06);
}
.otros-lavados-input textarea { min-height: 100px; }

/* ---- Modal: Costuras grid ---- */
.costuras-grid {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 16px;
}
.costuras-grupo {
    margin-bottom: 20px;
}
.costuras-cat {
    font-family: 'Agenda', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(5,170,170,0.08);
}
.costuras-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.costura-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.3);
    border-radius: 20px 4px 20px 4px;
    transition: all 0.3s ease;
}
.costura-item:hover { background: rgba(5,170,170,0.04); }
.costura-item .nombre {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}
.costura-item .precio {
    font-size: 16px;
    font-weight: 700;
    color: var(--pink);
    min-width: 60px;
    text-align: right;
}
.btn-agregar-costura {
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 40px 4px 40px 4px;
    padding: 6px 20px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-agregar-costura:hover { filter: brightness(1.08); transform: scale(1.04); }

/* ---- Modal: Productos ---- */
.catalogo-grupo { margin-bottom: 32px; }
.catalogo-cat {
    font-family: 'Agenda', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(5,170,170,0.08);
}
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}
.catalogo-card {
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(5,170,170,0.06);
    border-radius: 24px 6px 24px 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.4);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.catalogo-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    border-color: var(--teal);
}
.cat-img {
    position: relative;
    height: 180px;
    background: rgba(255,255,255,0.3);
    display: grid;
    place-items: center;
    padding: 12px;
}
.cat-img img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.cat-img .cat-img-fallback { display: none; font-size: 44px; opacity: 0.3; }
.cat-img.sin-img img { display: none; }
.cat-img.sin-img .cat-img-fallback { display: block; }
.cat-body { padding: 12px 16px; flex: 1; }
.cat-body h4 { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.cat-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 4px;
}
.cat-precio {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--pink);
}
.cat-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 16px;
}
.btn-agregar-catalogo {
    flex: 1;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 40px 4px 40px 4px;
    padding: 10px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-agregar-catalogo:hover { filter: brightness(1.08); transform: scale(1.04); }

/* =====================================================================
   RESPONSIVE — CON PRODUCTOS CORREGIDOS (estilo v3.0)
   ===================================================================== */

@media (max-width: 899px) {
    .layout {
        display: flex;
        flex-direction: column;
        padding: 16px 14px 10px;
    }
    .col-main { order: 1; width: 100%; }
    .col-side { order: 2; margin-top: 16px; width: 100%; }
    .carousel-section { order: 3;  width: 100%; }

    .header-inner { padding: 10px 16px; gap: 12px; }
    .header-text { order: 3; flex-basis: 100%; text-align: center; }
    .hero-title { font-size: 19px; }

    /* MODALES en mobile */
    .modal-overlay {
        padding: 16px;
        align-items: flex-start;
    }
    .modal-box {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 28px;
        padding: 22px 18px 24px;
        margin: auto;
    }
    .modal-box.wide {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 28px;
        padding: 22px 18px 24px;
    }
    .modal-box .close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .modal-box h2 {
        font-size: 1.3rem;
        padding-right: 44px;
    }

    /* BOTONES */
    .botones-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .main-option-btn .ico-img {
        width: 80px;
        height: 80px;
    }
    .main-option-btn {
        padding: 14px 10px;
    }
    .main-option-btn span {
        font-size: 13px;
    }
    .acolchado-size-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .acolchado-size-grid .size-btn { max-width: 140px; }
    .acolchado-size-grid .size-btn img { width: 70px; height: 70px; }
    .acolchado-size-grid .size-btn .name { font-size: 14px; }
    .acolchado-size-grid .size-btn .precio { font-size: 15px; }
    .retiro-opciones,
    .costuras-opciones {
        flex-direction: column;
        gap: 10px;
    }

    /* PRODUCTOS en modal — ESTILO v3.0 (funcional) */
    .modal-box.wide .catalogo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    /* Mantenemos las tarjetas como en v3.0, sin forzar alturas ni min-height excesivos */
    .modal-box.wide .catalogo-card {
        display: flex;
        flex-direction: column;
        border: 2px solid rgba(5,170,170,0.06);
        border-radius: 16px;
        overflow: hidden;
        background: rgba(255,255,255,0.4);
        backdrop-filter: blur(4px);
        transition: all 0.3s ease;
        /* Sin min-height forzado */
    }

    .modal-box.wide .cat-img {
        height: 140px; /* Altura fija como en v3.0, pero reducida para móvil */
        background: rgba(255,255,255,0.3);
        display: grid;
        place-items: center;
        padding: 8px;
    }
    .modal-box.wide .cat-img img {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .modal-box.wide .cat-body {
        padding: 8px 12px;
        flex: 1;
    }
    .modal-box.wide .cat-body h4 {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        color: var(--navy);
    }
    .modal-box.wide .cat-desc {
        font-size: 13px;
        color: var(--muted);
        line-height: 1.4;
        margin-top: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .modal-box.wide .cat-precio {
        margin-top: 4px;
        font-size: 16px;
        font-weight: 800;
        color: var(--pink);
    }
    .modal-box.wide .cat-acciones {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px 12px;
    }
    .modal-box.wide .btn-agregar-catalogo {
        flex: 1;
        background: var(--teal);
        color: #fff;
        border: none;
        border-radius: 40px 4px 40px 4px;
        padding: 8px 10px;
        font-size: 14px;
        font-weight: 700;
        transition: all 0.3s ease;
        min-height: 32px;
    }
    .modal-box.wide .btn-agregar-catalogo:hover {
        filter: brightness(1.08);
        transform: scale(1.02);
    }
    .modal-box.wide .cantidad-control.mini {
        gap: 4px;
        padding: 2px;
    }
    .modal-box.wide .cantidad-control.mini button {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    .modal-box.wide .cantidad-control.mini .cant {
        font-size: 15px;
        min-width: 18px;
    }
}

@media (max-width: 480px) {
    .botones-grid { gap: 12px; }
    .main-option-btn .ico-img {
        width: 70px;
        height: 70px;
    }
    .main-option-btn {
        padding: 12px 8px;
    }
    .main-option-btn span {
        font-size: 12px;
    }
    .acolchado-size-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .acolchado-size-grid .size-btn:nth-child(4) { grid-column: auto; }
    .acolchado-size-grid .size-btn:nth-child(5) { grid-column: auto; }
    .acolchado-size-grid .size-btn {
        max-width: 100%;
        padding: 12px 8px;
    }
    .acolchado-size-grid .size-btn img { width: 60px; height: 60px; }
    .acolchado-size-grid .size-btn .name { font-size: 13px; }
    .acolchado-size-grid .size-btn .precio { font-size: 14px; }
    .acolchado-materiales {
        flex-direction: column;
        gap: 10px;
    }
    .section-title::before,
    .section-title::after {
        display: none;
    }

    .modal-overlay {
        padding: 10px;
    }
    .modal-box {
        padding: 18px 14px 20px;
        border-radius: 20px;
    }

    /* Ajustes para productos en móvil pequeño */
    .modal-box.wide .catalogo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .modal-box.wide .cat-img {
        height: 160px;
        padding: 6px;
    }
    .modal-box.wide .cat-body h4 {
        font-size: 14px;
    }
    .modal-box.wide .cat-desc {
        display: none; /* ocultar descripción en móvil pequeño */
    }
    .modal-box.wide .cat-precio {
        font-size: 15px;
    }
    .modal-box.wide .btn-agregar-catalogo {
        font-size: 13px;
        padding: 6px 8px;
        min-height: 28px;
    }
    .modal-box.wide .cantidad-control.mini button {
        width: 20px;
        height: 20px;
        font-size: 13px;
    }
}

@media (min-width: 900px) {
    .layout {
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 36px;
        padding-top: 40px;
    }
    .col-side {
        position: sticky;
        top: calc(var(--header-h) + 24px);
    }
    .hero-title { font-size: 24px; }
    .brand img { height: 54px; }
    .card { padding: 32px; }
    .carousel-slide { flex: 0 0 300px; height: 220px; }
    #itemsList { max-height: 50vh; }
}

@media (min-width: 1200px) {
    .catalogo-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

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

footer {
    background: var(--navy);
    color: #fff;
    padding: 56px 20px 28px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 80px;
    background: radial-gradient(ellipse at 20% 0%, var(--teal) 0%, transparent 60%);
    opacity: 0.1;
}
footer::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5,170,170,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}
.footer-col h4 {
    font-family: 'Agenda', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--yellow);
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40%;
    height: 3px;
    background: var(--teal);
    border-radius: 6px;
}
.footer-col p,
.footer-col ul {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.85;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-col ul li a:hover {
    color: var(--yellow);
}
.footer-col a {
    color: var(--yellow);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover {
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    opacity: 0.6;
    position: relative;
    z-index: 1;
}
.corazon-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: white;
}
.corazon-link img {
    height: 35px;
    filter: brightness(0) invert(1);
}
.footer-col .footer-logo img {
    height: 48px;
    width: auto;
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        text-align: center;
    }
    .footer-col .footer-logo img {
        margin: 0 auto;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* =====================================================================
   ACCESIBILIDAD
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

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

.carrusel-modal-imagen {
    text-align: center;
    margin-bottom: 20px;
}
.carrusel-modal-imagen img {
    max-width: 100%;
    max-height: 260px;
    border-radius: 24px 6px 24px 6px;
    object-fit: contain;
    background: rgba(255,255,255,0.3);
    padding: 12px;
    margin: 0 auto;
}

.carrusel-modal-precio {
    text-align: center;
    margin: 16px 0;
}
.carrusel-modal-precio .precio {
    font-size: 28px;
    font-weight: 800;
    color: var(--pink);
}

.carrusel-modal-cantidad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}
.carrusel-modal-cantidad label {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

#btnAgregarCarrusel {
    width: 100%;
}

/* =====================================================================
   PÁGINAS ESTÁTICAS
   ===================================================================== */

.page-section {
    padding: 64px 20px 80px;
}
.page-section.alt-bg {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}
.page-title {
    font-family: 'Agenda', serif;
    font-size: 3rem;
    color: var(--navy);
    text-align: center;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* ========== SERVICIOS ========== */
.page-servicios {
    background: linear-gradient(160deg, #f0f9f6 0%, #fff 80%);
}
.servicios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.servicio-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    padding: 20px 24px;
    border-radius: 60px;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--teal);
}
.servicio-icon {
    font-size: 3rem;
    flex-shrink: 0;
}
.servicio-info h3 {
    font-family: 'Agenda', serif;
    font-size: 1.2rem;
    color: var(--teal);
    margin-bottom: 4px;
}
.servicio-info p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 768px) {
    .servicios-grid { grid-template-columns: 1fr; }
    .servicio-card { border-radius: var(--radius-sm); }
}

/* ========== COBERTURA ========== */
.page-cobertura {
    background: #fff;
}
.cobertura-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto 40px;
}
.cobertura-item {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
    padding: 28px 20px;
    border-radius: 40px;
    text-align: center;
    border: 2px solid rgba(5,170,170,0.06);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cobertura-item:hover {
    transform: translateY(-6px);
    border-color: var(--teal);
    box-shadow: var(--shadow);
}
.cobertura-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 12px;
}
.cobertura-item h3 {
    font-family: 'Agenda', serif;
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 6px;
}
.cobertura-item p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}
.cobertura-mapa {
    max-width: 800px;
    margin: 0 auto;
}
.mapa-placeholder {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    border: 2px dashed rgba(5,170,170,0.12);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
@media (max-width: 768px) {
    .cobertura-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .cobertura-grid { grid-template-columns: 1fr; }
}

/* ========== EMPRESAS ========== */
.page-empresas {
    background: var(--bg);
}
.empresas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}
.empresa-card {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    padding: 32px 24px;
    border-radius: 40px;
    text-align: center;
    border: 2px solid rgba(5,170,170,0.06);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.empresa-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--teal);
}
.empresa-card.destacado {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.empresa-card.destacado h3,
.empresa-card.destacado p {
    color: #fff;
}
.empresa-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}
.empresa-card h3 {
    font-family: 'Agenda', serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--navy);
}
.empresa-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}
.btn-empresa {
    display: inline-block;
    margin-top: 16px;
    background: #fff;
    color: var(--teal);
    padding: 10px 28px;
    border-radius: 60px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-empresa:hover {
    background: var(--yellow);
    color: var(--navy);
    transform: scale(1.04);
}
@media (max-width: 768px) {
    .empresas-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .empresas-grid { grid-template-columns: 1fr; }
}

/* ========== INFORMACIÓN (ACCORDION) ========== */
.page-informacion {
    background: #fff;
}
.accordion {
    max-width: 850px;
    margin: 0 auto;
}
.accordion-item {
    border: 2px solid rgba(5,170,170,0.06);
    border-radius: 24px;
    margin-bottom: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.accordion-item:hover {
    border-color: var(--teal);
}
.accordion-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: left;
}
.accordion-header:hover {
    background: rgba(5,170,170,0.04);
}
.accordion-icon {
    font-size: 1.6rem;
}
.accordion-arrow {
    margin-left: auto;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    color: var(--muted);
}
.accordion-item[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
}
.accordion-body {
    padding: 0 24px 20px;
    display: none;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.accordion-item[aria-expanded="true"] .accordion-body {
    display: block;
    animation: accordionSlide 0.3s ease;
}
@keyframes accordionSlide {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}
.accordion-body ul {
    padding-left: 24px;
    margin: 6px 0;
}
.accordion-body ul li {
    margin-bottom: 4px;
}
.accordion-body a {
    color: var(--teal);
    text-decoration: underline;
    font-weight: 600;
}
.accordion-body a:hover {
    color: var(--pink);
}

@media (max-width: 600px) {
    .page-title {
        font-size: 2rem;
    }
    .page-subtitle {
        font-size: 1rem;
    }
    .accordion-header {
        font-size: 0.95rem;
        padding: 14px 18px;
    }
}

/* Contenedor del slide */
.carousel-slide {
    flex: 0 0 520px;          /* Ancho fijo en desktop */
    /*max-width: 560px;*/
    height: 240px;            /* Altura fija */
    border-radius: 24px 8px 24px 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    scroll-snap-align: center;
    transition: all 0.3s ease;
    background: #fff;
}

.carousel-slide:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Contenedor interno flexible */
.slide-content {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Columna de texto */
.slide-text {
    flex: 1 1 50%;           /* Ocupa la mitad */
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-color: #fbe96b; /* se puede cambiar dinámicamente */
    color: var(--navy);
    min-width: 0;
}

.slide-text h3 {
    font-family: 'Agenda', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.slide-text p {
    font-size: 0.9rem;
    margin: 4px 0 12px 0;
    opacity: 0.85;
    line-height: 1.4;
    flex: 1;
}

.slide-text .precio {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--pink);
    background: rgba(255,255,255,0.6);
    padding: 2px 14px;
    border-radius: 40px 4px 40px 4px;
    backdrop-filter: blur(4px);
}

/* Columna de imagen */
.slide-image {
    flex: 1 1 25%;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Cubre todo el espacio */
    display: block;
}

/* Ajustes para el carrusel en general */
.carousel-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 16px;
    scroll-behavior: smooth;
}
/* ===== Redes sociales en menú mobile (visible solo en móvil) ===== */
.nav-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 14px;
    border-top: 1px solid rgba(5,170,170,0.12);
}
.nav-social a {
    color: var(--navy);
    transition: all 0.2s ease;
    opacity: 0.6;
}
.nav-social a:hover {
    opacity: 1;
    transform: scale(1.12);
    color: var(--teal);
}
.nav-social a svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* Ocultar en desktop */
@media (min-width: 900px) {
    .nav-social {
        display: none !important;
    }
}

/* ===== Redes sociales en footer ===== */
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    justify-content: flex-start; /* Por defecto a la izquierda en desktop */
}

.footer-social a {
    color: rgba(255,255,255,0.7);
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* Centrar en mobile */
@media (max-width: 899px) {
    .footer-social {
        justify-content: center;
    }
}
@media (min-width: 900px) {
    .nav-menu {
        margin-left: auto;
    }
}



@media (max-width: 899px) {
    /* Fondo del menú mobile */
    .nav-menu {
        background: rgb(1 171 170); /* teal */
    }

    /* Enlaces del menú */
    .nav-menu .nav-link {
        color: #fff !important;
        font-weight: 600;
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu .nav-link:hover {
        color: #fbe96b !important; /* amarillo */
        background: rgba(255,255,255,0.08);
    }

    .nav-menu .nav-link.active {
        background: rgba(255,255,255,0.15);
        color: #fff !important;
        padding: 5px 12px;
        border-radius: 40px;
    }

    /* Separador y redes sociales */
    .nav-social {
        border-top-color: rgba(255,255,255,0.15);
        margin-top: 24px;
        padding-top: 20px;
    }

    .nav-social a {
        color: #fff;
        opacity: 0.8;
    }
    .nav-social a:hover {
        color: #fbe96b;
        opacity: 1;
    }

    /* Cerrar el menú con hamburguesa (color) */
    .hamburger span {
        background: var(--navy);
    }
    .hamburger.active span {
        background: #fff;
    }
}
.titulo-armar-pedido {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    padding: 0 0.5rem;
    text-align: center;
}

/* Estilos específicos para el exit-intent */
#modalExitIntent .modal-content {
    background: white !important;  /* Forzamos fondo blanco */
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    margin: auto;
}

/* Overlay con fondo oscuro y desenfoque opcional */
.modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Botón primario con efecto hover */
#btnExitIntentPedido:hover {
    transform: scale(1.03);
    background: #c7024f;
}

/* Botón de cerrar más visible */
#modalExitIntent .modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}
#modalExitIntent .modal-close:hover {
    color: #333;
}

