/* --- VARIABLES GLOBALES (FUENTE DE LA VERDAD - UNIFICADA) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@300;400;700&display=swap');

/* RESET UNIVERSAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de Colores NomadX */
    --primary: #007FFF;       /* Azul Azure Eléctrico */
    --secondary: #FF6B6B;     /* Coral Neón */
    --bg-dark: #020C1B;       /* Hielo Negro (Deep Navy) */
    --text-main: #FFFFFF;     /* Blanco Puro */
    --text-muted: #A8B2D1;    /* Gris Azulado Claro */
    
    /* Variables de Efectos */
    --primary-glow: rgba(0, 127, 255, 0.6);
    --secondary-glow: rgba(255, 107, 107, 0.6);
    --bg-card: rgba(15, 30, 55, 0.8);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-active: rgba(0, 127, 255, 0.5);
}

html {
    overflow-x: hidden; /* Evita scroll horizontal fantasma en móviles */
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #0a192f 0%, var(--bg-dark) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    -webkit-font-smoothing: antialiased; /* Texto más nítido */
}

.static-bg {
    background: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #0a192f 0%, var(--bg-dark) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* --- TIPOGRAFÍA --- */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    line-height: 1.2;
}

p { 
    color: var(--text-muted);
    font-size: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Padding seguro para móviles */
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- COMPONENTES UI --- */

/* Glass Panel (Unificado y Responsive) */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.glass-panel:hover {
    border-color: var(--border-active);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Botones (Rediseño Total Responsive) */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white !important;
    background: linear-gradient(90deg, var(--primary), #0055aa);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 20px rgba(0, 127, 255, 0.2);
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-glow);
    background: var(--primary);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary) !important;
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--secondary);
    color: #000 !important;
    box-shadow: 0 0 20px var(--secondary-glow);
    transform: translateY(-3px);
}

/* --- SECCIONES ESPECÍFICAS --- */

/* Barra de Confianza */
.trust-bar {
    background-color: rgba(5, 20, 41, 0.6);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(5px);
}

.trust-bar h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: #6a7c94;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap; /* Permite que bajen en móvil */
    max-width: 1000px;
    margin: 0 auto;
}

.trust-logo-item {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.4;
    transition: 0.4s;
    filter: grayscale(100%);
}

.trust-logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: var(--primary);
    transform: scale(1.1);
}

/* --- NUEVA SECCIÓN DE PILARES --- */
.pillars-section {
    padding: 100px 20px;
}

.pillars-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.pillars-section h2 {
    font-size: clamp(2rem, 5vw, 2.5rem); /* Texto fluido */
    margin-bottom: 15px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive automático */
    gap: 30px;
}

.pillar-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.pillar-icon {
    width: 80px; height: 80px;
    background: rgba(0, 127, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    transition: 0.3s;
    border: 1px solid rgba(0, 127, 255, 0.2);
}

.pillar-card:hover .pillar-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.1);
}

.pillar-card h3 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.pillar-card h4 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.pillar-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.llamado-accion {
    padding: 80px 20px;
    text-align: center;
}

.llamado-accion p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* --- OPTIMIZACIONES MÓVILES (CRÍTICO) --- */
@media (max-width: 768px) {
    .glass-panel {
        padding: 25px 20px; /* Menos padding en móvil */
    }
    
    .cta-button {
        width: 100%; /* Botones ancho completo para fácil toque */
        padding: 18px 20px; 
    }
    
    .pillars-section, .llamado-accion {
        padding: 60px 20px; /* Reducir espaciado vertical */
    }
    
    .trust-logos {
        gap: 30px;
    }
    
    .trust-logo-item {
        font-size: 2rem;
    }
}