/*
| COLOSO — CSS crítico de layout (no depende de Tailwind CDN)
*/

/* ── HEADER ── */
#coloso-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 50;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

#coloso-header .coloso-header__inner {
    width: 100%;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
}

#coloso-header .coloso-header__logo {
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none;
}

#coloso-header .coloso-header__logo img {
    display: block;
    height: 48px;
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

#coloso-header .coloso-header__center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 4px;
}

#coloso-header .coloso-header__label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #E31B23;
    font-weight: 600;
    line-height: 1;
}

#coloso-header .coloso-header__tagline {
    display: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    margin-top: 6px;
    line-height: 1;
}

#coloso-header .coloso-header__phones {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
}

#coloso-header .coloso-header__phones a {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

#coloso-header .coloso-header__phones a:hover {
    color: #fff;
}

#coloso-header .coloso-header__sep {
    display: none;
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

#coloso-header .coloso-header__menu {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

#coloso-header .coloso-header__menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: background 0.3s ease;
}

#coloso-header .coloso-header__menu:hover span {
    background: #E31B23;
}

@media (min-width: 640px) {
    #coloso-header .coloso-header__inner {
        padding: 0 24px;
    }

    #coloso-header .coloso-header__logo img {
        height: 56px;
        max-height: 56px;
    }

    #coloso-header .coloso-header__label {
        font-size: 10px;
        letter-spacing: 0.35em;
    }

    #coloso-header .coloso-header__tagline {
        display: block;
    }

    #coloso-header .coloso-header__phones {
        flex-direction: row;
        gap: 16px;
    }

    #coloso-header .coloso-header__phones a {
        font-size: 12px;
        letter-spacing: 0.22em;
    }

    #coloso-header .coloso-header__sep {
        display: inline;
    }
}

@media (min-width: 768px) {
    #coloso-header .coloso-header__logo img {
        height: 64px;
        max-height: 64px;
    }
}

