/* Estilos para la sección Hero de la página de Cartas */
/* Basado en los estilos del hero principal con adaptaciones para productos */

/* Variables globales de Todo Versus */
:root {
    --primary-color: #ED2F59;
    --secondary-color: #F8AD56;
    --accent-color: #FFE85A;
    --text-dark: #333333;
    --text-light: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ----------------- CONTENEDOR PRINCIPAL HERO-CARTAS ----------------- */
.hero.hero-cartas {
    /* Dimensiones para ocupar toda la pantalla */
    min-height: 100vh;
    width: 100vw;
    
    /* Eliminar cualquier margin/padding que pueda afectar */
    margin: 0;
    padding: 0;
    
    /* Flexbox para alineación */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Fondo con gradiente de la marca - SIN GRID */
    background: linear-gradient(135deg, #ED2F59 0%, #F8AD56 100%);
    
    /* Configuración adicional */
    text-align: left;
    position: relative;
    overflow: hidden;
    
    /* Posicionamiento para que empiece desde el borde */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

/* Overlay de gradiente para suavizar la transición al final */
.hero.hero-cartas::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6rem;
    background: linear-gradient(to bottom, transparent, rgba(248, 173, 86, 0.6));
    z-index: 5;
    display: block !important;
}

/* ----------------- ELIMINAR GRID DE FONDO ----------------- */
.hero.hero-cartas .grid-overlay {
    display: none;
}

/* ----------------- LAYOUT DE DOS COLUMNAS ----------------- */
.hero.hero-cartas .hero__container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    border: none;
    outline: none;
    padding: 0 1rem;
}

/* ----------------- COLUMNA DE IMAGEN (IZQUIERDA) ----------------- */
.hero.hero-cartas .hero__image-container {
    flex: 1; /* Revertido a 1 */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border: none;
}

/* Estilos específicos para el visor de imágenes del producto */
.hero-cartas__image-viewer {
    width: 100%;
    /* max-width: 600px; Eliminado/Comentado para permitir expansión completa */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-cartas__main-image-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    /* aspect-ratio: 1 / 1; */ /* Eliminado del estilo general */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Imagen principal del producto */
.hero.hero-cartas .hero__image {
    width: 100%; /* Ajustado a 100% para evitar desbordes */
    height: 100%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
    backface-visibility: hidden;
}

.hero.hero-cartas .hero__image:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Miniaturas */
.hero-cartas__image-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 5px;
    justify-content: center;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: var(--accent-color);
    transform: scale(1.05);
    opacity: 1;
}

/* ----------------- COLUMNA DE CONTENIDO (DERECHA) ----------------- */
.hero.hero-cartas .hero__content {
    flex: 1; /* Revertido a 1 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 2rem;
    border: none;
    position: relative;
}

/* Título del producto */
.hero.hero-cartas .hero__title {
    font-family: 'Anton', sans-serif;
    color: #FFE85A;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 #ED2F59;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

/* Rating del producto */
.hero-cartas__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-stars {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.rating-text {
    color: #FFF;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    opacity: 0.9;
}

/* Precios */
.hero-cartas__price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-cartas__current-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Anton', sans-serif;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.hero-cartas__original-price {
    font-size: 1.4rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Barlow Condensed', sans-serif;
}

/* Subtítulo y descripción */
.hero.hero-cartas .hero__subtitle {
    font-family: 'Barlow Condensed', sans-serif;
    color: #FFF;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: normal;
    opacity: 0.9;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.hero-cartas__description {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFF;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Selector de cantidad */
.hero-cartas__quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    color: #FFF;
    font-size: 1.1rem;
}

.hero-cartas__quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: #FFF;
    font-weight: bold;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quantity-number {
    padding: 0.5rem 1rem;
    font-weight: bold;
    color: #FFF;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
}

/* ----------------- BOTONES DEL HERO-CARTAS ----------------- */
.hero.hero-cartas .hero__buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero.hero-cartas .hero__btn {
    display: inline-block;
    padding: 1rem 2rem; /* Botón más grande */
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem; /* Texto más grande */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-width: 180px; /* Botón más ancho */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex: 0 0 auto;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.hero.hero-cartas .hero__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.hero.hero-cartas .hero__btn:hover::before {
    left: 100%;
}

.hero.hero-cartas .hero__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero.hero-cartas .hero__btn--yellow {
    background: linear-gradient(135deg, #FFE85A, #FCD34D);
    color: #ED2F59;
}

.hero.hero-cartas .hero__btn--yellow:hover {
    background: linear-gradient(135deg, #FDE047, #FACC15);
    color: #DC1F4A;
}

/* Información de envío express */
.hero-cartas__express-shipping {
    margin-top: 1rem;
}

.shipping-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 232, 90, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--accent-color);
    margin: 0;
    text-align: center;
}

/* ----------------- ANIMACIONES DE ENTRADA ----------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Retraso para la segunda columna */
.hero.hero-cartas .hero__content.animate-on-scroll {
    transition-delay: 0.2s;
}

/* ----------------- SECCIÓN DE CONTENIDO MÓVIL ----------------- */
/* Ocultar por defecto en pantallas grandes */
.hero-cartas__content-bottom {
    display: none;
}

/* ----------------- RESPONSIVE DESIGN ----------------- */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    .hero.hero-cartas .hero__container {
        flex-direction: column;
        padding: 1rem;
        min-height: auto;
    }
    
    .hero.hero-cartas .hero__content {
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
        flex: none;
    }
    
    .hero.hero-cartas .hero__image-container {
        padding: 1rem 0;
        order: -1;
        flex: none;
    }
    
    .hero-cartas__image-viewer {
        /* max-width: 550px; Aumentado de 480px para tablets */
    }
    
    .hero.hero-cartas .hero__title {
        font-size: 2.5rem;
    }
    
    .hero-cartas__current-price {
        font-size: 2rem;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .hero.hero-cartas {
        min-height: calc(100vh - 4.5rem);
        padding-top: 5rem; /* Agregar padding para evitar que la navbar tape el contenido */
        margin-top: 0;
    }
    
    .hero.hero-cartas .hero__container {
        min-height: calc(100vh - 9.5rem); /* Ajustar altura considerando el padding-top */
        padding: 1rem 0; /* ELIMINAR PADDING LATERAL COMPLETAMENTE */
        flex-direction: column;
        align-items: center;
        max-width: 100%; /* Permitir que el contenedor ocupe todo el ancho en móviles */
        width: 100vw; /* Forzar el ancho del contenedor a 100% del viewport */
    }
    
    /* Reorganizar el orden: título arriba, luego imagen, luego resto del contenido */
    .hero.hero-cartas .hero__content {
        order: 1;
        align-items: center;
        text-align: center;
        padding: 0.5rem 1rem; /* Mantener padding lateral solo para el contenido de texto */
        flex: none;
        width: 100%;
    }
    
    .hero.hero-cartas .hero__image-container {
        order: 2;
        padding: 1rem 0; /* ELIMINAR COMPLETAMENTE EL PADDING LATERAL */
        flex: none;
        width: 100%;
        max-width: none; /* ELIMINAR LA RESTRICCIÓN DE ANCHO MÁXIMO */
    }
    
    /* Mostrar solo el título en la primera parte del contenido */
    .hero.hero-cartas .hero__content .hero__title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        order: -1; /* Asegurar que el título esté primero */
        margin-top: 0; /* Eliminar margen superior adicional */
    }
    
    /* Ocultar temporalmente el resto del contenido en la primera sección */
    .hero.hero-cartas .hero__content .hero-cartas__price,
    .hero.hero-cartas .hero__content .hero__subtitle,
    .hero.hero-cartas .hero__content .hero-cartas__description,
    .hero.hero-cartas .hero__content .hero-cartas__quantity-section,
    .hero.hero-cartas .hero__content .hero__buttons,
    .hero.hero-cartas .hero__content .hero-cartas__express-shipping {
        display: none;
    }
    
    /* AJUSTAR EL VISOR DE IMÁGENES PARA QUE OCUPE TODO EL ANCHO DISPONIBLE */
    .hero-cartas__image-viewer {
        width: 100%;
        max-width: none; /* Eliminar restricción de ancho máximo */
        padding: 0 0.5rem; /* Reducido a 0.5rem para aumentar el ancho visible */
        margin: 0; /* Eliminar margin que pueda limitar */
    }
    
    /* CONTENEDOR DE LA IMAGEN PRINCIPAL - ANCHO COMPLETO SIN RESTRICCIONES */
    .hero-cartas__main-image-container {
        width: 100%;
        /* aspect-ratio: 1 / 1; */ /* Eliminado para permitir mayor libertad de tamaño */
        margin-bottom: 1rem; /* Espacio entre imagen principal y miniaturas */
        padding: 0; /* Sin padding */
        border: none; /* Sin bordes */
    }
    
    /* IMAGEN PRINCIPAL - AJUSTADA AL 100% DEL CONTENEDOR SIN RESTRICCIONES */
    .hero.hero-cartas .hero__image {
        width: 100% !important; /* Forzar el ancho al 100% */
        height: auto; /* Permitir que la altura se ajuste automáticamente */
        object-fit: cover; /* Cambiado a cover para que la imagen ocupe todo el espacio */
        margin: 0; /* Sin márgenes */
        padding: 0; /* Sin padding */
        border: none; /* Sin bordes */
    }
    
    /* CONTENEDOR DE MINIATURAS - MISMO ANCHO QUE LA IMAGEN PRINCIPAL */
    .hero-cartas__image-thumbnails {
        width: 100%; /* Mismo ancho que la imagen principal */
        justify-content: space-between;
        gap: 0.3rem;
        padding: 0; /* Sin padding para alineación perfecta */
        margin: 0; /* Sin margin para alineación perfecta */
    }
    
    .thumbnail-image {
        width: 70px; /* Miniaturas un poco más grandes */
        height: 70px;
        flex: 1;
        max-width: calc(25% - 0.3rem); /* 4 imágenes por fila con gap */
    }
    
    /* Crear una nueva sección para el contenido debajo de la imagen */
    .hero-cartas__content-bottom {
        display: block; /* Mostrar en móviles */
        order: 3;
        width: 100%;
        padding: 1rem 0.5rem; /* Mantener padding para el contenido de texto */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-cartas__content-bottom .hero-cartas__price {
        display: flex;
        justify-content: center;
        align-items: baseline;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .hero-cartas__content-bottom .hero-cartas__current-price {
        font-size: 1.8rem;
    }
    
    .hero-cartas__content-bottom .hero-cartas__original-price {
        font-size: 1.1rem;
    }
    
    .hero-cartas__content-bottom .hero__subtitle {
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
    }
    
    .hero-cartas__content-bottom .hero-cartas__description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
        max-width: 90%;
        line-height: 1.6;
    }
    
    .hero-cartas__content-bottom .hero-cartas__quantity-section {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .hero-cartas__content-bottom .hero__buttons {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        align-items: center;
        justify-content: center;
    }
    
    .hero-cartas__content-bottom .hero__btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-cartas__content-bottom .hero-cartas__express-shipping {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    .hero-cartas__content-bottom .shipping-text {
        margin: 0 auto;
        max-width: 90%;
    }
} 