/* ==========================================================================
   CFV Sports - Pedidos Especiales (Por Encargo)
   Rediseno visual. Solo capa de presentacion: no altera ids, handlers
   ni flujos de la vista Home/Index.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    --enc-bg: #04070a;
    --enc-bg-alt: #070c11;
    --enc-surface: #0c1318;
    --enc-surface-2: #101a21;
    --enc-surface-3: #0a1015;
    --enc-line: rgba(35, 224, 247, 0.14);
    --enc-line-soft: rgba(255, 255, 255, 0.07);
    --enc-neon: #23e0f7;
    --enc-neon-dim: #0fb6d4;
    --enc-neon-deep: #0a7f97;
    --enc-text: #e9f6fa;
    --enc-text-muted: #8ea6b2;
    --enc-text-faint: #5d737f;
    --enc-danger: #ff5470;
    --enc-success: #25d366;
    --enc-radius: 14px;
    --enc-radius-sm: 10px;
    --enc-glow: 0 0 0 1px rgba(35, 224, 247, 0.25), 0 0 24px -6px rgba(35, 224, 247, 0.45);
    --enc-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
body {
    background-color: var(--enc-bg);
    color: var(--enc-text);
    background-image: radial-gradient(1200px 600px at 50% -10%, rgba(35, 224, 247, 0.08), transparent 70%);
    background-repeat: no-repeat;
}

.enc-page {
    position: relative;
}

::selection {
    background: rgba(35, 224, 247, 0.3);
    color: #fff;
}

/* Scrollbar */
* {
    scrollbar-color: var(--enc-neon-deep) var(--enc-bg-alt);
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--enc-bg-alt);
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--enc-neon-dim), var(--enc-neon-deep));
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   3. Navbar (restyle del markup existente en _Layout)
   -------------------------------------------------------------------------- */
header .navbar {
    background: rgba(4, 7, 10, 0.92) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--enc-line);
    margin-bottom: 0 !important;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

header .navbar-brand img {
    width: 62px !important;
    height: 62px !important;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(35, 224, 247, 0.55));
    transition: filter 0.25s ease;
}

header .navbar-brand:hover img {
    filter: drop-shadow(0 0 18px rgba(35, 224, 247, 0.9));
}

header .navbar .nav-link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--enc-text) !important;
    padding: 0.55rem 0.35rem;
    transition: color 0.2s ease;
    text-align: center;
}

header .navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--enc-neon);
    box-shadow: 0 0 10px var(--enc-neon);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

header .navbar .nav-link:hover {
    color: var(--enc-neon) !important;
}

header .navbar .nav-link:hover::after {
    width: 70%;
}

header .navbar-toggler {
    border-color: var(--enc-line);
}

/* navbar-expand-sm despliega los 9 enlaces desde 576px y se desbordaba
   horizontalmente entre 576 y 991px. Se permite que envuelvan. */
@media (min-width: 576px) and (max-width: 991.98px) {
    header .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.1rem;
    }

    header .navbar .nav-item.flex-fill {
        flex: 0 1 auto;
    }

    header .navbar .nav-link {
        font-size: 0.84rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.enc-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #04070a;
    border-bottom: 1px solid var(--enc-line);
}

.enc-hero__bg,
.enc-hero__lights,
.enc-hero__stripes,
.enc-hero__dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.enc-hero__bg {
    background: url("../img/encargo/estadio-nocturno.png") center 35% / cover no-repeat;
    opacity: 0.85;
}

.enc-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 7, 10, 0.96) 0%, rgba(4, 7, 10, 0.82) 42%, rgba(4, 7, 10, 0.25) 100%),
                linear-gradient(0deg, rgba(4, 7, 10, 0.95) 0%, transparent 55%);
}

.enc-hero__lights {
    background: url("../img/encargo/luces-estadio.png") center top / 120% auto no-repeat;
    opacity: 0.5;
    mix-blend-mode: screen;
}

.enc-hero__stripes {
    background: url("../img/encargo/franjas-neon.png") right -60px top -40px / 55% auto no-repeat;
    opacity: 0.22;
    mix-blend-mode: screen;
}

.enc-hero__dots {
    background: url("../img/encargo/cruces-neon.png") left bottom / 34% auto no-repeat;
    opacity: 0.35;
    mix-blend-mode: screen;
}

.enc-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 1rem;
    min-height: 420px;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.enc-hero__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--enc-neon);
    margin-bottom: 0.6rem;
    text-shadow: 0 0 14px rgba(35, 224, 247, 0.6);
}

.enc-hero__title {
    font-family: var(--enc-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    line-height: 0.92;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0 0 0.9rem;
    color: #fff;
}

.enc-hero__title em {
    display: block;
    font-style: italic;
    color: var(--enc-neon);
    text-shadow: 0 0 22px rgba(35, 224, 247, 0.55);
}

.enc-hero__lead {
    max-width: 34rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #cfe3ea;
    margin-bottom: 1.6rem;
}

.enc-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem 2.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.enc-hero__trust li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.3;
    color: #d6e8ee;
}

