/* ============================================
   SURTE PERÚ E.I.R.L. — Estilos principales
   ============================================ */

:root {
    --blue: #0a2d6e;
    --blue-dark: #061d47;
    --green: #6ab344;
    --green-light: #8fd465;
    --white: #ffffff;
    --gray-50: #f7f9fc;
    --gray-100: #eef2f7;
    --gray-200: #dde4ee;
    --gray-600: #5a6478;
    --gray-800: #2d3748;
    --shadow: 0 4px 24px rgba(10, 45, 110, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 45, 110, 0.12);
    --shadow-card: 0 8px 32px rgba(10, 45, 110, 0.1);
    --shadow-card-hover: 0 20px 50px rgba(106, 179, 68, 0.2), 0 8px 28px rgba(10, 45, 110, 0.12);
    --gradient-brand: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    --gradient-soft: linear-gradient(160deg, #f8fbf5 0%, var(--white) 50%, #f4f8fd 100%);
    --radius: 10px;
    --transition: 0.25s ease;
    --font: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 1240px;
    /*
     * Offset al hacer clic en el menú.
     * Las secciones ya tienen padding-top: 4rem; este valor solo cubre el resto
     * para que el título quede bajo el header sticky sin mostrar el bloque anterior.
     * (No combinar con scroll-margin: se suman y dejan un hueco con el hero.)
     */
    --header-offset: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

body {
    font-family: var(--font);
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
}

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

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--green);
}

ul {
    list-style: none;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

/* ---- Header / Nav ---- */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.logo-icon-img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-name .surte,
.logo-name .peru,
.logo-name .eirl {
    transition: color 0.3s ease;
}

.logo-name .surte,
.logo-name .eirl {
    color: var(--blue);
}

.logo-name .peru {
    color: var(--green);
}

.logo:hover .logo-name .surte,
.logo:hover .logo-name .eirl {
    color: var(--green);
}

.logo:hover .logo-name .peru {
    color: var(--blue);
}

.logo-tagline {
    font-size: 0.72rem;
    color: var(--gray-600);
    max-width: 220px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--blue);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    color: var(--blue);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

.main-nav ul {
    display: flex;
    gap: 0.25rem;
}

.main-nav a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue);
    border-radius: 8px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover {
    background: rgba(106, 179, 68, 0.12);
    color: var(--green);
    transform: translateY(-1px);
}

/* ---- Hero ---- */
.hero {
    --hero-carousel-max-w: min(100%, 720px);
    --hero-image-pos: 50% 50%;

    background: var(--white);
    padding: 2.75rem 0 2.75rem;
    overflow: hidden;
}

.hero .container {
    width: min(100% - 2rem, 1280px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.35fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: center;
}

.hero-content {
    max-width: 500px;
    padding-right: 0.25rem;
    padding-top: 0.25rem;
}

.hero-content h1 {
    font-size: clamp(1.9rem, 3.1vw, 2.65rem);
    font-weight: 800;
    color: var(--blue);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

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

.hero-content p {
    font-size: clamp(0.92rem, 1.35vw, 1.02rem);
    color: #5c6578;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 460px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-actions .btn {
    padding: 0.72rem 1.45rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-actions .btn-primary {
    background: var(--green);
    box-shadow: none;
}

.hero-actions .btn-outline {
    background: var(--white);
    border: 2px solid var(--blue);
    color: var(--blue);
}

/* Carrusel — columna derecha del hero: alto natural de la imagen (sin recortar arriba) */
.hero-image {
    position: relative;
    width: var(--hero-carousel-max-w);
    max-width: 720px;
    height: auto;
    margin-left: auto;
    margin-right: 0;
    overflow: hidden;
    background: #f4f7fb;
    line-height: 0;
    border-radius: 12px;
    box-shadow: 0 10px 36px rgba(10, 45, 110, 0.1);
    border: 1px solid rgba(10, 45, 110, 0.08);
    isolation: isolate;
}

.hero-image > img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-carousel {
    position: relative;
    width: 100%;
    z-index: 1;
}

.hero-carousel-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-carousel-track {
    display: flex;
    width: max-content;
    align-items: flex-start;
    transition: transform 1.2s cubic-bezier(0.45, 0, 0.25, 1);
    will-change: transform;
}

.hero-carousel-slide {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
    overflow: hidden;
    background: #f4f7fb;
    line-height: 0;
}

.hero-carousel-slide img {
    position: static;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    display: block;
    pointer-events: none;
    user-select: none;
}

.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid rgba(10, 45, 110, 0.12);
    border-radius: 50%;
    background: rgba(10, 45, 110, 0.82);
    color: var(--white);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(10, 45, 110, 0.28);
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.12rem;
}

.hero-carousel-btn:hover {
    background: var(--blue);
    transform: translateY(-50%) scale(1.06);
}

.hero-carousel-btn--prev {
    left: 0.75rem;
}

.hero-carousel-btn--next {
    right: 0.75rem;
}

.hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(10, 45, 110, 0.78);
    box-shadow: 0 4px 16px rgba(10, 45, 110, 0.22);
}

.hero-carousel-dot {
    width: 0.62rem;
    height: 0.62rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-carousel-dot.is-active {
    background: var(--green);
    border-color: var(--green);
    transform: scale(1.15);
}

.hero-carousel-dot:hover {
    background: var(--white);
    border-color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel-track {
        transition: none;
    }
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.btn-primary {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(106, 179, 68, 0.3);
}

.btn-primary:hover {
    background: var(--green-light);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(106, 179, 68, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    box-shadow: 0 2px 8px rgba(10, 45, 110, 0.06);
}

.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(10, 45, 110, 0.2);
}

/* Admin: vista previa banner — imagen completa, sin decoración */
.dash-hero-preview-wrap {
    padding: 0.5rem 0 1rem;
}

.admin-hero-preview-card {
    max-width: 720px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(10, 45, 110, 0.07);
}

.admin-hero-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 920 / 520;
    border-radius: 12px;
    overflow: hidden;
    background:
        linear-gradient(145deg, #f6f8fb 0%, #eef2f8 100%),
        repeating-conic-gradient(rgba(10, 45, 110, 0.04) 0% 25%, transparent 0% 50%) 50% / 16px 16px;
    border: 1px solid rgba(10, 45, 110, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-hero-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.admin-hero-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-hero-preview-empty-icon {
    font-size: 2.5rem;
    opacity: 0.6;
}

.admin-hero-preview-empty small {
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--gray-600);
    opacity: 0.85;
}

.admin-hero-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--gray-200);
}

.admin-hero-preview-dims {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--blue);
    background: rgba(10, 45, 110, 0.06);
    border-radius: 999px;
}

.admin-hero-preview-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--green);
    transition: color var(--transition);
}

.admin-hero-preview-link:hover {
    color: var(--blue);
}

.dash-panel--contenido .dash-hero-upload {
    margin: 1.25rem 1.75rem 0;
    max-width: none;
    padding: 1.25rem 1.5rem;
}

.dash-panel--contenido .dash-hero-upload .dash-logo-desc {
    max-width: none;
    font-size: 0.84rem;
    margin-bottom: 1rem;
    line-height: 1.55;
    color: var(--gray-600);
}

.dash-panel--contenido .dash-hero-upload .dash-form-section-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.dash-hero-carousel-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 0.85rem;
    width: 100%;
    margin-bottom: 1rem;
}

.dash-hero-carousel-item {
    min-width: 0;
    height: 100%;
}

.dash-hero-carousel-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    height: 100%;
    padding: 0.65rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(10, 45, 110, 0.05);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.dash-hero-carousel-row:hover {
    border-color: rgba(106, 179, 68, 0.35);
    box-shadow: 0 6px 18px rgba(10, 45, 110, 0.1);
    transform: translateY(-2px);
}

.dash-hero-carousel-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-width: 0;
    max-width: none;
    max-height: none;
    aspect-ratio: 920 / 520;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(10, 45, 110, 0.1);
    background: var(--gray-100);
}

.dash-hero-carousel-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0;
    object-fit: cover;
    object-position: center;
    display: block;
}

.dash-hero-carousel-thumb-badge {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(10, 45, 110, 0.88);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash-hero-carousel-info {
    flex: 1;
    min-width: 0;
    padding-right: 0.25rem;
}

.dash-hero-carousel-info-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.dash-hero-carousel-info-top strong {
    font-size: 0.78rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-hero-carousel-dims {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--blue);
    background: rgba(10, 45, 110, 0.06);
    border-radius: 999px;
}

.dash-hero-carousel-alt {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-hero-carousel-view-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--green);
}

.dash-hero-carousel-view-link:hover {
    color: var(--blue);
}

.dash-hero-carousel-delete {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    margin: 0;
    z-index: 2;
}

.dash-hero-carousel-delete-btn {
    box-shadow: 0 2px 8px rgba(10, 45, 110, 0.08);
}

.dash-hero-carousel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    border: 1px dashed var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    color: var(--gray-600);
    text-align: center;
}

.dash-hero-carousel-empty-icon {
    font-size: 1.35rem;
}

.dash-hero-carousel-empty p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue);
}

.dash-hero-carousel-empty small {
    font-size: 0.76rem;
}

.dash-hero-carousel-add {
    margin-top: 0.35rem;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
}

.dash-hero-carousel-add-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.4fr);
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.dash-hero-carousel-add-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.dash-hero-carousel-add-hint {
    margin: 0;
    font-size: 0.76rem;
}

.dash-hero-carousel-public-link {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    text-align: right;
}

.dash-hero-carousel-public-link a {
    font-weight: 600;
    color: var(--green);
}

.dash-hero-carousel-public-link a:hover {
    color: var(--blue);
}

.dash-hero-upload {
    margin: 1.25rem 1.75rem 0;
}

@media (max-width: 768px) {
    .dash-panel--contenido .dash-hero-upload {
        margin-inline: 1rem;
        padding: 1rem;
    }

    .dash-hero-carousel-list {
        grid-template-columns: 1fr;
    }

    .dash-hero-carousel-delete {
        position: static;
        align-self: flex-end;
        margin-top: 0.25rem;
    }

    .dash-hero-carousel-delete-btn {
        width: auto;
    }

    .dash-hero-carousel-add-grid {
        grid-template-columns: 1fr;
    }

    .dash-hero-carousel-public-link {
        text-align: left;
    }
}

.dash-hero-preview-label {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        max-width: none;
        text-align: center;
    }

    .hero-content p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        width: min(100%, 680px);
        max-width: 100%;
        height: auto;
        margin-inline: auto;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 2.5rem;
    }
}

/* ---- Section common ---- */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.section-header h2 {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
    border-radius: 999px;
}

