/* =====================================================
   AGROSOIL - Pagina de Aliados - CSS
   ===================================================== */

/* === VARIABLES GLOBALES === */
:root {
    --al-green: var(--color-primary-light, #9cd033);
    --al-green-dark: var(--color-primary, #80bc00);
    --al-red: #E53935;
    --al-dark: var(--color-dark-darker, #1a2226);
    --al-white: var(--color-bg-white, #ffffff);
    --al-gray: var(--color-bg-gray, #f6f7f0);
    --al-text: var(--color-text-primary, #1a1a2e);
    --al-text-light: var(--color-text-secondary, #555555);
}

/* === FONT GLOBAL === */
.al-wrapper,
.al-wrapper * {
    font-family: var(--font-primary, 'Poppins', sans-serif);
}

* {
    box-sizing: border-box;
}

/* =====================================================
   WRAPPER
   ===================================================== */
.al-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow-x: hidden;
    position: relative;
}

/* ====== RESET WRAPPERS DEL TEMA PADRE ====== */
#featured-title {
    display: none !important;
}
#main-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.al-hero {
    min-height: 50vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(165deg, var(--al-dark) 0%, #1a1210 60%, #0d0a07 100%);
    position: relative;
    overflow: hidden;
    padding: 180px 20px 60px;
}

.al-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(139, 195, 74, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(229, 57, 53, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 10%, rgba(139, 195, 74, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

/* =====================================================
   PARTICLES
   ===================================================== */
.al-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.al-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(139, 195, 74, 0.5);
    border-radius: 50%;
    animation: particleFloat 18s infinite ease-in-out;
}

.al-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.al-particle:nth-child(2) { left: 25%; animation-delay: 3s; background: rgba(229, 57, 53, 0.4); }
.al-particle:nth-child(3) { left: 40%; animation-delay: 6s; }
.al-particle:nth-child(4) { left: 55%; animation-delay: 2s; }
.al-particle:nth-child(5) { left: 70%; animation-delay: 5s; background: rgba(229, 57, 53, 0.3); }
.al-particle:nth-child(6) { left: 85%; animation-delay: 1s; }
.al-particle:nth-child(7) { left: 95%; animation-delay: 4s; }

/* =====================================================
   HERO CONTENT
   ===================================================== */
.al-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.al-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm, 8px);
    background: rgba(139, 195, 74, 0.15);
    border: 1px solid rgba(139, 195, 74, 0.3);
    padding: 8px 20px;
    border-radius: var(--border-radius-full, 50px);
    margin-bottom: var(--spacing-lg, 24px);
    animation: fadeInDown 0.8s ease-out;
}

.al-badge svg {
    width: 20px;
    height: 20px;
    stroke: var(--al-green);
}

.al-badge span {
    font-size: var(--font-size-badge, 13px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--al-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.al-title {
    font-size: clamp(36px, 8vw, 48px);
    font-weight: var(--font-weight-extrabold, 800);
    color: var(--al-white) !important;
    margin: 0 0 var(--spacing-md, 16px);
    line-height: var(--line-height-tight, 1.1);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.al-title .highlight {
    color: var(--al-green) !important;
    -webkit-text-fill-color: var(--al-green);
    background: none;
    display: inline;
}

.al-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: var(--font-weight-regular, 400);
    color: var(--color-text-white-muted, rgba(255, 255, 255, 0.8)) !important;
    max-width: 750px;
    margin: 0 auto var(--spacing-xl, 32px);
    line-height: var(--line-height-relaxed, 1.7);
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ====== HERO CTA ====== */
.al-hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ====== HERO BUTTONS ====== */
.al-hero-btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.al-hero-btn-primary {
    background: linear-gradient(135deg, var(--al-green) 0%, var(--al-green-dark) 100%);
    color: white !important;
    box-shadow: 0 4px 20px rgba(139, 195, 74, 0.4);
}

.al-hero-btn-primary:hover {
    opacity: 0.85;
    color: white !important;
}

.al-hero-btn-outline {
    background: transparent;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.al-hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white !important;
}

/* Animaciones: fadeInDown, fadeInUp, particleFloat, scrollBounce → core/animations.css */

/* ====== SCROLL INDICATOR ====== */
.al-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

.al-scroll-indicator svg {
    width: 28px;
    height: 28px;
    stroke: rgba(255,255,255,0.5);
}

/* =====================================================
   CARDS SECTION
   ===================================================== */
.al-cards-row {
    display: flex;
    width: 100%;
    gap: 20px;
    padding: 20px;
    background: var(--al-dark);
}

.al-card {
    display: block;
    width: 50%;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
}

.al-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.al-card:hover .al-card-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.al-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    transition: background 0.4s ease;
}

.al-card:hover .al-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.al-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.al-card:hover .al-card-content {
    transform: translateY(0);
}

.al-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.al-card-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 320px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.al-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--al-green) 0%, var(--al-green-dark) 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 25px rgba(139, 195, 74, 0.35);
}

/* =====================================================
   INTRO SECTION
   ===================================================== */
.al-intro {
    padding: 60px 20px 60px;
    background: linear-gradient(180deg, #0d0a07 0%, var(--al-dark) 100%);
    text-align: center;
}

.al-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.al-intro-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #fff;
    margin: 0 0 16px;
}

.al-intro-content p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.al-cta {
    padding: 100px 20px;
    background: var(--al-dark);
    text-align: center;
    position: relative;
}

.al-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 195, 74, 0.1) 0%, transparent 60%);
}

.al-cta-content {
    position: relative;
    z-index: 2;
}

.al-cta h2 {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.al-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 35px;
}

.al-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--al-green) 0%, var(--al-green-dark) 100%);
    color: #fff;
    padding: 18px 42px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 30px rgba(139, 195, 74, 0.4);
}

.al-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.al-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.al-btn:hover svg {
    transform: none;
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 900px) {
    .al-cards-row {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .al-card {
        width: 100%;
        min-height: 60vh;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .al-hero-content {
        padding: 0 15px;
    }

    .al-badge {
        padding: 7px 14px;
    }

    .al-badge span {
        font-size: 11px;
    }

    .al-title {
        font-size: clamp(28px, 8vw, 36px);
    }

    .al-subtitle {
        font-size: 15px;
    }

    .al-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .al-hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .al-scroll-indicator {
        display: none;
    }
}

@media (max-width: 600px) {
    .al-card {
        min-height: 50vh;
    }

    .al-card-content {
        padding: 30px;
    }

    .al-card h3 {
        font-size: 1.8rem;
    }

    .al-cta {
        padding: 70px 20px;
    }
}

@media (max-width: 480px) {
    .al-hero {
        padding: 140px 15px 60px;
    }

    .al-title {
        font-size: clamp(24px, 7vw, 32px);
    }

    .al-subtitle {
        font-size: 14px;
    }

    .al-hero-btn {
        max-width: 240px;
        padding: 14px 32px;
        font-size: 14px;
    }
}