.enc-hero__trust i {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: var(--enc-neon);
    border: 1px solid var(--enc-line);
    border-radius: 12px;
    background: rgba(10, 20, 26, 0.75);
    box-shadow: inset 0 0 18px rgba(35, 224, 247, 0.12);
}

.enc-hero__trust strong {
    display: block;
    font-weight: 600;
    color: #fff;
}

/* Arte del hero */
.enc-hero__art {
    position: relative;
    align-self: stretch;
    min-height: 340px;
}

.enc-hero__jersey {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 400px;
    width: auto;
    filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.8));
    z-index: 2;
}

.enc-hero__logo {
    position: absolute;
    left: 50%;
    top: 14%;
    width: min(190px, 42%);
    transform: translateX(-58%);
    opacity: 0.95;
    z-index: 3;
    pointer-events: none;
}

.enc-hero__splash {
    position: absolute;
    right: -6%;
    bottom: 2%;
    width: 62%;
    opacity: 0.5;
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
}

.enc-hero__claim {
    position: absolute;
    right: 0;
    bottom: 14%;
    z-index: 4;
    font-family: var(--enc-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.7rem);
    line-height: 0.95;
    text-transform: uppercase;
    text-align: right;
    color: #fff;
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
}

.enc-hero__claim::after {
    content: "";
    display: block;
    height: 3px;
    margin-top: 0.4rem;
    background: linear-gradient(90deg, transparent, var(--enc-neon));
    box-shadow: 0 0 12px var(--enc-neon);
}

/* --------------------------------------------------------------------------
   5. Stepper
   -------------------------------------------------------------------------- */
.enc-steps-wrap {
    background: linear-gradient(180deg, var(--enc-bg-alt), var(--enc-bg));
    border-bottom: 1px solid var(--enc-line-soft);
    padding: 1.35rem 0;
}

.enc-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: enc-step;
}

.enc-steps li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 1rem;
    color: var(--enc-text-faint);
    transition: color 0.25s ease;
}

/* linea conectora */
.enc-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 3.1rem;
    right: 0.4rem;
    top: 50%;
    height: 1px;
    background: var(--enc-line-soft);
    z-index: 0;
}

.enc-steps__num {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--enc-text-faint);
    background: var(--enc-surface-3);
    border: 1px solid var(--enc-line-soft);
    transition: all 0.25s ease;
}

.enc-steps__text {
    position: relative;
    z-index: 1;
    background: var(--enc-bg-alt);
    padding-right: 0.6rem;
    min-width: 0;
}

.enc-steps__title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enc-steps__hint {
    display: block;
    font-size: 0.76rem;
    color: var(--enc-text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enc-steps li.is-active {
    color: var(--enc-neon);
}

.enc-steps li.is-active .enc-steps__num {
    color: #03181d;
    background: var(--enc-neon);
    border-color: var(--enc-neon);
    box-shadow: 0 0 18px rgba(35, 224, 247, 0.6);
}

.enc-steps li.is-active .enc-steps__hint {
    color: var(--enc-text-muted);
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.enc-main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.enc-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(16, 26, 33, 0.92), rgba(10, 16, 21, 0.96));
    border: 1px solid var(--enc-line);
    border-radius: var(--enc-radius);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.enc-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(35, 224, 247, 0.55), transparent);
}

.enc-card__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem 0.9rem;
    border-bottom: 1px solid var(--enc-line-soft);
}

.enc-card__icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 1.05rem;
    color: var(--enc-neon);
    background: rgba(35, 224, 247, 0.08);
    border: 1px solid var(--enc-line);
}

.enc-card__title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
}

.enc-card__sub {
    margin: 0.1rem 0 0;
    font-size: 0.82rem;
    color: var(--enc-text-muted);
}

.enc-card__body {
    padding: 1.25rem;
}

.enc-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0 1.25rem 1.25rem;
}

/* --------------------------------------------------------------------------
   8. Formularios
   -------------------------------------------------------------------------- */
.enc-main .form-group {
    margin-bottom: 0;
}

.enc-field {
    margin-bottom: 1rem;
}

.enc-main label,
.enc-main .control-label,
.enc-main .form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #cfe3ea;
    margin-bottom: 0.4rem;
}

.enc-req {
    color: var(--enc-danger);
    margin-left: 0.15rem;
}

.enc-main .form-control,
.enc-main select.form-control,
.enc-main textarea.form-control {
    width: 100%;
    background-color: var(--enc-surface-3);
    border: 1px solid #1d2b33;
    border-radius: var(--enc-radius-sm);
    color: var(--enc-text);
    padding: 0.62rem 0.85rem;
    font-size: 0.94rem;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.enc-main select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--enc-neon) 50%),
                      linear-gradient(135deg, var(--enc-neon) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.2rem;
}

