/* ================================================================
   SOMMY — Identidad de marca (Brandbook oficial)
   Paleta: Azul Sommy #1B2B5A · Azul Confort #2563EB · Verde Agua #0EA5E9
           Brisa Suave #E0F2FE · Blanco Algodón #F8FAFC · Borde #E7EAF2
           Texto secundario #5D6884 · Texto terciario #8A93AD
   Tipografía: Lora (titulares, precios) · Poppins (cuerpo, fichas, forms)
   Proporción: 75% blanco/brisa · 20% Azul Sommy · 5% acentos
   Sombra única: 0 10px 30px rgba(27,43,90,.10)
   Firma verbal: "Liviano como una pluma."
   ================================================================ */

:root {
    /* Tipografía */
    --ec-font:          'Poppins', sans-serif;
    --ec-heading-font:  'Poppins', sans-serif;

    /* Paleta Sommy */
    --sm-navy:          #1B2B5A;
    --sm-blue:          #2563EB;
    --sm-aqua:          #0EA5E9;
    --sm-breeze:        #E0F2FE;
    --sm-cotton:        #F8FAFC;
    --sm-border:        #E7EAF2;
    /* Textos oscurecidos respecto del brandbook para cumplir contraste AA sobre fondos claros */
    --sm-text-2:        #47536F;
    --sm-text-3:        #6E7A96;
    --sm-shadow:        0 10px 30px rgba(27, 43, 90, .10);

    /* Remapeo de variables del tema al sistema Sommy */
    --ec-dark:          var(--sm-navy);
    --ec-dark-2:        #24356B;
    --ec-dark-3:        var(--sm-text-2);
    --ec-mid:           var(--sm-text-2);
    --ec-light:         var(--sm-text-3);
    --ec-border:        var(--sm-border);
    --ec-bg:            var(--sm-cotton);
    --ec-bg-2:          var(--sm-breeze);

    --ec-accent:        var(--sm-navy);
    --ec-accent-hover:  var(--sm-blue);
    --ec-danger:        #b4552d;
    --ec-success:       var(--sm-aqua);

    --ec-radius:        18px;
    --ec-radius-sm:     14px;
    --ec-shadow:        var(--sm-shadow);
    --ec-shadow-hover:  0 14px 40px rgba(27, 43, 90, .16);

    --header-height:    68px;
}

@media (max-width: 991px) {
    :root { --header-height: 64px; }
}

/* ── Más aire entre secciones ─────────────────────────────────── */
.main-content-ecommerce section:not(.sommy-banner-section) {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

/* ── Base: Blanco Algodón + Poppins ───────────────────────────── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
#productos, #categorias, #fabricantes { scroll-margin-top: calc(var(--header-height) + 16px); }

body {
    background: var(--sm-cotton);
    font-weight: 400;
    color: var(--sm-text-2);
    overflow-x: hidden;
}

/* ── Voz de marca: Lora en titulares y precios ────────────────── */
h1, h2, h3, h4, h5, h6,
.section-title,
.category-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    color: var(--sm-navy);
    line-height: 1.2;
}

p { line-height: 1.7; }

.section-title { font-weight: 600 !important; }

/* Precios: Lora 700 azul noche (jerarquía del brandbook) */
.product-item .price,
.product-item .fw-bold,
.price.effective-price,
#showPriceVariant,
#showTotalPedido {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    color: var(--sm-navy) !important;
}

/* ── Badge de oferta: Verde Agua (prohibido rojo/amarillo) ────── */
.badge.bg-success {
    background: var(--sm-aqua) !important;
    color: #fff !important;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 6px 12px;
}

/* ── Botones: pill Azul Sommy, hover Azul Confort ─────────────── */
.btn-dark,
.btn-add-prod,
.btn-add-prod-specific,
.checkout-btn,
.btn-primary.checkout-btn {
    background: var(--sm-navy) !important;
    border-color: var(--sm-navy) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    box-shadow: var(--sm-shadow);
}
.btn-dark:hover,
.btn-add-prod:hover,
.btn-add-prod-specific:hover,
.checkout-btn:hover,
.btn-primary.checkout-btn:hover {
    background: var(--sm-blue) !important;
    border-color: var(--sm-blue) !important;
}

.btn-outline-dark {
    color: var(--sm-navy) !important;
    border-color: var(--sm-navy) !important;
    border-radius: 999px !important;
}
.btn-outline-dark:hover,
.btn-check:checked + .btn-outline-dark {
    background: var(--sm-navy) !important;
    border-color: var(--sm-navy) !important;
    color: #fff !important;
}

/* Botón "seguir comprando" del carrito */
.btn-keep-shopping {
    background: var(--sm-blue) !important;
    color: #fff !important;
}
.btn-keep-shopping:hover { background: var(--sm-navy) !important; }

/* Botones primarios del checkout */
.section-content-order .btn-primary {
    background: var(--sm-navy);
    border-color: var(--sm-navy);
    border-radius: 999px;
}
.section-content-order .btn-primary:hover {
    background: var(--sm-blue);
    border-color: var(--sm-blue);
}

/* ── Header ───────────────────────────────────────────────────── */
.ec-header {
    background: #fff;
    border-bottom-color: var(--sm-border) !important;
}

