/* ================================================
   Tela Tergal Catalán — estilos específicos de página
   ================================================ */

/* --- Selector de colores (muestrario) --- */
.color-selector-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}
.color-selector-responsive a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #eee;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin: 2px 0;
    position: relative;
}
.color-selector-responsive a:hover {
    border-color: #1A3460;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.color-selector-responsive a::after {
    content: attr(data-color-name);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    padding: 2px 7px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
}
.color-selector-responsive a:hover::after {
    opacity: 1;
}
@media (max-width: 576px) {
    .color-selector-responsive {
        justify-content: center;
        gap: 12px;
        padding: 8px 0;
        margin: 0px;
    }
    .color-selector-responsive a {
        width: 36px;
        height: 36px;
        margin: 4px 0;
    }
    .color-selector-responsive a.color-marino-destacado {
        width: 46px;
        height: 46px;
    }
}
.color-selector-responsive a.color-marino-destacado {
    width: 38px;
    height: 38px;
    border: 2px solid #083573;
    box-shadow: 0 0 0 3px rgba(8, 53, 115, 0.4), 0 2px 8px rgba(8, 53, 115, 0.35);
}
.color-selector-responsive a.color-marino-destacado::before {
    content: '★ tendencia';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    background: #f5a623;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
    white-space: nowrap;
}
.color-selector-responsive a.color-marino-destacado::after {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(8, 53, 115, 0.88);
    white-space: nowrap;
}
.color-selector-responsive a.color-blanco-destacado {
    width: 38px;
    height: 38px;
    border: 2px solid #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.4), 0 2px 8px rgba(39, 174, 96, 0.35);
}
.color-selector-responsive a.color-blanco-destacado::before {
    content: '$ más vendido';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    background: #27ae60;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
    white-space: nowrap;
}
.color-selector-responsive a.color-blanco-destacado::after {
    font-size: 11px;
    padding: 3px 8px;
    background: rgb(255, 255, 255);
    white-space: nowrap;
    color: #1A1A2E;
}

/* --- Banner carousel (tergal catalán) --- */
#carouselBannerFieltro .carousel-item {
    aspect-ratio: 19 / 4;
    overflow: hidden;
}
#carouselBannerFieltro .carousel-item picture,
#carouselBannerFieltro .carousel-item a {
    display: block;
    height: 100%;
}
#carouselBannerFieltro .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 767px) {
    #carouselBannerFieltro .carousel-item {
        aspect-ratio: 7 / 5;
    }
}

/* --- Ficha técnica (specs grid) --- */
.tc-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 18px 0 20px;
}
.tc-spec-wide {
    grid-column: 1 / -1;
}
.tc-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f4f6fb;
    border-left: 5px solid #1A3460 !important;
    border: 1px solid #1A3460;
    border-radius: 6px;
    padding: 12px 14px;
}
.tc-spec-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1A3460;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tc-spec-icon i {
    font-size: 15px;
    color: #fff;
}
.tc-spec-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.tc-spec-label {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}
.tc-spec-value {
    font-size: 14px;
    color: #1A1A2E;
    line-height: 1.3;
}
@media (max-width: 480px) {
    .tc-specs-grid { grid-template-columns: 1fr; }
    .tc-spec-wide { grid-column: 1; }
}

/* --- Grilla de colores disponibles --- */
.tc-colores-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
    justify-content: center;
    align-items: flex-end;
    padding: 28px 0 4px;
}
.tc-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    width: 58px;
    position: relative;
}
.tc-color-item:hover { text-decoration: none; }
.tc-swatch {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tc-color-item:hover .tc-swatch {
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}
.tc-nombre {
    font-size: 11px;
    color: #444;
    text-align: center;
    line-height: 1.2;
    min-height: 2.4em;
}
.tc-color-estrella .tc-swatch {
    width: 52px;
    height: 52px;
    box-shadow: 0 0 0 3px rgba(8,53,115,0.35), 0 3px 10px rgba(8,53,115,0.3);
}
.tc-color-estrella .tc-nombre {
    font-weight: 700;
    color: #083573;
}
.tc-color-vendido .tc-swatch {
    width: 52px;
    height: 52px;
    box-shadow: 0 0 0 3px rgba(39,174,96,0.35), 0 3px 10px rgba(39,174,96,0.3);
}
.tc-color-vendido .tc-nombre {
    font-weight: 700;
    color: #27ae60;
}
.tc-badge {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    background: #f5a623;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
    white-space: nowrap;
}
.tc-badge-vendido {
    background: #27ae60;
}

/* --- Grilla de usos --- */
.tc-usos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0 8px;
}
.tc-uso-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: #f4f6fb;
    border-radius: 10px;
    border: 1px solid #1A3460;
    border-left: 5px solid #1A3460 !important;
    transition: all 0.2s ease;
}

.tc-uso-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1A3460;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tc-uso-icon i {
    font-size: 22px;
    color: #fff;
}
.tc-uso-label {
    font-size: 13px;
    font-weight: 600;
    color: #2D2D2D;
    text-align: center;
    line-height: 1.3;
}
@media (max-width: 767px) {
    .tc-usos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .tc-uso-icon {
        width: 44px;
        height: 44px;
    }
    .tc-uso-icon i { font-size: 18px; }
}
@media (max-width: 400px) {
    .tc-usos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .tc-uso-card {
        padding: 12px 6px;
        gap: 6px;
        border-radius: 8px;
    }
    .tc-uso-icon {
        width: 36px;
        height: 36px;
    }
    .tc-uso-icon i { font-size: 14px; }
    .tc-uso-label { font-size: 11px; }
}
