/* ========================================
   PAPIROY — Home Page Styles
   ======================================== */

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--green-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: heroZoom 12s ease infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.12);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 35, 15, 0.82) 0%,
            rgba(26, 58, 26, 0.65) 50%,
            rgba(20, 60, 20, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 80px;
    color: var(--white);
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(120, 214, 75, 0.2);
    border: 1px solid rgba(120, 214, 75, 0.4);
    color: var(--green-lime);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease forwards;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeUp 0.8s 0.1s ease both;
}

.highlight {
    background: linear-gradient(90deg, var(--green-lime), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content>p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin-bottom: 36px;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeUp 0.8s 0.3s ease both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.4s ease both;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green-lime);
    line-height: 1;
}

.stat span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-dot {
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    position: relative;
}

.scroll-dot::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        top: 6px;
        opacity: 1;
    }

    80% {
        top: 22px;
        opacity: 0;
    }

    100% {
        top: 6px;
        opacity: 0;
    }
}

/* ── CATEGORÍAS STRIP ── */
.categories-strip {
    padding: 40px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.cats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.cat-card:hover {
    background: var(--green-light);
    border-color: var(--green-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.cat-card-all {
    background: var(--green-dark);
}

.cat-card.cat-card-all span {
    color: var(--white);
}

.cat-card-all:hover {
    background: var(--green-mid);
    border-color: var(--green-dark);
}

.cat-icon {
    font-size: 2rem;
    line-height: 1;
}

.cat-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* ── FEATURED SECTION ── */
.featured-section {
    padding: 90px 24px;
    background: var(--gray-100);
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-header p {
    max-width: 520px;
    margin: 12px auto 0;
    font-size: 1rem;
}

/* ── PRODUCT SLIDER ── */
.slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.slider-wrapper {
    overflow: hidden;
    padding: 24px 0;
}

.slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.slider-track .product-card {
    flex: 0 0 calc(25% - 18px);
    /* removed min-width to prevent overflow cuts */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--green-dark);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--green-main);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(120, 214, 75, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: -5px;
}

.slider-btn.next {
    right: -5px;
}

@media (max-width: 1100px) {
    .slider-track .product-card {
        flex: 0 0 calc(50% - 12px);
        /* 2 cards */
    }

    .slider-container {
        padding: 0 40px;
    }
}

@media (max-width: 600px) {
    .slider-track .product-card {
        flex: 0 0 100%;
        /* 1 card */
    }

    .slider-container {
        padding: 0 20px;
    }

    .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }

    .slider-btn.prev {
        left: -10px;
    }

    .slider-btn.next {
        right: -10px;
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.product-icon-wrap {
    background: linear-gradient(135deg, #f8fdf6, #f1f8ed);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    padding: 20px;
    /* Increased height for bottles */
}

.product-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
    transition: var(--transition);
    width: 100%;
    height: 100%;
}

.product-card:hover .product-icon-wrap {
    background: linear-gradient(135deg, #eaf7e1, #dceecb);
}

.product-card:hover .product-icon-wrap img {
    transform: scale(1.08) translateY(-5px);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
}

.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-body h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.product-body>p {
    font-size: 0.88rem;
    line-height: 1.55;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.product-detail-link {
    font-size: 0.85rem;
    color: #1a5c1a;
    /* Oscurecido para pasar contraste 4.5:1 (WCAG AA) */
    font-weight: 700;
}

.product-detail-link:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

/* ── WHY SECTION ── */
.why-section {
    padding: 100px 24px;
    background: var(--white);
}

.why-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-text {
    position: relative;
}

.why-text h2 {
    margin-bottom: 16px;
}

.why-text>p {
    margin-bottom: 32px;
    font-size: 1rem;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.why-feat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feat-icon {
    width: 44px;
    height: 44px;
    background: var(--green-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.why-feat strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.why-feat p {
    font-size: 0.88rem;
}

.why-visual {
    position: relative;
}

.why-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.why-bubble {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    animation: float 4s ease-in-out infinite;
}

.why-bubble strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.why-bubble span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.why-bubble-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.why-bubble-2 {
    bottom: 20px;
    left: -20px;
    animation-delay: 2s;
}

/* ── CTA BANNER ── */
.cta-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-main) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 24px;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(120, 214, 75, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(232, 184, 75, 0.10) 0%, transparent 50%);
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-inner h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
}

.cta-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ── TESTIMONIALS ── */
.testimonials-section {
    padding: 90px 24px;
    background: var(--gray-100);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testi-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.testi-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 4rem;
    color: var(--green-light);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    font-weight: 800;
}

.testi-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.testi-stars {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.testi-card>p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-main), var(--green-bright));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testi-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.testi-author span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .why-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .why-visual {
        max-width: 500px;
    }

    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 10px 24px 40px;
        margin: 0 -24px;
        -webkit-overflow-scrolling: touch;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testi-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-btns {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-content {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .featured-section {
        padding: 40px 20px;
    }

    .testimonials-section {
        padding: 40px 20px;
    }

    .section-header {
        margin-bottom: 24px;
    }

    /* Forzar el título de testimonios a una sola línea con tamaño pequeño */
    .testimonials-section .section-header h2 {
        font-size: 1.2rem !important;
        white-space: nowrap;
    }

    .section-header h2 {
        font-size: 1.55rem;
    }

    .section-header p {
        max-width: 310px;
        margin: 8px auto 0;
        font-size: 0.9rem;
    }

    .cats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .cat-card {
        padding: 12px 6px;
        gap: 6px;
    }

    .cat-icon {
        font-size: 1.5rem;
    }

    .cat-card span {
        font-size: 0.75rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .stat {
        flex: 1;
        text-align: center;
    }

    .stat strong {
        font-size: 1.3rem;
    }

    .stat span {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .stat-divider {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }
}