/* Topbar noche: firma verbal + accesos serenos */
.ec-topbar {
    background: var(--sm-navy);
    height: 34px;
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 12.5px;
    color: #B9C3DE;
}
.ec-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}
.ec-topbar-signature {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    color: var(--sm-breeze);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ec-topbar-signature .spark { color: var(--sm-aqua); font-style: normal; }
.ec-topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}
.ec-topbar-links a {
    color: #B9C3DE;
    text-decoration: none;
    transition: color .15s;
}
.ec-topbar-links a:hover { color: #fff; }
.ec-topbar-links i { font-size: 11px; margin-right: 5px; color: var(--sm-aqua); }
@media (max-width: 991px) {
    .ec-topbar { display: none; }
}

/* Navegación: trazo sereno bajo el link (gesto de la pluma) */
.ec-nav .ec-nav-link {
    position: relative;
    color: var(--sm-navy);
    font-family: 'Poppins', sans-serif;
    border-radius: 0;
    padding: 8px 14px;
}
.ec-nav .ec-nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--sm-blue);
    transition: width .2s ease, left .2s ease;
}
.ec-nav .ec-nav-link:hover,
.ec-nav .ec-nav-link.is-active {
    background: transparent;
    color: var(--sm-navy);
}
.ec-nav .ec-nav-link:hover::after,
.ec-nav .ec-nav-link.is-active::after {
    width: calc(100% - 28px);
    left: 14px;
}
.ec-action-btn { color: var(--sm-navy); border-radius: 999px; }
.ec-action-btn:hover {
    background: var(--sm-breeze);
    color: var(--sm-blue);
}
.ec-cart-count {
    background: var(--sm-blue) !important;
}
.ec-logo img { border-radius: 0; }

/* ── Footer: noche profunda, mismo clima que el hero ──────────── */
.ec-footer {
    background: linear-gradient(180deg, #131C36 0%, #0C1428 60%, #080D1E 100%) !important;
    color: #B9C3DE !important;
    position: relative;
    overflow: hidden;
}
.ec-footer-main,
.ec-footer-bottom { position: relative; }
.ec-footer h6 {
    color: var(--sm-breeze) !important;
    letter-spacing: 0.12em;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500;
}
.ec-footer-links a { color: #B9C3DE !important; }
.ec-footer-links a:hover { color: #fff !important; }
.ec-footer-info i { color: var(--sm-aqua) !important; }
.ec-footer-social a { background: rgba(255,255,255,.07) !important; color: #B9C3DE !important; border-radius: 999px; }
.ec-footer-social a:hover { background: var(--sm-aqua) !important; color: #fff !important; }
.ec-footer-bottom { border-top-color: rgba(255,255,255,.08) !important; }

/* Botón de acceso al panel en el footer */
.ec-footer-admin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: #8A93AD !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 6px 16px;
    transition: color .15s, border-color .15s, background .15s;
}
.ec-footer-admin:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .05);
}
.ec-footer-admin i { font-size: 11px; }

/* Placa almohada: cápsula blanca donde vive el logo sobre fondo noche */
.sommy-pillow-plate {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 10px 26px;
    box-shadow: 0 10px 30px rgba(27, 43, 90, .10);
}
.sommy-pillow-plate img {
    height: 46px !important;
    width: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block;
}

/* Firma verbal bajo el logo */
.sommy-signature {
    display: block;
    margin-top: 12px;
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 14px;
    color: var(--sm-breeze);
}

/* ── Cards de producto: 18px + sombra suave ───────────────────── */
.product-item,
.card {
    border-radius: var(--ec-radius);
    border-color: var(--sm-border);
}
.product-item:hover { box-shadow: var(--sm-shadow); }

/* Imagen de producto: ocupa todo el cuadrado, fondo blanco, también en mobile */
.product-item figure {
    background: #fff;
}

/* ── Checkout: tarjetas serenas ───────────────────────────────── */
.header-content-card {
    background: var(--sm-breeze) !important;
    color: var(--sm-navy) !important;
}
.discount-badge {
    background: var(--sm-breeze) !important;
    color: var(--sm-blue) !important;
}
.summary-card { background: #fff; border-radius: 18px; }

/* ── Ficha de producto ────────────────────────────────────────── */
.tabla-especificaciones th { color: var(--sm-navy) !important; }
.galeria-thumbs img.active,
.galeria-thumbs img:hover { border-color: var(--sm-aqua) !important; }

/* ── Filtros de categoría ─────────────────────────────────────── */
.sidebar-filtros h6 { color: var(--sm-text-3); letter-spacing: 0.1em; }
.sidebar-filtros .form-check-input:checked {
    background-color: var(--sm-navy);
    border-color: var(--sm-navy);
}

/* ── Paginación ───────────────────────────────────────────────── */
.pagination .page-link { color: var(--sm-navy); }
.pagination .page-item.active .page-link {
    background-color: var(--sm-navy);
    border-color: var(--sm-navy);
    color: #fff;
}

/* ── Preloader ────────────────────────────────────────────────── */
.preloader { border-top-color: var(--sm-aqua) !important; }

/* ── Home: slide placeholder y flechas del carrusel ───────────── */
.ec-demo-slide--1 {
    background: linear-gradient(135deg, var(--sm-navy) 0%, #24417f 55%, var(--sm-blue) 100%) !important;
}
.btn-yellow {
    background: #fff !important;
    color: var(--sm-navy) !important;
    border: 1px solid var(--sm-border) !important;
    border-radius: 999px !important;
    box-shadow: var(--sm-shadow);
}
.btn-yellow:hover {
    background: var(--sm-navy) !important;
    color: #fff !important;
}

/* ── Offcanvas búsqueda y carrito ─────────────────────────────── */
#offcanvasSearch .btn {
    background: var(--sm-navy) !important;
    border-color: var(--sm-navy) !important;
    color: #fff !important;
}
#offcanvasSearch .btn:hover { background: var(--sm-blue) !important; }
#offcanvasSearch .form-control:focus {
    border-color: var(--sm-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, .12);
}
#offcanvasCart .offcanvas-header h5 {
    color: var(--sm-navy) !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
}

/* ── Botón de música de ambiente (arriba del WhatsApp) ────────── */
.sommy-musica-btn {
    position: fixed;
    right: 24px;
    bottom: 94px;
    z-index: 1200;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, .55);
    background: #1B2B5A;
    color: #fff;
    font-size: 19px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(8, 13, 30, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, color .2s, background .2s;
}
.sommy-musica-btn:hover { transform: scale(1.08); }
.sommy-musica-btn.sonando {
    background: #2563EB;
    border-color: rgba(255, 255, 255, .7);
}
/* Latido suave para invitar al clic mientras está apagada */
.sommy-musica-btn:not(.sonando) { animation: sommyLatido 2.2s ease-in-out infinite; }
@keyframes sommyLatido {
    0%, 100% { box-shadow: 0 8px 24px rgba(8, 13, 30, .4); }
    50% { box-shadow: 0 8px 24px rgba(8, 13, 30, .4), 0 0 0 10px rgba(37, 99, 235, .18); }
}
.sommy-musica-btn .tachado {
    position: absolute;
    width: 26px;
    height: 2px;
    background: currentColor;
    transform: rotate(-45deg);
    border-radius: 2px;
}
/* Invitación: globito junto al botón */
.sommy-musica-hint {
    position: fixed;
    right: 86px;
    bottom: 100px;
    z-index: 1200;
    background: #fff;
    color: #1B2B5A;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(8, 13, 30, .25);
    white-space: nowrap;
    pointer-events: none;
    animation: sommyLatido 2.2s ease-in-out infinite;
}
.sommy-musica-hint.oculto { display: none; }
@media (max-width: 767px) {
    .sommy-musica-btn { right: 18px; bottom: 84px; width: 48px; height: 48px; font-size: 17px; }
    .sommy-musica-hint { right: 76px; bottom: 92px; font-size: 12px; padding: 8px 13px; }
}

/* ── Botón flotante de WhatsApp (acceso rápido) ───────────────── */
.sommy-wsp-flotante {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #25D366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
}
.sommy-wsp-flotante:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    color: #fff !important;
}
@media (max-width: 767px) {
    .sommy-wsp-flotante { right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 28px; }
}