/* ── Colores utilitarios (modales / acentos) ── */
.text-cyan-300 { color: #67e8f9; }
.text-fuchsia-400 { color: #e879f9; }
.text-violet-300 { color: #c4b5fd; }
.text-brandRed { color: #E31B23; }

/* ── MODALES (overlay fijo) ── */
.menu-modal,
.product-modal,
.whatsapp-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.product-modal,
.whatsapp-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.menu-modal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.menu-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#menu-backdrop,
#product-modal-backdrop,
#whatsapp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.menu-modal-panel {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 24px;
    box-sizing: border-box;
}

.menu-modal nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-modal nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 0;
    margin: 0;
}

.menu-modal nav a {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-modal nav a:hover {
    color: #E31B23;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── GRIDS ── */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── HERO COPY centrado viewport ── */
.hero-copy {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.hero-copy-inner {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-subtitle {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 24px;
    text-align: center;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to top, #000, transparent);
    z-index: 10;
    pointer-events: none;
}

/* ── CONTenedor principal ── */
.site-container {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    box-sizing: border-box;
}

#coloso-main {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── SECCIÓN POST-HERO ── */
.coloso-section {
    position: relative;
    padding: 7rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-sizing: border-box;
}

.coloso-intro {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: flex-start;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .coloso-intro {
        flex-direction: row;
    }
}

.coloso-intro__left {
    max-width: 42rem;
    width: 100%;
}

.coloso-intro__right {
    max-width: 24rem;
    width: 100%;
}

.coloso-kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.coloso-kicker--fuchsia { color: #e879f9; }
.coloso-kicker--cyan { color: #67e8f9; }

.coloso-headline {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.05em;
    margin-top: 1.5rem;
    color: #fff;
}

.coloso-headline__muted {
    display: block;
    color: rgba(255, 255, 255, 0.45);
}

.coloso-headline--md {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-top: 1.25rem;
}

.coloso-glass {
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    box-sizing: border-box;
}

.coloso-body {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.625;
    font-size: 1.125rem;
}

.coloso-spec-label {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.coloso-spec-label--cyan { color: #67e8f9; }
.coloso-spec-label--fuchsia { color: #e879f9; }
.coloso-spec-label--violet { color: #c4b5fd; }

.coloso-spec-value {
    font-size: 3rem;
    font-weight: 900;
    margin-top: 1rem;
    color: #fff;
    line-height: 1;
}

.coloso-products {
    margin-top: 6rem;
}

.coloso-products__header {
    margin-bottom: 3rem;
    max-width: 42rem;
}

.coloso-product-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 900;
    margin-top: 0.75rem;
    letter-spacing: -0.03em;
    color: #fff;
}

.coloso-platones {
    margin-top: 5rem;
}

/* ── GRIDS (contenedor seguro) ── */
.specs-grid,
.product-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.product-grid {
    min-width: 0;
}

/* ── TARJETAS PRODUCTO (estructura completa) ── */
.product-card {
    min-width: 0;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    box-sizing: border-box;
}

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.product-card__media img {
    position: relative;
    z-index: 10;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1), transparent);
}

.product-card__body {
    padding: 2rem;
    box-sizing: border-box;
}

/* ── MARQUEE ── */
.coloso-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 0;
    box-sizing: border-box;
}

.coloso-marquee__inner {
    display: flex;
    width: max-content;
}

.coloso-marquee__track {
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    padding-right: 5rem;
}

@keyframes coloso-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.coloso-marquee__track {
    animation: coloso-marquee 18s linear infinite;
}

/* ── FOOTER ── */
.coloso-footer {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 1.5rem;
    box-sizing: border-box;
}

.coloso-footer .site-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.coloso-footer img {
    height: 2rem;
    opacity: 0.6;
}

/* ── MODAL FICHA TÉCNICA (product-modal) ── */
.product-modal-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 48rem;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    box-sizing: border-box;
}

.product-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.85);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    z-index: 10;
}

@media (min-width: 768px) {
    .product-modal__header {
        padding: 1.25rem 2rem;
    }
}

#product-modal-label {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 10px;
    font-weight: 600;
    color: #67e8f9;
}

.product-modal__close {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.product-modal__close:hover {
    background: rgba(227, 27, 35, 0.2);
    border-color: rgba(227, 27, 35, 0.5);
}

.product-modal__close span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
}

.product-modal__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.product-modal__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.product-modal__content {
    padding: 1.5rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .product-modal__content {
        padding: 2rem;
    }
}

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

@media (min-width: 768px) {
    .product-modal__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.product-modal__col-left {
    display: flex;
    flex-direction: column;
}

.product-modal__image-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    box-sizing: border-box;
}

#product-modal-image {
    max-height: 14rem;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-modal__price-wrap {
    margin-top: 1.25rem;
    text-align: center;
}

@media (min-width: 768px) {
    .product-modal__price-wrap {
        text-align: left;
    }
}

.product-modal__price-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

#product-modal-price {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 900;
    color: #E31B23;
    margin-top: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

#product-modal-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.15;
}

.product-modal__spec-intro {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

#product-modal-specs {
    margin-top: 1.5rem;
}

.coloso-modal-spec-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.coloso-modal-spec-row:last-child {
    border-bottom: none;
}

@media (min-width: 640px) {
    .coloso-modal-spec-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
}

.coloso-modal-spec-row dt {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    margin: 0;
}

.coloso-modal-spec-row dd {
    color: #fff;
    font-weight: 500;
    font-size: 0.875rem;
    margin: 0;
    text-align: left;
}

@media (min-width: 640px) {
    .coloso-modal-spec-row dd {
        text-align: right;
        max-width: 55%;
    }
}

/* ── MODAL WHATSAPP ── */
.whatsapp-modal-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 28rem;
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

.whatsapp-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.whatsapp-modal__header-label {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 10px;
    font-weight: 600;
    color: #25D366;
}

.whatsapp-modal__body {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .whatsapp-modal__body {
        padding: 2rem;
    }
}

#whatsapp-modal-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
}

.whatsapp-modal__intro {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.whatsapp-modal__links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.whatsapp-modal__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.whatsapp-modal__link:hover {
    border-color: rgba(37, 211, 102, 0.5);
    background: rgba(37, 211, 102, 0.1);
}

.whatsapp-modal__link-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

.whatsapp-modal__link:hover .whatsapp-modal__link-label {
    color: #25D366;
}

.whatsapp-modal__link-number {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.whatsapp-modal__link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: currentColor;
    color: rgba(255, 255, 255, 0.5);
}

.whatsapp-modal__link:hover svg {
    color: #25D366;
}

.whatsapp-modal__footnote {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
}
