/**
 * Home Page Styles
 * 
 * @package Kalekoko
 * @since 3.0.0
 */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, rgb(255 255 255 / 85%) 0%, rgb(247 226 196 / 85%) 50%, rgb(232 216 180 / 85%) 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: var(--kk-font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #2f3d0c 0%, #674f1b 50%, #E8B4B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 10px rgba(127, 205, 205, 0.3));
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-weight: 900;
    color: #3f3829;
    max-width: 900px;
    font-weight: 100 !important;
    margin: auto;
    text-shadow: none;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1rem;
    opacity: 1;
    color: #372400;
    text-shadow: none;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.35rem; /* Reducido de 1.5rem */
    margin-bottom: 15px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
    font-size: 1.1rem; /* Reducido de 1.2rem */
    opacity: 0.95;
    margin-bottom: 40px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */

.features-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 250px;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3.5rem; /* Reducido de 4rem */
    margin-bottom: 15px;
}

.feature-title {
    font-family: var(--kk-font-heading);
    font-size: 1.2rem; /* Reducido de 1.3rem */
    color: #2C3E50;
    margin-bottom: 10px;
}

.feature-text {
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe4e1 100%);
    padding: 100px 20px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 30px;
    background-image: url('http://kalekoko.es/wp-content/uploads/2025/08/KALEKOKO-AITANA-LOPEZ-CREADORA-VELAS-ARTESANALES-DE-SOJA.jpg');
    background-size: cover;
    background-position: center;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-title {
    font-family: var(--kk-font-heading);
    font-size: 2.2rem; /* Reducido de 2.5rem */
    color: #2C3E50;
    margin-bottom: 20px;
}

.section-text {
    font-size: 1.1rem; /* Reducido de 1.2rem */
    line-height: 1.9;
    color: #555;
    margin-bottom: 30px;
}

/* ==========================================================================
   PRODUCTS/COLLECTIONS SECTION
   ========================================================================== */

.products-section {
    padding: 100px 20px;
    background: #ffffff;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 25px;
    margin-top: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.collection-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
    max-width: 320px;
}

.collection-card-link:hover {
    transform: scale(1.03);
}

.collection-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    height: 100%;
    position: relative;
}

.collection-card-link:hover .collection-card {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Emoji flotante */
.collection-emoji {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    z-index: 10;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    animation: floatEmoji 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

/* Animación de flotación sutil */
@keyframes floatEmoji {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Interacción al hover: hace un pequeño bounce */
.collection-card-link:hover .collection-emoji {
    animation: bounceEmoji 0.6s ease;
}

@keyframes bounceEmoji {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-10px) scale(1.1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
    75% {
        transform: translateY(-8px) scale(1.08);
    }
}

.collection-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.collection-content {
    padding: 30px;
    text-align: center;
}

.collection-title {
    font-family: var(--kk-font-heading);
    font-size: 1.2rem;
    color: #2C3E50;
    margin-bottom: 10px;
}

.collection-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 12px;
}

.collection-content .btn-primary {
    display: inline-block;
    background: var(--kk-dark);
    color: white;
    padding: 7px 25px;
    font-size: 12px;
    min-height: 10px;
    border-radius: 50px;
}

/* ==========================================================================
   HOME REVIEWS SECTION
   ========================================================================== */

.home-reviews-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.home-reviews-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.home-reviews-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   INFO SECTION
   ========================================================================== */

/* ==========================================================================
   PRODUCTS SHOWCASE - Slider de Gamas
   ========================================================================== */

.products-showcase {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    background: #000;
}

.showcase-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.showcase-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.showcase-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.showcase-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.showcase-slide.active .showcase-image img {
    animation: zoomIn 8s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.showcase-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 249, 250, 0.95) 100%
    );
    padding: 60px 40px;
}

.showcase-text {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.6s ease;
}