/* ── WhatsApp (verde oficial, sin flúor) ──────────────────────── */
#btnSendDataOrderWhatsapp {
    background-color: #25D366 !important;
    border-radius: 999px;
    font-weight: 500;
}
#btnSendDataOrderWhatsapp:hover { background-color: #1EBE5A !important; }

/* ================================================================
   COMPONENTES DE SECCIÓN SOMMY (home + páginas institucionales)
   ================================================================ */

/* ── Header: siempre sólido/opaco ──────────────────────────────── */
.ec-logo .logo-blanco { display: none; }

/* ── Hero: banner carousel editable (imagen + texto, estilo split) ── */
.sommy-banner-section {
    background: var(--sm-cotton);
    padding: 28px 24px;
}
.sommy-banner { position: relative; max-width: 1320px; margin: 0 auto; }
.sommy-banner .carousel-inner { border-radius: var(--ec-radius); }
/* Solo el slide activo (o el que está entrando/saliendo durante la transición)
   pasa a mostrarse: si "display" se pisa para TODOS los .carousel-item, Bootstrap
   ya no puede ocultar los inactivos y quedan todos apilados uno debajo del otro. */
.sommy-banner-slide {
    min-height: 380px;
    background: #fff;
    border-radius: var(--ec-radius);
    overflow: hidden;
    box-shadow: var(--sm-shadow);
}
.sommy-banner-slide.active,
.sommy-banner-slide.carousel-item-next,
.sommy-banner-slide.carousel-item-prev {
    display: flex;
    align-items: stretch;
}
.sommy-banner-media {
    flex: 0 0 54%;
    max-width: 54%;
    position: relative;
    overflow: hidden;
}
/* Banner sin título/subtítulo/botón (el texto ya viene en la imagen): la
   imagen ocupa todo el ancho en vez de dejar la mitad derecha en blanco. */
.sommy-banner-slide--full .sommy-banner-media { flex-basis: 100%; max-width: 100%; }
.sommy-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Escritorio: se ve la imagen horizontal; la vertical de mobile queda oculta */
.sommy-banner-media .mobile-img { display: none; }
.sommy-banner-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 52px;
}
.sommy-banner-copy h2 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.18;
    color: var(--sm-navy);
    margin-bottom: 14px;
}
.sommy-banner-copy .sub {
    font-weight: 300;
    font-size: 16.5px;
    color: var(--sm-text-2);
    line-height: 1.7;
    margin-bottom: 26px;
}
.btn-sommy-dark {
    display: inline-block;
    align-self: flex-start;
    background: var(--sm-navy);
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding: 13px 34px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: background .2s ease, transform .15s ease;
}
.btn-sommy-dark:hover { background: var(--sm-blue); transform: translateY(-1px); }
.sommy-banner-indicators {
    position: absolute;
    left: 0;
    bottom: 22px;
    width: 54%;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.sommy-banner-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    border: none;
    opacity: 1;
    text-indent: -9999px;
}
.sommy-banner-indicators [data-bs-target].active { background: #fff; width: 22px; }
.sommy-banner-nav {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 999px;
    box-shadow: var(--sm-shadow);
    opacity: 1;
}
.sommy-banner-nav.carousel-control-prev { left: -14px; }
.sommy-banner-nav.carousel-control-next { right: -14px; }
.sommy-banner-nav .carousel-control-prev-icon,
.sommy-banner-nav .carousel-control-next-icon {
    width: 16px;
    height: 16px;
    filter: invert(14%) sepia(28%) saturate(1500%) hue-rotate(200deg) brightness(45%);
}
.sommy-banner-admin-tip {
    text-align: center;
    font-size: 12.5px;
    font-weight: 300;
    color: var(--sm-text-3);
    margin-top: 14px;
}
.sommy-banner-admin-tip a { color: var(--sm-blue); }
@media (max-width: 768px) {
    /* Mobile: se apila en bloque (no flex-row) y la imagen se muestra completa,
       a su alto natural — nada de recorte ni de una altura fija que deje un
       hueco en blanco si la imagen subida es más baja de lo esperado. */
    .sommy-banner-slide.active,
    .sommy-banner-slide.carousel-item-next,
    .sommy-banner-slide.carousel-item-prev {
        display: block;
    }
    .sommy-banner-media { max-width: 100%; height: auto; }
    .sommy-banner-img { height: auto; object-fit: initial; }
    /* Mobile: se ve la imagen vertical, la horizontal de escritorio queda oculta */
    .sommy-banner-media .desktop-img { display: none; }
    .sommy-banner-media .mobile-img { display: block; }
    .sommy-banner-copy { padding: 28px 24px; text-align: center; }
    .btn-sommy-dark { align-self: center; }
    .sommy-banner-indicators { position: static; width: 100%; margin-top: 14px; }
    .sommy-banner-indicators [data-bs-target] { background: var(--sm-border); }
    .sommy-banner-indicators [data-bs-target].active { background: var(--sm-navy); }
    .sommy-banner-nav { display: none; }
}

/* ── Ficha de producto (colchones) ────────────────────────────── */
.sommy-ficha-kicker {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--sm-blue);
    margin-bottom: 6px;
    display: block;
}
.sommy-price-old {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 17px;
    color: var(--sm-text-3);
    text-decoration: line-through;
    margin-right: 10px;
}
.sommy-off-chip {
    display: inline-block;
    background: var(--sm-breeze);
    color: var(--sm-blue);
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 999px;
    padding: 3px 12px;
    margin-left: 10px;
    vertical-align: middle;
}
.sommy-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.sommy-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--sm-cotton);
    border: 1px solid var(--sm-border);
    color: var(--sm-navy);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    border-radius: 999px;
    padding: 6px 14px;
}
.sommy-chip i { color: var(--sm-aqua); font-size: 12px; }

