/* Estilos base para promociones dinámicas */
.promocion-container {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    padding: 0;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Fondos dinámicos para cada promoción */
.promocion-bg-1 {
    background: linear-gradient(135deg, #fff8f0 0%, #ffeaa7 20%, #fab1a0 100%);
}

.promocion-bg-2 {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e6 20%, #fdcb6e 100%);
}

.promocion-bg-3 {
    background: linear-gradient(135deg, #f0f8ff 0%, #e17055 20%, #ff7675 100%);
}

.promocion-bg-4 {
    background: linear-gradient(135deg, #fff0f5 0%, #a29bfe 20%, #fd79a8 100%);
}

.promocion-bg-5 {
    background: linear-gradient(135deg, #f8fff8 0%, #00b894 20%, #55a3ff 100%);
}

.promocion-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.promocion-shape {
    position: absolute;
    transition: all 0.8s ease-in-out;
}

/* Formas decorativas - Conjunto 1 */
.promocion-shapes-1 .promocion-shape-1 {
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid rgba(255, 182, 193, 0.3);
    border-bottom: 150px solid rgba(255, 218, 185, 0.4);
    top: -20px;
    right: -100px;
    background: none;
    animation: promocion-float 6s ease-in-out infinite;
}

.promocion-shapes-1 .promocion-shape-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 223, 186, 0.5);
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    animation: promocion-pulse 4s ease-in-out infinite alternate;
}

.promocion-shapes-1 .promocion-shape-3 {
    width: 60px;
    height: 60px;
    background: rgba(255, 235, 167, 0.6);
    border-radius: 50%;
    top: 15%;
    left: 10%;
    animation: promocion-bounce 3s ease-in-out infinite;
}

.promocion-shapes-1 .promocion-shape-4 {
    width: 40px;
    height: 40px;
    background: rgba(253, 203, 110, 0.5);
    top: 70%;
    left: 5%;
    transform: rotate(45deg);
    animation: promocion-wiggle 4s ease-in-out infinite;
}

/* Formas decorativas - Conjunto 2 */
.promocion-shapes-2 .promocion-shape-1 {
    width: 120px;
    height: 120px;
    background: rgba(162, 155, 254, 0.3);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation: promocion-bounce 3s ease-in-out infinite;
}

.promocion-shapes-2 .promocion-shape-2 {
    width: 80px;
    height: 80px;
    background: rgba(253, 121, 168, 0.4);
    top: 60%;
    right: 5%;
    transform: rotate(45deg);
    animation: promocion-wiggle 4s ease-in-out infinite;
}

.promocion-shapes-2 .promocion-shape-3 {
    width: 90px;
    height: 90px;
    background: rgba(255, 182, 193, 0.4);
    top: 25%;
    left: 8%;
    border-radius: 50%;
    animation: promocion-pulse 5s ease-in-out infinite alternate;
}

.promocion-shapes-2 .promocion-shape-4 {
    width: 50px;
    height: 50px;
    background: rgba(253, 203, 110, 0.5);
    top: 75%;
    left: 12%;
    animation: promocion-rotate 6s linear infinite;
}

/* Formas decorativas - Conjunto 3 */
.promocion-shapes-3 .promocion-shape-1 {
    width: 100px;
    height: 100px;
    background: rgba(0, 184, 148, 0.3);
    border-radius: 50%;
    top: 30%;
    right: 8%;
    animation: promocion-rotate 8s linear infinite;
}

.promocion-shapes-3 .promocion-shape-2 {
    width: 60px;
    height: 60px;
    background: rgba(85, 163, 255, 0.4);
    top: 70%;
    right: 15%;
    animation: promocion-float 5s ease-in-out infinite;
}

.promocion-shapes-3 .promocion-shape-3 {
    width: 70px;
    height: 70px;
    background: rgba(116, 185, 255, 0.4);
    top: 20%;
    left: 15%;
    transform: rotate(45deg);
    animation: promocion-bounce 4s ease-in-out infinite;
}

.promocion-shapes-3 .promocion-shape-4 {
    width: 45px;
    height: 45px;
    background: rgba(0, 184, 148, 0.5);
    border-radius: 50%;
    top: 80%;
    left: 8%;
    animation: promocion-wiggle 3s ease-in-out infinite;
}

.promocion-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    height: 500px;
    display: flex;
    align-items: center;
}

.promocion-accent-bar {
    width: 8px;
    height: 120px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0 4px 4px 0;
    animation: promocion-grow 1s ease-out;
    box-shadow: 0 5px 15px rgba(232, 67, 147, 0.3);
}

/* Barras de acento con diferentes colores */
.promocion-accent-1 { background: linear-gradient(180deg, #fd79a8, #e84393, #a29bfe); }
.promocion-accent-2 { background: linear-gradient(180deg, #fdcb6e, #e17055, #ff7675); }
.promocion-accent-3 { background: linear-gradient(180deg, #00b894, #00a085, #0984e3); }
.promocion-accent-4 { background: linear-gradient(180deg, #a29bfe, #6c5ce7, #fd79a8); }
.promocion-accent-5 { background: linear-gradient(180deg, #55a3ff, #74b9ff, #00b894); }

.promocion-text-container {
    padding-left: 30px;
    animation: promocion-slideIn 1.2s ease-out;
    position: relative;
}

/* Elementos decorativos adicionales para el texto */
.promocion-text-container::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, currentColor, transparent);
    bottom: -20px;
    left: 30px;
    opacity: 0.6;
    animation: promocion-slideIn 1.5s ease-out 1.2s both;
}

.promocion-text-container::after {
    content: "★ ★ ★";
    position: absolute;
    bottom: -60px;
    left: 30px;
    font-size: 20px;
    color: currentColor;
    opacity: 0.7;
    letter-spacing: 5px;
    animation: promocion-fadeInUp 1s ease-out 1.5s both;
}

/* Texto invertido para promociones impares */
.promocion-text-right {
    padding-left: 0;
    padding-right: 30px;
    text-align: right;
    animation: promocion-slideInRight 1.2s ease-out;
    position: relative;
}

.promocion-text-right::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(270deg, currentColor, transparent);
    bottom: -20px;
    right: 30px;
    opacity: 0.6;
    animation: promocion-slideInRight 1.5s ease-out 1.2s both;
}

.promocion-text-right::after {
    content: "★ ★ ★";
    position: absolute;
    bottom: -60px;
    right: 30px;
    font-size: 20px;
    color: currentColor;
    opacity: 0.7;
    letter-spacing: 5px;
    animation: promocion-fadeInUp 1s ease-out 1.5s both;
}

.promocion-accent-bar-right {
    left: auto;
    right: 0;
    border-radius: 4px 0 0 4px;
}

.promocion-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: promocion-fadeInUp 1s ease-out 0.3s both;
}

.promocion-main-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: promocion-fadeInUp 1s ease-out 0.6s both;
}

/* Texto adicional decorativo automático */
.promocion-main-text::before {
    content: "¡Oferta Especial!";
    display: block;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    color: inherit;
    opacity: 0.8;
    margin-bottom: 10px;
    animation: promocion-fadeInUp 1s ease-out 0.3s both;
}

.promocion-main-text::after {
    content: "Disponible Ahora";
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
    margin-top: 8px;
    animation: promocion-fadeInUp 1s ease-out 0.9s both;
}

.promocion-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 42px;
    line-height: 1.1;
    margin: 5px 0 0 0;
    text-transform: uppercase;
    animation: promocion-fadeInUp 1s ease-out 0.9s both;
}

/* Colores de texto para cada promoción - Solo texto principal */
.promocion-text-1 .promocion-main-text { color: #e84393; }
.promocion-text-2 .promocion-main-text { color: #ff7675; }
.promocion-text-3 .promocion-main-text { color: #0984e3; }
.promocion-text-4 .promocion-main-text { color: #a29bfe; }
.promocion-text-5 .promocion-main-text { color: #00b894; }

.promocion-product-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.promocion-product-image {
    max-width: 100%;
    height: auto;
    width: 340px;
    height: 280px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: promocion-fadeInRight 1.2s ease-out 0.5s both;
}

.promocion-product-image:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Animaciones */
@keyframes promocion-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes promocion-pulse {
    0% { transform: translateY(-50%) scale(1); opacity: 0.6; }
    100% { transform: translateY(-50%) scale(1.2); opacity: 0.3; }
}

@keyframes promocion-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes promocion-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes promocion-wiggle {
    0%, 100% { transform: rotate(45deg) scale(1); }
    25% { transform: rotate(50deg) scale(1.1); }
    75% { transform: rotate(40deg) scale(0.9); }
}

@keyframes promocion-grow {
    0% { height: 0; }
    100% { height: 120px; }
}

@keyframes promocion-slideIn {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes promocion-slideInRight {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes promocion-fadeInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes promocion-fadeInRight {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes promocion-fadeInLeft {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Responsivo */
@media (max-width: 768px) {
    .promocion-content {
        padding: 40px 0;
        height: auto;
        min-height: 450px;
    }
    
    .promocion-main-text,
    .promocion-subtitle {
        font-size: 28px;
    }
    
    .promocion-title {
        font-size: 14px;
    }
    
    .promocion-text-container {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }
    
    .promocion-accent-bar {
        height: 80px;
    }
    
    .promocion-product-container {
        margin-top: 30px;
    }
    
    .promocion-product-image {
        width: 280px;
        height: 230px;
    }
}

@media (max-width: 480px) {
    .promocion-main-text,
    .promocion-subtitle {
        font-size: 24px;
    }
}