.section-header .tagline {
    color: var(--green);
    font-style: italic;
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ---- Nosotros ---- */
.nosotros {
    background: var(--white);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.nosotros-text p {
    margin-bottom: 1.25rem;
    color: var(--gray-600);
}

.product-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.check-icon {
    color: var(--green);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-box {
    background: var(--gradient-brand);
    color: var(--white);
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(106, 179, 68, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.highlight-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(106, 179, 68, 0.42);
}

.highlight-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.highlight-box p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* ---- Servicios ---- */
.servicios {
    position: relative;
    background: var(--gradient-soft);
    overflow: hidden;
}

.servicios-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 20%, rgba(106, 179, 68, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 100% 80%, rgba(10, 45, 110, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.servicios .container {
    position: relative;
    z-index: 1;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.service-card .product-card-body h3 {
    font-size: 0.92rem;
}

.servicios-extras {
    padding-top: 0.25rem;
}

.servicios-category-head {
    margin-bottom: 1.25rem;
}

.servicios-category-head h3 {
    color: var(--blue);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    margin-bottom: 0.35rem;
}

.servicios-category-head p {
    color: var(--gray-600);
    max-width: 52rem;
}

.servicios-category-head--rental {
    margin-top: clamp(2rem, 4vw, 2.75rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(10, 45, 110, 0.1);
}

.servicios-category-cta {
    display: flex;
    justify-content: center;
    margin: 0 0 clamp(1.5rem, 3vw, 2rem);
}

.servicios-grid--rental {
    margin-bottom: 1.5rem;
}

.servicios-express-card {
    background: linear-gradient(135deg, rgba(10, 45, 110, 0.96), rgba(20, 72, 140, 0.92));
    color: var(--white);
    border-radius: 18px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: var(--shadow-card);
}

.servicios-express-badge {
    display: inline-block;
    background: rgba(255, 193, 7, 0.95);
    color: #5c3b00;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.servicios-express-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.servicios-express-card p {
    opacity: 0.92;
    margin-bottom: 1rem;
    max-width: 42rem;
}

.servicios-express-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.servicios-express-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
}

.servicios-express-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.service-page-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--gray-50);
    border: 1px solid rgba(10, 45, 110, 0.1);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.service-page-banner--express {
    border-color: rgba(220, 53, 69, 0.25);
    background: #fff5f5;
}

.service-page-banner p {
    margin: 0.2rem 0 0;
    color: var(--gray-600);
    font-size: 0.92rem;
}

.quote-header--express .service-express-pill {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.btn-express-submit {
    background: #dc3545;
    border-color: #dc3545;
}

.btn-express-submit:hover {
    background: #bb2d3b;
    border-color: #bb2d3b;
}

.quote-success-card--express .quote-success-icon {
    background: #dc3545;
}

.servicios-extras .dual-card {
    background: var(--white);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.reveal-delay-lg {
    transition-delay: 0.2s;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---- Productos ---- */
.productos {
    background: var(--gradient-soft);
    position: relative;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.productos-grid,
.servicios-grid {
    perspective: 1400px;
}

.product-card {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(10, 45, 110, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transform: translateY(0) scale(1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s ease;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--green) 50%, var(--blue) 100%);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.018) rotateX(1.25deg);
    border-color: rgba(106, 179, 68, 0.35);
    box-shadow:
        0 28px 56px -14px rgba(10, 45, 110, 0.2),
        0 16px 32px -10px rgba(106, 179, 68, 0.24),
        0 0 0 1px rgba(106, 179, 68, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.product-card:hover::before {
    transform: scaleX(1);
    animation: cardAccentShimmer 2.4s ease-in-out infinite;
}

.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: linear-gradient(145deg, #f4f7fb 0%, #eef2f8 100%);
    overflow: hidden;
}

.product-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 62%
    );
    transform: translateX(-130%) skewX(-16deg);
    transition: transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    pointer-events: none;
}

.product-card:hover .product-card-image::before {
    transform: translateX(130%) skewX(-16deg);
}

.product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(10, 45, 110, 0.22) 0%, transparent 52%),
        linear-gradient(120deg, rgba(106, 179, 68, 0.08) 0%, transparent 42%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover .product-card-image::after {
    opacity: 1;
}

.product-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1) translateY(0);
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    /* Evita capa GPU que a veces suaviza textos en la imagen */
    backface-visibility: hidden;
}

.product-card:hover .product-card-image img {
    transform: scale(1.1) translateY(-2%);
}

/* Servicios: nitidez — sin transform/GPU (borran textos del gráfico) */
.service-card.product-card {
    transform: none !important;
    transform-style: flat;
    backface-visibility: visible;
}

.service-card.product-card:hover {
    transform: none !important;
    box-shadow:
        0 20px 40px -12px rgba(10, 45, 110, 0.18),
        0 12px 24px -8px rgba(106, 179, 68, 0.2);
}

.service-card.reveal,
.service-card.reveal.is-visible {
    transform: none !important;
}

/* Área de imagen a ancho completo de la tarjeta (3:2), sin recorte */
.service-card .product-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    margin-inline: 0;
    background: #f4f7fb;
}

.service-card .product-card-image::before,
.service-card .product-card-image::after {
    display: none;
}

.service-card .product-card-image img {
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    transform: none !important;
}

.service-card:hover .product-card-image img {
    transform: none !important;
}

.product-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(145deg, var(--gray-100), var(--gray-200));
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card-placeholder {
    transform: scale(1.06);
}

.product-card-body {
    position: relative;
    padding: 1.35rem 1.35rem 1.5rem;
    transition: background 0.45s ease;
}

.product-card:hover .product-card-body {
    background: linear-gradient(180deg, rgba(106, 179, 68, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.product-card-body h3 {
    color: var(--blue);
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
    transition: color 0.35s ease, letter-spacing 0.35s ease, transform 0.35s ease;
}

.product-card:hover .product-card-body h3 {
    color: var(--green);
    letter-spacing: 0.055em;
    transform: translateX(2px);
}

.product-card-body p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
    line-height: 1.65;
    transition: color 0.35s ease, transform 0.35s ease;
}

.product-card:hover .product-card-body p {
    color: var(--gray-800);
    transform: translateX(2px);
}

.product-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
    list-style: none;
    padding: 0;
}

.product-brands li {
    font-size: 0.78rem;
    color: var(--blue);
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    background: rgba(106, 179, 68, 0.1);
    border: 1px solid rgba(106, 179, 68, 0.28);
    border-radius: 999px;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1),
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
    cursor: default;
}

.product-brands li::before {
    display: none;
}

.product-card:hover .product-brands li {
    animation: brandPop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
}

.product-card:hover .product-brands li:nth-child(1) { animation-delay: 0.05s; }
.product-card:hover .product-brands li:nth-child(2) { animation-delay: 0.1s; }
.product-card:hover .product-brands li:nth-child(3) { animation-delay: 0.15s; }
.product-card:hover .product-brands li:nth-child(4) { animation-delay: 0.2s; }
.product-card:hover .product-brands li:nth-child(5) { animation-delay: 0.25s; }

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.product-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--green);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.2rem;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.35s ease,
        gap 0.35s ease;
}

.product-card-cta::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green) 0%, var(--blue) 100%);
    transform: scaleX(0.25);
    transform-origin: left;
    opacity: 0.55;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.product-card-link:hover .product-card-cta {
    transform: translateX(6px);
    color: var(--blue);
    gap: 0.55rem;
}

.product-card-link:hover .product-card-cta::after {
    transform: scaleX(1);
    opacity: 1;
}

.product-brands li:hover {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(106, 179, 68, 0.35);
}

@keyframes brandPop {
    from {
        opacity: 0.55;
        transform: translateY(8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardAccentShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .productos-grid,
    .servicios-grid {
        perspective: none;
    }

    .product-card,
    .product-card-image img,
    .product-card-image::before,
    .product-card-body h3,
    .product-card-body p,
    .product-card-cta,
    .product-card-placeholder {
        transition: none;
    }

    .product-card:hover {
        transform: none;
    }

    .product-card:hover::before {
        animation: none;
    }

    .product-card:hover .product-card-image img {
        transform: none;
    }

    .product-card:hover .product-brands li {
        animation: none;
    }
}

/* ---- Alquiler & Mantenimiento ---- */
.dual-section {
    background: var(--gray-50);
}

.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.dual-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.25rem;
    border: 1px solid rgba(10, 45, 110, 0.1);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
        box-shadow 0.4s ease,
        border-color 0.35s ease;
}

.dual-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(106, 179, 68, 0.35);
}

.dual-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.dual-card-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: var(--blue);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dual-card-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.dual-card-head-text {
    min-width: 0;
}

.dual-card h3 {
    color: var(--blue);
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.dual-card .tagline {
    color: var(--green);
    font-style: italic;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.dual-card-items {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dual-card-item {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
}

.dual-card-item + .dual-card-item {
    border-top: 1px solid rgba(10, 45, 110, 0.1);
}

.dual-card-item-media {
    width: 7.5rem;
    height: 5.5rem;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, #f8fafc, #eef2f8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dual-card-item-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.dual-card-item-placeholder {
    font-size: 2rem;
}

.dual-card-item-text {
    color: var(--blue);
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 600;
    margin: 0;
}

.dual-card-brands {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.dual-card-brands li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.dual-card-brands .check-icon {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--green);
    flex-shrink: 0;
}

.dual-card-photo {
    margin-top: auto;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #f4f7fb, #eef2f8);
    min-height: 11rem;
}

.dual-card-photo img {
    width: 100%;
    height: 100%;
    min-height: 11rem;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

.dual-card--maintenance:hover .dual-card-photo img {
    transform: scale(1.03);
}

.dual-card-photo-placeholder {
    min-height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.dual-card--rental .dual-card-item-media img {
    transition: transform 0.4s ease;
}

.dual-card--rental:hover .dual-card-item-media img {
    transform: scale(1.04);
}

/* ---- Ventajas ---- */
.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ventaja-card {
    text-align: center;
    padding: 1.75rem 1rem;
    background: var(--white);
    border: 1px solid rgba(10, 45, 110, 0.08);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition:
        transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.ventaja-card:hover {
    transform: translateY(-8px);
    border-color: rgba(106, 179, 68, 0.4);
    box-shadow: var(--shadow-card-hover);
}

.ventaja-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(106, 179, 68, 0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.ventaja-card:hover .ventaja-icon {
    transform: scale(1.12) rotate(-6deg);
}

.ventaja-icon svg {
    width: 28px;
    height: 28px;
}

.ventaja-card h4 {
    color: var(--blue);
    font-size: 0.95rem;
}

/* ---- Contacto ---- */
.contacto {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

.contacto-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: 2.5rem;
    align-items: start;
}

/* Tarjeta de presentación */
.contact-card {
    position: relative;
    max-width: 420px;
    perspective: 1000px;
}

.contact-card-accent {
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    background: var(--gradient-brand);
    border-radius: 18px;
    z-index: 0;
    opacity: 0.35;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.contact-card:hover .contact-card-accent {
    transform: translate(4px, 4px);
    opacity: 0.5;
}

.contact-card-inner {
    position: relative;
    z-index: 1;
    background: var(--white);
    border: 1px solid rgba(10, 45, 110, 0.1);
    border-radius: 18px;
    padding: 1.75rem 1.65rem 1.5rem;
    box-shadow:
        0 16px 48px rgba(10, 45, 110, 0.12),
        0 4px 16px rgba(10, 45, 110, 0.06);
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.4s ease;
}

.contact-card:hover .contact-card-inner {
    transform: translateY(-4px) rotateX(2deg);
    box-shadow:
        0 24px 56px rgba(10, 45, 110, 0.16),
        0 8px 24px rgba(106, 179, 68, 0.12);
}

.contact-card-header {
    text-align: center;
    margin-bottom: 1.15rem;
}

.contact-card-logo {
    max-width: 220px;
    height: auto;
    margin: 0 auto 0.5rem;
    display: block;
}

.contact-card-company {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}

.contact-card-tagline {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.contact-card-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--green), var(--blue), transparent);
    margin-bottom: 1.15rem;
    opacity: 0.55;
}

.contact-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.contact-item--continued {
    margin-top: -0.35rem;
    align-items: center;
}

.contact-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #eef8e8, #dcefd0);
    border-radius: 10px;
    color: var(--blue);
}

.contact-item-icon svg {
    width: 18px;
    height: 18px;
}

.contact-item-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green);
    margin-bottom: 0.15rem;
}

.contact-item a,
.contact-item-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue);
    line-height: 1.45;
}

.contact-item a {
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-item a:hover {
    color: var(--green);
    text-decoration: underline;
}

.contact-item-links {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-item-links a {
    display: inline-block;
}

.contact-card-staff {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem 0 0.85rem;
    border-top: 1px dashed rgba(10, 45, 110, 0.15);
}

.contact-staff-item {
    padding: 0.65rem 0.75rem;
    background: var(--gray-50);
    border-radius: 10px;
    border-left: 3px solid var(--green);
}

.contact-staff-role {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    margin-bottom: 0.2rem;
}

.contact-staff-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue);
}

.contact-card-footer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.5rem;
}

.contact-card-footer-bar {
    flex: 1;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.contact-card-footer-text {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    white-space: nowrap;
}

/* ---- Formulario ---- */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.contact-form h3 {
    color: var(--blue);
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.35rem;
}

.field-required {
    color: #d32f2f;
    font-weight: 800;
    margin-right: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(106, 179, 68, 0.15);
}

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

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--blue-dark);
    color: var(--white);
    padding-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1.3fr;
    gap: 2.5rem 2rem;
    padding-bottom: 2.5rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.footer-logo-link--full {
    align-items: flex-start;
    gap: 0;
}

.footer-logo-link:hover {
    color: var(--white);
    opacity: 0.92;
}

.footer-logo {
    flex-shrink: 0;
    width: auto;
    height: 48px;
    object-fit: contain;
}

.footer-logo--full {
    max-width: min(100%, 280px);
    max-height: 80px;
    width: auto;
    height: auto;
}

.footer-company-name {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    line-height: 1.25;
    text-transform: uppercase;
}

.footer-tagline {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    line-height: 1.55;
    opacity: 0.88;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    color: var(--white);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social-link svg {
    width: 17px;
    height: 17px;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-1px);
}

.footer-col-title {
    margin: 0 0 1.1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--green-light);
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.footer-contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    color: var(--white);
}

.footer-contact-icon svg {
    width: 18px;
    height: 18px;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-list a:hover {
    color: var(--green-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.15rem 0 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ---- Admin ---- */
.admin-body {
    background: var(--gray-50);
    min-height: 100vh;
}

.admin-login-page {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, #1a5c2e 100%);
}

.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    width: min(100%, 400px);
    border-top: 4px solid var(--green);
    animation: dashFadeUp 0.5s ease both;
}

.login-card h1 {
    color: var(--blue);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.login-card .subtitle {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ---- Dashboard layout ---- */
.dash-layout {
    display: flex;
    min-height: 100vh;
    background: var(--gray-50);
    --dash-header-h: 5.625rem;
}

.dash-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--blue-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    box-shadow: 4px 0 24px rgba(6, 29, 71, 0.15);
}

.dash-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: var(--dash-header-h);
    min-height: var(--dash-header-h);
    padding: 0 1rem;
    box-sizing: border-box;
    flex-shrink: 0;
    background: var(--gray-100);
    border-bottom: none;
    color: var(--blue);
    position: relative;
}

.dash-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-dark), var(--green), var(--blue));
    background-size: 200% 100%;
    animation: dashShimmer 6s linear infinite;
}

.dash-brand-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.dash-brand strong {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.dash-brand span {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.dash-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.dash-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateX(4px);
}

.dash-nav-link.active {
    background: linear-gradient(135deg, var(--green) 0%, #5a9e38 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(106, 179, 68, 0.4);
}

.dash-nav-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.dash-nav-badge {
    margin-left: auto;
    background: #fff;
    color: var(--blue-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    min-width: 1.25rem;
    text-align: center;
}

.dash-nav-link.active .dash-nav-badge {
    background: var(--blue-dark);
    color: var(--white);
}

.dash-sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-nav-logout:hover {
    background: rgba(220, 53, 69, 0.25);
    color: #ffb3b3;
}

.dash-main {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dash-topbar {
    background: var(--white);
    height: var(--dash-header-h);
    min-height: var(--dash-header-h);
    padding: 0 2rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 50;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(10, 45, 110, 0.08);
}

.dash-topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-dark), var(--green), var(--blue));
    background-size: 200% 100%;
    animation: dashShimmer 6s linear infinite;
}

.dash-topbar h1 {
    color: var(--blue);
    font-size: 1.35rem;
    margin-bottom: 0.15rem;
}

.dash-topbar-sub {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.dash-content {
    padding: 1.5rem 2rem 2.5rem;
    flex: 1;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(106, 179, 68, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(10, 45, 110, 0.06) 0%, transparent 50%),
        var(--gray-50);
}

/* ---- Animaciones ---- */
@keyframes dashFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes dashSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes dashPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(106, 179, 68, 0.5); }
    50%       { box-shadow: 0 0 0 8px rgba(106, 179, 68, 0); }
}

@keyframes dashShimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

.dash-animate {
    animation: dashFadeUp 0.45s ease both;
}

.alert-dash {
    animation: dashSlideIn 0.4s ease both;
    border-radius: var(--radius);
    font-weight: 500;
}

