/* ==========================================================================
   ESTILOS AGORA PROFESSIONAL - VICON SISTEMAS (RESPONSIVO COMPACTO)
   ========================================================================== */

:root {
    --agora-red: #008006;
    --dark-bg: #121212;
    --text-main: #333;
    --text-muted: #666;
    --white: #ffffff;
    --gray-light: #f9f9f9;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.05);
    --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- RESET Y BASE --- */
.agora-page {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

.agora-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px; /* Reducido ligeramente para ganar pantalla en móvil */
    box-sizing: border-box;
}

/* --- ANIMACIONES --- */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); } /* Suavizado para pantallas pequeñas */
    100% { transform: translateY(0px); }
}

.floating {
    animation: floating 4s ease-in-out infinite;
}

/* ==========================================================================
   HERO SECTION (ALTURAS AJUSTADAS)
   ========================================================================== */
.agora-hero {
    padding: 40px 0; /* Control del espacio superior base */
    min-height: auto; /* Evita estiramientos forzados en móviles */
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-First: Una columna */
    gap: 30px; /* Elementos más juntos en móvil */
    align-items: center;
}

.brand-tag {
    color: var(--agora-red);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 12px; /* Espacio reducido */
    display: inline-block;
}

.agora-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 16px;
}

.agora-hero h1 span {
    color: var(--agora-red);
}

.agora-hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    opacity: 0.85;
    margin-top: 0;
    margin-bottom: 24px; /* Flujo de lectura más estrecho */
    font-weight: 300;
}

.hero-btns {
    display: flex;
    flex-direction: column; /* Botones apilados en móviles */
    gap: 12px;
    align-items: stretch; /* Ocupan todo el ancho disponible */
}

/* COMPORTAMIENTO DE BOTONES */
.btn-main {
    background: var(--agora-red);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 8px 16px rgba(0, 128, 6, 0.15);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 128, 6, 0.25);
}

.btn-link {
    color: var(--text-main); /* Cambiado a oscuro para contraste en fondos claros si aplica */
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    padding: 12px;
}

.btn-link:hover {
    color: var(--agora-red);
}

.agora-hero-mockup {
    width: 100%;
    max-width: 480px;
    margin: 10px auto 0;
}

.agora-hero-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   SECCIÓN SHOWCASE (EL SOFTWARE)
   ========================================================================== */
.software-showcase {
    padding: 50px 0; /* Compactado drásticamente para smartphone */
    background: var(--white);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px; /* Reducción de separación */
    align-items: center;
}

.showcase-img {
    order: 2; /* En móviles la imagen se posiciona abajo del texto */
    width: 100%;
}

.showcase-img img {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.showcase-content{
    text-align: center;
} 

.showcase-content h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.2;
}

.showcase-content h2 span {
    color: var(--agora-red);
}

.showcase-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 10px;
    display: inline-block;
    text-align: left;
}

.check-list li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    gap: 12px;
    align-items: center;
    color: #444;
    font-size: 0.95rem;
}

.check-list i {
    color: var(--agora-red);
    font-size: 1.1rem;
}

/* ==========================================================================
   CARACTERÍSTICAS (TARJETAS AJUSTADAS)
   ========================================================================== */
.agora-features {
    padding: 50px 0; /* Espaciado vertical reducido */
    background: var(--gray-light);
}

.section-title {
    text-align: center;
    margin-bottom: 35px; /* Menor separación con el grid */
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0;
}

.section-title h2 span {
    color: var(--agora-red);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Autoajustable fluido */
    gap: 20px; /* Tarjetas agrupadas con elegancia */
}

.feature-card {
    background: var(--white);
    padding: 30px 25px; /* Reducción de aire interno */
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid #eaeaea;
    text-align: left;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--agora-red);
    box-shadow: 0 15px 30px rgba(0,0,0,0.03);
}

.f-icon {
    font-size: 2rem;
    color: var(--agora-red);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   CALL TO ACTION (CAJA DE CONVERSIÓN CONTRÁCTIL)
   ========================================================================== */
.agora-cta {
    padding: 30px 0; /* Reducción de márgenes externos */
}

.cta-box {
    background: var(--dark-bg);
    padding: 45px 20px; /* Más compacto, sin excesos de caja */
    border-radius: 24px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.cta-box h2 {
    font-size: clamp(1.6rem, 3.5vw, 3rem);
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 550px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.btn-white {
    background: var(--white);
    color: var(--dark-bg);
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    transition: 0.3s;
    width: 100%; /* Botón adaptativo en móviles */
    max-width: 280px;
    box-sizing: border-box;
}

.btn-white:hover {
    background: var(--agora-red);
    color: var(--white);
    transform: scale(1.03);
}

/* ==========================================================================
   MEDIA QUERIES: OPTIMIZACIÓN PANTALLAS MEDIANAS (TABLETS DESDE 600px)
   ========================================================================== */
@media (min-width: 600px) {
    .hero-btns {
        flex-direction: row; /* Botones lado a lado */
        justify-content: center;
    }
    
    .btn-main, .btn-white {
        width: auto; /* Recuperan su tamaño orgánico */
    }
    
    .cta-box {
        padding: 60px 40px;
    }
}

/* ==========================================================================
   MEDIA QUERIES: OPTIMIZACIÓN ESCRITORIO (ORDENADORES DESDE 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    .agora-hero {
        padding: 80px 0;
        min-height: 80vh;
    }

    .hero-wrapper {
        grid-template-columns: 1.1fr 0.9fr; /* Dos columnas perfectas */
        gap: 60px;
        text-align: left;
    }

    .hero-btns {
        justify-content: flex-start;
    }

    .btn-link {
        color: var(--white); /* Color claro para contrastar sobre fondos multimedia en PC */
    }

    .agora-hero-mockup {
        max-width: 100%;
        margin: 0;
    }

    .agora-hero-mockup img {
        width: 115%; /* Mantiene el desborde estético original de tu UI */
    }

    .software-showcase {
        padding: 100px 0;
    }

    .showcase-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 80px;
    }

    .showcase-img {
        order: 0; /* Imagen regresa a la izquierda en PC */
    }

    .agora-features {
        padding: 90px 0;
    }

    .section-title {
        margin-bottom: 60px;
    }

    .features-grid {
        gap: 30px;
    }

    .feature-card {
        padding: 45px 35px;
    }

    .cta-box {
        padding: 80px 60px;
        border-radius: 40px;
    }
}