/* ==========================================================================
   AGROTECH CRM - STYLES.CSS (Premium Corporate UI & Falsa Interfaz)
   ========================================================================== */

/* 1. VARIABLES GLOBALES Y RESET */
:root {
    /* Colores Corporativos */
    --primary-blue: #000D58;
    --primary-light: #1a277a;
    --accent-yellow: #F7FF4D;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f4f8;
    
    /* Textos */
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    
    /* Bordes y Sombras UI */
    --border-soft: rgba(229, 231, 235, 0.5);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-float: 0 20px 40px -5px rgba(0,13,88,0.15);
    --shadow-glow: 0 0 20px rgba(247, 255, 77, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. TIPOGRAFÍA Y BOTONES GLOBALES */
h1, h2, h3 {
    line-height: 1.2;
    color: var(--primary-blue);
    letter-spacing: -0.03em;
}

.text-center { text-align: center; }
.text-light { color: var(--bg-white) !important; }

/* Botones Magnéticos (Micro-interacciones) */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--accent-yellow);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-float), var(--shadow-glow);
}

.btn-primary.large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--border-soft);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    background-color: var(--bg-light);
}

.btn-secondary.large {
    padding: 14px 32px;
    font-size: 1.125rem;
}

/* 3. NAVBAR FLOTANTE (Glassmorphism) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0 15px;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* 4. HERO SECTION (CON CORRECCIÓN DE SALTO) */
.hero-section {
    padding: 150px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-title span {
    color: var(--success-green);
    position: relative;
    /* CERROJO DE SALTO: Reserva el espacio físico para la palabra más larga ("tus vendedores.") */
    display: inline-block;
    min-width: 380px;
    text-align: left;
}

/* Efecto Typing (cursor) */
.hero-title span::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
}

/* 5. SECCIONES DE CARACTERÍSTICAS (SPLIT LAYOUT) */
.feature-section {
    padding: 100px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.feature-section.reverse {
    direction: rtl;
}

.feature-section.reverse > * {
    direction: ltr;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

.feature-list.light li {
    color: #e5e7eb;
}

/* Fondo oscuro para la rentabilidad */
.feature-section.dark {
    background-color: var(--primary-blue);
    max-width: 100%;
    padding: 100px 10%;
}

/* 6. UI KITS: EL FALSO SOFTWARE (MOCKUPS) */
.mockup-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Glassmorphism Ventana Presupuestos */
.fake-window {
    width: 100%;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: var(--shadow-float);
    padding: 25px;
    transition: transform 0.3s ease;
}

.fake-window:hover {
    transform: translateY(-5px) scale(1.02);
}

.ui-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.ui-fake-select {
    font-weight: 600;
    color: var(--primary-blue);
    background: var(--bg-gray);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.ui-toggle-currency {
    background: #e2e8f0;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
}

.ui-toggle-currency.active-usd {
    background: var(--success-green);
    color: white;
}

.ui-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.ui-table th {
    text-align: left;
    color: var(--text-muted);
    padding-bottom: 10px;
}

.ui-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-dark);
    font-weight: 500;
}

.price-cell {
    text-align: right;
    font-weight: 800 !important;
}

.ui-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-gray);
    padding: 15px;
    border-radius: 8px;
}

.ui-financiacion {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.ui-total {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-blue);
}

/* Falso Teléfono (PWA Offline) */
.fake-phone {
    width: 280px;
    height: 580px;
    background: var(--bg-white);
    border: 12px solid #1f2937;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f8f9fa;
    color: #1f2937;
}

.phone-header {
    background: var(--primary-blue);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Toggle Switch CSS (Interruptor Wi-Fi) */
.switch-wifi {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}
.switch-wifi input { opacity: 0; width: 0; height: 0; }
.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--success-green);
    transition: .4s;
    border-radius: 34px;
}
.slider-toggle:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider-toggle { background-color: var(--success-green); }
input:not(:checked) + .slider-toggle { background-color: var(--danger-red); }
input:not(:checked) + .slider-toggle:before { transform: translateX(18px); }

