/* =========================================
   AGROMATIC DARK TECH - ESTILO FINAL (IMÁGENES GRANDES)
   ========================================= */

/* === VARIABLES === */
:root {
    --neon-green: #00ff88;
    --dark-bg: #050505;
    --card-bg: #111111;
    --input-bg: #1a1a1a;
    --text-main: #f0f0f0;
    --text-gray: #ccc;
    --border-color: #333;
    --font-main: 'Montserrat', sans-serif;
}

/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth;
    font-size: 15px; 
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === NAVBAR === */
.navbar {
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto; 
    padding: 0 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

/* Container específico para secciones (sin flex) */
section .container {
    display: block;
}

/* === LOGO === */
.logo-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none; 
}

.logo-icon { 
    height: 32px; 
    width: auto; 
}

.logo-text { 
    font-weight: 800; 
    font-size: 1.4rem; 
    color: #fff; 
    letter-spacing: 1px; 
}

/* === MENU === */
.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 20px; 
    margin: 0; 
    padding: 0; 
}

.nav-links li a {
    color: #fff; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    transition: all 0.3s;
}

.nav-links li a:hover { 
    color: var(--neon-green); 
    text-shadow: 0 0 10px var(--neon-green); 
}

.menu-toggle { 
    display: none; 
    color: #fff; 
    font-size: 1.5rem; 
    cursor: pointer; 
}

/* === HERO SECTION === */
.hero { 
    height: 85vh; 
    width: 100%; 
    position: relative; 
    margin-top: 0; 
}

.hero .swiper { 
    width: 100%; 
    height: 100%; 
}

.hero .swiper-slide {
    position: relative;
    height: 100%;
    background-color: #000;
}

.hero .swiper-slide img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.4);
}

.hero-content {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    z-index: 2; 
    text-align: center; 
    width: 90%;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem; 
    text-transform: uppercase; 
    font-weight: 900;
    margin-bottom: 15px; 
    line-height: 1.1; 
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero h1 span { 
    color: var(--neon-green); 
    display: block; 
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* === SECCIONES GENÉRICAS === */
section { 
    padding: 60px 20px; 
    border-bottom: 1px solid #1a1a1a; 
    scroll-margin-top: 60px;
}

h2 {
    font-size: 2rem; 
    text-align: center; 
    margin-bottom: 40px;
    color: #fff; 
    text-transform: uppercase; 
    display: block;
}

h2::after {
    content: ''; 
    display: block; 
    width: 50px; 
    height: 3px;
    background: var(--neon-green); 
    margin: 10px auto;
    box-shadow: 0 0 10px var(--neon-green);
}

/* === SOBRE NOSOTROS === */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: center; 
}

.about-text h3 { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    color: #fff; 
    text-transform: uppercase; 
}

.about-text p { 
    font-size: 0.95rem; 
    color: var(--text-gray); 
    line-height: 1.6; 
    margin-bottom: 15px; 
}

.about-img img {
    width: 100%; 
    max-height: 400px; 
    object-fit: cover;
    border-radius: 15px; 
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.5); 
    filter: grayscale(20%); 
    transition: 0.3s;
}

.about-img img:hover { 
    filter: grayscale(0%); 
    border-color: var(--neon-green); 
}

/* === ESTADÍSTICAS === */
.stats-section {
    padding: 60px 20px;
    background-color: #000;
}

.stats-grid { 
    display: grid !important; 
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.stat-item { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-icon {
    font-size: 2rem; 
    color: var(--neon-green); 
    margin-bottom: 10px; 
}

.stat-item h2 {
    font-size: 2.5rem; 
    color: #fff; 
    margin: 0 0 5px 0; 
    font-weight: 800;
    line-height: 1; 
}

.stat-item p {
    color: var(--text-gray); 
    font-size: 0.85rem; 
    text-transform: uppercase;
    letter-spacing: 1px; 
    font-weight: 600;
}

/* === CARDS PRODUCTOS === */
.responsive-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; 
    width: 100%; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.card-tech {
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    padding: 20px;
    text-align: center; 
    transition: all 0.3s; 
}

.card-tech img {
    width: 100%; 
    height: 300px;
    object-fit: contain;
    background-color: #fff;
    margin-bottom: 15px; 
    border-radius: 8px; 
    padding: 10px;
}

.card-tech h3 { 
    color: #fff; 
    margin: 10px 0; 
    font-size: 1.2rem; 
}

.card-tech p { 
    color: #aaa; 
    font-size: 0.95rem; 
    line-height: 1.4; 
}

/* === TIENDA ONLINE === */
.tienda-cta {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    overflow: hidden;
    border: none;
}

.tienda-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0,255,136,0.3), transparent 50%);
    pointer-events: none;
}

