/* hero.css - AJUSTADO: Layout Pirámide 3-2 + Canvas en CTA Compacto */

/* Animación de Fondo de Colores */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero {
    background: linear-gradient(-45deg, #001f3f, #003366, #0056b3, #001f3f);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: white;
    padding: 120px 0 80px 0;
    text-align: left; 
    position: relative;
    overflow: hidden; 
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    opacity: 0.8; /* Partículas visibles */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2; 
}

.hero h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    margin-top: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: #ffffff;
    max-width: 900px;
}

.hero .hero-subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 0 35px 0;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 5px;
    font-size: 1rem;
    padding: 12px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: inline-block;
}

/* GRIDS Y TARJETAS */
.hero-solutions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 60px;
    max-width: 1080px; 
    margin-left: auto; 
    margin-right: auto;
}

.hero-solution-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 25px 20px; 
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    text-align: left; 
    flex: 1 1 300px; 
    max-width: 340px;
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.hero-solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.hero-solution-card h3 {
    color: #001f3f;
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 15px;
    line-height: 1.3;
}

.hero-solution-card p {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1; 
}

.hero-solution-card .btn-primary {
    margin-top: auto; 
    padding: 8px 20px;
    font-size: 0.8rem;
}

.card-icon-container {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.card-icon-svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   ESTILOS CTA FINAL + CANVAS NUEVO (CORREGIDO)
   ========================================== */

.cta-final-section {
    position: relative;
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    /* CAMBIO: Reducido de 100px a 70px para que no se vea tan largo */
    padding: 70px 0; 
    text-align: center;
    overflow: hidden;
    color: white;
}

/* Canvas para la sección CTA */
#cta-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    opacity: 0.6; 
    pointer-events: none;
}

.cta-final-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 86, 179, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.cta-final-section .container {
    position: relative;
    z-index: 1;
}

.cta-logo-wrapper {
    /* CAMBIO: Reducido margen inferior */
    margin-bottom: 20px; 
}

.cta-logo-img {
    height: 50px; /* Logo un poco más pequeño para equilibrar */
    width: auto;
    filter: brightness(0) invert(1); 
    opacity: 0.9;
    transition: opacity 0.3s;
}

.cta-logo-img:hover {
    opacity: 1;
}

.cta-final-section h2 {
    font-size: 2.5rem; /* Fuente ajustada ligeramente */
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, #ffffff, #a5c9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-final-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    /* CAMBIO: Menos margen inferior */
    margin: 0 auto 30px auto; 
    line-height: 1.6;
}

/* BOTÓN BRILLANTE (NEÓN) */
.btn-glow {
    background-color: var(--color-primary);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 86, 179, 0.5); 
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-glow:hover {
    background-color: #0066cc;
    transform: translateY(-3px) scale(1.05);
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 86, 179, 0.4);
    border-color: rgba(255,255,255,0.6);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
    opacity: 0;
}

.btn-glow:hover::after {
    left: 100%;
    opacity: 1;
    transition: 0.6s;
}