/**
 * KAÏA Fashion - Home Page Styles
 * Estilos específicos para la página de inicio
 */

/* ============================================
   HERO SLIDER
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.hero-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hero-prev {
    left: 2rem;
}

.hero-next {
    right: 2rem;
}

/* ============================================
   MARQUEE BAR
   ============================================ */
.marquee-bar {
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    margin-right: 3rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   CATEGORÍAS
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-card .category-image {
    padding-top: 125%;
    position: relative;
}

.category-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
}

.category-info h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ============================================
   PRODUCTOS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    padding-top: 125%;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e1;
    background: #f1f5f9;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.product-sizes {
    margin-bottom: 1rem;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-badge {
    padding: 0.4rem 0.8rem;
    border: 1px solid #cbd5e1;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.size-badge.available:hover,
.size-badge.selected {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
}

/* ============================================
   PRODUCTO DESTACADO
   ============================================ */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.featured-label {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.featured-title em {
    color: var(--color-text-light);
    font-style: italic;
}

.featured-desc {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.size-selector {
    margin-bottom: 1.5rem;
}

.size-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.size-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.size-btn.active,
.size-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.featured-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.featured-actions .btn {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
}

/* ============================================
   OFERTAS
   ============================================ */
.offers-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.offer-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.offer-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
}

.offer-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.offer-title {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
}

.offer-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.offer-secondary {
    background: var(--color-bg-alt);
    padding: 2rem;
    text-align: center;
}

.offer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.offer-secondary h3 {
    margin-bottom: 0.5rem;
}

.offer-secondary p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background: var(--color-primary);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-text .section-subtitle {
    color: var(--color-accent);
}

.newsletter-text .section-title {
    color: white;
}

.newsletter-text p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero-prev {
        left: 1rem;
    }
    
    .hero-next {
        right: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-actions {
        flex-direction: column;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    /* Header con fondo blanco al hacer scroll */
.header.scrolled .navbar {
    background: white;
    padding: 1rem 2rem;
    border-radius: 0 0 10px 10px;
    }

    .header.scrolled .logo {
        color: #0f172a;
    }

    .header.scrolled .nav-menu a {
        color: #0f172a;
    }
}

/* ==========================================
   SECCIÓN TESTIMONIOS (DINÁMICA)
   ========================================== */
.testimonials-section {
    background: #f8fafc;
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.testimonial-rating {
    color: #f59e0b;
    font-size: 1.25rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.65;
    font-style: italic;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.testimonial-author-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.15rem 0;
}

.testimonial-author-location {
    font-size: 0.82rem;
    color: #64748b;
    display: block;
}

.testimonial-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 600;
    color: #166534;
    background: #dcfce7;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-top: 0.25rem;
}