.enc-main .form-control::placeholder {
    color: var(--enc-text-faint);
}

.enc-main .form-control:hover {
    border-color: #2a3f4a;
}

.enc-main .form-control:focus,
.enc-main select.form-control:focus {
    outline: none;
    background-color: #0c141a;
    border-color: var(--enc-neon-dim);
    box-shadow: 0 0 0 3px rgba(35, 224, 247, 0.14);
}

.enc-main select.form-control option {
    background: #0c141a;
    color: var(--enc-text);
}

/* input file nativo */
.enc-main input[type="file"].form-control {
    padding: 0.45rem 0.6rem;
    font-size: 0.86rem;
    color: var(--enc-text-muted);
    cursor: pointer;
}

.enc-main input[type="file"].form-control::file-selector-button {
    background: rgba(35, 224, 247, 0.1);
    border: 1px solid var(--enc-line);
    color: var(--enc-neon);
    border-radius: 8px;
    padding: 0.35rem 0.85rem;
    margin-right: 0.75rem;
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.enc-main input[type="file"].form-control::file-selector-button:hover {
    background: rgba(35, 224, 247, 0.2);
}

/* input number: mantener las flechas visibles sobre fondo oscuro */
.enc-main input[type="number"] {
    color-scheme: dark;
}

/* --------------------------------------------------------------------------
   9. Botones
   -------------------------------------------------------------------------- */
.enc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    padding: 0.62rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--enc-radius-sm);
    border: 1px solid var(--enc-line);
    background: var(--enc-surface-2);
    color: var(--enc-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.enc-btn:hover {
    border-color: var(--enc-neon-dim);
    color: var(--enc-neon);
    background: rgba(35, 224, 247, 0.07);
}

.enc-btn--neon {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #02171c;
    border: none;
    background: linear-gradient(100deg, var(--enc-neon), #5ceefd 55%, var(--enc-neon));
    box-shadow: 0 10px 26px -12px rgba(35, 224, 247, 0.85);
}

.enc-btn--neon:hover {
    color: #02171c;
    filter: brightness(1.08);
    box-shadow: 0 14px 32px -12px rgba(35, 224, 247, 1);
}

.enc-btn--danger:hover {
    border-color: var(--enc-danger);
    color: var(--enc-danger);
    background: rgba(255, 84, 112, 0.08);
}

/* El submit conserva sus clases originales btn btn-primary custom-radius */
.enc-main .btn-primary.custom-radius {
    border-top-left-radius: 0;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 0;
}

/* --------------------------------------------------------------------------
   10. Zona de imagenes (#drop-area, #image-preview)
   -------------------------------------------------------------------------- */
.enc-main #drop-area {
    width: 100% !important;
    height: auto !important;
    min-height: 168px;
    margin: 0 !important;
    padding: 1.6rem 1.25rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1.5px dashed rgba(35, 224, 247, 0.35) !important;
    border-radius: var(--enc-radius-sm);
    background: rgba(35, 224, 247, 0.03);
    cursor: pointer;
    transition: all 0.22s ease;
}

.enc-main #drop-area:hover {
    border-color: var(--enc-neon) !important;
    background: rgba(35, 224, 247, 0.07);
}

.enc-main #drop-area.active {
    border-color: var(--enc-neon) !important;
    background: rgba(35, 224, 247, 0.12);
    box-shadow: inset 0 0 30px rgba(35, 224, 247, 0.15);
}

.enc-drop__icon {
    font-size: 1.9rem;
    color: var(--enc-neon);
    margin-bottom: 0.35rem;
    text-shadow: 0 0 18px rgba(35, 224, 247, 0.5);
}

.enc-main #drop-area p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--enc-text);
}

.enc-main #drop-area .enc-drop__hint {
    font-size: 0.79rem;
    color: var(--enc-text-faint);
}

.enc-main #drop-area #file-count {
    font-size: 0.79rem;
    color: var(--enc-neon);
    font-weight: 600;
}

.enc-main #image-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.enc-main #image-preview:empty {
    display: none;
}

.enc-main #image-preview img {
    width: 74px !important;
    height: 74px !important;
    max-width: 74px;
    max-height: 74px;
    margin: 0 !important;
    object-fit: cover;
    border-radius: var(--enc-radius-sm);
    border: 1px solid var(--enc-line);
    background: var(--enc-surface-3);
    box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.9);
}

/* Miniatura con boton para quitar. El <img> queda dentro del envoltorio, asi
   que #image-preview img (que lee el submit) lo sigue encontrando. */
.enc-thumb {
    position: relative;
    display: inline-flex;
    line-height: 0;
}

.enc-thumb__x {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    min-width: 22px;
    height: 22px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--enc-danger);
    border: 1px solid rgba(4, 7, 10, 0.8);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.enc-thumb:hover .enc-thumb__x,