/* ---- Panel principal ---- */
.dash-panel {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(10, 45, 110, 0.1);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.dash-panel:hover {
    box-shadow: 0 12px 40px rgba(10, 45, 110, 0.14);
}

.dash-panel-head {
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.dash-panel-head--gradient {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, #1a5c3a 100%);
    color: var(--white);
    border-bottom: none;
    flex-wrap: wrap;
}

.dash-panel-head--gradient::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    background-size: 200% 100%;
    animation: dashShimmer 4s linear infinite;
    pointer-events: none;
}

.dash-panel-head-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dash-panel-head h2 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    color: inherit;
}

.dash-panel-head--gradient h2,
.dash-panel-head--gradient p {
    color: var(--white);
}

.dash-panel-head p {
    font-size: 0.88rem;
    opacity: 0.85;
}

.dash-head-badge {
    margin-left: auto;
    background: var(--green);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    animation: dashPulse 2s ease infinite;
    flex-shrink: 0;
}

/* ---- Formularios mejorados ---- */
.dash-form {
    padding: 1.75rem;
}

.dash-form-section {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    animation: dashFadeUp 0.4s ease both;
}

.dash-form-section:hover {
    box-shadow: 0 4px 16px rgba(10, 45, 110, 0.08);
    transform: translateY(-1px);
}

