/* public/css/promociones.css */

/* ======================================================== */
/* ==   HERO SECTION (Inherits structure, adds nuances)  == */
/* ======================================================== */
.hero-promociones {
    position: relative;
    height: 50vh; /* Slightly shorter than Home */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: -4rem; /* Overlap with grid */
    z-index: 1;
}

/* Background Wrapper (Matches Portafolio) */
.hero-bg-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05); /* Slight zoom for parallax feel */
    transition: transform 10s ease;
}

/* Gradient Overlay - Brand Identity */
.hero-overlay-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        135deg,
        hsla(260, 80%, 10%, 0.85) 0%,
        hsla(260, 80%, 18%, 0.6) 50%,
        hsla(190, 80%, 50%, 0.2) 100%
    );
    backdrop-filter: blur(2px);
    z-index: 1; /* Ensure it sits on top */
}

.hero-content h1 {
    font-family: var(--second-font);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--white-color);
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: var(--h3-font-size);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* ======================================================== */
/* ==   PROMO GRID SECTION (Premium Glass)               == */
/* ======================================================== */
.promociones-grid-section {
    padding: 8rem 0 5rem; /* Top padding huge for overlap */
    position: relative;
    z-index: 10;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* --- THE CARD: PREMIUM GLASS --- */
.promo-card-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255,255,255,0.5) inset;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

body.dark-theme .promo-card-glass {
    background: rgba(30, 30, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Hover Effect */
.promo-card-glass:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--first-color);
    box-shadow: 
        0 20px 50px rgba(252, 0, 168, 0.2), /* Neon Glow */
        0 0 0 1px var(--first-color);
}

/* --- IMAGE CONTAINER --- */
.promo-img-container {
    position: relative;
    width: 100%;
    padding-top: 65%; /* Aspect Ratio 16:9 approx */
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.promo-img-container img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.promo-card-glass:hover .promo-img-container img {
    transform: scale(1.1); /* Zoom Effect */
}

/* --- BADGES (Pills) --- */
.promo-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.badge-glass {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-glass.category {
    background: var(--gradient-color); /* Gradient for category */
}

/* --- CARD BODY --- */
.promo-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promo-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.promo-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    width: fit-content;
}

body.dark-theme .promo-dates {
    background: rgba(255,255,255,0.05);
}

.promo-desc {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1; /* Pushes button down */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit text lines */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- NEON BUTTON --- */
.btn-neon-gradient {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: var(--gradient-color);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-neon-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-neon-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(252, 0, 168, 0.4); /* Neon Shadow */
}

.btn-neon-gradient:hover::before {
    transform: translateX(100%);
}

/* ======================================================== */
/* ==   COMING SOON (Enhanced)                           == */
/* ======================================================== */
.coming-soon-content {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg-color);
    border-radius: 24px;
    border: 1px dashed var(--text-color-light);
    margin-top: 3rem;
}

.coming-soon-icon {
    font-size: 4rem;
    background: var(--gradient-color);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

/* ======================================================== */
/* ==   RESPONSIVE                                       == */
/* ======================================================== */
@media screen and (max-width: 768px) {
    .hero-promociones {
        height: 60vh;
    }
    .promo-grid {
        grid-template-columns: 1fr; /* Full width cards on mobile */
    }
    .promo-img-container {
        padding-top: 60%;
    }
    .promo-badges {
        top: 0.5rem; left: 0.5rem; right: 0.5rem;
    }
}

/* ======================================================== */
/* ==   BTN PROMO NEON (NEW)                             == */
/* ======================================================== */
.btn-promo-neon {
    /* Base Styles */
    background: var(--gradient-color) !important; /* Force override */
    color: #fff; /* White Text */
    font-weight: 500; /* Medium weight */
    border-radius: 50px !important; /* Pill Shape */
    border: none;
    padding: 1rem 1.5rem; /* Generous padding */
    width: 100%;
    
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    
    /* Transition */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-promo-neon:hover {
    /* Neon Glow & Lift */
    box-shadow: 0 8px 20px rgba(252, 0, 168, 0.4) !important;
    transform: translateY(-3px) !important;
}

/* Ensure Icon matches text color */
.btn-promo-neon i {
    color: #fff;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-promo-neon:hover i {
    transform: translateX(4px); /* Subtle arrow movement */
}

/* ======================================================== */
/* ==   MODAL ACTION BUTTON (NEON)                       == */
/* ======================================================== */
.btn-modal-action-neon {
    background: var(--gradient-color);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Center if block context allows */
}

.btn-modal-action-neon:hover {
    background: var(--gradient-color); /* Ensure gradient stays */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(252, 0, 168, 0.4); /* Neon Glow */
}

.btn-modal-action-neon i {
    font-size: 1.2rem;
    color: #fff;
}