/* Medidor de firmeza */
.sommy-firmeza { margin: 18px 0 6px; max-width: 340px; }
.sommy-firmeza-label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--sm-navy);
    margin-bottom: 8px;
    display: block;
}
.sommy-firmeza-track { display: flex; gap: 6px; }
.sommy-firmeza-seg {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: var(--sm-breeze);
}
.sommy-firmeza-seg.on { background: var(--sm-navy); }
.sommy-firmeza-names {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 300;
    color: var(--sm-text-3);
}
.sommy-firmeza-names span.on { color: var(--sm-navy); font-weight: 500; }

/* Badges de confianza */
.sommy-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}
@media (max-width: 575px) { .sommy-trust { grid-template-columns: 1fr 1fr; } }
.sommy-trust-item {
    background: var(--sm-cotton);
    border: 1px solid var(--sm-border);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
}
.sommy-trust-item i {
    color: var(--sm-blue);
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
}
.sommy-trust-item .t {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--sm-navy);
    display: block;
    line-height: 1.25;
}
.sommy-trust-item .s {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 11.5px;
    color: var(--sm-text-3);
    display: block;
    margin-top: 3px;
}

/* Spinner de cantidad: sin rojo, en paleta Sommy */
.input-spinner .btn-danger {
    background-color: var(--sm-navy) !important;
    border-color: var(--sm-navy) !important;
    color: #fff !important;
}
.input-spinner .btn-danger:hover {
    background-color: var(--sm-blue) !important;
    border-color: var(--sm-blue) !important;
}

/* Tabla de especificaciones en clave de marca */
.tabla-especificaciones { border-radius: 14px; overflow: hidden; border: 1px solid var(--sm-border); }
.tabla-especificaciones th { background: var(--sm-cotton); }
.tabla-especificaciones td { color: var(--sm-text-2); }

/* ── Hero Sommy (portada sin banners) ─────────────────────────── */
.sommy-hero {
    background:
        radial-gradient(ellipse at 12% -20%, var(--sm-breeze) 0%, rgba(224, 242, 254, 0) 55%),
        radial-gradient(ellipse at 100% 130%, rgba(224, 242, 254, .7) 0%, rgba(224, 242, 254, 0) 55%),
        var(--sm-cotton);
    padding: 64px 24px 56px;
}
.sommy-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}
.sommy-hero .kicker {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--sm-blue);
    margin-bottom: 14px;
}
.sommy-hero h1 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    font-size: clamp(30px, 4.6vw, 52px);
    line-height: 1.15;
    color: var(--sm-navy);
    margin-bottom: 16px;
}
.sommy-hero .sub {
    font-weight: 300;
    font-size: 17px;
    color: var(--sm-text-2);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 30px;
}
.sommy-hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.sommy-hero-illus img { width: 100%; height: auto; display: block; }
.sommy-hero .firma {
    display: block;
    margin-top: 26px;
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 14.5px;
    color: var(--sm-text-3);
}
.sommy-hero-admin-tip {
    margin-top: 18px;
    font-size: 12.5px;
    font-weight: 300;
    color: var(--sm-text-3);
}
.sommy-hero-admin-tip a { color: var(--sm-blue); }
@media (max-width: 991px) {
    .sommy-hero-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .sommy-hero .sub { margin-left: auto; margin-right: auto; }
    .sommy-hero .btn-row { justify-content: center; }
    .sommy-hero-illus { max-width: 420px; margin: 0 auto; }
}

/* Variante sin ilustración: todo centrado en una sola columna */
.sommy-hero--centrado .sommy-hero-inner {
    display: block;
    max-width: 720px;
    text-align: center;
}
.sommy-hero--centrado .sub { margin-left: auto; margin-right: auto; }
.sommy-hero--centrado .btn-row { justify-content: center; }

