/* Perfect circles for product categories */
.product-category-img {
    width: 300px !important;
    height: 300px !important;
    object-fit: cover;
    border-radius: 50% !important;
    box-shadow: 3px 13px 20px 0px gray;
}

/* Uniform height for farm images */
.farm-img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 15px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-category-img {
        width: 200px !important;
        height: 200px !important;
        margin-left: 23%;
    }
    
    .farm-img {
        height: 180px !important;
    }
}

/* Glassmorphic Hero Slide */
.hero-slide-bg {
    background-image: url('../img/HOME/1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

.hero-slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-glassmorphic {
    background: rgb(0 0 0 / 37%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    min-height: 90vh;
}

.hero-text-container {
    position: relative;
    z-index: 2;
}

.hero-text-left {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: right;
    max-width: 586px;
}

.hero-title-follajes {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    text-align: right;
    margin-right: -40px;
}

.hero-description-follajes {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
    max-width: 400px;
}

.hero-title-herrera {
    font-size: 4rem;
    font-weight: 700;
    background: url('../img/Home/1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #76a57370;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 1rem;
    margin-left: -20px;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: center; }
    25% { background-position: top left; }
    50% { background-position: top right; }
    75% { background-position: bottom right; }
    100% { background-position: center; }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description strong {
    color: #28a745;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .hero-title-follajes,
    .hero-title-herrera {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-glassmorphic {
        padding: 2rem;
        margin: 1rem;
    }
    
    .hero-description-follajes {
        font-size: 1rem;
    }
    
    /* En móviles, centrar ambos textos */
    .hero-text-left {
        text-align: center;
        align-items: center;
        max-width: 100%;
    }
    
    .hero-title-follajes {
        text-align: center;
    }
}

/* Animation for Herrera text background */
@keyframes moveBackground {
    0% { background-position: center; }
    25% { background-position: top left; }
    50% { background-position: bottom right; }
    75% { background-position: top right; }
    100% { background-position: center; }
}

/* Carousel morph transition */
.carousel-morph.carousel-fade .carousel-inner {
    position: relative;
}

.carousel-morph.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.9s ease, transform 1.1s ease, clip-path 1.1s ease;
    transform: scale(0.9);
    clip-path: circle(0% at 50% 50%);
    overflow: hidden;
}

.carousel-morph.carousel-fade .carousel-item.active,
.carousel-morph.carousel-fade .carousel-item.carousel-item-next.carousel-item-start,
.carousel-morph.carousel-fade .carousel-item.carousel-item-prev.carousel-item-end {
    opacity: 1;
    transform: scale(1);
    clip-path: circle(150% at 50% 50%);
}

.carousel-morph.carousel-fade .carousel-item.carousel-item-next,
.carousel-morph.carousel-fade .carousel-item.carousel-item-prev,
.carousel-morph.carousel-fade .carousel-item.active.carousel-item-end,
.carousel-morph.carousel-fade .carousel-item.active.carousel-item-start {
    opacity: 0;
    transform: scale(0.9);
    clip-path: circle(0% at 50% 50%);
}

@media (prefers-reduced-motion: reduce) {
    .carousel-morph.carousel-fade .carousel-item {
        transition: opacity 0.15s linear;
        clip-path: none;
        transform: none;
    }
}

/* Premium Second Slide Styles */
.hero-slide-premium {
    background-image: url('../img/HOME/4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slide-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-slide-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transform: rotate(15deg);
    z-index: 1;
    border-radius: 50%;
    filter: blur(100px);
}

.hero-premium-container {
    position: relative;
    z-index: 2;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    width: 100%;
}

.hero-premium-left {
    position: relative;
    padding: 2rem 4rem 4rem 4rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.6s ease;
    max-width: 700px;
    width: 100%;
    margin-top: 8px;
}

.hero-premium-left:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-premium-title {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: -2px;
    line-height: 0.9;
    position: relative;
    text-align: center;
}

.hero-premium-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1;
    filter: blur(30px);
}

.hero-premium-subtitle {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
}

.hero-premium-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
}

.hero-premium-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

.hero-premium-description strong {
    color: #28a745;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.hero-premium-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.hero-premium-cta:hover::before {
    left: 100%;
}

.hero-premium-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

.hero-premium-decor {
    position: absolute;
    top: 20%;
    left: 15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1), transparent);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.hero-premium-decor-2 {
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, rgba(32, 201, 151, 0.1), rgba(40, 167, 69, 0.05));
    border-radius: 50%;
    filter: blur(30px);
    z-index: 0;
}

/* Responsive adjustments for premium slide */
@media (max-width: 768px) {
    .hero-premium-container {
        padding: 1rem;
    }

    .hero-premium-left {
        padding: 2rem;
        margin: 1rem;
        max-width: 100%;
    }

    .hero-premium-title {
        font-size: 3.5rem;
    }

    .hero-premium-subtitle {
        font-size: 1.6rem;
    }

    .hero-premium-description {
        font-size: 1rem;
        text-align: center;
    }

    .hero-premium-decor,
    .hero-premium-decor-2 {
        display: none;
    }
}

/* Premium Third Slide Styles */
.hero-slide-premium-third {
    background-image: url('../img/HOME/6.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slide-premium-third::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(0, 0, 0, 0.45));
    z-index: 1;
}

.hero-slide-premium-third::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -15%;
    width: 65%;
    height: 180%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    transform: rotate(-12deg);
    z-index: 1;
    border-radius: 50%;
    filter: blur(120px);
}

.hero-premium-container-third {
    position: relative;
    z-index: 2;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    width: 100%;
}

.hero-premium-left-third {
    position: relative;
    padding: 3rem 4rem 4rem 4rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 35px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    transition: all 0.6s ease;
    max-width: 750px;
    width: 100%;
    margin-top: 12px;
}

.hero-premium-left-third:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
}

.hero-premium-title-third {
    font-size: 4.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 40%, #e6f7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: -1.5px;
    line-height: 0.9;
    position: relative;
    text-align: center;
}

.hero-premium-title-third::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: linear-gradient(45deg, #22c55e, #16a34a);
    border-radius: 50%;
    opacity: 0.5;
    z-index: -1;
    filter: blur(35px);
}

.hero-premium-subtitle-third {
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
}

.hero-premium-subtitle-third::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 2px;
}

.hero-premium-description-third {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

/* Responsive adjustments for third slide */
@media (max-width: 768px) {
    .hero-premium-left-third {
        padding: 2rem 2rem 3rem 2rem;
        margin: 1rem;
    }
    
    .hero-premium-title-third {
        font-size: 3.2rem;
        letter-spacing: -1px;
    }
    
    .hero-premium-subtitle-third {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .hero-premium-description-third {
        font-size: 1.1rem;
    }
}