.enc-thumb__x:focus-visible {
    opacity: 1;
    transform: scale(1);
}

.enc-thumb__x:hover {
    filter: brightness(1.15);
}

/* En tactil no hay hover: el boton queda siempre visible. */
@media (hover: none) {
    .enc-thumb__x {
        opacity: 1;
        transform: scale(1);
    }
}

.enc-images-alt {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--enc-line-soft);
}

.enc-images-alt__note {
    font-size: 0.78rem;
    color: var(--enc-text-faint);
    margin: 0.45rem 0 0;
}

/* --------------------------------------------------------------------------
   11. Select personalizado de escudos (#LeagueLogo)
   -------------------------------------------------------------------------- */
.enc-main .custom-select {
    margin: 0 auto;
}

.enc-main .selected-option {
    background-color: var(--enc-surface-3);
    border: 1px solid #1d2b33;
    border-radius: var(--enc-radius-sm);
    color: var(--enc-text);
    padding: 0.55rem 0.85rem;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enc-main .selected-option:hover {
    border-color: var(--enc-neon-dim);
    box-shadow: 0 0 0 3px rgba(35, 224, 247, 0.12);
}

.enc-main .selected-option span {
    font-size: 0.94rem;
    color: var(--enc-text);
    margin-left: 0.6rem;
}

.enc-main .selected-option::after {
    color: var(--enc-neon);
}

.enc-main .selected-option img {
    max-width: 30px;
    max-height: 30px;
    border-radius: 50%;
    background: #0c141a;
}

.enc-main .options-list {
    background-color: #0c141a;
    border: 1px solid var(--enc-line);
    border-radius: var(--enc-radius-sm);
    color: var(--enc-text);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.95);
    max-height: 320px;
    overflow-y: auto;
}

.enc-main .options-list > div {
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    color: var(--enc-text-muted);
}

.enc-main .options-list .option {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--enc-line-soft);
    color: var(--enc-text);
}

.enc-main .options-list .option:last-child {
    border-bottom: none;
}

.enc-main .options-list .option img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: #101a21;
    padding: 3px;
    margin-right: 0.75rem;
}

.enc-main .options-list .option:hover {
    background-color: rgba(35, 224, 247, 0.1);
}

/* --------------------------------------------------------------------------
   12. Vista previa del articulo
   -------------------------------------------------------------------------- */
.enc-preview__grid {
    display: grid;
    grid-template-columns: minmax(0, 130px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.enc-preview__figure {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--enc-radius-sm);
    border: 1px solid var(--enc-line);
    background: radial-gradient(circle at 50% 30%, rgba(35, 224, 247, 0.1), transparent 65%), var(--enc-surface-3);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.enc-preview__figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
}

.enc-preview__badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #02171c;
    background: var(--enc-neon);
}

.enc-preview__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.enc-preview__desc {
    margin: 0.15rem 0 0.7rem;
    font-size: 0.82rem;
    color: var(--enc-text-muted);
    word-break: break-word;
}

.enc-preview__list {
    display: grid;
    gap: 0.32rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.enc-preview__list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.83rem;
    color: #d6e8ee;
}

.enc-preview__list li i {
    width: 1.05rem;
    text-align: center;
    color: var(--enc-neon);
    font-size: 0.8rem;
}

.enc-preview__list li span {
    color: var(--enc-text-muted);
}

.enc-preview__list li b {
    font-weight: 600;
    color: #fff;
}

.enc-preview__list li.is-empty {
    display: none;
}

.enc-preview__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--enc-radius-sm);
    background: rgba(35, 224, 247, 0.06);
    border: 1px solid var(--enc-line);
}

.enc-preview__total span {
    font-size: 0.88rem;
    color: var(--enc-text-muted);
}

.enc-preview__total strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--enc-neon);
    text-shadow: 0 0 16px rgba(35, 224, 247, 0.45);
    white-space: nowrap;
}

.enc-preview__escudo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 50%;
    background: #101a21;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   13. Tabla de elementos agregados
   -------------------------------------------------------------------------- */
.enc-added .table-responsive {
    border-radius: var(--enc-radius-sm);
    border: 1px solid var(--enc-line-soft);
}

.enc-added .table {
    margin: 0;
    background: transparent !important;
    color: var(--enc-text);
    border-color: var(--enc-line-soft);
    --bs-table-bg: transparent;
    --bs-table-color: var(--enc-text);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.025);
    --bs-table-striped-color: var(--enc-text);
    --bs-table-border-color: var(--enc-line-soft);
    --bs-table-accent-bg: transparent;
}

.enc-added .table > thead th {
    background: var(--enc-surface-2) !important;
    color: var(--enc-text-muted) !important;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--enc-line);
    white-space: nowrap;
    padding: 0.7rem 0.75rem;
}

