/* ========================== TIPOS DE CALZADO ========================== */
.tipos-calzado {
    width: 100%;
    background: var(--color-bg);
    padding: 34px 0 46px;
    position: relative;
    margin-top: 5rem;
}

.tc__wrap {
    width: min(1400px, calc(100% - 28px));
    margin: 0 auto;
}

.tc__head {
    text-align: center;
    margin-bottom: 18px;
}

.tc__title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: 600;
    font-size: clamp(2.3rem, 3vw, 3.2rem);
    line-height: 1.05;
    margin: 0 0 6px 0;
    color: var(--color-black);
    letter-spacing: 0.01em;
}

.tc__subtitle {
    margin: 0 auto;
    max-width: 860px;
    font-size: clamp(0.98rem, 1.1vw, 1.12rem);
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.62);
}

/* ========================== CARRUSEL ========================== */
.tc-carousel {
    position: relative;
    margin-top: 18px;
    overflow: hidden;
}

.tc-carousel__track {
    display: flex;
    gap: clamp(14px, 1.4vw, 22px);
    transition: transform 600ms cubic-bezier(0.16, 0.77, 0.22, 0.99);
    will-change: transform;
    padding: 4px;
}

/* ========================== TARJETAS ========================== */
.tc-card {
    position: relative;
    display: block;
    overflow: hidden;

    /* ✅ sin esquinas redondeadas */
    border-radius: 0;

    background: #eee;
    min-width: calc(25% - 16.5px);
    /* 4 cards - gap */
    flex-shrink: 0;
    min-height: 560px;

    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
    text-decoration: none;
    transform: translateZ(0);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.tc-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition: transform 800ms cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

/* Overlay suave + detalle al hover */
.tc-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.05) 55%,
            rgba(0, 0, 0, 0.18) 100%);
    opacity: 0.78;
    transition: opacity 260ms ease;
    pointer-events: none;
}

/* Línea/Glow muy sutil (premium) */
.tc-card::before {
    content: "";
    position: absolute;
    inset: 0;

    /* ✅ sin esquinas redondeadas */
    border-radius: 0;

    box-shadow: inset 0 0 0 0 rgba(231, 76, 60, 0);
    transition: box-shadow 260ms ease;
    pointer-events: none;
    z-index: 2;
}

/* ========================== NOMBRE (ELEGANTE / PROFESIONAL) ========================== */
/* Estilo editorial: banda superior + acento izquierdo */
.tc-card__name {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;

    /* ✅ siempre visible */
    display: flex;
    align-items: center;

    padding: 14px 16px 12px 16px;

    /* ✅ sin esquinas redondeadas */
    border-radius: 0;

    /* Banda elegante (oscura) con un toque de transparencia */
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.42) 65%,
            rgba(0, 0, 0, 0.00) 100%);

    /* Tipografía más pro */
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    /* Acento */
    border-left: 3px solid var(--color-primary);

    /* Legibilidad */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);

    /* clamp 2 líneas */
    line-height: 1.1;
    max-height: calc(1.1em * 2 + 6px);
    overflow: hidden;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    pointer-events: none;
}

/* CTA (oculta) - estilo barra */
.tc-card__cta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;

    /* ✅ sin redondeo ya estaba, lo dejamos */
    border-radius: 0;

    background: rgba(0, 0, 0, 0.86);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 320ms ease, transform 320ms ease, background 220ms ease;
    backdrop-filter: blur(10px);
}

.tc-card__plus {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    transition: all 220ms ease;
}

/* Hover / Focus: aparece CTA */
.tc-card:hover img {
    transform: scale(1.06);
}

.tc-card:hover::after {
    opacity: 0.95;
}

.tc-card:hover::before {
    box-shadow: inset 0 0 0 2px rgba(231, 76, 60, 0.45);
}

.tc-card:hover .tc-card__cta {
    opacity: 1;
    transform: translateY(0);
}

.tc-card:hover .tc-card__plus,
.tc-card:focus-visible .tc-card__plus {
    border-color: rgba(231, 76, 60, 0.85);
    background: rgba(231, 76, 60, 0.1);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.18);
}

/* Focus visible (teclado) */
.tc-card:focus-visible {
    outline: 2px solid rgba(231, 76, 60, 0.55);
    outline-offset: 6px;
}

.tc-card:focus-visible .tc-card__cta {
    opacity: 1;
    transform: translateY(0);
}

/* ========================== FLECHAS DEL CARRUSEL ========================== */
.tc-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;

    /* ✅ sin esquinas redondeadas */
    border-radius: 0;

    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 300ms cubic-bezier(0.16, 0.77, 0.22, 0.99);
}

.tipos-calzado:hover .tc-carousel__arrow {
    opacity: 1;
}

.tc-carousel__arrow:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.tc-carousel__arrow--prev {
    left: 10px;
}

.tc-carousel__arrow--next {
    right: 10px;
}

.tc-carousel__arrow svg {
    width: 24px;
    height: 24px;
}

/* ========================== INDICADORES (DOTS) ========================== */
.tc-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px;
}

.tc-carousel__dot {
    width: 10px;
    height: 10px;

    /* ✅ sin redondeo */
    border-radius: 0;

    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 300ms ease;
}

.tc-carousel__dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.tc-carousel__dot:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

/* ========================== RESPONSIVE ========================== */
@media (max-width: 1100px) {
    .tc-card {
        min-width: calc(50% - 11px);
        /* 2 cards - gap */
        min-height: 580px;
    }

    .tc-carousel__arrow {
        width: 40px;
        height: 40px;
        opacity: 0.9;
    }

    .tipos-calzado:hover .tc-carousel__arrow {
        opacity: 0.9;
    }

    .tc-card__name {
        padding: 12px 14px 10px 14px;
        font-size: 1.02rem;
    }
}

@media (max-width: 768px) {
    .tc-card {
        min-width: calc(100% - 0px);
        /* 1 card */
        min-height: 520px;
    }

    .tc-carousel__arrow {
        display: none;
        /* Ocultar flechas en móvil */
    }

    .tc-carousel__dots {
        margin-top: 15px;
    }

    .tc-card__name {
        font-size: 1.03rem;
    }
}

@media (max-width: 640px) {
    .tc__wrap {
        width: calc(100% - 16px);
    }

    .tipos-calzado {
        padding: 26px 0 34px;
    }

    .tc-carousel__track {
        gap: 14px;
        padding: 2px;
    }

    .tc-card {
        /* ✅ sin esquinas redondeadas (se mantiene) */
        border-radius: 0;
        min-height: 480px;
    }

    .tc-card::before {
        /* ✅ sin esquinas redondeadas (se mantiene) */
        border-radius: 0;
    }

    .tc-card__cta {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .tc-card__name {
        padding: 12px 14px 10px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tc-carousel__track,
    .tc-card img,
    .tc-card::after,
    .tc-card::before,
    .tc-card__cta,
    .tc-carousel__arrow {
        transition: none !important;
    }
}