/* Alternancia azul / verde — formularios */
.dash-form > .dash-form-section:nth-of-type(odd) {
    border-left-color: var(--blue);
    background: linear-gradient(135deg, #f0f4fa 0%, var(--gray-50) 100%);
}

.dash-form > .dash-form-section:nth-of-type(even) {
    border-left-color: var(--green);
    background: linear-gradient(135deg, #f4faf0 0%, var(--gray-50) 100%);
}

/* Continuar alternancia si hay sección suelta antes del form */
.dash-panel > .dash-form-section ~ .dash-form > .dash-form-section:nth-of-type(odd) {
    border-left-color: var(--green);
    background: linear-gradient(135deg, #f4faf0 0%, var(--gray-50) 100%);
}

.dash-panel > .dash-form-section ~ .dash-form > .dash-form-section:nth-of-type(even) {
    border-left-color: var(--blue);
    background: linear-gradient(135deg, #f0f4fa 0%, var(--gray-50) 100%);
}

/* Secciones sueltas en el panel (ej. banner hero, agregar producto) */
.dash-panel > .dash-form-section:nth-child(2n) {
    border-left-color: var(--blue);
    background: linear-gradient(135deg, #f0f4fa 0%, var(--gray-50) 100%);
}

.dash-panel > .dash-form-section:nth-child(2n + 1) {
    border-left-color: var(--green);
    background: linear-gradient(135deg, #f4faf0 0%, var(--gray-50) 100%);
}

/* Contacto: alternancia azul/verde entre formularios independientes */
.dash-panel--contacto .dash-form {
    padding: 0 1.75rem;
}

.dash-panel--contacto .dash-form:first-of-type {
    padding-top: 1.75rem;
}

.dash-panel--contacto .dash-form:last-of-type {
    padding-bottom: 1.75rem;
}

.dash-panel--contacto .dash-form > .dash-form-section {
    border-left-color: var(--blue);
    background: linear-gradient(135deg, #f0f4fa 0%, var(--gray-50) 100%);
}

.dash-panel--contacto .dash-form:nth-of-type(even) > .dash-form-section {
    border-left-color: var(--green);
    background: linear-gradient(135deg, #f4faf0 0%, var(--gray-50) 100%);
}

.dash-panel--contacto .dash-form:nth-of-type(even) > .dash-form-section:hover {
    box-shadow: 0 4px 16px rgba(106, 179, 68, 0.1);
}

.dash-panel--contacto .dash-form:nth-of-type(even) .dash-form-section-title {
    color: var(--blue);
}

.dash-panel--contacto .dash-form:nth-of-type(even) .dash-channel-head label,
.dash-panel--contacto .dash-form:nth-of-type(even) .dash-staff-header span {
    color: var(--green);
}

.dash-form-section-title {
    color: var(--blue);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-form-section-title span {
    font-size: 1.1rem;
}

.dash-section-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 0.35rem;
}

.dash-section-dot--red {
    background: #dc3545;
}

.dash-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dash-form-full {
    grid-column: 1 / -1;
}

.dash-field label {
    font-weight: 600;
    color: var(--blue);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dash-input,
.dash-form .dash-input {
    background: var(--white);
    border: 2px solid var(--gray-200);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.dash-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(106, 179, 68, 0.15);
    transform: translateY(-1px);
}

.dash-staff-row {
    animation: dashFadeUp 0.35s ease both;
}

.dash-subtitle {
    color: var(--blue);
    font-size: 0.95rem;
    margin: 1.25rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
}

.dash-form-actions--section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--gray-200);
}

.dash-form-actions {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 2px dashed var(--gray-200);
}

.btn-dash-glow {
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-dash-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(106, 179, 68, 0.45);
}

.btn-dash-glow::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.btn-dash-glow:hover::after {
    left: 150%;
}

.btn-dash-outline {
    border-width: 2px;
    transition: all 0.25s ease;
}

.btn-dash-outline:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 45, 110, 0.25);
}

.dash-file-wrap {
    position: relative;
    border: 2px dashed var(--gray-200);
    border-radius: 10px;
    padding: 0.75rem;
    background: var(--white);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.dash-file-wrap:hover {
    border-color: var(--green);
    background: #f8fdf5;
}

.dash-file {
    width: 100%;
    font-size: 0.85rem;
    cursor: pointer;
}

.dash-delete-zone {
    padding: 0 1.75rem 1.75rem;
}

.product-admin-file .dash-file-wrap {
    padding: 0.35rem 0.5rem;
    border-width: 1px;
    border-radius: 6px;
}

.dash-add-product {
    margin: 0 1.25rem 1.25rem;
    padding: 1rem 1.15rem;
}

.dash-add-product .dash-form-grid {
    gap: 0.5rem 0.65rem;
}

.dash-add-product .form-group {
    margin-bottom: 0;
}

.dash-add-product .dash-input,
.dash-add-product .form-group input {
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
}

/* ---- Stats (Inicio) ---- */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.75rem;
}

.dash-stat-card {
    position: relative;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-left-width: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: dashFadeUp 0.5s ease both;
    animation-delay: var(--delay, 0s);
}

.dash-stats .dash-stat-card:nth-child(odd) {
    border-left-color: var(--blue);
    background: linear-gradient(135deg, #f0f4fa 0%, var(--gray-50) 100%);
}

.dash-stats .dash-stat-card:nth-child(even) {
    border-left-color: var(--green);
    background: linear-gradient(135deg, #f4faf0 0%, var(--gray-50) 100%);
}

.dash-stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(10, 45, 110, 0.15);
}

.dash-stat-card--alert .dash-stat-value {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
}

.dash-stat-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    animation: dashFloat 3s ease-in-out infinite;
}

.dash-stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dash-stats .dash-stat-card:nth-child(even) .dash-stat-value {
    background: linear-gradient(135deg, var(--green), #4a8f2e);
    -webkit-background-clip: text;
    background-clip: text;
}

.dash-stat-label {
    font-size: 0.78rem;
    color: var(--gray-600);
    margin-top: 0.4rem;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---- Accesos rápidos ---- */
.dash-quick-links {
    padding: 0 1.75rem 1.75rem;
}

.dash-quick-links.dash-form-section {
    margin: 0 1.75rem 1.75rem;
    padding-bottom: 1.25rem;
}

.dash-quick-links .dash-form-section-title {
    margin-bottom: 1rem;
}

.dash-quick-links .dash-quick-grid {
    margin-bottom: 0;
}

.dash-quick-links h3 {
    color: var(--blue);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.dash-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.dash-quick-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left-width: 4px;
    border-radius: 12px;
    color: var(--gray-800);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: dashFadeUp 0.45s ease both;
    animation-delay: var(--delay, 0s);
    position: relative;
    overflow: hidden;
}

.dash-quick-grid .dash-quick-item:nth-child(odd) {
    border-left-color: var(--blue);
    background: linear-gradient(135deg, #f0f4fa 0%, var(--gray-50) 100%);
}

.dash-quick-grid .dash-quick-item:nth-child(even) {
    border-left-color: var(--green);
    background: linear-gradient(135deg, #f4faf0 0%, var(--gray-50) 100%);
}

.dash-quick-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(106,179,68,0.08), rgba(10,45,110,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dash-quick-item:hover {
    border-color: var(--green);
    box-shadow: 0 8px 24px rgba(106, 179, 68, 0.2);
    color: var(--blue);
    transform: translateX(6px);
}

.dash-quick-item:hover::before {
    opacity: 1;
}

.dash-quick-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.dash-quick-item:hover .dash-quick-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.dash-quick-icon-wrap--blue  { background: linear-gradient(135deg, #dce8f8, #b8d0f0); }
.dash-quick-icon-wrap--green { background: linear-gradient(135deg, #d4edca, #a8d898); }
.dash-quick-icon-wrap--alert { background: linear-gradient(135deg, #ffe8c8, #ffd080); }

.dash-quick-text { flex: 1; position: relative; }

.dash-quick-arrow {
    color: var(--green);
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    position: relative;
}

.dash-quick-item:hover .dash-quick-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Mensajes (tarjetas) ---- */
.dash-messages-list {
    padding: 1.25rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-message-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left-width: 4px;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    animation: dashFadeUp 0.4s ease both;
    animation-delay: var(--delay, 0s);
}

.dash-messages-list .dash-message-card:nth-child(odd) {
    border-left-color: var(--blue);
    background: linear-gradient(135deg, #f0f4fa 0%, var(--gray-50) 100%);
}

.dash-messages-list .dash-message-card:nth-child(even) {
    border-left-color: var(--green);
    background: linear-gradient(135deg, #f4faf0 0%, var(--gray-50) 100%);
}

.dash-message-card:hover {
    box-shadow: 0 6px 20px rgba(10, 45, 110, 0.1);
    transform: translateY(-2px);
}

.dash-message-card--new {
    box-shadow: 0 4px 16px rgba(106, 179, 68, 0.15);
}

.dash-message-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.dash-message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: var(--white);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-message-meta {
    flex: 1;
    min-width: 0;
}

.dash-message-meta strong {
    display: block;
    color: var(--blue);
    font-size: 0.95rem;
}

.dash-message-meta span {
    font-size: 0.78rem;
    color: var(--gray-600);
}

.dash-message-body p {
    color: var(--gray-800);
    font-size: 0.92rem;
    line-height: 1.65;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--green);
}

.dash-message-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--gray-200);
}

.dash-message-contact {
    font-size: 0.82rem;
    color: var(--gray-600);
    font-weight: 500;
}

.dash-message-contact[href] {
    color: var(--blue);
    transition: color 0.2s ease;
}

.dash-message-contact[href]:hover {
    color: var(--green);
}

.dash-message-action {
    margin-left: auto;
}

.badge-pulse {
    animation: dashPulse 2s ease infinite;
}

/* ---- Estado vacío ---- */
.dash-empty {
    text-align: center;
    padding: 3.5rem 1.75rem;
    margin: 1.25rem 1.75rem 1.75rem;
    color: var(--gray-600);
    background: linear-gradient(135deg, #f0f4fa 0%, var(--gray-50) 100%);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    border-radius: 12px;
}

.dash-empty-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: dashFloat 3s ease-in-out infinite;
}

.dash-empty h3 {
    color: var(--blue);
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.dash-empty p {
    font-size: 0.9rem;
}

.dash-table-wrap {
    padding: 1rem 1.75rem 1.75rem;
    overflow-x: auto;
}

.dash-sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 300;
    background: var(--blue-dark);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.dash-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 29, 71, 0.5);
    z-index: 150;
}

.dash-overlay.open {
    display: block;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.admin-card h2 {
    color: var(--blue);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--green);
}

.admin-card.full-width {
    grid-column: 1 / -1;
}

.staff-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.dash-staff-list .staff-row {
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
}

.dash-staff-header {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0 0.25rem;
}

.dash-staff-header span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-staff-header span:last-child {
    min-width: 5.5rem;
}

.dash-staff-hint {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: -0.5rem 0 1rem;
}

.dash-channel-block {
    margin-bottom: 1.25rem;
}

.dash-channel-block:last-of-type {
    margin-bottom: 0.75rem;
}

.dash-channel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-bottom: 0.55rem;
}

.dash-channel-head label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-channel-hint {
    font-size: 0.76rem;
    color: var(--gray-600);
}

.dash-channel-list {
    margin-bottom: 0.5rem;
}

.dash-channel-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.65rem;
}

.dash-channel-row .btn-delete,
.dash-staff-list .staff-row .btn-delete,
.dash-printer-brand-list .dash-printer-brand-row .btn-delete {
    flex-shrink: 0;
    white-space: nowrap;
}

.dash-printer-brands-section {
    margin-bottom: 1.5rem;
}

.dash-printer-brand-list {
    max-width: 420px;
}

.dash-channel-row--new {
    animation: dashFadeUp 0.3s ease both;
}

.dash-channel-note {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: var(--gray-500);
}

.dash-channel-whatsapp {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--gray-200);
}

.btn-add-channel {
    display: inline-flex;
    width: auto;
    margin-top: 0.15rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
}

.footer-contact-stack {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-contact-stack a {
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease;
}

.footer-contact-stack a:hover {
    color: var(--white);
}

.btn-staff-remove {
    width: 36px;
    height: 36px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-staff-remove:hover {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #c62828;
    transform: scale(1.05);
}

.btn-add-staff {
    display: inline-flex;
    margin-top: 0.75rem;
    width: auto;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
}

.dash-staff-row--new {
    animation: dashFadeUp 0.3s ease both;
}

.messages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.messages-table th,
.messages-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.messages-table th {
    background: var(--gray-50);
    color: var(--blue);
    font-weight: 600;
}

.messages-table tr.unread {
    background: #f0f7eb;
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-new {
    background: var(--green);
    color: var(--white);
}

.badge-read {
    background: var(--gray-200);
    color: var(--gray-600);
}

.badge-attended {
    background: var(--blue);
    color: var(--white);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
    color: var(--white);
}

.product-admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
}

.product-list-wrap {
    padding: 0;
}

.product-item-form {
    display: block;
}

.product-admin-item {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--gray-50);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    border-left-width: 4px;
    transition: all 0.3s ease;
    animation: dashFadeUp 0.4s ease both;
    animation-delay: var(--delay, 0s);
    align-items: start;
}

.product-admin-list > .product-item-form:nth-child(odd) .product-admin-item {
    border-left-color: var(--blue);
    background: linear-gradient(135deg, #f0f4fa 0%, var(--gray-50) 100%);
}

.product-admin-list > .product-item-form:nth-child(even) .product-admin-item {
    border-left-color: var(--green);
    background: linear-gradient(135deg, #f4faf0 0%, var(--gray-50) 100%);
}

.product-admin-item:hover {
    border-color: rgba(106, 179, 68, 0.45);
    box-shadow: 0 8px 28px rgba(10, 45, 110, 0.1);
}

.product-thumb-col {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 124px;
    flex-shrink: 0;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.btn-product-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-product-action svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.btn-product-save {
    background: var(--gray-200);
    color: var(--gray-600);
    border-color: var(--gray-200);
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-product-save.is-active {
    background: linear-gradient(135deg, var(--green) 0%, #5a9e38 100%);
    color: var(--white);
    border-color: var(--green);
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 4px 14px rgba(106, 179, 68, 0.35);
    animation: dashPulse 2.5s ease infinite;
}

.btn-product-save.is-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(106, 179, 68, 0.5);
}

.btn-product-save.is-active:hover svg {
    transform: scale(1.15);
}

.btn-product-save.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: dashShimmer 2s linear infinite;
}

.btn-product-save.is-active:hover svg {
    transform: scale(1.15);
}

.btn-delete,
.btn-product-action.btn-delete,
.btn.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--white);
    color: #c62828;
    border: 2px solid #ffcdd2;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0.85rem;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
}

.btn-product-action.btn-delete {
    width: 100%;
    font-size: 0.72rem;
    padding: 0.45rem 0.5rem;
}

.btn-delete svg,
.btn-delete .btn-delete-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.btn-product-action.btn-delete svg,
.btn-product-action.btn-delete .btn-delete-icon {
    width: 14px;
    height: 14px;
}

.btn-delete--sm,
.btn.btn-delete.btn-delete--sm {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
    gap: 0.3rem;
}

.btn-delete--sm svg,
.btn-delete--sm .btn-delete-icon {
    width: 14px;
    height: 14px;
}

.btn-delete:hover:not(:disabled),
.btn.btn-delete:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #ef9a9a;
    color: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(198, 40, 40, 0.2);
}

.btn-delete:hover:not(:disabled) svg,
.btn-delete:hover:not(:disabled) .btn-delete-icon {
    transform: scale(1.1) rotate(-5deg);
}

.btn-delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- Modal Surte Perú (admin + sitio público) ---- */
.dash-modal,
.sp-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dash-modal.is-open,
.sp-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.dash-modal-backdrop,
.sp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 29, 71, 0.55);
    backdrop-filter: blur(4px);
}

.dash-modal-box,
.sp-modal-box {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(10, 45, 110, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dash-modal.is-open .dash-modal-box,
.sp-modal.is-open .sp-modal-box {
    transform: scale(1) translateY(0);
}

.dash-modal-box--danger,
.sp-modal-box--danger {
    border-top: 4px solid #dc3545;
}

.dash-modal-box--warning,
.sp-modal-box--warning {
    border-top: 4px solid #f0ad4e;
}

.dash-modal-box--info,
.sp-modal-box--info {
    border-top: 4px solid var(--blue);
}

.dash-modal-box--success,
.sp-modal-box--success {
    border-top: 4px solid var(--green);
}

.dash-modal-icon,
.sp-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-modal-icon svg,
.sp-modal-icon svg {
    width: 32px;
    height: 32px;
}

.dash-modal-icon--danger,
.sp-modal-icon--danger {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    animation: dashPulse 2s ease infinite;
}

.dash-modal-icon--warning,
.sp-modal-icon--warning {
    background: linear-gradient(135deg, #fff8e1, #ffe082);
    color: #e65100;
}

.dash-modal-icon--info,
.sp-modal-icon--info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: var(--blue);
}

.dash-modal-icon--success,
.sp-modal-icon--success {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.dash-modal-box h3,
.sp-modal-box h3 {
    color: var(--blue);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.dash-modal-box p,
.sp-modal-box p {
    color: var(--gray-600);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.dash-modal-box p strong,
.sp-modal-box p strong {
    color: var(--blue);
}

.dash-modal-actions,
.sp-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.dash-modal-actions form,
.sp-modal-actions form {
    display: inline;
}

.btn-modal-delete {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-modal-delete.btn-delete {
    border-width: 2px;
}

.btn-modal-delete:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.25);
}

/* ---- Logos admin ---- */
.dash-logos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
}

.dash-logo-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left-width: 4px;
    border-radius: 14px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    animation: dashFadeUp 0.4s ease both;
}

.dash-logos-grid .dash-logo-card:nth-child(odd) {
    border-left-color: var(--blue);
    background: linear-gradient(135deg, #f0f4fa 0%, var(--gray-50) 100%);
}

.dash-logos-grid .dash-logo-card:nth-child(even) {
    border-left-color: var(--green);
    background: linear-gradient(135deg, #f4faf0 0%, var(--gray-50) 100%);
}

.dash-logo-card:hover {
    border-color: var(--green);
    box-shadow: 0 8px 24px rgba(106, 179, 68, 0.12);
}

.dash-logo-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.dash-logo-card-head h3 {
    color: var(--blue);
    font-size: 1.05rem;
}

.dash-logo-size {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green);
    background: #eef8e8;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
}

.dash-logo-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.dash-logo-preview {
    background: repeating-conic-gradient(var(--gray-200) 0% 25%, var(--white) 0% 50%) 50% / 16px 16px;
    border: 2px dashed var(--gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.dash-logo-preview--small {
    width: 120px;
    height: 120px;
    margin-inline: auto;
}

.dash-logo-preview--small img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.dash-logo-preview--full {
    height: 100px;
    padding: 0.75rem;
}

.dash-logo-preview--full img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.dash-logo-empty {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.dash-logo-preview-label {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-logo-mockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.dash-mockup-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.dash-mockup-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--blue);
}

.dash-mockup-text strong .peru {
    color: var(--green);
}

.dash-mockup-text small {
    font-size: 0.72rem;
    color: var(--gray-600);
}

.dash-contact-mockup {
    position: relative;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.25rem 1rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dash-contact-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.dash-contact-mockup-logo {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    margin: 0 auto 0.5rem;
}

.dash-contact-mockup-fallback {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.dash-contact-mockup small {
    display: block;
    font-size: 0.72rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.dash-logo-form {
    margin-top: 0.5rem;
}

.dash-surty-section {
    padding: 0 1.75rem 1.75rem;
}

.dash-logo-card--surty {
    max-width: 100%;
}

.dash-surty-previews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.dash-surty-preview-block {
    min-width: 0;
}

.dash-surty-mockup {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.15rem;
    min-height: 180px;
    padding: 1rem;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%);
    border: 1px dashed var(--gray-200);
    border-radius: 12px;
}

.dash-surty-mockup-bubble {
    background: #ffd400;
    color: #1a2744;
    border-radius: 14px;
    padding: 0.65rem 0.8rem;
    font-size: 0.78rem;
    line-height: 1.4;
    max-width: 150px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.dash-surty-mockup-bubble::after {
    content: '';
    position: absolute;
    right: 16px;
    bottom: -7px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid #ffd400;
}

.dash-surty-mockup-robot {
    width: 88px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(10, 45, 110, 0.15));
}

.dash-surty-mockup-empty {
    width: 88px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.dash-surty-avatar-preview {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    min-height: 160px;
    padding: 1rem 1.25rem;
    background: #eceff3;
    border: 1px dashed var(--gray-200);
    border-radius: 12px;
}

.dash-surty-header-robot,
.dash-surty-avatar-preview img {
    width: 64px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: center bottom;
    background: transparent;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(10, 45, 110, 0.12));
}

.dash-surty-avatar-preview strong {
    display: block;
    color: var(--blue-dark);
    font-size: 0.95rem;
    padding-bottom: 0.25rem;
}

.dash-surty-avatar-preview span {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    padding-bottom: 0.25rem;
}

.dash-surty-texts-form {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--gray-200);
}

.dash-surty-texts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .dash-surty-previews {
        grid-template-columns: 1fr;
    }

    .dash-surty-texts-grid {
        grid-template-columns: 1fr;
    }
}

.dash-brand-logo-full {
    max-width: 200px;
    max-height: 48px;
    object-fit: contain;
    display: block;
}

.login-logo-full {
    max-width: 280px;
    max-height: 72px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
}

.product-thumb-wrap {
    position: relative;
    width: 100%;
    height: 84px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
}

.product-thumb-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(10, 45, 110, 0.3);
}

.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.product-admin-item:hover .product-thumb {
    transform: scale(1.03);
}

.product-thumb-empty {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    font-size: 1.25rem;
}

.product-admin-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0.4rem 0.65rem;
    align-items: stretch;
    min-height: 0;
}

.product-admin-title {
    grid-column: 1;
    grid-row: 1;
}

.product-admin-brands {
    grid-column: 1;
    grid-row: 2;
}

.product-admin-file {
    grid-column: 1;
    grid-row: 3;
}

.product-admin-desc {
    grid-column: 2;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-admin-fields--service .product-admin-title {
    grid-column: 1;
    grid-row: 1;
}

.product-admin-fields--service .product-admin-file {
    grid-column: 1;
    grid-row: 2;
}

.product-admin-fields--service .product-admin-desc {
    grid-column: 2;
    grid-row: 1 / -1;
}

.product-admin-desc-input {
    flex: 1;
    min-height: 100%;
    height: 100%;
    resize: vertical;
    line-height: 1.45;
}

.product-admin-fields .form-group {
    margin-bottom: 0;
}

.product-admin-fields .form-group label,
.product-admin-fields .dash-field label {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
    letter-spacing: 0.02em;
}

.product-admin-fields .form-group input,
.product-admin-fields .form-group textarea,
.product-admin-fields .dash-input {
    padding: 0.42rem 0.6rem;
    font-size: 0.82rem;
    border-width: 1px;
    border-radius: 6px;
}

.product-admin-fields .dash-file {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
}

.product-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.hint {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .dash-animate,
    .dash-stat-card,
    .dash-quick-item,
    .dash-message-card,
    .product-admin-item,
    .dash-form-section,
    .alert-dash,
    .dash-panel-head--gradient::after,
    .dash-topbar::after,
    .dash-stat-icon,
    .dash-empty-circle,
    .badge-pulse {
        animation: none;
        transition: none;
    }
}

@media (max-width: 768px) {
    .product-admin-item {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 0.6rem;
        padding: 0.6rem;
    }

    .product-thumb-col {
        width: 112px;
    }

    .product-thumb-wrap {
        height: 76px;
    }

    .product-admin-fields {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .product-admin-title,
    .product-admin-brands,
    .product-admin-file,
    .product-admin-desc {
        grid-column: 1;
        grid-row: auto;
    }

    .product-admin-desc-input {
        min-height: 4.5rem;
        height: auto;
    }

    .dash-message-action {
        margin-left: 0;
        width: 100%;
    }
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-grid,
    .nosotros-grid,
    .contacto-grid,
    .dual-grid,
    .admin-grid,
    .dash-form-grid,
    .dash-stats,
    .dash-quick-grid,
    .dash-logos-grid {
        grid-template-columns: 1fr;
    }

    .dual-card-item {
        grid-template-columns: 6.5rem 1fr;
        gap: 0.75rem;
    }

    .dual-card-item-media {
        width: 6.5rem;
        height: 5rem;
    }

    .dual-card-photo,
    .dual-card-photo img {
        min-height: 9.5rem;
    }

    .dash-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition);
    }

    .dash-sidebar.open {
        transform: translateX(0);
    }

    .dash-main {
        margin-left: 0;
    }

    .dash-sidebar-toggle {
        display: block;
    }

    .dash-topbar {
        height: auto;
        min-height: var(--dash-header-h);
        padding: 1rem 1rem 1rem 4rem;
    }

    .dash-content {
        padding: 1rem;
    }

    .productos-grid,
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ventajas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }

    .contact-card {
        max-width: 100%;
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
    }

    .site-header .container {
        position: relative;
    }

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

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

    .dash-staff-list .staff-row {
        grid-template-columns: 1fr auto;
    }

    .dash-staff-list .staff-row input:first-of-type {
        grid-column: 1 / -1;
    }

    .dash-staff-header {
        display: none;
    }

    section {
        padding: 2.5rem 0;
    }

    .contact-card-staff {
        grid-template-columns: 1fr;
    }

    .messages-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding-bottom: 2rem;
    }

    .site-footer {
        padding-top: 2.25rem;
    }

    .quote-layout {
        grid-template-columns: 1fr;
    }

    .quote-sidebar {
        position: static;
    }
}

/* ---- Página de cotización ---- */
.quote-page {
    padding: 1.5rem 0 3.5rem;
    background: var(--gray-50);
}

.quote-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.82rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

.quote-breadcrumb a {
    color: var(--blue);
    font-weight: 600;
}

.quote-breadcrumb a:hover {
    color: var(--green);
}

.quote-breadcrumb-current {
    color: var(--gray-800);
    font-weight: 700;
}

.quote-header {
    margin-bottom: 1.75rem;
}

.quote-header h1 {
    color: var(--blue);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    margin-bottom: 0.45rem;
}

.quote-header p {
    color: var(--gray-600);
    font-size: 1rem;
    max-width: 52rem;
}

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.quote-product-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.quote-product-media {
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, #f4f7fb, #eef2f8);
    border: 1px solid var(--gray-200);
    aspect-ratio: 3 / 2;
}

.quote-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quote-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.quote-product-info h2 {
    color: var(--blue);
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.quote-product-badge {
    color: var(--green);
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
}

.quote-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
}

.quote-product-tags li {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue);
    background: rgba(10, 45, 110, 0.08);
    border: 1px solid rgba(10, 45, 110, 0.12);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

.quote-product-desc {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.quote-compat strong {
    display: block;
    color: var(--blue);
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.quote-compat ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--gray-600);
    font-size: 0.85rem;
    line-height: 1.55;
}

.quote-form-block {
    background: var(--white);
    border: 1px solid rgba(10, 45, 110, 0.08);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
}

.quote-form-block h3 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--blue);
    font-size: 1.05rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(10, 45, 110, 0.08);
}

.quote-form-config {
    position: relative;
    overflow: hidden;
}

.quote-form-config::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
}

.quote-form-config h3 {
    margin-top: 0.15rem;
}

.quote-config-panel {
    background: linear-gradient(145deg, #f8fafc 0%, #f3f6fa 100%);
    border: 1px solid rgba(10, 45, 110, 0.07);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
}

.quote-config-panel-title {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
}

.quote-form-config .form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.02em;
}

.quote-form-config .quote-select,
.quote-form-config input[type="text"],
.quote-form-config input[type="number"] {
    background: var(--white);
    border-color: rgba(10, 45, 110, 0.12);
    border-radius: 10px;
}

.quote-form-config .quote-select:hover,
.quote-form-config input[type="text"]:hover {
    border-color: rgba(106, 179, 68, 0.45);
}

.quote-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
}

.quote-options-grid,
.quote-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.quote-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-select,
.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-select:focus,
.quote-form input:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(106, 179, 68, 0.15);
}

.quote-info-box {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 0.85rem 0 0;
    padding: 0.9rem 1rem;
    background: rgba(10, 45, 110, 0.04);
    border: 1px solid rgba(10, 45, 110, 0.1);
    border-left: 4px solid var(--blue);
    border-radius: 10px;
    color: var(--blue);
    font-size: 0.85rem;
    line-height: 1.55;
}

.quote-info-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.quote-qty-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quote-config-panel--qty .quote-qty-row {
    margin: 0;
    padding: 0;
    border: none;
}

.quote-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
}

.quote-qty-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: var(--gray-100);
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quote-qty-btn:hover {
    background: var(--gray-200);
}

.quote-qty-input {
    width: 4rem;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    color: var(--blue);
    -moz-appearance: textfield;
}

.quote-qty-input::-webkit-outer-spin-button,
.quote-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quote-qty-unit {
    font-weight: 700;
    color: var(--gray-600);
}

.quote-form-config .quote-qty-row {
    margin: 0;
    padding: 0;
    border: none;
}

.quote-qty-label {
    font-weight: 600;
    color: var(--blue);
    min-width: 5rem;
}

.quote-config-panel--options .quote-options-colors-wrap {
    grid-column: 1 / -1;
    margin-top: 0.15rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(10, 45, 110, 0.12);
}

.quote-options-colors-note {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.45;
}

#colorLinesContainer {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.quote-color-line {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.85rem;
    align-items: end;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.quote-color-line .form-group {
    margin: 0;
}

.quote-qty-unit-inline {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
}

.quote-color-qty-group .quote-qty-control {
    width: 100%;
    max-width: none;
}

.quote-color-qty-group {
    min-width: 0;
}

.quote-qty-control-sm .quote-qty-btn {
    width: 2rem;
    height: 2.25rem;
    font-size: 1rem;
}

.quote-qty-control-sm .quote-qty-input {
    width: 3rem;
    font-size: 0.95rem;
}

.quote-color-remove {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    color: #c62828;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    margin-top: 0.15rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.quote-color-remove:hover {
    background: #ffebee;
    border-color: #ef9a9a;
}

.quote-add-color {
    width: 100%;
    margin-top: 0.15rem;
    border-style: dashed;
    border-width: 2px;
    background: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#colorLinesContainer + .quote-add-color {
    margin-top: 0.5rem;
}

.quote-add-color:hover {
    background: rgba(106, 179, 68, 0.08);
    border-color: var(--green);
    color: var(--green);
}

.quote-color-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid rgba(106, 179, 68, 0.25);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--gray-700);
}

.quote-color-total strong {
    color: var(--blue);
    font-size: 1rem;
    font-weight: 800;
}

.quote-config-panel--reference .quote-reference-field {
    margin: 0;
}

.quote-reference-field {
    margin-top: 0;
}

.quote-summary-colors {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: right;
}

.quote-summary-colors li {
    font-weight: 700;
    color: var(--blue);
    font-size: 0.85rem;
}

.quote-cart-color-lines {
    list-style: none;
    margin: 0.35rem 0 0.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quote-cart-color-lines li {
    font-size: 0.88rem;
    color: var(--gray-700);
}

.btn-quote-submit {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.quote-privacy {
    text-align: center;
    font-size: 0.78rem;
    color: var(--gray-600);
    margin-top: 0.75rem;
}

.quote-sidebar {
    position: sticky;
    top: 6.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-summary-card,
.quote-wa-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 1.15rem;
    box-shadow: var(--shadow);
}

.quote-summary-card h3 {
    color: var(--green);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.quote-summary-product {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.quote-summary-product img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.quote-summary-product strong {
    display: block;
    color: var(--blue);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.quote-summary-product span {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.quote-summary-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.quote-summary-options li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--gray-600);
}

.quote-summary-options strong {
    color: var(--blue);
    text-align: right;
}

.quote-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.quote-trust-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: var(--gray-800);
    font-weight: 600;
}

.quote-wa-card {
    background: linear-gradient(135deg, #f4faf0 0%, #eef8e8 100%);
    border-color: rgba(106, 179, 68, 0.25);
    text-align: center;
}

.quote-wa-card p {
    color: var(--blue);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.btn-wa-quote {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1100px) {
    .quote-options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .quote-layout {
        grid-template-columns: 1fr;
    }

    .quote-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .quote-product-card {
        grid-template-columns: 1fr;
    }

    .quote-options-grid,
    .quote-contact-grid {
        grid-template-columns: 1fr;
    }

    .quote-color-line {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .quote-color-remove {
        justify-self: end;
    }

    .quote-form-actions {
        flex-direction: column;
    }

    .quote-cart-item {
        grid-template-columns: 1fr;
    }

    .quote-cart-item-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Cotización — mejoras UX */
.quote-cart-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.15rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #eef8e8, #f4faf0);
    border: 1px solid rgba(106, 179, 68, 0.35);
    border-radius: 12px;
    color: var(--blue);
    font-size: 0.92rem;
    text-decoration: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.quote-cart-banner:hover {
    box-shadow: 0 6px 20px rgba(106, 179, 68, 0.2);
    transform: translateY(-1px);
}

.quote-cart-banner-link {
    font-weight: 800;
    color: var(--green);
    white-space: nowrap;
}

.quote-config-actions {
    margin-top: 0.25rem;
    padding-top: 0;
    border-top: none;
}

.quote-config-actions .btn-quote-add {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    border-width: 2px;
    font-weight: 700;
    padding: 0.85rem 1.25rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.quote-config-actions .btn-quote-add:hover {
    background: rgba(10, 45, 110, 0.04);
    border-color: var(--blue);
    transform: translateY(-1px);
}

.btn-quote-add-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.quote-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.quote-form-actions .btn-quote-submit {
    flex: 1;
    min-width: 220px;
    justify-content: center;
}

.btn-quote-add {
    border-width: 2px;
}

.quote-success-card {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 560px;
    margin: 2rem auto;
}

.quote-success-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), #5a9e38);
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-success-card h2 {
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.quote-success-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.quote-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.quote-related {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
}

.quote-related h3 {
    color: var(--blue);
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.quote-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.quote-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    text-decoration: none;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.quote-related-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow);
}

.quote-related-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
}

.quote-summary-cart p {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.btn-sm-quote {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
}

.quote-empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.quote-empty-cart-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quote-empty-cart h1 {
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.quote-cart-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.quote-cart-item {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.quote-cart-item:nth-child(even) {
    border-left-color: var(--green);
}

.quote-cart-item-media {
    width: 100px;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.quote-cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-cart-item-body h2 {
    font-size: 1rem;
    color: var(--blue);
    margin-bottom: 0.25rem;
}

.quote-cart-item-qty {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.quote-cart-item-options {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
    color: var(--gray-600);
}

.quote-cart-item-options li {
    margin-bottom: 0.2rem;
}

.quote-cart-item-options span {
    font-weight: 700;
    color: var(--blue);
}

.quote-cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 100px;
}

.btn-quote-remove {
    color: #c62828;
    border-color: #ffcdd2;
}

.btn-quote-remove:hover {
    background: #ffebee;
}

.quote-cart-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.quote-cart-summary-count {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.quote-cart-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quote-cart-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--gray-600);
}

.quote-cart-summary-list strong {
    color: var(--blue);
    white-space: nowrap;
}

.nav-quote-cart {
    position: relative;
}

.nav-quote-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    margin-left: 0.25rem;
    background: var(--green);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 999px;
}

.badge-quote {
    background: var(--blue);
    color: var(--white);
}

.badge-service {
    background: var(--green);
    color: var(--white);
}

.badge-service--express {
    background: #dc3545;
}

.dash-message-card--service {
    border-left-color: var(--green);
}

.dash-message-card--service.dash-message-card--new:has(.badge-service--express) {
    border-left-color: #dc3545;
}

.dash-message-card--quote {
    border-left-color: var(--blue);
}

.dash-message-product {
    display: block;
    font-size: 0.78rem;
    color: var(--green);
    font-weight: 700;
    margin-top: 0.15rem;
}

.dash-message-pre {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
    color: var(--gray-800);
    background: transparent;
    border: none;
    padding: 0;
}

@media (max-width: 900px) {
    .quote-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Chat Surty (widget público) ---- */
.surty-chat {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999;
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.75rem;
    pointer-events: none;
}

.surty-chat-launcher,
.surty-chat-panel {
    pointer-events: auto;
}

.surty-chat-launcher {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: min(240px, calc(100vw - 2rem));
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.surty-chat-launcher-hit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: right;
}

.surty-chat.is-open .surty-chat-launcher {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.surty-chat-bubble {
    position: relative;
    background: #ffd400;
    color: #1a2744;
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    animation: surtyBubbleIn 0.5s ease both;
    max-width: 200px;
    margin-bottom: 0.15rem;
}

.surty-chat-bubble::after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #ffd400;
}

.surty-chat-bubble--pulse {
    animation: surtyBubblePulse 2s ease-in-out infinite;
}

.surty-chat-bubble p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: left;
}

.surty-chat-bubble strong {
    font-weight: 800;
}

.surty-chat-unread {
    position: absolute;
    right: -6px;
    bottom: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e53935;
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.45);
    border: 2px solid var(--white);
    z-index: 2;
}

.surty-chat-bubble--alert {
    animation: surtyBubblePulse 1.5s ease-in-out infinite;
}

.surty-chat-robot-wrap {
    display: block;
    line-height: 0;
    transition: transform 0.2s ease;
}

.surty-chat-launcher-hit:hover .surty-chat-robot-wrap {
    transform: scale(1.05) translateY(-3px);
}

.surty-chat-robot-img {
    width: 96px;
    height: auto;
    object-fit: contain;
    display: block;
    background: transparent;
    filter: drop-shadow(0 6px 14px rgba(10, 45, 110, 0.22));
}

.surty-chat-robot-fallback {
    font-size: 3rem;
    display: block;
}

.surty-chat-panel {
    width: min(380px, calc(100vw - 2rem));
    height: 0;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(10, 45, 110, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: translateY(24px) scale(0.94);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.38s;
}

.surty-chat.is-open .surty-chat-panel {
    height: min(520px, calc(100vh - 2.5rem));
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    max-height: min(520px, calc(100vh - 2.5rem));
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

.surty-chat-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem 0.5rem;
    background: #eceff3;
    border-bottom: 1px solid #dde3ea;
    min-height: 88px;
}

.surty-chat-header-info {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.surty-chat-header-info strong {
    display: block;
    color: var(--blue-dark);
    font-size: 0.95rem;
    padding-bottom: 0.35rem;
}

.surty-chat-header-info > div:last-child span {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    padding-bottom: 0.35rem;
}

.surty-chat-header-figure {
    flex-shrink: 0;
    width: 72px;
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: transparent;
    overflow: visible;
}

.surty-chat-header-robot {
    width: 72px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    background: transparent;
    filter: drop-shadow(0 2px 6px rgba(10, 45, 110, 0.12));
}

.surty-chat-header-figure span {
    font-size: 2.5rem;
    line-height: 1;
}

.surty-chat-minimize {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #ffd400;
    color: #1a2744;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    margin-bottom: 0.35rem;
}

.surty-chat-minimize:hover {
    transform: scale(1.08);
}

.surty-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.85rem;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.surty-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: surtyMsgIn 0.25s ease both;
}

.surty-msg--visitor {
    align-self: flex-end;
    align-items: flex-end;
}

.surty-msg--surty,
.surty-msg--admin {
    align-self: flex-start;
    align-items: flex-start;
}

.surty-msg-bubble {
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.surty-msg-bubble p {
    margin: 0;
}

.surty-msg--visitor .surty-msg-bubble {
    background: linear-gradient(135deg, var(--blue), #1a4a9e);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.surty-msg--surty .surty-msg-bubble {
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.surty-msg--admin .surty-msg-bubble {
    background: linear-gradient(135deg, #e8f5e0, #f4faf0);
    color: var(--gray-800);
    border: 1px solid #c8e6b4;
    border-bottom-left-radius: 4px;
}

.surty-msg-time {
    font-size: 0.68rem;
    color: var(--gray-600);
    margin-top: 0.2rem;
    padding: 0 0.25rem;
}

.surty-msg-attachment {
    display: block;
    margin-top: 0.45rem;
}

.surty-msg-attachment img {
    max-width: 180px;
    border-radius: 8px;
    display: block;
}

.surty-chat-compose {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    border-top: 1px solid #e2e8f0;
    background: var(--white);
}

.surty-chat-compose[hidden],
.surty-chat-messages[hidden] {
    display: none !important;
}

.surty-chat:not(.surty-chat--ready) .surty-chat-file-hint {
    display: none !important;
}

.surty-chat-attach {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    cursor: pointer;
    color: var(--gray-800);
    flex-shrink: 0;
}

.surty-chat-attach svg {
    width: 20px;
    height: 20px;
}

.surty-chat-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d5dde8;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.surty-chat-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(10, 45, 110, 0.1);
}

.surty-chat-send {
    border: none;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.surty-chat-send:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.surty-chat-file-hint {
    margin: 0;
    padding: 0 0.85rem 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-600);
    background: var(--white);
}

@keyframes surtyBubbleIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes surtyPanelIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (max-width: 480px) {
    .surty-chat {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .surty-chat-bubble {
        max-width: 175px;
        padding: 0.65rem 0.75rem;
    }

    .surty-chat-bubble p {
        font-size: 0.8rem;
    }

    .surty-chat-robot-img {
        width: 82px;
    }

    .surty-chat-header-figure {
        width: 60px;
        height: 68px;
    }

    .surty-chat-header-robot {
        width: 60px;
        max-height: 68px;
    }

    .surty-chat.is-open .surty-chat-panel {
        width: calc(100vw - 1.5rem);
        height: min(480px, calc(100vh - 1.5rem));
        max-height: min(480px, calc(100vh - 1.5rem));
    }
}

/* ---- Admin chat Surty ---- */
.dash-mensajes-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
    align-items: center;
}

.dash-agent-status-form {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #f4f7fb;
    border: 1px solid rgba(10, 45, 110, 0.12);
    border-radius: 999px;
    padding: 0.25rem 0.55rem 0.25rem 0.85rem;
}

.dash-agent-status-form label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue);
}

.dash-agent-status-select {
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--blue);
    padding: 0.35rem 0.4rem;
    cursor: pointer;
}

.dash-agent-status-select.is-ready {
    color: #1f7a2e;
}

.dash-agent-status-select.is-away {
    color: #b45309;
}

.dash-agent-status-options {
    border: 1px solid rgba(10, 45, 110, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem 1rem;
    margin: 0;
}

.dash-agent-status-options legend {
    padding: 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue);
}

.dash-agent-status-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.dash-agent-status-option-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.55rem;
    align-items: center;
}

.dash-agent-status-away-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
}

.dash-chat-msg-actions,
.surty-msg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.surty-msg-action,
.dash-chat-msg-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}

.surty-msg-action--whatsapp,
.dash-chat-msg-action[href*="wa.me"] {
    background: #25d366;
    color: #fff;
}

.surty-msg-action--whatsapp:hover,
.dash-chat-msg-action[href*="wa.me"]:hover {
    color: var(--blue);
}

.surty-msg-action--email,
.dash-chat-msg-action[href^="mailto:"] {
    background: var(--blue);
    color: #fff;
}

.surty-msg-action--link {
    background: #eef2f7;
    color: var(--blue);
    border-color: rgba(10, 45, 110, 0.12);
}

.surty-chat--away .surty-chat-compose,
.surty-chat--away .surty-chat-profile {
    display: none !important;
}

@media (max-width: 720px) {
    .dash-agent-status-form {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .dash-agent-status-option-row {
        grid-template-columns: 1fr;
    }
}

.dash-mensajes-tab {
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-800);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dash-mensajes-tab:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.dash-mensajes-tab.active {
    background: var(--gradient-brand);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(10, 45, 110, 0.18);
}

.dash-mensajes-settings-tabs {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 1rem 1.75rem 0.85rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(180deg, rgba(106, 179, 68, 0.06) 0%, transparent 100%);
}

.dash-mensajes-settings-tab {
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-800);
    border-radius: 999px;
    padding: 0.38rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dash-mensajes-settings-tab:hover {
    border-color: var(--green);
    color: var(--blue);
}

.dash-mensajes-settings-tab.active {
    background: var(--gradient-brand);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 3px 12px rgba(10, 45, 110, 0.15);
}

.dash-mensajes-settings-tab.active .dash-mensajes-tab-badge {
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue);
}

.dash-mensajes-settings-pane {
    display: none;
}

.dash-mensajes-settings-pane.active {
    display: block;
}

.dash-mensajes-settings-pane > .dash-empty {
    padding: 2rem 1.75rem;
}

.dash-mensajes-settings-pane > .dash-qr-admin {
    padding: 0.15rem 1.75rem 1rem;
}

/* Sonido de alerta del chat */
.dash-chat-sound-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 720px;
}

.dash-chat-sound-enable {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
}

.dash-chat-sound-options {
    border: 1px solid rgba(10, 45, 110, 0.12);
    border-radius: 12px;
    padding: 0.9rem 1rem 1rem;
    margin: 0;
}

.dash-chat-sound-options legend {
    padding: 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue);
}

.dash-chat-sound-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.dash-chat-sound-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 0.9rem;
    border: 1.5px solid rgba(10, 45, 110, 0.12);
    border-radius: 12px;
    background: #f7f9fc;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dash-chat-sound-card:hover {
    border-color: rgba(106, 179, 68, 0.45);
}

.dash-chat-sound-card.is-selected {
    border-color: var(--green);
    background: #f3faf0;
    box-shadow: 0 0 0 3px rgba(106, 179, 68, 0.15);
}

.dash-chat-sound-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dash-chat-sound-card-name {
    font-weight: 700;
    color: var(--blue);
}

.dash-chat-sound-card-file {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.dash-chat-sound-card .dash-chat-sound-preview {
    align-self: flex-start;
    margin-top: 0.45rem;
}

.dash-chat-sound-volume label {
    display: block;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 0.45rem;
}

.dash-chat-sound-volume input[type="range"] {
    width: 100%;
    accent-color: var(--green);
}

@media (max-width: 640px) {
    .dash-chat-sound-grid {
        grid-template-columns: 1fr;
    }
}

.dash-mensajes-tab-badge {
    background: #ffd400;
    color: #1a2744;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    min-width: 1.25rem;
    text-align: center;
}

.dash-mensajes-tab.active .dash-mensajes-tab-badge {
    background: var(--white);
    color: var(--blue);
}

.dash-panel--mensajes {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 11rem);
}

.dash-panel--mensajes > .dash-mensajes-pane#pane-chat.active,
.dash-panel--mensajes > .dash-mensajes-pane#pane-forms.active {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.dash-panel--mensajes #pane-chat .dash-chat-layout,
.dash-panel--mensajes #pane-forms .dash-forms-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: minmax(0, 1fr);
    flex: 1 1 0;
    min-height: 0;
    height: calc(100vh - 17.5rem);
    max-height: calc(100vh - 17.5rem);
    border-top: 1px solid var(--gray-200);
    align-items: stretch;
    overflow: hidden;
}

.dash-panel--mensajes #pane-chat .dash-chat-layout > .dash-chat-sidebar,
.dash-panel--mensajes #pane-chat .dash-chat-layout > .dash-chat-thread,
.dash-panel--mensajes #pane-forms .dash-forms-layout > .dash-chat-sidebar,
.dash-panel--mensajes #pane-forms .dash-forms-layout > .dash-chat-thread {
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.dash-chat-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 560px;
    height: min(72vh, 640px);
    border-top: 1px solid var(--gray-200);
}

.dash-chat-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
}

.dash-chat-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.9rem 1rem 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.dash-chat-sidebar-head strong {
    color: var(--blue);
    font-size: 0.9rem;
}

.dash-chat-sidebar-count {
    background: var(--blue);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
}

.dash-chat-sidebar-hint {
    margin: 0;
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--gray-600);
    background: #fff9e0;
    border-bottom: 1px solid #ffe69c;
}

.dash-chat-sessions {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.dash-chat-session {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    background: transparent;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dash-chat-session:hover,
.dash-chat-session.active {
    background: var(--white);
}

.dash-chat-session.active {
    border-left: 4px solid var(--green);
    padding-left: calc(1rem - 4px);
}

.dash-chat-session--unread {
    background: linear-gradient(90deg, #fff9e0 0%, var(--gray-50) 100%);
}

.dash-chat-session--unread.active {
    background: linear-gradient(90deg, #fff9e0 0%, var(--white) 100%);
}

.dash-chat-session-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.dash-chat-session strong {
    color: var(--blue);
    font-size: 0.88rem;
}

.dash-chat-session-preview {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-chat-session time {
    display: block;
    font-size: 0.68rem;
    color: var(--gray-600);
    margin-top: 0.2rem;
}

.dash-chat-session-page {
    display: block;
    font-size: 0.68rem;
    color: var(--gray-600);
    margin-top: 0.15rem;
}

.dash-chat-session-badge {
    background: var(--green);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-forms-session-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.dash-forms-session-type {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--blue);
}

.dash-forms-session-type--express {
    color: #dc2626;
}

.dash-forms-session-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.dash-forms-session-express-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    animation: dashExpressPulse 1.2s ease-in-out infinite;
}

.dash-forms-session-express-flag svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
    animation: dashExpressZap 0.9s ease-in-out infinite;
}

.dash-forms-session-express-flag em {
    font-style: normal;
}

.dash-forms-session--express {
    border-left: 3px solid #dc2626;
}

.dash-forms-session--express .dash-forms-session-type--express {
    color: #dc2626 !important;
}

.dash-forms-session-meta time {
    margin-top: 0;
}

.dash-forms-detail-wrap {
    padding: 1rem 1.15rem 1.25rem;
    overflow: auto;
}

.dash-forms-detail {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.dash-forms-detail-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dash-forms-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dash-forms-line--spacer {
    height: 0.45rem;
}

.dash-forms-line-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 0.15rem;
}

.dash-forms-line-title--express,
.dash-forms-value--express,
.dash-forms-meta-express {
    color: #dc2626 !important;
    font-weight: 800;
}

.dash-forms-label {
    color: var(--blue);
    font-weight: 700;
}

.dash-forms-value {
    color: #1f2937;
    font-weight: 500;
}

.dash-forms-express-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    animation: dashExpressPulse 1.2s ease-in-out infinite;
}

.dash-forms-express-icon[hidden],
#formsThreadBadge[hidden],
#formsThreadReadBadge[hidden],
#formsMarkReadBtn[hidden] {
    display: none !important;
}

.dash-forms-express-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    animation: dashExpressZap 0.9s ease-in-out infinite;
}

.dash-forms-express-icon em {
    font-style: normal;
}

.dash-forms-thread--express .dash-chat-thread-avatar {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

@keyframes dashExpressPulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.25); }
    50% { transform: translateY(-1px); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

@keyframes dashExpressZap {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    35% { transform: translateX(1px) rotate(-8deg); }
    70% { transform: translateX(-1px) rotate(8deg); }
}

.dash-forms-detail .dash-message-pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--gray-800);
}