.enc-added .table > tbody > tr > td {
    background: transparent;
    border-color: var(--enc-line-soft);
    padding: 0.7rem 0.75rem;
    font-size: 0.88rem;
    vertical-align: middle;
}

.enc-added .table > tbody > tr:hover > td {
    background: rgba(35, 224, 247, 0.045);
}

.enc-added .table img {
    max-width: 46px !important;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--enc-line-soft);
    margin-right: 4px;
}

.enc-empty {
    display: none;
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--enc-text-faint);
}

.enc-empty i {
    display: block;
    font-size: 1.8rem;
    color: #2a3f4a;
    margin-bottom: 0.6rem;
}

.enc-empty strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--enc-text-muted);
}

.enc-empty small {
    font-size: 0.8rem;
}

/* Se muestra solo cuando el tbody quedo vacio */
.enc-added:has(#item-list:empty) .enc-empty {
    display: block;
}

.enc-added:has(#item-list:empty) .table-responsive {
    display: none;
}

/* --------------------------------------------------------------------------
   14. Botones flotantes (carrito y WhatsApp)
   -------------------------------------------------------------------------- */
.floating-button {
    background: linear-gradient(140deg, var(--enc-neon), var(--enc-neon-dim)) !important;
    color: #02171c !important;
    box-shadow: 0 12px 30px -10px rgba(35, 224, 247, 0.75) !important;
    height: 62px !important;
    font-size: 1.4em !important;
    z-index: 9998;
}

.floating-button:hover {
    background: linear-gradient(140deg, #5ceefd, var(--enc-neon)) !important;
    transform: scale(1.06) !important;
}

.floating-button #cartTotal {
    color: #02171c;
    font-weight: 700;
}

.floating-button-w.whatsapp-button {
    bottom: 84px !important;
    background-color: var(--enc-success) !important;
    box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.8) !important;
    font-size: 1.35rem;
}

/* Los flotantes heredan z-index 9998/9999 y el modal de Bootstrap vive en
   1055: tapaban los botones del pie del modal, sobre todo en movil. */
body.modal-open .floating-button,
body.modal-open .floating-button-w {
    display: none !important;
}

/* --------------------------------------------------------------------------
   15. Modales (dark)
   -------------------------------------------------------------------------- */
.enc-modal .modal-content {
    background: linear-gradient(180deg, #101a21, #0a1015);
    border: 1px solid var(--enc-line);
    border-radius: var(--enc-radius);
    color: var(--enc-text);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 1);
}

.enc-modal .modal-header,
.enc-modal .modal-footer {
    border-color: var(--enc-line-soft);
}

.enc-modal .modal-title {
    font-weight: 700;
    color: #fff;
}

/* Las utilidades text-black del markup original se reinterpretan en oscuro */
.enc-modal .text-black,
.enc-modal .modal-title.text-black,
.enc-modal .form-label.text-black,
.enc-modal p.text-black {
    color: var(--enc-text) !important;
}

.enc-modal .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
    opacity: 0.6;
}

.enc-modal .btn-close:hover {
    opacity: 1;
}

.enc-modal .form-control,
.enc-modal select.form-control,
.enc-modal textarea.form-control {
    background-color: var(--enc-surface-3);
    border: 1px solid #1d2b33;
    border-radius: var(--enc-radius-sm);
    color: var(--enc-text);
}

.enc-modal .form-control:focus {
    background-color: #0c141a;
    border-color: var(--enc-neon-dim);
    box-shadow: 0 0 0 3px rgba(35, 224, 247, 0.14);
    color: var(--enc-text);
}

.enc-modal .form-control:disabled,
.enc-modal .form-control[disabled] {
    background-color: #080d11;
    color: var(--enc-text-faint);
}

.enc-modal input[type="file"].form-control {
    padding: 0.4rem 0.6rem;
    font-size: 0.84rem;
    color: var(--enc-text-muted);
    cursor: pointer;
}

