/* ========================================================================
   0. VARIABLES GLOBALES Y RESET
   ======================================================================== */
:root {
    --color-primary: #FF5733; /* Naranja/Rojo Vivo - El color 'Novedoso' */
    --color-secondary: #33FF57; /* Verde brillante */
    --color-dark: #212529; /* Negro oscuro para fondos */
    --color-light: #f8f9fa; /* Gris muy claro */
    --font-family-sans-serif: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family-sans-serif);
    color: var(--color-dark);
    padding-top: 56px;
    background-color: var(--color-light);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}
a:hover {
    color: #ff8470;
}

.section-title-highlight {
    color: var(--color-primary);
    font-weight: 700;
}

.btn-novedoso {
    background-color: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
    padding: 10px 30px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-novedoso:hover {
    background-color: #e64a2c;
    border-color: #e64a2c;
    color: white;
}



/* ========================================================================
   1. NAVBAR
   ======================================================================== */
#main-nav {
    background-color: var(--color-dark) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--color-primary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--color-light) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

/* ========================================================================
   2. HERO SECTION (AJUSTE DE ALTURA)
   ======================================================================== */
.hero-section {
    height: 65vh;          /* 🔽 ANTES 100vh */
    min-height: 420px;     /* 🔽 ANTES 500px */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.hero-section .bg-image {
    background-size: cover;
    background-position: center;
    transition: transform 10s ease;
}

.hero-section .overlay {
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-section .container {
    z-index: 1;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 320px;
    }
}

.hero-section .btn-novedoso {
    transform: translateY(60px); /* prueba 30px, 50px, 60px */
}

/* ========================================================================
   3. DESTACADOS (FLIP CARDS)
   ======================================================================== */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* ========================================================================
   4. PRODUCTOS (CATÁLOGO)
   ======================================================================== */
.producto-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.producto-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.img-worn {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.producto-card:hover .img-folded {
    opacity: 0;
}

.producto-card:hover .img-worn {
    opacity: 1;
}

/* ========================================================================
   5. TEMPORADA
   ======================================================================== */
.temporada-card .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
}

/* ========================================================================
   6. STOCK LIMITADO
   ======================================================================== */
#stock-limitado {
    background-color: var(--color-dark);
}

#stock-limitado .producto-card {
    border: 3px solid var(--color-primary) !important;
}

/* ========================================================================
   7. CALCETINES PERSONALIZADOS
   ======================================================================== */
.sock-preview {
    background-color: var(--color-light);
    border-radius: 8px;
    border: 1px solid #ddd;
}

.sock-preview-img {
    max-width: 80%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
    background-color: #f0f0f0;
}

/* ========================================================================
   8. MARYED TV
   ======================================================================== */
#maryed-tv {
    color: var(--color-dark);
}

/* ========================================================================
   9. CONTACTO Y FOOTER
   ======================================================================== */
.bg-oscuro {
    background-color: var(--color-dark) !important;
}

.contact-info li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-info .icon {
    display: inline-block;
    width: 25px;
    text-align: center;
    color: var(--color-primary);
    font-weight: 700;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.05); /* Ligeramente transparente */
    border-radius: 8px;
}

.social-icon-img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-icon-img:hover {
    transform: scale(1.2);
}



@media (max-width: 768px) {

    /* Libera la altura forzada del carrusel */
    .hero-section,
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item,
    .hero-section .bg-image {
        height: auto !important;
        min-height: 0 !important;
    }

    /* Mantiene proporción sin recortar */
    .hero-section .bg-image {
        aspect-ratio: 16 / 9;   /* puedes probar 4 / 5 si es vertical */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
}