/**
 * BURAGRO ERP Enterprise v1.1
 * Premium Landing Page Stylesheet
 */

:root {
    --verde-principal: #1b5e20;
    --verde-brillante: #4caf50;
    --verde-oscuro: #0a1f10;
    --dorado-corp: #d4af37;
    --dorado-brillante: #ffd700;
    --azul-petroleo: #0b1d1a;
    --azul-oscuro: #050c0a;
    --blanco-puro: #ffffff;
    --blanco-trans: rgba(255, 255, 255, 0.7);
    --linea-trans: rgba(255, 255, 255, 0.08);
    --fuente-titulo: 'Outfit', sans-serif;
    --fuente-cuerpo: 'Roboto', sans-serif;
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(76, 175, 80, 0.35);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--fuente-cuerpo);
    background-color: var(--azul-oscuro);
    color: var(--blanco-puro);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background image & gradient overlay */
.landing-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('../img/branding/landing_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 80% 20%, rgba(27, 94, 32, 0.15) 0%, rgba(11, 29, 26, 0.85) 50%, rgba(5, 12, 10, 0.96) 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--azul-oscuro);
}
::-webkit-scrollbar-thumb {
    background: var(--verde-principal);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--verde-brillante);
}

/* Header & Navigation */
header.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(11, 29, 26, 0.7);
    border-bottom: 1px solid var(--linea-trans);
    transition: all 0.3s ease;
}

header.main-header.scrolled {
    background: rgba(5, 12, 10, 0.95);
    padding: 8px 0;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--fuente-titulo);
    font-weight: 700;
    font-size: 22px;
    color: var(--blanco-puro);
    letter-spacing: 0.5px;
}

.brand-logo i {
    color: var(--verde-brillante);
    font-size: 24px;
    filter: drop-shadow(0 0 5px rgba(76, 175, 80, 0.5));
}

.brand-logo span {
    color: var(--dorado-corp);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--blanco-trans);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--fuente-titulo);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px 0;
}

.nav-menu a:hover {
    color: var(--blanco-puro);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--verde-brillante);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-header-login {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--dorado-corp);
    color: var(--dorado-corp);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--fuente-titulo);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-header-login:hover {
    background: var(--dorado-corp);
    color: var(--azul-oscuro);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

/* Menu Toggle Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--blanco-puro);
    font-size: 20px;
    cursor: pointer;
}

/* Main Container Layout */
main.landing-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-left {
    padding-right: 20px;
}

.badge-platform {
    display: inline-block;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: var(--verde-brillante);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--fuente-titulo);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--fuente-titulo);
    font-size: 54px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title span.verde {
    color: var(--verde-brillante);
}

.hero-title span.dorado {
    color: var(--dorado-corp);
}

.hero-desc {
    color: var(--blanco-trans);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--linea-trans);
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-pill:hover {
    background: rgba(76, 175, 80, 0.05);
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateY(-3px);
}

.feature-pill i {
    color: var(--verde-brillante);
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-pill h4 {
    font-family: var(--fuente-titulo);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.feature-pill p {
    font-size: 10px;
    color: var(--blanco-trans);
    line-height: 1.3;
}

/* Glassmorphism Access Card */
.glass-card-login {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(11, 29, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: var(--shadow-premium);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-card-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.lock-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--linea-trans);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.lock-icon-container i {
    color: var(--verde-brillante);
    font-size: 24px;
    filter: drop-shadow(0 0 4px rgba(76, 175, 80, 0.4));
}

.glass-card-login h3 {
    font-family: var(--fuente-titulo);
    font-size: 12px;
    font-weight: 700;
    color: var(--dorado-corp);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.glass-card-login h2 {
    font-family: var(--fuente-titulo);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.glass-card-login h2 span {
    color: var(--verde-brillante);
}

.glass-card-login p {
    color: var(--blanco-trans);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.btn-premium-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, var(--verde-principal) 0%, var(--dorado-corp) 100%);
    border: none;
    color: var(--blanco-puro);
    padding: 14px 24px;
    border-radius: 8px;
    font-family: var(--fuente-titulo);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-premium-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, var(--verde-brillante) 0%, var(--dorado-brillante) 100%);
}

.btn-premium-action i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-premium-action:hover i {
    transform: translateX(4px);
}

.security-badge-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
    color: var(--blanco-trans);
    margin-top: 20px;
    opacity: 0.8;
}

.security-badge-bottom i {
    color: var(--verde-brillante);
}

/* Sections Split Layout */
.info-news-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Services Cards Grid */
.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    height: 180px;
    background: rgba(11, 29, 26, 0.4);
    border: 1px solid var(--linea-trans);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: -1;
    transition: transform 0.6s ease;
}

.service-card.mp::before { background-image: url('../img/branding/landing_bg.png'); } /* Temporary placeholder */
.service-card.lab::before { background-image: url('../img/branding/landing_bg.png'); }
.service-card.cert::before { background-image: url('../img/branding/landing_bg.png'); }
.service-card.cal::before { background-image: url('../img/branding/landing_bg.png'); }

.service-card:hover::before {
    transform: scale(1.1);
    opacity: 0.15;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde-brillante);
    font-size: 16px;
}