.tienda-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tienda-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.tienda-icon {
    font-size: 4rem;
    color: #000;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.tienda-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.tienda-title {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.tienda-title::after { display: none; }

.tienda-subtitle {
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 40px;
}

.tienda-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000;
}

.feature-item i { 
    font-size: 2rem; 
    margin-bottom: 5px; 
}

.feature-item span { 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
}

.btn-tienda {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #000;
    color: var(--neon-green);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.btn-tienda:hover {
    transform: translateY(-5px);
    background: #111;
}

/* === SERVICIOS === */
#servicios {
    background-color: #0a0a0a;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px; 
    padding: 50px 0; 
    border-bottom: 1px solid var(--border-color);
}

.service-row:last-child { 
    border-bottom: none; 
}

.service-row:nth-child(even) { 
    direction: rtl; 
}

.service-row:nth-child(even) > * { 
    direction: ltr; 
}

.service-content { 
    padding: 0 20px; 
}

.service-content > i {
    color: var(--neon-green);
    margin-bottom: 15px;
    font-size: 2rem; 
    display: block; 
}

.service-content h3 {
    font-size: 1.8rem; 
    color: var(--neon-green);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.service-content p {
    font-size: 0.95rem; 
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.service-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-content ul li {
    display: flex !important;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: left;
}

.service-content ul li i {
    color: var(--neon-green);
    font-size: 1rem;
    margin: 0;
    padding-top: 4px;
    flex-shrink: 0;
    display: inline-block;
}

.service-image img {
    width: 100%;
    max-height: 350px; 
    object-fit: cover; 
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.1);
    border: 1px solid var(--border-color);
}

.service-row:has(.large-img) {
    grid-template-columns: 0.9fr 1.1fr;
}

/* === BOTÓN NEON === */
.btn-neon {
    display: inline-block; 
    background: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green); 
    padding: 10px 25px; 
    border-radius: 4px; 
    font-weight: 700; 
    text-decoration: none;
    text-transform: uppercase; 
    cursor: pointer; 
    transition: all 0.3s; 
    text-align: center;
    font-size: 0.85rem; 
    letter-spacing: 1px;
}

.btn-neon:hover { 
    background: var(--neon-green); 
    color: #000;
    box-shadow: 0 0 15px var(--neon-green); 
    transform: translateY(-2px);
}

/* === CONTACTO === */
#contacto {
    background-color: #0a0a0a;
}

