/* Estilos específicos para la página de feed */

/* Hero Section Mejorado */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&display=swap');

.hero-section {
    margin-bottom: 3rem;
    padding: 4rem 3rem;
    background: var(--gradient-hero-bg);
    border-radius: 2.5rem;
    box-shadow: 0 20px 80px rgba(245,245,245,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: white;
}

.hero-subtitle {
    color: #e2e8f0;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 0 0 12px #fff8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.15);
}

.feature-icon {
    font-size: 1.5rem;
}

.hero-cta {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-explore-btn, .hero-shop-btn {
    background: var(--gradient-btn-primary);
    color: #181818;
    border: none;
    font-weight: 900;
    padding: 1rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(245,245,245,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-explore-btn:hover, .hero-shop-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(245,245,245,0.4);
    color: #181818;
}

.hero-shop-btn {
    background: var(--gradient-btn-secondary);
    color: #fff;
    border: 2px solid #fff;
    backdrop-filter: blur(10px);
}

.hero-shop-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(245,245,245,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(245,245,245,0.1) 0%, transparent 50%);
    animation: heroGlow 4s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: white;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero-subtitle {
    color: #e2e8f0;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 0 0 12px #fff8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.15);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px #fff8;
}

.hero-cta {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-section ul li {
    color: #fff !important;
    text-shadow: 0 0 6px rgba(255,255,255,0.5);
}

.hero-explore-btn, .hero-shop-btn {
    background: var(--gradient-btn-primary);
    color: #181818;
    border: none;
    font-weight: 900;
    padding: 1rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(245,245,245,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-explore-btn:hover, .hero-shop-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(245,245,245,0.4);
    color: #181818;
}

.hero-shop-btn {
    background: var(--gradient-btn-secondary);
    color: #fff;
    border: 2px solid #fff;
    backdrop-filter: blur(10px);
}

.hero-shop-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Promo Banner */
.promo-banner {
    background: var(--gradient-hero-bg);
    color: #f5f5f5;
    border-radius: 1.2rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 8px 32px rgba(245,245,245,0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 2px solid #fff;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(245,245,245,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.promo-banner ul {
    margin-bottom: 0;
    margin-top: 0;
    padding-left: 1.2rem;
}

/* Carousel Styles (referenced from home-cards.css) */
.carousel-3d-card {
    box-shadow: 0 0 40px rgba(245,245,245,0.3), 0 10px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.carousel-3d-card:hover {
    box-shadow: 0 0 60px rgba(245,245,245,0.5), 0 15px 60px rgba(0,0,0,0.4);
    transform: scale(1.05);
}

.carousel-control {
    background: rgba(255,255,255,0.1);
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 40px rgba(255,255,255,0.8);
    transform: scale(1.1);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 2px solid #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicator.active {
    background: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.1);
}

.carousel-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    margin-top: 1rem;
    border-radius: 2px;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, #f5f5f5 100%);
    width: 0%;
    transition: width 3s linear;
    border-radius: 2px;
}

.carousel-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.carousel-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: float 10s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Filters Bar */
.filters-bar {
    background: #23272f;
    border-radius: 1rem;
    box-shadow: 0 2px 8px #fff2;
    padding: 1.2rem 1rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 2px solid #fff;
}

.filters-bar label {
    font-weight: 700;
    color: #fff;
    margin-right: 0.5rem;
    text-shadow: 0 0 8px #fff8;
}

.filters-bar select {
    border-radius: 6px;
    border: 2px solid #fff;
    background: #181818;
    color: #fff;
    padding: 0.3rem 0.7rem;
    font-weight: 700;
    box-shadow: 0 0 8px #fff8;
}

.filters-bar select:focus {
    border: 2px solid #fff;
    box-shadow: 0 0 16px #fff;
}

/* Product Cards */
.product-card {
    border: 3px solid rgba(255,255,255,0.9);
    border-radius: 1.5rem;
    box-shadow: 0 0 30px rgba(255,255,255,0.2), 0 8px 32px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 2rem;
    background: var(--gradient-product-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform-style: preserve-3d;
    cursor: pointer;
}

@keyframes cardGlow {
    0% { box-shadow: 0 0 24px 0 #fff8, 0 4px 24px #000a; }
    100% { box-shadow: 0 0 40px 0 rgba(255,0,150,0.3), 0 4px 24px #000a; }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.03) rotateX(3deg) rotateY(-3deg);
    box-shadow: 0 20px 60px rgba(255,255,255,0.25), 0 8px 40px rgba(0,0,0,0.4), 0 0 80px rgba(245,245,245,0.5);
    border-color: rgba(255,255,255,1);
    animation: cardPulse 2s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% { transform: translateY(-12px) scale(1.03) rotateX(3deg) rotateY(-3deg); }
    50% { transform: translateY(-14px) scale(1.035) rotateX(3deg) rotateY(-3deg); }
}

.product-card:hover .product-img {
    transform: scale(1.05) rotate(1deg);
}

.product-card:hover .product-title {
    background: linear-gradient(90deg, #fff 0%, #f0f0f0 50%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.product-card:hover .product-price {
    background: linear-gradient(90deg, #fff 0%, #f0f0f0 50%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 2;
}

.product-card:hover::after {
    width: 300px;
    height: 300px;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    border-radius: 1.2rem;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay-content {
    text-align: center;
    color: #fff;
}

.product-overlay-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-overlay-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.product-card.destacado {
    border: 3px solid #fff;
    box-shadow: 0 0 32px 8px #fff8, 0 4px 32px #000a;
    z-index: 2;
}

.product-card.destacado .badge-destacado {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    background: linear-gradient(90deg, #fff 0%, #eaeaea 100%);
    color: #23272f;
    font-weight: 900;
    font-size: 0.95rem;
    padding: 0.35em 1em;
    border-radius: 0.8em 0.8em 0.8em 0.2em;
    box-shadow: 0 2px 8px #fff8;
    letter-spacing: 0.04em;
    text-shadow: none;
    z-index: 3;
    border: 1.5px solid #fff;
}

.product-img {
    border-radius: 1.2rem 1.2rem 0 0;
    object-fit: cover;
    height: 180px;
    width: 100%;
    background: #222;
    border-bottom: 2px solid #fff;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff; /* Fallback para accesibilidad */
    background: var(--gradient-text-white);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
    text-shadow: 0 0 8px #fff, 0 0 16px #fff8;
}

.product-title span {
    color: #fff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 0 6px rgba(255,255,255,0.5) !important;
    background: var(--gradient-text-white);
}

.product-price {
    color: #fff; /* Fallback para accesibilidad */
    background: var(--gradient-text-white);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 0 8px #fff, 0 0 16px #fff8;
}

.product-price span {
    color: #fff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 0 6px rgba(255,255,255,0.5) !important;
}

.product-description-full {
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.product-card .card-body {
    color: #ffffff;
}

.product-card .card-body p,
.product-card .card-body div {
    color: #ffffff;
}

.product-promo {
    color: #fff; /* Fallback para accesibilidad */
    background: var(--gradient-text-white);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.98rem;
    font-weight: 700;
    text-shadow: 0 0 8px #fff, 0 0 16px #fff8;
}

.product-promo span {
    color: #fff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 0 6px rgba(255,255,255,0.5) !important;
}

.btn-outline-primary {
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border: 3px solid rgba(255,255,255,0.9);
    color: #23272f;
    background: var(--gradient-btn-primary);
    box-shadow: 0 0 20px rgba(255,255,255,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.btn-outline-primary:hover::before {
    left: 100%;
}

.btn-outline-primary:hover {
    background: #23272f;
    color: #fff;
    box-shadow: 0 0 30px rgba(255,255,255,0.5), 0 0 20px rgba(255,255,255,0.8);
    border: 3px solid #fff;
    transform: translateY(-2px);
}

.section-title, h4 {
    color: #fff; /* Fallback para accesibilidad */
    background: var(--gradient-text-white);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 12px rgba(255,255,255,0.8), 0 0 24px rgba(255,255,255,0.4);
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.section-title span,
h4 span {
    color: #fff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.6) !important;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 12px rgba(255,255,255,0.8), 0 0 24px rgba(255,255,255,0.4); }
    to { text-shadow: 0 0 16px rgba(255,255,255,1), 0 0 32px rgba(255,255,255,0.6); }
}

.alert-info {
    background: linear-gradient(90deg, #fff 0%, #eaeaea 100%);
    color: #23272f;
    border: 2px solid #fff;
    font-weight: 700;
    box-shadow: 0 0 12px #fff8;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Divider Mejorado */
.section-divider {
    height: 3px;
    background: var(--gradient-section-divider);
    margin: 4rem 0;
    box-shadow: 0 0 30px rgba(255,255,255,0.6), 0 0 60px rgba(255,255,255,0.3);
    position: relative;
    border-radius: 2px;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: dividerShine 4s ease-in-out infinite;
}

@keyframes dividerShine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Secciones colapsables para simplificar UX */
.section-collapsible {
    margin-bottom: 2rem;
}

.section-summary {
    cursor: pointer;
    padding: 1rem;
    background: var(--gradient-hero-bg);
    border-radius: 1rem;
    border: 2px solid #fff;
    list-style: none;
    transition: background 0.3s ease;
}

.section-summary:hover {
    background: rgba(255,255,255,0.1);
}

.section-summary::-webkit-details-marker {
    display: none;
}

.toggle-icon {
    float: right;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.section-collapsible[open] .toggle-icon {
    transform: rotate(180deg);
}

/* Ajustes para badges para evitar saturación */
.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Footer */
.footer {
    margin-top: 2rem;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gradient-footer);
    color: #fff;
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(255,255,255,0.1), 0 0 100px rgba(245,245,245,0.05), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
    animation: footerGlow 4s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% { box-shadow: 0 20px 60px rgba(255,255,255,0.1), 0 0 100px rgba(245,245,245,0.05), inset 0 1px 0 rgba(255,255,255,0.1); }
    100% { box-shadow: 0 30px 80px rgba(255,255,255,0.15), 0 0 120px rgba(245,245,245,0.08), inset 0 1px 0 rgba(255,255,255,0.2); }
}

.footer a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
}

.footer a:nth-child(1):hover { box-shadow: 0 10px 30px rgba(228, 64, 95, 0.5); }
.footer a:nth-child(2):hover { box-shadow: 0 10px 30px rgba(24, 119, 242, 0.5); }
.footer a:nth-child(3):hover { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5); }

/* Testimonios */
.alert-info {
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    backdrop-filter: blur(10px);
}

.alert-info b {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-features {
        gap: 1rem;
    }
    .feature-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-explore-btn, .hero-shop-btn {
        width: 100%;
        max-width: 300px;
    }
}