.dash-forms-detail-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--gray-200);
}

.dash-chat-sidebar-empty {
    margin: 1rem;
    color: var(--gray-600);
    font-size: 0.85rem;
}

.dash-chat-thread {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    background: var(--white);
    overflow: hidden;
    position: relative;
}

.dash-chat-thread.dash-chat-thread--active {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.dash-chat-thread-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    color: var(--gray-600);
    min-height: 0;
}

.dash-chat-thread-empty[hidden] {
    display: none !important;
}

.dash-chat-thread-empty h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: var(--blue);
}

.dash-chat-thread-empty p {
    margin: 0;
    font-size: 0.85rem;
    max-width: 260px;
}

.dash-chat-thread-empty-icon {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.dash-chat-thread-active {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    width: 100%;
    overflow: hidden;
}

.dash-chat-thread-active[hidden] {
    display: none !important;
}

.dash-chat-thread--active .dash-chat-thread-active {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
}

.dash-chat-live-badge--closed {
    background: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

.dash-chat-close-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.75rem !important;
    padding: 0.35rem 0.7rem !important;
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.dash-chat-close-btn:hover {
    background: #bb2d3b !important;
    border-color: #b02a37 !important;
    color: #fff !important;
}

.dash-chat-session-ruc {
    display: block;
    font-size: 0.7rem;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.dash-archive-list {
    padding: 0 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-historial-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.85rem 1.15rem 1.4rem;
}

.dash-historial-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.15rem;
    background: #eef3fa;
    border: 1px solid rgba(10, 45, 110, 0.1);
    border-radius: 12px;
}

.dash-historial-subtab {
    flex: 1 1 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    background: transparent;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    cursor: pointer;
}

.dash-historial-subtab.active {
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 45, 110, 0.18);
}

.dash-historial-subtab.active .dash-mensajes-tab-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.dash-historial-view {
    display: none;
}

.dash-historial-view.active {
    display: block;
}

.dash-historial-stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1rem 1.25rem 1.5rem;
}