.logos-container {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px;
    margin-bottom: 60px; 
    opacity: 0.7; 
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.logos-container h3 {
    color: #fff; 
    text-transform: uppercase; 
    font-size: 1rem; 
    margin: 0;
    border: 1px solid var(--border-color); 
    padding: 10px 20px; 
    border-radius: 50px;
}

.formulario-wrapper {
    max-width: 600px; 
    margin: 0 auto; 
    background: var(--card-bg); 
    padding: 40px;
    border-radius: 15px; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.form-group { 
    margin-bottom: 25px; 
    text-align: left; 
}

.form-group label { 
    display: block; 
    color: var(--neon-green); 
    margin-bottom: 10px; 
    font-weight: 700; 
    font-size: 0.9rem; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%; 
    background: var(--input-bg); 
    border: 1px solid #333; 
    color: #fff; 
    padding: 15px; 
    border-radius: 6px; 
    font-family: var(--font-main); 
    box-sizing: border-box; 
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control::placeholder {
    color: #555;
}

.form-control:focus { 
    outline: none; 
    border-color: var(--neon-green); 
    background: #000; 
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* === FOOTER === */
footer { 
    background: #000; 
    padding: 30px 20px; 
    text-align: center; 
    border-top: 1px solid #222; 
}

footer p {
    color: #666;
    font-size: 0.85rem;
}

/* === WHATSAPP === */
/* === WHATSAPP PRO === */
.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    animation: pulseWhatsapp 2s infinite;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(37,211,102,0.6);
}

/* Tooltip */
.wa-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover .wa-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Animación */
@keyframes pulseWhatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Mobile */
@media (max-width: 768px){
    .btn-whatsapp{
        width: 55px;
        height: 55px;
        font-size: 26px;
        right: 18px;
        bottom: 18px;
    }

    .wa-tooltip{
        display: none;
    }
}

/* =========================
   GALERÍA DE PROYECTOS PRO
   ========================= */

.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.proyecto {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #111;
    border: 1px solid #2a2a2a;
    min-height: 320px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.proyecto img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.overlay-proyecto {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 12%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.contenido-proyecto {
    width: 100%;
    padding: 22px;
}

.contenido-proyecto h3 {
    color: #fff;
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.contenido-proyecto p {
    color: #d4d4d4;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.btn-proyecto {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #00ff88;
    color: #00ff88;
    text-decoration: none;
    font-size: 0.82rem;
    text-transform: uppercase;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-proyecto:hover {
    background: #00ff88;
    color: #000;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.45);
}

.proyecto:hover img {
    transform: scale(1.08);
}

.proyecto:hover .overlay-proyecto {
    opacity: 1;
}

/* =========================================
   RESPONSIVE (MÓVIL Y TABLET)
   ========================================= */

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .service-row {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px;
    }

    .service-row:nth-child(even) {
        direction: ltr;
    }

    .service-content ul li {
        justify-content: flex-start;
    }
    
    .hero h1 { 
        font-size: 2.2rem; 
    }
    
    h2 { 
        font-size: 1.8rem; 
    }
    
    .service-image img {
        max-height: 250px; 
    }
}

@media (max-width: 768px) {
    .navbar { 
        padding: 15px 0; 
    }
    
    .menu-toggle { 
        display: block; 
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0; 
        right: -100%;
        width: 70%; 
        height: 100vh;
        background: rgba(5,5,5,0.98);
        padding: 80px 20px;
        transition: 0.3s;
        border-left: 1px solid #333;
    }
    
    .nav-links.active { 
        right: 0; 
        display: flex; 
    }
    
    .stats-grid { 
        grid-template-columns: 1fr !important; 
        gap: 40px; 
    }
    
    .about-grid { 
        grid-template-columns: 1fr; 
    }
    
    .formulario-wrapper { 
        width: 100%; 
        padding: 25px; 
    }

    .tienda-cta { 
        padding: 60px 20px; 
    }
    
    .tienda-features { 
        gap: 30px; 
    }
    
    .feature-item { 
        flex: 1 1 100px; 
    }
    
    .btn-tienda { 
        padding: 15px 30px; 
        font-size: 1rem; 
        width: 100%; 
        max-width: 300px; 
        justify-content: center; 
    }
    
    .btn-whatsapp {
        width: 55px;
        height: 55px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }

    .proyecto,
    .proyecto img {
        min-height: unset;
        height: 260px;
    }

    .overlay-proyecto {
        opacity: 1;
    }

    .contenido-proyecto {
        padding: 18px;
    }

    .contenido-proyecto h3 {
        font-size: 1.08rem;
    }

    .contenido-proyecto p {
        font-size: 0.88rem;
    }
}

/* =========================
   MODO ESCRITORIO BALANZA
   ========================= */

.balanza-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    width: 100%;
    height: calc(100vh - 20px);
}

/* Tarjetas grandes */
.balanza-layout .peso-card {
    min-height: 260px;
    border-radius: 20px;
}

/* Peso gigante */
.balanza-layout .peso-main {
    font-size: clamp(90px, 10vw, 140px);
}

/* Inputs más grandes */
.balanza-layout input,
.balanza-layout select {
    height: 56px;
    font-size: 18px;
}

/* Botones grandes */
.balanza-layout .send-btn {
    height: 52px;
    font-size: 16px;
}

/* Panel acciones vertical */
.balanza-layout .acciones {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Estado más visible */
.balanza-layout .badge {
    min-width: 240px;
    height: 50px;
    font-size: 16px;
}