.enc-modal input[type="file"].form-control::file-selector-button {
    background: rgba(35, 224, 247, 0.1);
    border: 1px solid var(--enc-line);
    color: var(--enc-neon);
    border-radius: 8px;
    padding: 0.3rem 0.8rem;
    margin-right: 0.7rem;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.enc-modal input[type="file"].form-control::file-selector-button:hover {
    background: rgba(35, 224, 247, 0.2);
}

.enc-modal select.form-control option {
    background: #0c141a;
    color: var(--enc-text);
}

.enc-modal .table {
    color: var(--enc-text);
    --bs-table-bg: transparent;
    --bs-table-color: var(--enc-text);
    --bs-table-border-color: var(--enc-line-soft);
}

.enc-modal .table > :not(caption) > * > * {
    background: transparent;
    border-color: var(--enc-line-soft);
    color: var(--enc-text);
}

.enc-modal .table img {
    border-radius: 8px;
    border: 1px solid var(--enc-line-soft);
}

.enc-modal .btn {
    border-radius: var(--enc-radius-sm);
    font-weight: 600;
}

.enc-modal .btn-primary,
.enc-modal .btn-success {
    color: #02171c;
    border: none;
    background: linear-gradient(100deg, var(--enc-neon), #5ceefd);
    box-shadow: 0 8px 22px -12px rgba(35, 224, 247, 0.9);
}

.enc-modal .btn-primary:hover,
.enc-modal .btn-success:hover {
    color: #02171c;
    filter: brightness(1.08);
}

.enc-modal .btn-outline-primary {
    color: var(--enc-neon);
    border: 1px solid var(--enc-line);
    background: rgba(35, 224, 247, 0.05);
    margin-bottom: 0.6rem;
}

.enc-modal .btn-outline-primary:hover {
    color: #02171c;
    background: var(--enc-neon);
    border-color: var(--enc-neon);
}

.enc-modal .btn-secondary {
    background: var(--enc-surface-2);
    border: 1px solid var(--enc-line-soft);
    color: var(--enc-text-muted);
}

.enc-modal .btn-secondary:hover {
    color: var(--enc-text);
    border-color: var(--enc-line);
}

.enc-modal .btn-danger {
    background: rgba(255, 84, 112, 0.12);
    border: 1px solid rgba(255, 84, 112, 0.4);
    color: var(--enc-danger);
}

.enc-modal .btn-danger:hover {
    background: var(--enc-danger);
    color: #fff;
}

.enc-modal .btn-delete {
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
}

.enc-modal a {
    color: var(--enc-neon);
}

/* --------------------------------------------------------------------------
   15b. Compra rapida (#enc-co-modal)
   -------------------------------------------------------------------------- */
.enc-co .modal-dialog {
    max-width: 760px;
}

.enc-co .modal-title i {
    color: var(--enc-neon);
    margin-right: 0.35rem;
}

.enc-co .modal-body {
    padding: 1.1rem 1.25rem;
}

.enc-co__paso {
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--enc-line-soft);
}

.enc-co__paso-titulo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--enc-text-muted);
}

.enc-co__n {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.72rem;
    color: #02171c;
    background: var(--enc-neon);
    letter-spacing: 0;
}

.enc-co__cuenta {
    margin-left: auto;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--enc-text-faint);
}

/* --- items --- */
.enc-co__items {
    display: grid;
    gap: 0.5rem;
}

.enc-co__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto auto 26px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--enc-line-soft);
    border-radius: var(--enc-radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.enc-co__item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--enc-surface-3);
}

.enc-co__item-texto {
    min-width: 0;
}

.enc-co__item-texto strong {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enc-co__item-texto span {
    display: block;
    font-size: 0.76rem;
    color: var(--enc-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enc-co__item-cant {
    font-size: 0.82rem;
    color: var(--enc-text-muted);
}

.enc-co__item-precio {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--enc-text);
    white-space: nowrap;
}

.enc-co__item-x {
    width: 26px;
    min-width: 26px;
    height: 26px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
    color: var(--enc-text-faint);
    background: transparent;
    border: 1px solid var(--enc-line-soft);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.18s ease;
}

.enc-co__item-x:hover {
    color: #fff;
    background: var(--enc-danger);
    border-color: var(--enc-danger);
}

.enc-co__vacio {
    margin: 0;
    padding: 1.2rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--enc-text-faint);
}

/* --- datos del cliente --- */
.enc-co__datos {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.85rem;
    border: 1px solid var(--enc-line);
    border-radius: var(--enc-radius-sm);
    background: rgba(35, 224, 247, 0.04);
}

.enc-co__datos-texto {
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.enc-co__datos-texto strong {
    display: block;
    font-size: 0.92rem;
    color: #fff;
}

.enc-co__datos-texto span {
    display: block;
    color: var(--enc-text-muted);
    word-break: break-word;
}

.enc-co__editar {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.enc-co__aviso {
    padding: 0.9rem;
    margin-bottom: 0.85rem;
    text-align: center;
    border: 1px dashed rgba(35, 224, 247, 0.35);
    border-radius: var(--enc-radius-sm);
    background: rgba(35, 224, 247, 0.03);
}

.enc-co__aviso p {
    margin: 0 0 0.7rem;
    font-size: 0.86rem;
    color: var(--enc-text-muted);
}

.enc-co__aviso .enc-btn {
    width: auto;
}

/* recuperar datos por WhatsApp */
.enc-co__buscar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.enc-co__buscar .form-control {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    letter-spacing: 0.08em;
}

.enc-co__buscar .enc-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.enc-co__buscar-msg {
    margin: 0 0 0.6rem;
    font-size: 0.82rem;
    color: #ffd9e0;
}

.enc-co__buscar-msg.es-ok {
    color: #b9f5d0;
}

.enc-co__separador {
    position: relative;
    margin: 0.9rem 0 0.7rem;
    font-size: 0.76rem;
    color: var(--enc-text-faint);
}

.enc-co__separador::before,
.enc-co__separador::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18%;
    height: 1px;
    background: var(--enc-line-soft);
}

.enc-co__separador::before { left: 0; }
.enc-co__separador::after { right: 0; }

@media (max-width: 575.98px) {
    .enc-co__buscar {
        flex-direction: column;
    }

    .enc-co__buscar .enc-btn {
        width: 100%;
    }
}

/* --- opciones (envio y pago) --- */
.enc-co__opciones {
    display: grid;
    gap: 0.5rem;
}

.enc-co__opciones--pago {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0.85rem;
}

.enc-co__opcion {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--enc-line-soft);
    border-radius: var(--enc-radius-sm);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.18s ease;
}

.enc-co__opcion:hover {
    border-color: var(--enc-neon-dim);
}

.enc-co__opcion input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--enc-neon);
    cursor: pointer;
}