.dash-historial-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.dash-historial-block-head h3 {
    margin: 0;
    color: var(--blue);
    font-size: 1.05rem;
}

.dash-historial-block-count {
    background: var(--blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 1.5rem;
    text-align: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.dash-empty--compact {
    padding: 1.25rem 1rem;
}

.dash-forms-archive-row {
    align-items: flex-start;
}

.dash-chat-archive-row {
    align-items: flex-start;
}

.dash-chat-archive-item,
.dash-forms-archive-item {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
}

.dash-chat-archive-item > summary,
.dash-forms-archive-item > summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem 0.8rem;
}

.dash-chat-archive-item > summary::-webkit-details-marker,
.dash-forms-archive-item > summary::-webkit-details-marker {
    display: none;
}

.dash-chat-archive-item > summary strong,
.dash-forms-archive-item > summary strong {
    color: var(--blue);
    font-size: 0.9rem;
}

.dash-chat-archive-item > summary span,
.dash-forms-archive-item > summary span {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.dash-forms-archive-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dash-forms-archive-item > summary .dash-forms-archive-type {
    font-weight: 700;
    color: var(--blue);
}

.dash-forms-archive-item > summary .dash-forms-archive-type--express,
.dash-forms-archive-item--express > summary .dash-forms-archive-type {
    color: #dc2626 !important;
}

.dash-forms-archive-item > summary strong,
.dash-forms-archive-item--express > summary strong {
    color: var(--blue) !important;
}

.dash-archive-group--express > summary > strong {
    color: #dc2626 !important;
}

.dash-forms-archive-express-flag--inline {
    margin-bottom: 0;
    flex-shrink: 0;
    animation: dashExpressPulse 1.2s ease-in-out infinite;
}

.dash-forms-archive-express-flag--inline svg {
    animation: dashExpressZap 0.9s ease-in-out infinite;
}

.dash-forms-archive-detail .dash-forms-label {
    color: var(--blue);
    font-weight: 700;
}

.dash-forms-archive-detail .dash-forms-value {
    color: #1f2937;
    font-weight: 500;
}

.dash-forms-archive-detail .dash-forms-line-title {
    color: var(--blue);
    font-weight: 800;
}

.dash-forms-archive-detail .dash-forms-line-title--express,
.dash-forms-archive-detail .dash-forms-value--express {
    color: #dc2626 !important;
    font-weight: 800;
}

.dash-chat-archive-preview,
.dash-forms-archive-preview {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-chat-archive-detail,
.dash-forms-archive-detail {
    border-top: 1px solid var(--gray-200);
    padding: 0.75rem 0.85rem 0.9rem;
    background: #f8fafc;
}

.dash-chat-archive-thread {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-height: 360px;
    overflow-y: auto;
    padding: 0.15rem 0.1rem 0.35rem;
}

.dash-chat-archive-thread .dash-chat-msg {
    max-width: 100%;
}

.dash-chat-archive-empty {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.85rem;
}

.dash-chat-archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--gray-200);
    font-size: 0.75rem;
    color: var(--gray-600);
}

.dash-forms-archive-detail .dash-message-pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.86rem;
    line-height: 1.5;
}

