/*
 * SERVICIOS.CSS — Aseagro Vanguardia — Dark Tech Premium
 * Estilos específicos para la página de Servicios y Soluciones
 */

 body.page-template-template-servicios {
    background: #0a0f1a;
    color: #fff;
    overflow-x: hidden;
}



/* ========================================================
   VARIABLES LOCALES
   ======================================================== */
.servicios-page {
    --srv-cyan: #0DF2D6;
    --srv-blue: #0D5C8C;
    --srv-green: #8BC53F;
    --srv-dark: #0a0f1a;
    --srv-border: rgba(255, 255, 255, 0.08);
}

/* ========================================================
   HERO SERVICIOS
   ======================================================== */
.srv-hero {
    position: relative;
    padding: 12rem 2rem 8rem;
    text-align: center;
    overflow: hidden;
}

.srv-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.srv-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, #0a0f1a 100%);
    z-index: 1;
}

.srv-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.srv-hero__badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(13, 92, 140, 0.15);
    border: 1px solid rgba(13, 92, 140, 0.4);
    color: #4db3f1;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.srv-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.srv-hero h1 span {
    color: #4db3f1;
    background: linear-gradient(135deg, #4db3f1, #0DF2D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@supports not (background-clip: text) {
    .srv-hero h1 span {
        color: #4db3f1;
        background: none;
    }
}

.srv-hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ========================================================
   GRID DE SOLUCIONES
   ======================================================== */
.srv-grid-section {
    padding: 4rem 2rem 8rem;
    position: relative;
    z-index: 2;
}

.srv-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

/* Las Cards de Servicios estilo CropsConnect */
.srv-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--srv-border);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.srv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 156, 242, 0.5), transparent);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.srv-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(13, 92, 140, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.srv-card:hover::before {
    transform: scaleX(1);
}

.srv-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 92, 140, 0.1);
    border: 1px solid rgba(13, 92, 140, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #4db3f1;
}

.srv-card__icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.srv-card h2 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.srv-card p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.srv-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.srv-card__link {
    color: var(--srv-green);
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--trans-rapida);
}

.srv-card__link:hover {
    color: #fff;
}

.srv-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.srv-card:hover .srv-card__link svg {
    transform: translateX(5px);
}

/* Botón secundario "Ver demo" */
.srv-card__link--demo {
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
}

.srv-card__link--demo:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.srv-card__footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ========================================================
   CTA FINAL SERVICIOS
   ======================================================== */
.srv-cta-bento {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem; /* gap-6 */
    padding: 6rem 2rem;
}

.srv-cta-box {
    background: #182032; /* Mesh gradient base */
    border-radius: 1.5rem; /* rounded-3xl */
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.srv-cta-box::before {
    /* Malla Mesh y noise sutiles */
    content: '';
    position: absolute;
    inset: 0;
    background: 
       radial-gradient(circle at 0% 0%, rgba(13, 92, 140, 0.4) 0%, transparent 50%),
       radial-gradient(circle at 100% 100%, rgba(139, 197, 63, 0.2) 0%, transparent 50%),
       url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    opacity: 0.8;
    pointer-events: none;
}

.srv-cta-box--text {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-top: 1px solid rgba(255,255,255,0.15); /* Reflejo luz */
}

.srv-cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
}

.srv-cta-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

/* Glass Button para CTA transversal */
.btn-cta-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(139,197,63,0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.btn-cta-glass:hover {
    background: rgba(139,197,63,0.15);
    border-color: rgba(139,197,63,0.4);
    box-shadow: 0 0 30px rgba(139,197,63,0.4), inset 0 0 15px rgba(139,197,63,0.2);
    color: #fff;
    transform: translateY(-2px);
}

.srv-cta-box--media {
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.srv-cta-box--media::after {
    /* Overlay oscuro 40% para mantener el dark premium y balancear el brillo fotográfico */
    content:'';
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 26, 0.2);
}

/* Brillos traseros en la caja de texto heredados y adaptados */
.srv-cta__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.srv-cta__glow--1 {
    width: 300px;
    height: 300px;
    background: rgba(139,197,63,0.2);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.srv-cta__glow--2 {
    width: 250px;
    height: 250px;
    background: rgba(13, 242, 214, 0.15);
    bottom: -80px;
    right: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 900px) {
    .srv-cta-bento {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .srv-grid {
        grid-template-columns: 1fr;
    }
}
