/* 
   AgroTrust Systems Hub - Master Stylesheet v1.0
   [v26.1] SOBERANÍA DIGITAL & NEXUS VISUAL ENGINE
   Identity Color: #bfff00 (Neon Yellow-Green)
*/

:root {
    --primary: #bfff00;
    --primary-glow: rgba(191, 255, 0, 0.4);
    --bg-dark: #050505;
    --card-glass: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --neon-shadow: 0 0 20px rgba(191, 255, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- FULLSCREEN BACKGROUND SLIDER --- */
.slider-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    animation: kenburns 30s linear infinite;
}

.slide.active {
    opacity: 1;
}

@keyframes kenburns {
    0% { transform: scale(1); }
    50% { transform: scale(1.12) translate(0.5%, 0.5%); }
    100% { transform: scale(1); }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.3) 0%, rgba(2, 6, 23, 0.6) 50%, rgba(2, 6, 23, 0.8) 100%);
    z-index: -1;
    -webkit-backdrop-filter: saturate(1.1) brightness(1);
    backdrop-filter: saturate(1.1) brightness(1);
}

/* --- HEADER & BRANDING --- */
header {
    padding: 120px 20px 60px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInDown 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    background: radial-gradient(circle at center, rgba(191, 255, 0, 0.03) 0%, transparent 70%);
}

.logo-main {
    height: 180px;
    margin-bottom: 35px;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.15));
    transition: all 0.5s ease;
}

.logo-main:hover {
    transform: scale(1.08) rotate(1deg);
    filter: drop-shadow(0 0 45px rgba(255, 255, 255, 0.25));
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -3px;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    line-height: 0.9;
}

.subtitle {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 900px;
    line-height: 1.3;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.accent-text {
    color: var(--primary);
    font-weight: 800;
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
}

/* --- GRID & APP CARDS --- */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 60px 40px;
    width: 100%;
    max-width: 1400px;
    z-index: 10;
}

.app-card {
    width: 400px; 
    background: var(--card-glass);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--card-border);
    border-radius: 40px;
    padding: 60px 45px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.app-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.app-card:hover {
    transform: translateY(-20px) scale(1.02);
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 45px 90px rgba(0, 0, 0, 0.6), 0 0 40px var(--primary-glow);
}

.app-card:hover::before {
    opacity: 1;
}

.logo-container {
    width: 180px;
    height: 180px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.app-card:hover .logo-container {
    border-color: var(--primary);
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.badge {
    padding: 6px 20px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.app-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.app-card p {
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 300;
}

/* --- SILO DE ACERO SECTION --- */
.silo-section {
    width: 100%;
    padding: 120px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: url('../assets/slider/silo-background.jpg') no-repeat center center;
    background-size: cover;
    margin-top: 80px;
    overflow: hidden;
}

.silo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--bg-dark), rgba(2, 6, 23, 0.6) 20%, rgba(2, 6, 23, 0.6) 80%, var(--bg-dark));
    z-index: 1;
}

.silo-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
}

.silo-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.silo-header p {
    font-size: 1.4rem;
    color: var(--text-dim);
    font-weight: 300;
}

.silo-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1300px;
    width: 100%;
    margin-bottom: 80px;
}

.silo-card {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 35px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.4s ease;
}

.silo-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(191, 255, 0, 0.05);
}

.silo-card i {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.silo-card h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.silo-card p {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.btn-more {
    position: relative;
    z-index: 2;
    background: var(--primary);
    color: #000;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
}

.btn-more:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(16, 185, 129, 0.5);
    background: #bfff00;
}

/* --- LANGUAGE SELECTOR --- */
.lang-switcher {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 10px 22px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- FOOTER --- */
footer {
    margin-top: auto;
    padding: 80px 20px;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), transparent);
    letter-spacing: 0.5px;
}

footer strong {
    color: var(--primary);
}

/* --- ANIMATIONS & RESPONSIVENESS --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .grid { gap: 30px; }
    .app-card { width: 340px; }
}

@media (max-width: 768px) {
    header { padding: 80px 20px 40px; }
    h1 { font-size: 2.8rem; }
    .subtitle { font-size: 1.1rem; }
    .logo-main { height: 120px; }
    
    .grid { grid-template-columns: 1fr; padding: 40px 20px; }
    .app-card { width: 100%; padding: 40px 30px; }
    
    .silo-header h2 { font-size: 2.5rem; }
    .silo-section { padding: 80px 20px; }

    .lang-switcher { top: 20px; right: 20px; padding: 4px; }
    .lang-btn { padding: 8px 16px; font-size: 0.75rem; }
}