.showcase-slide.active .showcase-text {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.showcase-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--kk-primary);
    color: white;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.showcase-title {
    font-family: var(--kk-font-heading);
    font-size: 2.2rem;
    color: var(--kk-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.showcase-description {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.showcase-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.showcase-features li {
    padding: 10px 0;
    color: var(--kk-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e9ecef;
}

.showcase-features li:last-child {
    border-bottom: none;
}

.showcase-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: var(--kk-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(127, 205, 205, 0.3);
}

.showcase-btn:hover {
    background: var(--kk-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 205, 205, 0.4);
}

.showcase-btn svg {
    transition: transform 0.3s ease;
}

.showcase-btn:hover svg {
    transform: translateX(5px);
}

/* Navegación del Slider */
.showcase-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.showcase-nav-btn {
    background: var(--kk-primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.showcase-nav-btn:hover {
    background: var(--kk-secondary);
    transform: scale(1.1);
}

.showcase-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.showcase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--kk-primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.showcase-dot.active {
    background: var(--kk-primary);
    width: 35px;
    border-radius: 10px;
}

.showcase-dot:hover {
    background: var(--kk-secondary);
    border-color: var(--kk-secondary);
}

/* Responsive */
@media (min-width: 900px) and (max-width: 1199px) {
    .products-showcase {
        height: 600px;
    }
    
    .showcase-title {
        font-size: 2.5rem;
    }
    
    .showcase-content {
        padding: 40px 30px;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .products-showcase {
        height: auto;
        min-height: unset;
    }
    
    .showcase-slider {
        height: auto;
        min-height: unset;
    }
    
    .showcase-slide {
        position: relative;
        grid-template-columns: 1fr;
        grid-template-rows: 350px auto;
        min-height: unset;
        height: auto;
    }
    
    .showcase-slide.active {
        position: relative;
    }
    
    .showcase-slide:not(.active) {
        display: none;
    }
    
    .showcase-content {
        padding: 40px 30px;
        height: auto;
        min-height: unset;
    }
    
    .showcase-title {
        font-size: 2rem;
    }
    
    .showcase-description {
        font-size: 0.95rem;
    }
    
    .showcase-features li {
        font-size: 0.85rem;
        padding: 8px 0;
    }
    
    .showcase-nav {
        bottom: auto;
        top: 20px;
    }
}

@media (min-width: 320px) and (max-width: 599px) {
    .products-showcase {
        height: auto;
        min-height: unset;
    }
    
    .showcase-slider {
        height: auto;
        min-height: unset;
    }
    
    .showcase-slide {
        position: relative;
        grid-template-columns: 1fr;
        grid-template-rows: 280px auto;
        min-height: unset;
        height: auto;
    }
    
    .showcase-slide.active {
        position: relative;
    }
    
    .showcase-slide:not(.active) {
        display: none;
    }
    
    .showcase-image {
        order: 1;
    }
    
    .showcase-content {
        order: 2;
        padding: 35px 20px;
        height: auto;
        min-height: unset;
    }
    
    .showcase-text {
        max-width: 100%;
    }
    
    .showcase-badge {
        font-size: 0.7rem;
        padding: 5px 14px;
    }
    
    .showcase-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .showcase-description {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    
    .showcase-features {
        margin-bottom: 25px;
    }
    
    .showcase-features li {
        font-size: 0.85rem;
        padding: 8px 0;
    }
    
    .showcase-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .showcase-nav {
        bottom: 15px;
        padding: 12px 20px;
        gap: 15px;
    }
    
    .showcase-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .showcase-dot {
        width: 10px;
        height: 10px;
    }
    
    .showcase-dot.active {
        width: 28px;
    }
}

/* ==========================================================================
   INFO SECTION
   ========================================================================== */

.info-card h3 {
    font-family: var(--kk-font-heading);
    font-size: 1.3rem; /* Reducido de 1.4rem */
    color: #2C3E50;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 12px 0;
    color: #495057;
    line-height: 1.6;
    font-size: 0.9rem; /* Reducido de 0.95rem */
    position: relative;
    padding-left: 24px;
    transition: color 0.2s ease;
}

.info-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--kk-primary);
    border-radius: 50%;
    opacity: 0.6;
}

.info-card li:hover {
    color: var(--kk-primary);
}

.info-card li:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.3);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #E8F8F8, #F0F8FF);
}

.faq-container {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem; /* Reducido de 1.1rem */
    color: #2C3E50;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-toggle {
    font-size: 1.4rem; /* Reducido de 1.5rem */
    color: var(--kk-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 25px;
    color: #666;
    line-height: 1.8;
}

/* Product FAQs - Estilos consistentes */
.product-faq-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #E8F8F8, #F0F8FF);
    margin-top: 60px;
}

.product-faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.product-faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.product-faq-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: #2C3E50;
    transition: background 0.3s ease;
    gap: 20px;
}

.product-faq-question:hover {
    background: #f8f9fa;
}

.product-faq-toggle {
    font-size: 1.4rem;
    color: var(--kk-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.product-faq-item.active .product-faq-toggle {
    transform: rotate(180deg);
}

.product-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.product-faq-item.active .product-faq-answer {
    max-height: 500px;
}

.product-faq-answer-content {
    padding: 25px;
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .info-section {
        padding: 60px 20px;
    }
    
    .info-header .section-title {
        font-size: 1.8rem;
    }
    
    .info-header .section-subtitle {
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-card {
        padding: 30px 25px;
    }
    
    .info-card-header {
        gap: 12px;
    }
    
    .info-icon {
        width: 44px;
        height: 44px;
    }
    
    .info-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
    
    .info-card li {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    
    /* Emoji más pequeño en móviles */
    .collection-emoji {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        top: 8px;
        right: 8px;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
        gap: 20px;
        justify-content: center;
    }
    
    .collection-card-link {
        max-width: 300px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .info-card {
        padding: 35px 30px;
    }
    
    /* Showcase Slider Responsive Tablet */
    .products-showcase {
        height: auto;
        min-height: 600px;
    }
    
    .showcase-slide {
        grid-template-columns: 1fr;
        grid-template-rows: 350px auto;
    }
    
    .showcase-content {
        padding: 40px 30px;
    }
    
    .showcase-title {
        font-size: 1.8rem;
    }
    
    .showcase-description {
        font-size: 0.95rem;
    }
    
    .showcase-features li {
        font-size: 0.85rem;
        padding: 8px 0;
    }
}

@media (min-width: 320px) and (max-width: 599px) {
    /* Showcase Slider Responsive Mobile */
    .products-showcase {
        height: auto;
        min-height: 550px;
    }
    
    .showcase-slide {
        grid-template-columns: 1fr;
        grid-template-rows: 280px auto;
    }
    
    .showcase-image {
        order: 1;
    }
    
    .showcase-content {
        order: 2;
        padding: 30px 20px;
    }
    
    .showcase-text {
        max-width: 100%;
    }
    
    .showcase-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    
    .showcase-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .showcase-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .showcase-features {
        margin-bottom: 20px;
    }
    
    .showcase-features li {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .showcase-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .showcase-nav {
        bottom: auto;
        top: 15px;
        padding: 10px 15px;
        gap: 12px;
    }
    
    .showcase-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .showcase-dot {
        width: 8px;
        height: 8px;
    }
    
    .showcase-dot.active {
        width: 24px;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .collection-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .collection-card-link {
        max-width: 100%;
    }
    
    .collection-image {
        height: 180px;
    }
}