.service-card.lab .service-icon {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
    color: var(--dorado-corp);
}

.service-header h3 {
    font-family: var(--fuente-titulo);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.service-desc {
    color: var(--blanco-trans);
    font-size: 11px;
    line-height: 1.5;
    text-align: justify;
    margin: 10px 0;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--verde-brillante);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.service-card.lab .service-link {
    color: var(--dorado-corp);
}

.service-link i {
    font-size: 8px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(3px);
}

/* News Section */
.news-container-wrapper {
    background: rgba(11, 29, 26, 0.3);
    border: 1px solid var(--linea-trans);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--linea-trans);
    padding-bottom: 10px;
}

.news-header h3 {
    font-family: var(--fuente-titulo);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-header a {
    color: var(--verde-brillante);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateX(3px);
}

.news-img {
    width: 65px;
    height: 65px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    border: 1px solid var(--linea-trans);
    flex-shrink: 0;
}

.news-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta h4 {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--blanco-puro);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta span {
    font-size: 9px;
    color: var(--blanco-trans);
}

/* Stats Footer Ribbon */
.stats-ribbon {
    background: rgba(11, 29, 26, 0.45);
    border: 1px solid var(--linea-trans);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--linea-trans);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dorado-corp);
    font-size: 16px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--fuente-titulo);
    font-size: 20px;
    font-weight: 700;
    color: var(--blanco-puro);
    line-height: 1.1;
}

.stat-label {
    font-size: 9px;
    color: var(--blanco-trans);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Footer Section */
footer.main-footer {
    border-top: 1px solid var(--linea-trans);
    background: rgba(5, 12, 10, 0.85);
    padding: 24px 24px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-left img {
    height: 20px;
}

.footer-left span {
    font-size: 10px;
    color: var(--blanco-trans);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: var(--blanco-trans);
    font-size: 10px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--dorado-corp);
}

.footer-right {
    display: flex;
    gap: 12px;
}

.footer-right a {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--linea-trans);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco-trans);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-right a:hover {
    background: var(--dorado-corp);
    color: var(--azul-oscuro);
    border-color: var(--dorado-corp);
    transform: scale(1.1);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-left {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-features {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .info-news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats-ribbon {
        justify-content: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Can toggle dynamic on/off via class */
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .stats-ribbon {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .stats-ribbon {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stat-item {
        justify-content: center;
    }
}

/* ==========================================================================
   INTEGRACIÓN LOGIN PREMIUM (SOBRESCRIBIR ESTILOS DE LOGIN ANTERIOR)
   ========================================================================== */

#login-body {
    background-image: url('../img/branding/landing_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

#login-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(11, 29, 26, 0.75) 0%, rgba(5, 12, 10, 0.95) 100%);
    z-index: -1;
}

#login-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(11, 29, 26, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-premium);
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.25);
    color: var(--verde-brillante);
    font-size: 20px;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 12px;
}

.login-header h2 {
    font-family: var(--fuente-titulo);
    font-size: 22px;
    font-weight: 700;
    color: var(--blanco-puro);
    margin-bottom: 6px;
}

.login-header p {
    font-size: 11px;
    color: var(--blanco-trans);
}

.login-form .field {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--dorado-corp);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.login-form .input-icon-wrapper {
    position: relative;
}

.login-form .input-icon-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blanco-trans);
    font-size: 14px;
}

.login-form input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--linea-trans);
    border-radius: 6px;
    padding: 12px 12px 12px 38px;
    color: var(--blanco-puro);
    font-size: 13px;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--dorado-corp);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.login-form .link {
    color: var(--dorado-corp);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-form .link:hover {
    color: var(--dorado-brillante);
}

.login-form button.btn-verde {
    background: linear-gradient(135deg, var(--verde-principal) 0%, var(--dorado-corp) 100%);
    border: none;
    color: var(--blanco-puro);
    font-family: var(--fuente-titulo);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.login-form button.btn-verde:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, var(--verde-brillante) 0%, var(--dorado-brillante) 100%);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    border-top: 1px solid var(--linea-trans);
    padding-top: 15px;
}