.dash-forms-archive-detail .dash-forms-detail-body {
    margin-bottom: 0.25rem;
}

.dash-forms-archive-type {
    font-weight: 700;
    color: var(--blue);
}

.dash-forms-archive-type--express {
    color: #dc2626;
}

.dash-forms-archive-express-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.65rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dash-forms-archive-express-flag svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.dash-forms-archive-express-flag em {
    font-style: normal;
}

.dash-archive-form {
    display: flex;
    flex-direction: column;
}

.dash-archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.75rem 0.75rem;
}

.dash-archive-toolbar-start {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.dash-archive-select-all {
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--blue);
}

.dash-archive-select-all-label {
    user-select: none;
}

.dash-archive-toolbar-hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--gray-600);
}

.dash-archive-delete-btn {
    font-weight: 700;
}

.dash-archive-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.dash-archive-check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.dash-archive-check-ui {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(10, 45, 110, 0.28);
    border-radius: 4px;
    background: var(--white);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(10, 45, 110, 0.05);
}

.dash-archive-check input:checked + .dash-archive-check-ui {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 2px 8px rgba(106, 179, 68, 0.35);
}

.dash-archive-check input:checked + .dash-archive-check-ui::after {
    content: '';
    display: block;
    width: 0.35rem;
    height: 0.62rem;
    margin: 0.05rem auto 0;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
}

.dash-archive-check input:focus-visible + .dash-archive-check-ui {
    outline: 2px solid rgba(106, 179, 68, 0.45);
    outline-offset: 2px;
}

.dash-archive-group {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    overflow: hidden;
}

.dash-archive-group summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    background: linear-gradient(135deg, #f0f4fa, #f7f9fc);
}

.dash-archive-group summary::-webkit-details-marker {
    display: none;
}

.dash-archive-group summary strong {
    color: var(--blue);
}

.dash-archive-ruc {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 600;
}

.dash-archive-count {
    margin-left: auto;
    font-size: 0.72rem;
    background: var(--gray-200);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.dash-archive-sessions {
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.dash-archive-session-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.dash-archive-session-row:last-child {
    border-bottom: none;
}

.dash-archive-session-row .dash-archive-check {
    align-self: center;
}

.dash-archive-session {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--gray-800);
}

.dash-archive-session-row:hover {
    background: var(--gray-50);
}

.dash-archive-session:hover {
    background: transparent;
}

.dash-archive-session span:first-child {
    font-size: 0.72rem;
    color: var(--gray-600);
}

.surty-chat-profile {
    padding: 1rem 0.85rem;
    background: #f7f9fc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.surty-chat-profile[hidden] {
    display: none !important;
}

.surty-chat-profile-title {
    margin: 0;
    font-size: 0.88rem;
    color: var(--gray-800);
    line-height: 1.45;
}

.surty-chat-profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.surty-chat-profile-field span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue-dark);
}

.surty-chat-profile-field em {
    color: #dc3545;
    font-style: normal;
}

.surty-chat-profile-field input {
    border: 1px solid #d5dde8;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
}

.surty-chat-profile-field input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(10, 45, 110, 0.1);
}

.surty-chat-profile-submit {
    width: 100%;
    margin-top: 0.15rem;
}

.dash-chat-session--closed {
    opacity: 0.72;
}

.dash-chat-session-closed {
    background: var(--gray-200);
    color: var(--gray-800);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-chat-thread-header {
    flex: 0 0 auto;
    flex-shrink: 0;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f0f4fa, #f7f9fc);
    flex-wrap: wrap;
}

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

.dash-chat-thread-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.dash-chat-thread-header strong {
    display: block;
    color: var(--blue);
    font-size: 0.95rem;
}

.dash-chat-thread-header span {
    display: block;
    font-size: 0.76rem;
    color: var(--gray-600);
}

.dash-chat-live-badge {
    flex-shrink: 0;
    background: #e8f5e0;
    color: #3d6b24;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #c8e6b4;
}

.dash-chat-messages-wrap {
    flex: 1 1 0;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    background: #f7f9fc;
}

.dash-chat-messages {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    -webkit-overflow-scrolling: touch;
}

.dash-chat-msg {
    max-width: 82%;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    animation: surtyMsgIn 0.25s ease both;
}

.dash-chat-msg-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gray-600);
    padding: 0 0.25rem;
}

.dash-chat-msg--visitor {
    align-self: flex-start;
}

.dash-chat-msg--admin,
.dash-chat-msg--surty {
    align-self: flex-end;
    align-items: flex-end;
}

.dash-chat-msg-bubble {
    padding: 0.7rem 0.95rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dash-chat-msg--visitor .dash-chat-msg-bubble {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.dash-chat-msg--admin .dash-chat-msg-bubble {
    background: linear-gradient(135deg, var(--blue), #1a4a9e);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.dash-chat-msg--surty .dash-chat-msg-bubble {
    background: #eef6e8;
    border: 1px solid #c8e6b4;
    border-bottom-right-radius: 4px;
    color: var(--gray-800);
}

.dash-chat-msg time {
    font-size: 0.65rem;
    color: var(--gray-600);
    padding: 0 0.25rem;
}

.dash-chat-msg-attachment {
    color: inherit;
    font-weight: 600;
}

.dash-chat-other-alert {
    flex: 0 0 auto;
    flex-shrink: 0;
    margin: 0 1rem 0.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #664d03;
    font-size: 0.78rem;
    font-weight: 600;
}

.dash-chat-other-alert[hidden] {
    display: none !important;
}

.dash-chat-reply {
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: 0 -4px 16px rgba(10, 45, 110, 0.06);
    position: relative;
    z-index: 25;
}

.dash-chat-reply-field {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    position: relative;
}

.dash-chat-quick-wrap {
    position: relative;
    flex-shrink: 0;
}

.dash-chat-quick-btn {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid #ffe69c;
    border-radius: 10px;
    background: #fff9e0;
    color: #c9a000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.dash-chat-quick-btn svg {
    width: 1.15rem;
    height: 1.15rem;
}

.dash-chat-quick-btn:hover,
.dash-chat-quick-btn.is-open {
    background: #ffc107;
    border-color: #ffb300;
    color: #5c4500;
}

.dash-chat-quick-menu {
    position: fixed;
    z-index: 1200;
    min-width: min(320px, 78vw);
    max-width: 360px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(10, 45, 110, 0.2);
    padding: 0.35rem;
    -webkit-overflow-scrolling: touch;
}

.dash-chat-quick-menu.is-positioned {
    position: fixed;
}

.dash-chat-quick-menu[hidden] {
    display: none !important;
}

.dash-chat-quick-option {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dash-chat-quick-option:hover {
    background: var(--gray-50);
}

.dash-chat-quick-option strong {
    display: block;
    color: var(--blue);
    font-size: 0.82rem;
    margin-bottom: 0.15rem;
}

.dash-chat-quick-option span {
    display: block;
    color: var(--gray-600);
    font-size: 0.74rem;
    line-height: 1.35;
}

.dash-chat-quick-empty {
    margin: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
    color: var(--gray-600);
    line-height: 1.45;
}

.dash-chat-quick-group-label {
    margin: 0;
    padding: 0.45rem 0.65rem 0.25rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--blue);
}

.dash-chat-quick-group + .dash-chat-quick-group {
    border-top: 1px solid var(--gray-200);
    margin-top: 0.15rem;
    padding-top: 0.15rem;
}

.dash-qr-admin {
    padding: 0.15rem 0 1rem;
}

.dash-qr-admin-head h3 {
    color: var(--blue);
    margin-bottom: 0.35rem;
}

.dash-qr-admin-head p {
    color: var(--gray-600);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.dash-qr-section {
    margin-bottom: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.dash-qr-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: linear-gradient(90deg, rgba(10, 45, 110, 0.06), rgba(106, 179, 68, 0.08));
    border-bottom: 1px solid var(--gray-200);
}

.dash-qr-section-head h4 {
    margin: 0;
    font-size: 0.82rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex: 1;
    min-width: 0;
}

.dash-qr-section-head-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.dash-qr-section-add-btn.is-open {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.dash-qr-section-add {
    padding: 0.85rem 0.9rem;
    background: #f7f9fc;
    border-bottom: 1px solid var(--gray-200);
}

.dash-qr-section-add[hidden] {
    display: none !important;
}

.dash-qr-section-add-grid {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.dash-qr-section-add-text {
    grid-column: 1 / -1;
}

.dash-qr-section-add-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dash-qr-section-count {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

.dash-qr-section-empty {
    margin: 0;
    padding: 0.75rem 0.9rem;
    font-size: 0.8rem;
    color: var(--gray-600);
    font-style: italic;
}

.dash-qr-rows {
    display: flex;
    flex-direction: column;
}

.dash-qr-row {
    border-bottom: 1px solid var(--gray-200);
}

.dash-qr-row:last-child {
    border-bottom: none;
}

.dash-qr-view {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
}

.dash-qr-view-main {
    min-width: 0;
    flex: 1;
}

.dash-qr-view-main strong {
    display: block;
    color: var(--blue);
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}

.dash-qr-view-main p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-qr-view-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.35rem;
    align-items: center;
}

.dash-qr-delete-form {
    margin: 0;
}

.dash-qr-edit {
    padding: 0.65rem 0.9rem 0.75rem;
    background: var(--gray-50);
    border-top: 1px dashed var(--gray-200);
}

.dash-qr-edit[hidden],
.dash-qr-view[hidden] {
    display: none !important;
}

.dash-qr-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.dash-qr-edit-text {
    grid-column: 1 / -1;
}

.dash-qr-edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.dash-qr-add-panel {
    margin-top: 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    overflow: hidden;
}

.dash-qr-add-panel summary {
    cursor: pointer;
    padding: 0.75rem 0.9rem;
    font-weight: 700;
    color: var(--blue);
    list-style: none;
}

.dash-qr-add-panel summary::-webkit-details-marker {
    display: none;
}

.dash-qr-add-form {
    padding: 0 0.9rem 0.85rem;
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 720px) {
    .dash-qr-view {
        flex-direction: column;
    }

    .dash-qr-edit-grid {
        grid-template-columns: 1fr;
    }

    .dash-qr-section-add-grid {
        grid-template-columns: 1fr;
    }
}

.dash-chat-reply input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
}

.dash-chat-reply input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(10, 45, 110, 0.1);
}

.dash-chat-send-btn {
    flex-shrink: 0;
    min-width: 88px;
    border-radius: 999px !important;
}

.dash-chat-reply-hint {
    margin: 0.45rem 0 0;
    font-size: 0.72rem;
    color: var(--gray-600);
}

.dash-chat-alert-banner {
    margin: 0 1.75rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    border: 1px solid #ffc107;
    color: #664d03;
    font-size: 0.88rem;
    font-weight: 600;
    display: none;
    animation: surtyBubblePulse 1.5s ease-in-out infinite;
}

.dash-chat-alert-banner.show {
    display: block;
}

.dash-mensajes-pane {
    display: none;
}

.dash-mensajes-pane.active {
    display: block;
}

@media (max-width: 900px) {
    .dash-panel--mensajes #pane-chat .dash-chat-layout,
    .dash-panel--mensajes #pane-forms .dash-forms-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr);
        height: calc(100vh - 15.5rem);
        max-height: calc(100vh - 15.5rem);
        min-height: 420px;
        overflow: hidden;
    }

    .dash-panel--mensajes #pane-chat .dash-chat-layout > .dash-chat-sidebar,
    .dash-panel--mensajes #pane-chat .dash-chat-layout > .dash-chat-thread,
    .dash-panel--mensajes #pane-forms .dash-forms-layout > .dash-chat-sidebar,
    .dash-panel--mensajes #pane-forms .dash-forms-layout > .dash-chat-thread {
        height: 100%;
        max-height: none;
        min-height: 0;
        overflow: hidden;
    }

    .dash-chat-layout,
    .dash-forms-layout {
        grid-template-columns: 1fr !important;
        grid-template-rows: minmax(0, 1fr);
        height: auto;
        min-height: 0;
    }

    /* Lista o detalle a pantalla completa (solo móvil) */
    .dash-panel--mensajes #pane-chat .dash-chat-layout.is-mobile-list > .dash-chat-thread,
    .dash-panel--mensajes #pane-forms .dash-forms-layout.is-mobile-list > .dash-chat-thread,
    .dash-panel--mensajes #pane-chat .dash-chat-layout.is-mobile-detail > .dash-chat-sidebar,
    .dash-panel--mensajes #pane-forms .dash-forms-layout.is-mobile-detail > .dash-chat-sidebar {
        display: none !important;
    }

    .dash-panel--mensajes #pane-chat .dash-chat-layout.is-mobile-list > .dash-chat-sidebar,
    .dash-panel--mensajes #pane-forms .dash-forms-layout.is-mobile-list > .dash-chat-sidebar,
    .dash-panel--mensajes #pane-chat .dash-chat-layout.is-mobile-detail > .dash-chat-thread,
    .dash-panel--mensajes #pane-forms .dash-forms-layout.is-mobile-detail > .dash-chat-thread {
        display: flex !important;
        flex-direction: column;
        height: 100%;
        max-height: none;
        border-right: none;
        border-bottom: none;
    }

    .dash-panel--mensajes #pane-chat .dash-chat-sessions,
    .dash-panel--mensajes #pane-forms .dash-chat-sessions {
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1 1 auto;
    }

    .dash-panel--mensajes #pane-chat .dash-chat-messages-wrap,
    .dash-panel--mensajes #pane-forms .dash-forms-detail-wrap {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dash-panel--mensajes #pane-chat .dash-chat-reply {
        flex: 0 0 auto;
        background: #fff;
        border-top: 1px solid var(--gray-200);
        padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    }

    .dash-mensajes-back-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.15rem;
        flex-shrink: 0;
        border: 1px solid rgba(10, 45, 110, 0.18);
        background: #eef3fa;
        color: var(--blue);
        border-radius: 999px;
        padding: 0.35rem 0.65rem 0.35rem 0.4rem;
        font-size: 0.78rem;
        font-weight: 700;
        cursor: pointer;
    }

    .dash-mensajes-back-btn svg {
        width: 16px;
        height: 16px;
    }

    .dash-mensajes-back-btn:active {
        background: #dce7f5;
    }

    .dash-chat-other-alert {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .dash-chat-other-alert-action {
        flex-shrink: 0;
        font-weight: 800;
        text-decoration: underline;
    }

    .dash-chat-sidebar-hint {
        display: none;
    }

    .dash-chat-close-btn {
        font-size: 0.72rem;
        padding: 0.3rem 0.55rem;
    }
}