/* ── Ilustración institucional en heros ───────────────────────── */
.sommy-page-hero-illus {
    max-width: 380px;
    margin: 34px auto 0;
}
.sommy-page-hero-illus img { width: 100%; height: auto; display: block; }

/* ── Ítems del carrito (offcanvas) ────────────────────────────── */
.sommy-cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
}
.sommy-cart-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--sm-border);
    background: var(--sm-breeze);
    flex-shrink: 0;
}
.sommy-cart-thumb--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sm-navy);
    font-size: 18px;
}
.sommy-cart-name {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--sm-navy);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sommy-cart-meta {
    font-size: 12.5px;
    font-weight: 300;
    color: var(--sm-text-3);
    margin-top: 2px;
}
.sommy-cart-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--sm-navy);
    white-space: nowrap;
}
.sommy-cart-remove {
    border: none;
    background: transparent;
    color: var(--sm-text-3);
    width: 30px;
    height: 30px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 4px;
    transition: background .15s, color .15s;
}
.sommy-cart-remove:hover { background: #FBEDE6; color: #b4552d; }
.sommy-cart-total-label { font-family: 'Poppins', sans-serif; font-weight: 500; color: var(--sm-navy); }
.sommy-cart-total-value { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; color: var(--sm-navy); }
.sommy-badge-sinstock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: #FEF3C7;
    color: #92400E;
    white-space: nowrap;
}
.sommy-cart-empty { text-align: center; padding: 28px 0; }
.sommy-cart-empty .icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: var(--sm-breeze);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--sm-navy);
    font-size: 22px;
}
.sommy-cart-empty .title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--sm-navy);
    margin-bottom: 4px;
}
.sommy-cart-empty .hint {
    font-size: 13.5px;
    font-weight: 300;
    color: var(--sm-text-3);
    margin: 0;
}

/* ── Productos relacionados (offcanvas del carrito) ──────────── */
.sommy-related-wrap {
    border-top: 1px solid var(--sm-border);
    padding-top: 16px;
    margin-top: 8px;
}
.sommy-related-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--sm-navy);
    margin-bottom: 10px;
}
.sommy-related-card {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--sm-border);
}
.sommy-related-card:last-child { border-bottom: none; }
.sommy-related-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--sm-border);
    background: #fff;
    flex-shrink: 0;
}
.sommy-related-thumb--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sm-navy);
    font-size: 15px;
}
.sommy-related-info { flex: 1; min-width: 0; }
.sommy-related-name {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--sm-navy);
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.sommy-related-desde {
    font-size: 10.5px;
    color: var(--sm-text-3);
}
.sommy-related-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--sm-navy);
}
.sommy-related-add {
    border: 1px solid var(--sm-navy);
    background: transparent;
    color: var(--sm-navy);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sommy-related-add:hover { background: var(--sm-navy); color: #fff; }
.sommy-related-add--link { text-align: center; }

/* Miniatura en el checkout */
.sommy-order-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--sm-border);
    background: var(--sm-breeze);
    flex-shrink: 0;
}
.sommy-order-thumb--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sm-navy);
    font-size: 20px;
}

/* ── Marquesina infinita de marcas ────────────────────────────── */
.sommy-marcas {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.sommy-marcas-track {
    display: flex;
    align-items: center;
    gap: 72px;
    width: max-content;
    animation: sommyMarquesina 28s linear infinite;
}
.sommy-marcas:hover .sommy-marcas-track { animation-play-state: paused; }
@keyframes sommyMarquesina {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.sommy-marca-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    color: #8A93AD;
    filter: grayscale(1);
    opacity: .8;
    transition: opacity .2s, filter .2s, color .2s;
    font-size: 32px;
    user-select: none;
}
.sommy-marca-logo:hover { opacity: 1; filter: grayscale(0); color: #1B2B5A; }
.sommy-marca-logo i { font-size: 29px; }
.sommy-marca-logo .n { font-weight: 700; letter-spacing: -.02em; }
.sommy-marca-logo .n em { font-style: normal; font-weight: 300; }
.sommy-marca-logo--serif .n { font-family: 'Lora', Georgia, serif; }
.sommy-marca-logo--caps .n { text-transform: uppercase; letter-spacing: .18em; font-size: 25px; font-weight: 600; }
@media (max-width: 767px) {
    .sommy-marcas-track { gap: 44px; }
    .sommy-marca-logo { font-size: 24px; }
    .sommy-marca-logo i { font-size: 21px; }
    .sommy-marca-logo--caps .n { font-size: 19px; }
}

/* ── Tiles de categorías (foto + nombre superpuesto) ──────────── */
.sommy-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 320px);
    justify-content: center;
    gap: 16px;
}
@media (max-width: 575px) {
    .sommy-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
.sommy-cat-tile {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--sm-breeze);
}
.sommy-cat-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.sommy-cat-tile:hover img { transform: scale(1.05); }
.sommy-cat-tile .veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 43, 90, .18) 0%, rgba(27, 43, 90, 0) 45%, rgba(27, 43, 90, .55) 100%);
}
.sommy-cat-tile .label {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 19px;
    color: #fff;
    text-shadow: 0 2px 16px rgba(27, 43, 90, .55);
}
/* Botón "Ver productos": siempre visible como pill */
.sommy-cat-tile .go {
    position: absolute;
    left: 16px;
    bottom: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1B2B5A;
    background: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    opacity: 1;
    transition: background .2s ease, transform .2s ease;
}
.sommy-cat-tile:hover .go {
    background: #E0F2FE;
    transform: translateY(-2px);
}