.enc-co__opcion:has(input:checked) {
    border-color: var(--enc-neon);
    background: rgba(35, 224, 247, 0.08);
    box-shadow: inset 0 0 20px rgba(35, 224, 247, 0.08);
}

.enc-co__opcion--no {
    opacity: 0.45;
    cursor: not-allowed;
}

.enc-co__opcion--no:hover {
    border-color: var(--enc-line-soft);
}

.enc-co__opcion-cuerpo {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.enc-co__opciones--pago .enc-co__opcion-cuerpo {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.enc-co__opciones--pago .enc-co__opcion-cuerpo i {
    color: var(--enc-neon);
}

.enc-co__opcion-nombre {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.enc-co__opcion-nota {
    font-size: 0.76rem;
    color: var(--enc-text-muted);
}

.enc-co__opcion-precio {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--enc-neon);
    white-space: nowrap;
}

/* --- campos --- */
.enc-co__campos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.enc-co__campo label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cfe3ea;
}

/* --- totales --- */
.enc-co__totales {
    padding: 0.85rem 1rem;
    border: 1px solid var(--enc-line);
    border-radius: var(--enc-radius-sm);
    background: rgba(35, 224, 247, 0.04);
}

.enc-co__linea {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.86rem;
    padding: 0.15rem 0;
    color: var(--enc-text-muted);
}

.enc-co__linea b {
    color: var(--enc-text);
    white-space: nowrap;
}

.enc-co__linea--total {
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--enc-line-soft);
    font-size: 0.95rem;
    color: #fff;
}

.enc-co__linea--total b {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.enc-co__linea--abono b {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--enc-neon);
    text-shadow: 0 0 14px rgba(35, 224, 247, 0.4);
}

.enc-co__error {
    margin: 0.9rem 0 0;
    padding: 0.7rem 0.85rem;
    font-size: 0.84rem;
    color: #ffd9e0;
    border: 1px solid rgba(255, 84, 112, 0.45);
    border-radius: var(--enc-radius-sm);
    background: rgba(255, 84, 112, 0.12);
}

/* --- pie con las dos salidas --- */
.enc-co__pie {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.enc-co__pie .enc-btn {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 0.7rem 0.95rem;
}

.enc-co__pie .enc-btn > i {
    font-size: 1.25rem;
    flex: 0 0 auto;
}

.enc-co__pie .enc-btn b {
    display: block;
    font-size: 0.92rem;
    line-height: 1.2;
}

.enc-co__pie .enc-btn small {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.8;
    line-height: 1.25;
}

.enc-co__wa {
    border-color: rgba(37, 211, 102, 0.5);
    color: #d8ffe8;
    background: rgba(37, 211, 102, 0.12);
}

.enc-co__wa:hover:not(:disabled) {
    color: #fff;
    border-color: var(--enc-success);
    background: rgba(37, 211, 102, 0.25);
}

.enc-co__wa i {
    color: var(--enc-success);
}

.enc-co__pie .enc-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

@media (max-width: 575.98px) {
    .enc-co__pie,
    .enc-co__campos,
    .enc-co__opciones--pago {
        grid-template-columns: 1fr;
    }

    .enc-co__item {
        grid-template-columns: 40px minmax(0, 1fr) auto 26px;
    }

    .enc-co__item-cant {
        display: none;
    }

    .enc-co__datos {
        flex-wrap: wrap;
    }
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
footer.footer {
    border-top: 1px solid var(--enc-line) !important;
    background: var(--enc-bg-alt);
    padding: 1.1rem 0;
    font-size: 0.85rem;
}

footer.footer a {
    color: var(--enc-neon);
    text-decoration: none;
}

footer.footer a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .enc-hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
        text-align: left;
    }

    .enc-hero__art {
        order: -1;
        min-height: 260px;
    }

    .enc-hero__jersey {
        right: 50%;
        transform: translate(50%, -50%);
        max-height: 260px;
    }

    .enc-hero__logo {
        width: 140px;
        top: 8%;
        transform: translateX(-50%);
    }

    .enc-hero__claim {
        display: none;
    }

    .enc-hero__bg::after {
        background: linear-gradient(0deg, rgba(4, 7, 10, 0.97) 10%, rgba(4, 7, 10, 0.55) 100%);
    }

    .enc-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem 0.5rem;
    }

    .enc-steps li:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .enc-hero__trust {
        gap: 0.9rem;
    }

    .enc-hero__trust li {
        flex: 1 1 100%;
    }

    .enc-preview__grid {
        grid-template-columns: 1fr;
    }

    .enc-preview__figure {
        max-width: 160px;
    }

    .enc-card__body,
    .enc-card__head,
    .enc-card__actions {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .enc-btn {
        flex: 1 1 100%;
    }
}