.phone-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.offline-warning {
    background: var(--danger-red);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s;
}

.offline-warning.show {
    opacity: 1;
}

.fake-input-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.fake-input {
    background: var(--bg-gray);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 5px;
    border: 1px solid var(--border-soft);
}

.fake-signature-box {
    height: 100px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.8rem;
    font-family: 'Brush Script MT', cursive;
}

.ui-btn-success {
    background: var(--success-green);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: auto;
    cursor: pointer;
}

/* Falso Dashboard (Dark Mode + Skeleton Loading) */
.dark-ui {
    background: rgba(11, 17, 48, 0.9);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.dark-header {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.dark-widgets {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.widget {
    flex: 1;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
}

.widget-title {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget-value {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 5px 0 10px;
}

.text-green { color: #4ade80; text-shadow: 0 0 10px rgba(74,222,128,0.3); }
.text-yellow { color: #facc15; text-shadow: 0 0 10px rgba(250,204,21,0.3); }

.fake-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.fake-progress-bar .fill.green { background: #4ade80; }
.fake-progress-bar .fill.yellow { background: #facc15; }

/* Efecto Skeleton Carga Fantasma */
.dark-table-skeleton {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-row {
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 7. ESCUDO DE CONFIANZA CORPORATIVA (NUEVA SECCIÓN) */
.security-section {
    padding: 100px 20px;
    background-color: var(--bg-white);
    max-width: 1200px;
    margin: 0 auto;
}

.security-header {
    max-width: 700px;
    margin: 0 auto 50px;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.security-card {
    background: var(--bg-gray);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-float);
    border-color: rgba(0, 13, 88, 0.2);
}

.sec-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.security-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.security-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 8. CALCULADORA DE EFICIENCIA (ROI Actualizada) */
.calculator-section {
    background-color: var(--bg-light);
    padding: 100px 20px;
}

.calculator-header {
    max-width: 600px;
    margin: 0 auto 50px;
}

.roi-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.roi-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.control-group label {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 15px;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border-soft);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--success-green);
}

.slider-value {
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-muted);
}

.slider-value span {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 900;
}

.roi-results {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-soft);
}

.result-box.highlight {
    text-align: center;
    padding: 30px;
    background: #ebfbee;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.result-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--success-green);
    margin-top: 10px;
}

/* 9. FORMULARIO DE CONTACTO */
.contact-section {
    background-color: var(--primary-blue);
    padding: 100px 20px;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2, .contact-info p {
    color: var(--bg-white);
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-float);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-blue);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.w-100 {
    width: 100%;
}

/* 10. FOOTER */
.footer {
    text-align: center;
    padding: 30px;
    background: #0b1130;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN & SCROLL SNAPPING
   ========================================================================== */
@media (max-width: 992px) {
    .feature-section, .contact-container, .security-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-section.reverse {
        direction: ltr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* SCROLL SNAPPING MOBILE */
    html {
        scroll-snap-type: y proximity;
    }
    
    .hero-section, .feature-section, .security-section, .calculator-section, .contact-section {
        scroll-snap-align: start;
        scroll-margin-top: 70px;
    }

    .nav-links {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .feature-section.dark {
        padding: 60px 20px;
    }

    /* Reducción dinámica del "corralito" en celulares para que no desborde la pantalla */
    .hero-title span {
        min-width: 250px;
    }
}

/* ==========================================================
   ESTILOS NUEVOS: SECCIÓN VIDEO & CAJA DE INVERSIÓN
   ========================================================== */

.v-feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.v-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
    border-color: #000D58 !important;
}

.result-box.highlight-blue {
    border-left: 5px solid #0d6efd;
    box-shadow: 0 10px 30px -5px rgba(13, 110, 253, 0.2);
}
/* Hover para las tarjetas de la Academia SEO */
.seo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    border-color: #ced4da !important;
}