/* ── Buscador guiado de colchón ───────────────────────────────── */
.sommy-finder {
    background: #fff;
    border: 1px solid var(--sm-border);
    border-radius: 20px;
    box-shadow: var(--sm-shadow);
    padding: 28px 30px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.sommy-finder .field { flex: 1; min-width: 180px; }
.sommy-finder label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--sm-navy);
    margin-bottom: 6px;
    display: block;
}
.sommy-finder select {
    width: 100%;
    border: 1px solid var(--sm-border);
    border-radius: 12px;
    padding: 11px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--sm-navy);
    background: #fff;
}
.sommy-finder select:focus {
    outline: none;
    border-color: var(--sm-blue);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}
.sommy-finder .arrow { color: var(--sm-aqua); font-size: 15px; padding-bottom: 13px; }
.sommy-finder .btn-sommy-primary { border: none; cursor: pointer; }
@media (max-width: 767px) { .sommy-finder .arrow { display: none; } }

/* ── Somos fabricantes ────────────────────────────────────────── */
.sommy-fabrica {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 46px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--sm-border);
    border-radius: 24px;
    box-shadow: var(--sm-shadow);
    padding: 48px;
}
@media (max-width: 991px) { .sommy-fabrica { grid-template-columns: 1fr; padding: 32px 24px; gap: 30px; } }
.sommy-fabrica .kicker {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--sm-blue);
    margin-bottom: 12px;
}
.sommy-fabrica h2 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    font-size: clamp(24px, 3.2vw, 34px);
    color: var(--sm-navy) !important;
    line-height: 1.2;
    margin-bottom: 14px;
}
.sommy-fabrica p {
    font-weight: 300;
    color: var(--sm-text-2);
    line-height: 1.7;
    margin-bottom: 20px;
}
.sommy-fabrica-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.sommy-fabrica-stat {
    background: var(--sm-breeze);
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
}
.sommy-fabrica-stat .n {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--sm-navy);
    display: block;
    line-height: 1.1;
}
.sommy-fabrica-stat .d {
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 300;
    color: var(--sm-text-2);
    display: block;
    margin-top: 6px;
    line-height: 1.5;
}

/* ── Beneficios (value props) ─────────────────────────────────── */
.sommy-props {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 991px) { .sommy-props { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sommy-props { grid-template-columns: 1fr; } }

.sommy-prop {
    background: #fff;
    border: 1px solid var(--sm-border);
    border-radius: 18px;
    padding: 26px 24px;
    text-align: center;
    transition: box-shadow .2s ease, transform .15s ease;
}
.sommy-prop:hover {
    box-shadow: var(--sm-shadow);
    transform: translateY(-2px);
}
.sommy-prop-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: var(--sm-breeze);
    color: var(--sm-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.sommy-prop h3 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}
.sommy-prop p {
    font-size: 13.5px;
    color: var(--sm-text-2);
    font-weight: 400;
    margin: 0;
    line-height: 1.7;
}

/* ── Testimonios (rating agregado + carrusel de reseñas) ──────── */
.sommy-testi-agg {
    text-align: center;
    margin: -18px 0 30px;
    font-family: 'Poppins', sans-serif;
    color: var(--sm-navy);
    font-size: 17px;
}
.sommy-testi-agg .stars { color: #F2B01E; font-size: 16px; letter-spacing: 2px; margin-right: 8px; }
.sommy-testi-agg strong { font-weight: 600; }
.sommy-testi-agg .cant { color: var(--sm-text-2); font-weight: 400; }

.sommy-testi-carousel { position: relative; max-width: 1150px; margin: 0 auto; padding: 0 54px; }
.sommy-testis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 991px) { .sommy-testis { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.sommy-testi {
    background: #fff;
    border: 1px solid var(--sm-border);
    border-radius: 18px;
    padding: 26px 24px;
    text-align: center;
}
.sommy-testi .avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--sm-breeze);
    color: var(--sm-navy);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.sommy-testi .who {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--sm-navy);
    display: block;
    margin-bottom: 6px;
}
.sommy-testi .stars { color: #F2B01E; font-size: 13px; margin-bottom: 12px; letter-spacing: 2px; }
.sommy-testi p {
    font-weight: 400;
    font-size: 14.5px;
    color: var(--sm-text-2);
    line-height: 1.7;
    margin: 0;
}

.sommy-testi-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--sm-navy);
    font-size: 22px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s;
    z-index: 2;
}
.sommy-testi-arrow:hover { background: var(--sm-breeze); }
.sommy-testi-arrow.prev { left: 0; }
.sommy-testi-arrow.next { right: 0; }
@media (max-width: 575px) {
    .sommy-testi-carousel { padding: 0 40px; }
}

.sommy-testi-page {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--sm-blue);
    margin-top: 22px;
}

/* ── FAQ / Guía de compra ─────────────────────────────────────── */
.sommy-faq .accordion-item {
    border: 1px solid var(--sm-border);
    border-radius: 14px !important;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}
.sommy-faq .accordion-button {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--sm-navy);
    background: #fff;
    box-shadow: none;
    padding: 16px 20px;
}
.sommy-faq .accordion-button:not(.collapsed) {
    background: var(--sm-breeze);
    color: var(--sm-navy);
}
.sommy-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12); }
.sommy-faq .accordion-body {
    font-weight: 400;
    font-size: 14.5px;
    color: var(--sm-text-2);
    line-height: 1.8;
}
.sommy-faq .accordion-body strong { color: var(--sm-navy); font-weight: 500; }

/* ── Banda de marca (plantilla C: fondo noche + titular + trazo)  */
.sommy-band {
    background: linear-gradient(180deg, #131C36 0%, #0C1428 60%, #080D1E 100%);
    color: #fff;
    padding: 84px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sommy-band .spark {
    position: absolute;
    color: var(--sm-aqua);
    opacity: .5;
    pointer-events: none;
}
.sommy-band .spark--1 { top: 20%; left: 12%; font-size: 16px; }
.sommy-band .spark--2 { bottom: 24%; right: 14%; font-size: 12px; color: var(--sm-breeze); }
/* Rulo de magia dorada en la banda azul (Nosotros) */
.sommy-band::after {
    content: '';
    position: absolute;
    right: 2%;
    bottom: 6%;
    width: 300px;
    height: 185px;
    background: url('../../imagenes/marca/sommy-magia-rulo.png') no-repeat center / contain;
    opacity: .45;
    pointer-events: none;
}
.sommy-band-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.sommy-band-kicker {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--sm-aqua);
    margin-bottom: 18px;
}
.sommy-band h2 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.2;
    color: #fff !important;
    margin-bottom: 6px;
}
.sommy-trazo { display: block; width: 220px; max-width: 60%; margin: 10px auto 18px; }