/* --------------------------------------------------------------------------
   18. Accesibilidad / preferencias
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

.enc-main .form-control:focus-visible,
.enc-btn:focus-visible,
.enc-main .selected-option:focus-visible {
    outline: 2px solid var(--enc-neon);
    outline-offset: 2px;
}

/* ==========================================================================
   19. Legacy: reglas heredadas de la vista original.
   Se conservan tal cual para no romper nada que dependa de ellas.
   ========================================================================== */
ul, li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.arrow {
    display: inline-block;
    transition: transform 0.3s;
    margin-left: -20px;
    color: #444;
    font-weight: 900;
    font-size: 0.9em;
    margin-right: 2em;
    margin-top: 0.1em;
    background-color: transparent;
}

.arrow-2 {
    display: inline-block;
    transition: transform 0.3s;
    margin-left: -20px;
    color: #444;
    font-weight: 900;
    font-size: 0.9em;
    margin-right: 1.7em;
    margin-top: 0.1em;
}

.custom-dialog-container {
    max-width: 400px;
    width: 100%;
}

.alertify.customDialog {
    max-width: 600px;
    width: 100%;
}

.alertify.customDialog #custom-input-container {
    padding: 15px;
}

.arrow + ul {
    list-style-type: none;
}

.open {
    transform: rotate(90deg);
}

.closed {
    transform: rotate(0deg);
}

.models-list {
    list-style-type: none;
    padding-top: 0.1em;
}

.arrow + ul,
.models-list,
.models-list li {
    list-style-type: none;
}

.models-list a {
    text-decoration: none;
    color: inherit;
    font-size: 0.9em;
    margin-left: 3em;
    padding-top: 2em;
}

/* Regla global heredada: los botones de los modales dependen de ella para
   ocupar todo el ancho. Se conserva; .enc-btn la neutraliza por especificidad. */
button {
    width: 100%;
}

.floating-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.75em;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    width: auto;
    height: 75px;
    --mdb-btn-border-radius: 10rem;
    border-radius: var(--mdb-btn-border-radius);
}

.floating-button:hover #cartTotal {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
}

.cart-total {
    font-size: 0.8em;
}

.btn-rounded {
    --mdb-btn-border-radius: 10rem;
    border-radius: var(--mdb-btn-border-radius);
}

.btn-primary.custom-radius {
    border-top-left-radius: 0;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 0;
}

.btn-success.custom-radius {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 20px;
}

.floating-button-w {
    position: fixed;
    bottom: 90px;
    right: 22px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.floating-button-w:hover {
    opacity: 0.8;
}

.whatsapp-button {
    background-color: #25d366;
    color: #fff;
    border: none;
}

.modal-dialog.modal-md {
    max-width: 500px;
}

.modal-dialog-wide {
    max-width: 50%;
}

.table th, .table td {
    padding: 0.5rem;
    vertical-align: middle;
}

.btn-delete {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 30%;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table img {
    max-width: 50px;
    height: auto;
}

.carousel-caption-custom {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carousel-item:hover .carousel-caption-custom {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Buscar un cliente ya registrado (modal de registro)

   Reusa .enc-co__aviso, .enc-co__campos y .enc-co__campo del checkout, asi
   que aca solo viven el boton y el mensaje de respuesta.
   -------------------------------------------------------------------------- */
.enc-busca {
    text-align: left;
}

.enc-busca__btn {
    margin-top: 0.75rem;
}

.enc-busca__msg {
    margin: 0.75rem 0 0;
    padding: 0.6rem 0.75rem;
    font-size: 0.83rem;
    color: var(--enc-text-muted);
    border: 1px solid var(--enc-line);
    border-radius: var(--enc-radius-sm);
    background: var(--enc-surface-3);
}

.enc-busca__msg--ok {
    color: #d6fbe4;
    border-color: rgba(37, 211, 102, 0.45);
    background: rgba(37, 211, 102, 0.12);
}