@media (min-width: 901px) {
    .dash-mensajes-back-btn {
        display: none !important;
    }

    .dash-chat-other-alert-action {
        display: none;
    }
}

.dash-welcome-admin .dash-qr-admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dash-welcome-hint {
    margin: 0 0 1rem;
    font-size: 0.84rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.dash-welcome-hint code {
    background: var(--gray-100);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.82rem;
}

.dash-welcome-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.75rem 0 0;
    font-size: 0.84rem;
    color: var(--gray-600);
    cursor: pointer;
}

.dash-welcome-check input {
    margin-top: 0.15rem;
}

.dash-welcome-view-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.dash-welcome-order {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 600;
}

.dash-welcome-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dash-welcome-rows .dash-qr-row {
    border-left: 3px solid var(--green);
}

/* ============================================
   VISTA PÚBLICA — Mantenimiento
   ============================================ */

.maintenance-body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    font-family: var(--font);
    color: var(--white);
    background: var(--blue-dark);
}

.maintenance-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(106, 179, 68, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(10, 45, 110, 0.5) 0%, transparent 50%),
        linear-gradient(165deg, #061d47 0%, #0a2d6e 45%, #0d3a7a 100%);
}

.maintenance-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
    animation: maintenanceGridDrift 24s linear infinite;
}

@keyframes maintenanceGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

.maintenance-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    animation: maintenanceOrbFloat 8s ease-in-out infinite;
}

.maintenance-orb--1 {
    width: 320px;
    height: 320px;
    background: rgba(106, 179, 68, 0.55);
    top: -8%;
    left: -5%;
    animation-duration: 9s;
}

.maintenance-orb--2 {
    width: 260px;
    height: 260px;
    background: rgba(56, 120, 220, 0.45);
    bottom: 10%;
    right: -4%;
    animation-duration: 11s;
    animation-delay: -3s;
}

.maintenance-orb--3 {
    width: 180px;
    height: 180px;
    background: rgba(143, 212, 101, 0.35);
    top: 45%;
    left: 55%;
    animation-duration: 7s;
    animation-delay: -5s;
}

@keyframes maintenanceOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -18px) scale(1.06); }
    66% { transform: translate(-16px, 14px) scale(0.94); }
}

.maintenance-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 2.5rem;
    text-align: center;
}

.maintenance-card {
    width: min(100%, 520px);
    padding: 2.5rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: maintenanceCardIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes maintenanceCardIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.maintenance-icon-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 0.75rem;
    color: rgba(255, 255, 255, 0.92);
}

.maintenance-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(143, 212, 101, 0.45);
}

.maintenance-orbit-ring--outer {
    animation: maintenanceOrbitSpin 8s linear infinite;
}

.maintenance-orbit-ring--inner {
    inset: 10px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.12);
    border-width: 1.5px;
    animation: maintenanceOrbitSpinReverse 5s linear infinite;
}

.maintenance-orbit-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-light);
    box-shadow: 0 0 12px rgba(143, 212, 101, 0.8);
    transform-origin: 0 0;
}

.maintenance-orbit-dot--1 {
    animation: maintenanceOrbitTravel 3s linear infinite;
}

.maintenance-orbit-dot--2 {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: maintenanceOrbitTravel 3s linear infinite;
    animation-delay: -1s;
}

.maintenance-orbit-dot--3 {
    width: 6px;
    height: 6px;
    background: #7ec8ff;
    box-shadow: 0 0 10px rgba(126, 200, 255, 0.7);
    animation: maintenanceOrbitTravel 3s linear infinite;
    animation-delay: -2s;
}

@keyframes maintenanceOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes maintenanceOrbitSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes maintenanceOrbitTravel {
    from { transform: rotate(0deg) translateX(38px); }
    to { transform: rotate(360deg) translateX(38px); }
}

.maintenance-tool-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    color: var(--white);
    filter: drop-shadow(0 0 8px rgba(143, 212, 101, 0.45));
    animation: maintenanceToolPulse 2.4s ease-in-out infinite;
}

@keyframes maintenanceToolPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.95;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 1;
    }
}

.maintenance-logo-wrap {
    position: relative;
    margin: 0.75rem auto 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    padding: 0.5rem 0;
}

.maintenance-logo-glow {
    position: absolute;
    width: min(260px, 75vw);
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(106, 179, 68, 0.35) 0%, transparent 70%);
    animation: maintenanceLogoGlow 3.2s ease-in-out infinite;
    pointer-events: none;
}

.maintenance-logo-shadow {
    position: absolute;
    bottom: 0;
    width: min(180px, 55vw);
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
    animation: maintenanceLogoShadow 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes maintenanceLogoGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.92);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes maintenanceLogoShadow {
    0%, 100% {
        opacity: 0.35;
        transform: scaleX(1);
    }
    50% {
        opacity: 0.15;
        transform: scaleX(0.75);
    }
}

.maintenance-logo {
    position: relative;
    z-index: 1;
    max-width: min(280px, 85vw);
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.3));
    animation: maintenanceLogoFloat 3.2s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes maintenanceLogoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    20% {
        transform: translateY(-6px) rotate(-1.2deg) scale(1.02);
    }
    50% {
        transform: translateY(-16px) rotate(0deg) scale(1.05);
    }
    80% {
        transform: translateY(-6px) rotate(1.2deg) scale(1.02);
    }
}

.maintenance-logo-fallback {
    position: relative;
    z-index: 1;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--white);
    animation: maintenanceLogoFloat 3.2s ease-in-out infinite;
    transform-origin: center bottom;
}

.maintenance-badge {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d4f5c4;
    background: rgba(106, 179, 68, 0.22);
    border: 1px solid rgba(143, 212, 101, 0.35);
    border-radius: 999px;
    animation: maintenanceBadgePulse 2.5s ease-in-out infinite;
}

@keyframes maintenanceBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(106, 179, 68, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(106, 179, 68, 0); }
}

.maintenance-title {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, #fff 0%, #c8e6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.maintenance-message {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.5rem;
    max-width: 42ch;
    margin-inline: auto;
}

.maintenance-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.maintenance-progress-bar {
    display: block;
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, var(--green), var(--green-light), var(--green));
    background-size: 200% 100%;
    border-radius: inherit;
    animation: maintenanceProgress 2.2s ease-in-out infinite;
}

@keyframes maintenanceProgress {
    0% {
        transform: translateX(-120%);
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        transform: translateX(420%);
        background-position: 0% 50%;
    }
}

.maintenance-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0;
    list-style: none;
}

.maintenance-features li {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: maintenanceFeatureIn 0.6s ease both;
}

.maintenance-features li:nth-child(1) { animation-delay: 0.3s; }
.maintenance-features li:nth-child(2) { animation-delay: 0.45s; }
.maintenance-features li:nth-child(3) { animation-delay: 0.6s; }

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

.maintenance-contact {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.maintenance-contact p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.75rem;
}

.maintenance-contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.maintenance-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.maintenance-contact-links a:hover {
    color: var(--white);
    background: rgba(106, 179, 68, 0.35);
    border-color: rgba(143, 212, 101, 0.5);
    transform: translateY(-2px);
}

.maintenance-footer {
    margin-top: 1.75rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    animation: maintenanceCardIn 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 480px) {
    .maintenance-card {
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 20px;
    }

    .maintenance-icon-wrap {
        width: 76px;
        height: 76px;
    }

    @keyframes maintenanceOrbitTravel {
        from { transform: rotate(0deg) translateX(32px); }
        to { transform: rotate(360deg) translateX(32px); }
    }

    .maintenance-features li {
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maintenance-logo,
    .maintenance-logo-fallback,
    .maintenance-logo-glow,
    .maintenance-logo-shadow,
    .maintenance-orbit-ring--outer,
    .maintenance-orbit-ring--inner,
    .maintenance-orbit-dot,
    .maintenance-tool-icon,
    .maintenance-orb,
    .maintenance-grid,
    .maintenance-progress-bar,
    .maintenance-badge {
        animation: none;
    }
}

/* ============================================
   ADMIN — Mantenimiento
   ============================================ */

.dash-nav-badge--warn {
    background: #f59e0b;
    color: #1a1200;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.4rem;
    animation: dashPulse 2s ease infinite;
}

.dash-nav-link.active .dash-nav-badge--warn {
    background: #fbbf24;
    color: #1a1200;
}

.dash-head-badge--warning {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    animation: dashPulse 1.8s ease infinite;
}

.dash-maintenance-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0 2rem 1rem;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    animation: dashFadeUp 0.4s ease both;
}

.dash-maintenance-banner > span {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.dash-maintenance-banner strong {
    display: block;
    font-size: 0.92rem;
    color: #92400e;
    margin-bottom: 0.15rem;
}

.dash-maintenance-banner p {
    margin: 0;
    font-size: 0.82rem;
    color: #a16207;
    line-height: 1.45;
}

.dash-maintenance-banner a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dash-panel--mantenimiento .dash-panel-head--gradient {
    background: linear-gradient(135deg, #92400e 0%, var(--blue) 55%, var(--green) 100%);
}

.dash-maintenance-section {
    border-left-color: #f59e0b;
}

.dash-maintenance-status {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dash-maintenance-status.is-active {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.9), var(--white));
}

.dash-maintenance-status-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.dash-maintenance-status strong {
    display: block;
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.dash-maintenance-status p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.dash-maintenance-toggle {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.dash-maintenance-toggle:hover {
    border-color: rgba(10, 45, 110, 0.25);
}

.dash-maintenance-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.dash-maintenance-toggle-ui {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 28px;
    margin-top: 0.15rem;
    background: var(--gray-200);
    border-radius: 999px;
    transition: background 0.3s ease;
}

.dash-maintenance-toggle-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dash-maintenance-toggle input:checked + .dash-maintenance-toggle-ui {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.dash-maintenance-toggle input:checked + .dash-maintenance-toggle-ui::after {
    transform: translateX(24px);
}

.dash-maintenance-toggle input:focus-visible + .dash-maintenance-toggle-ui {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.dash-maintenance-toggle-text strong {
    display: block;
    font-size: 0.92rem;
    color: var(--gray-800);
    margin-bottom: 0.2rem;
}

.dash-maintenance-toggle-text small {
    display: block;
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.45;
}

.dash-maintenance-form .dash-form-actions {
    flex-wrap: wrap;
    gap: 0.65rem;
}

.dash-maintenance-hint {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #92400e;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
}

.dash-form-section--social {
    border-left-color: #6366f1;
}

.dash-social-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-social-row {
    display: grid;
    grid-template-columns: minmax(140px, 180px) 1fr;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
}

.dash-social-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
}

.dash-social-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.dash-social-check-ui {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    background: var(--white);
    transition: background 0.2s, border-color 0.2s;
}

.dash-social-check-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.dash-social-check input:checked + .dash-social-check-ui {
    background: var(--green);
    border-color: var(--green);
}

.dash-social-check input:checked + .dash-social-check-ui::after {
    transform: rotate(45deg) scale(1);
}

.dash-social-check input:focus-visible + .dash-social-check-ui {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.dash-social-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-800);
}

.dash-social-url {
    min-width: 0;
}

.dash-social-readonly-wrap {
    position: relative;
    min-width: 0;
}

.dash-social-url--readonly {
    background: var(--gray-50);
    color: var(--gray-600);
    cursor: not-allowed;
    padding-right: 6.5rem;
}

.dash-social-readonly-badge {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--green);
    background: rgba(106, 179, 68, 0.12);
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    pointer-events: none;
}

.dash-social-row--readonly {
    border-left: 3px solid var(--green);
}

@media (max-width: 640px) {
    .dash-social-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .dash-maintenance-banner {
        margin: 0 1rem 1rem;
    }
}