/* Trail de magia real bajo el titular del hero */
.sommy-magia-trazo {
    display: block;
    width: 340px;
    max-width: 78%;
    margin: -10px auto 4px;
    pointer-events: none;
    user-select: none;
}

/* Magia flotando en el hero */
.sommy-magia-deco {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}
.sommy-magia-deco--1 {
    top: 14%;
    left: 4%;
    width: 260px;
    opacity: .95;
    transform: rotate(-12deg);
}
.sommy-magia-deco--2 {
    bottom: 12%;
    right: 5%;
    width: 290px;
    opacity: .92;
    transform: scaleX(-1) rotate(8deg);
}
@media (max-width: 767px) {
    .sommy-magia-deco--1 { width: 170px; opacity: .9; top: 11%; left: 2%; }
    .sommy-magia-deco--2 { display: block; width: 200px; opacity: .9; bottom: 6%; right: 3%; }
}

/* Titileo de estrellas */
@keyframes sommyTitilar {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

/* Segunda capa de estrellas (titila a destiempo para que parezca cielo real) */
.ec-footer::after,
.sommy-noche-estrellas .sommy-estrellas-b {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 40%, rgba(255,255,255,.5) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 23% 12%, rgba(224,242,254,.45) 50%, transparent 51%),
        radial-gradient(1.8px 1.8px at 40% 60%, rgba(255,255,255,.4) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 56% 30%, rgba(224,242,254,.4) 50%, transparent 51%),
        radial-gradient(1.6px 1.6px at 66% 82%, rgba(255,255,255,.45) 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 74% 48%, rgba(255,255,255,.35) 50%, transparent 51%),
        radial-gradient(1.7px 1.7px at 88% 74%, rgba(224,242,254,.5) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 95% 20%, rgba(255,255,255,.4) 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 5% 78%, rgba(224,242,254,.4) 50%, transparent 51%),
        radial-gradient(1.6px 1.6px at 48% 92%, rgba(255,255,255,.4) 50%, transparent 51%);
}

.ec-footer::before { animation: sommyTitilar 5.5s ease-in-out infinite; }
.ec-footer::after { animation: sommyTitilar 7.5s ease-in-out 2.2s infinite; }
.sommy-noche-estrellas::before { animation: sommyTitilar 6s ease-in-out infinite; }
.sommy-noche-estrellas .sommy-estrellas-b { animation: sommyTitilar 8s ease-in-out 1.6s infinite; }

/* Cielo estrellado reutilizable (para cajas noche como la de fabricantes) */
.sommy-noche-estrellas::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.6px 1.6px at 8% 22%, rgba(255,255,255,.55) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 18% 68%, rgba(224,242,254,.45) 50%, transparent 51%),
        radial-gradient(2px 2px at 27% 35%, rgba(255,255,255,.4) 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 36% 80%, rgba(255,255,255,.35) 50%, transparent 51%),
        radial-gradient(1.7px 1.7px at 44% 15%, rgba(224,242,254,.5) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 52% 55%, rgba(255,255,255,.4) 50%, transparent 51%),
        radial-gradient(2px 2px at 61% 28%, rgba(255,255,255,.45) 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 69% 74%, rgba(224,242,254,.4) 50%, transparent 51%),
        radial-gradient(1.6px 1.6px at 77% 18%, rgba(255,255,255,.5) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 85% 60%, rgba(255,255,255,.35) 50%, transparent 51%),
        radial-gradient(1.8px 1.8px at 93% 38%, rgba(224,242,254,.5) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 58% 88%, rgba(255,255,255,.35) 50%, transparent 51%);
}

/* Cielo estrellado del footer (puntitos como estrellas) */
.ec-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.6px 1.6px at 8% 22%, rgba(255,255,255,.55) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 18% 68%, rgba(224,242,254,.45) 50%, transparent 51%),
        radial-gradient(2px 2px at 27% 35%, rgba(255,255,255,.4) 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 36% 80%, rgba(255,255,255,.35) 50%, transparent 51%),
        radial-gradient(1.7px 1.7px at 44% 15%, rgba(224,242,254,.5) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 52% 55%, rgba(255,255,255,.4) 50%, transparent 51%),
        radial-gradient(2px 2px at 61% 28%, rgba(255,255,255,.45) 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 69% 74%, rgba(224,242,254,.4) 50%, transparent 51%),
        radial-gradient(1.6px 1.6px at 77% 18%, rgba(255,255,255,.5) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 85% 60%, rgba(255,255,255,.35) 50%, transparent 51%),
        radial-gradient(1.8px 1.8px at 93% 38%, rgba(224,242,254,.5) 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 14% 45%, rgba(255,255,255,.3) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 58% 88%, rgba(255,255,255,.35) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 97% 82%, rgba(224,242,254,.4) 50%, transparent 51%),
        radial-gradient(1.7px 1.7px at 32% 8%, rgba(255,255,255,.4) 50%, transparent 51%);
}
.ec-footer-main, .ec-footer-bottom { position: relative; }

/* Formas de magia repartidas por el footer */
.ec-footer-magia {
    position: absolute;
    right: 3%;
    top: 8%;
    width: 300px;
    max-width: 40%;
    opacity: .4;
    pointer-events: none;
    user-select: none;
}
.ec-footer-magia--2 {
    position: absolute;
    left: 24%;
    bottom: 4%;
    width: 230px;
    opacity: .22;
    transform: scaleX(-1) rotate(-6deg);
    pointer-events: none;
    user-select: none;
}
.ec-footer-magia--3 {
    position: absolute;
    left: 2%;
    top: 6%;
    width: 190px;
    opacity: .18;
    transform: rotate(10deg);
    pointer-events: none;
    user-select: none;
}
@media (max-width: 767px) {
    .ec-footer-magia--2, .ec-footer-magia--3 { display: none; }
}
.sommy-band p {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #C7D0E8;
    line-height: 1.7;
    margin-bottom: 30px;
}
.sommy-band .firma {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 15px;
    color: var(--sm-breeze);
    margin-top: 26px;
}
.btn-sommy-light {
    display: inline-block;
    background: #fff;
    color: var(--sm-navy) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding: 13px 34px;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(27, 43, 90, .10);
    transition: background .2s ease, transform .15s ease;
}
.btn-sommy-light:hover { background: var(--sm-breeze); transform: translateY(-1px); }

/* ── Cómo comprar (3 pasos serenos) ───────────────────────────── */
.sommy-steps-title,
.sommy-section-heading {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    font-size: clamp(22px, 3vw, 30px);
    color: var(--sm-navy);
    text-align: center;
    margin-bottom: 8px;
}
.sommy-section-sub {
    text-align: center;
    font-weight: 300;
    color: var(--sm-text-2);
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 1.7;
}
.sommy-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}
@media (max-width: 767px) { .sommy-steps { grid-template-columns: 1fr; max-width: 420px; } }
.sommy-step { text-align: center; padding: 0 10px; }
.sommy-step-num {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: var(--sm-breeze);
    color: var(--sm-navy);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sommy-step h3 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}
.sommy-step p {
    font-size: 14px;
    font-weight: 300;
    color: var(--sm-text-2);
    line-height: 1.7;
    margin: 0;
}

/* ── CTA de cierre (noche, como el footer) ────────────────────── */
.sommy-cta {
    background: linear-gradient(180deg, #131C36 0%, #0C1428 60%, #080D1E 100%);
    border-radius: 24px;
    padding: 52px 36px;
    text-align: center;
}
.sommy-cta h2 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    font-size: clamp(22px, 3vw, 30px);
    color: #fff !important;
    margin-bottom: 10px;
}
.sommy-cta p {
    font-weight: 300;
    color: #B9C3DE;
    max-width: 520px;
    margin: 0 auto 26px;
    line-height: 1.7;
}
/* Sobre fondo noche el botón primario pasa a blanco */
.sommy-cta .btn-sommy-primary {
    background: #fff;
    color: #1B2B5A !important;
}
.sommy-cta .btn-sommy-primary:hover { background: var(--sm-breeze); }
.sommy-cta .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-sommy-primary {
    display: inline-block;
    background: var(--sm-navy);
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding: 13px 32px;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: var(--sm-shadow);
    transition: background .2s ease, transform .15s ease;
}
.btn-sommy-primary:hover { background: var(--sm-blue); transform: translateY(-1px); }
.btn-sommy-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #25D366;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding: 13px 30px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: background .2s ease, transform .15s ease;
}
.btn-sommy-whatsapp:hover { background: #1EBE5A; transform: translateY(-1px); }

/* ── Hero institucional (Nosotros / Contacto) ─────────────────── */
.sommy-page-hero {
    background:
        radial-gradient(ellipse at 20% -20%, var(--sm-breeze) 0%, rgba(224, 242, 254, 0) 60%),
        radial-gradient(ellipse at 100% 130%, rgba(224, 242, 254, .7) 0%, rgba(224, 242, 254, 0) 55%),
        var(--sm-cotton);
    text-align: center;
    padding: 72px 24px 60px;
}
.sommy-page-hero .kicker {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--sm-blue);
    margin-bottom: 14px;
}
.sommy-page-hero h1 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    font-size: clamp(28px, 4.5vw, 44px);
    color: var(--sm-navy);
    max-width: 720px;
    margin: 0 auto 14px;
    line-height: 1.2;
}
.sommy-page-hero p {
    font-weight: 300;
    color: var(--sm-text-2);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 16.5px;
}

/* ── Cards de información (Contacto / valores) ────────────────── */
.sommy-info-card {
    background: #fff;
    border: 1px solid var(--sm-border);
    border-radius: 18px;
    padding: 30px 26px;
    height: 100%;
    text-align: center;
    transition: box-shadow .2s ease, transform .15s ease;
}
.sommy-info-card:hover { box-shadow: var(--sm-shadow); transform: translateY(-2px); }
.sommy-info-card .icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: var(--sm-breeze);
    color: var(--sm-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.sommy-info-card h3 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.sommy-info-card p {
    font-size: 14.5px;
    font-weight: 300;
    color: var(--sm-text-2);
    line-height: 1.7;
    margin: 0;
    overflow-wrap: anywhere;
}
.sommy-info-card a { color: var(--sm-blue); text-decoration: none; }
.sommy-info-card a:hover { color: var(--sm-navy); }

/* Lista con viñetas de destello (usar con moderación: máx. 3) */
.sommy-list { list-style: none; padding: 0; margin: 0; }
.sommy-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-weight: 300;
    color: var(--sm-text-2);
    line-height: 1.7;
}
.sommy-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--sm-aqua);
    font-size: 13px;
}

/* ── Links y focos ────────────────────────────────────────────── */
a { transition: color .15s; }
a:not(.btn):hover { color: var(--sm-blue); }
.form-control:focus,
.form-select:focus {
    border-color: var(--sm-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, .12);
}
