/* ================================================================
   NX - TEAMSYSTEM ESTILOS UNIFICADOS
   Prefijo: nx-
   Versión: 1.0.0
   ================================================================ */

/* ================================================================
   1. RESET Y VARIABLES
   ================================================================ */
/**,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}*/

:root {
    /* Colores principales */
    --nx-color-brand: #1a62ad;
    --nx-color-brand-dark: #10458c;
    --nx-color-brand-darker: #001F5B;
    --nx-color-magenta: #c00b6c;

    --color-brand-dark-blue: #10458c;
    --color-brand-light-blue: #1196ce;

    
    /* Grises */
    --nx-gray-100: #f9f9f9;
    --nx-gray-200: #E6E6E6;
    --nx-gray-300: #dee2e6;
    --nx-gray-400: #BCBCBC;
    --nx-gray-500: #adb5bd;
    --nx-gray-600: #808080;
    --nx-gray-700: #707070;
    --nx-gray-800: #555555;
    --nx-gray-900: #3C3C3C;
    
    /* Fondos */
    --nx-bg-light: #F5F7FA;
    --nx-bg-white: #FFFFFF;
    
    /* Texto */
    --nx-text-dark: #1A1F36;
    --nx-text-light: #5A6B7F;
    
    /* Bordes */
    --nx-border-light: #E4E7EC;
    
    /* Sombras */
    --nx-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --nx-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --nx-shadow-lg: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    
    /* Transiciones */
    --nx-transition: all 0.3s ease;
    --nx-transition-slow: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Tipografía */
    --nx-font-family: "Roboto", sans-serif;
    --nx-weight-regular: 400;
    --nx-weight-medium: 600;
    --nx-weight-bold: 700;
    --nx-weight-black: 900;
    
    /* Layout */
    --nx-container-max: 1400px;
    --nx-border-radius: 0.375rem;
}

html {
    font-family: var(--nx-font-family);
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -ms-overflow-style: scrollbar;
    -webkit-tap-highlight-color: transparent;
    background-color: var(--nx-bg-white);
}

body {
    font-family: var(--nx-font-family);
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 1rem;
    font-weight: var(--nx-weight-regular);
    line-height: 1.5;
    color: var(--nx-text-dark);
    text-align: left;
    background-color: var(--nx-bg-white);
    overflow-x: hidden;
}

/* ================================================================
   2. ELEMENTOS BASE
   ================================================================ */
p {
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

picture {
    max-width: 100%;
    display: block;
}

video {
    max-width: 100%;
    display: block;
}

/* ================================================================
   3. UTILIDADES
   ================================================================ */
.nx-container {
    max-width: var(--nx-container-max);
    margin: 0 auto;
    padding: 0 22px;
}

.nx-text-center {
    text-align: center;
}

.nx-color-brand {
    color: var(--nx-color-brand);
}

.nx-color-white {
    color: #fff;
}

.nx-font-bold {
    font-weight: var(--nx-weight-bold);
}

.nx-font-medium {
    font-weight: var(--nx-weight-medium);
}

.nx-font-light {
    font-weight: 300;
}

.nx-mb-1 {
    margin-bottom: 0.5rem;
}
.nx-mb-2 {
    margin-bottom: 1rem;
}
.nx-mb-3 {
    margin-bottom: 1.5rem;
}
.nx-mb-4 {
    margin-bottom: 2rem;
}
.nx-mb-5 {
    margin-bottom: 3rem;
}

.nx-mt-3 {
    margin-top: 1.5rem;
}
.nx-mt-4 {
    margin-top: 2rem;
}
.nx-mt-5 {
    margin-top: 3rem;
}

.nx-d-flex {
    display: flex;
}
.nx-align-center {
    align-items: center;
}
.nx-justify-center {
    justify-content: center;
}
.nx-gap-2 {
    gap: 0.5rem;
}
.nx-gap-3 {
    gap: 1rem;
}
.nx-gap-4 {
    gap: 2rem;
}

.nx-flex-wrap {
    flex-wrap: wrap;
}
.nx-flex-column {
    flex-direction: column;
}

/* ================================================================
   4. BOTONES
   ================================================================ */
.nx-btn-primary {
    text-transform: uppercase;
    transition: var(--nx-transition);
    border-radius: var(--nx-border-radius);
    padding: 15px 20px;
    font-weight: var(--nx-weight-bold);
    color: #fff;
    background: var(--nx-color-brand);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    text-decoration: none;
}

.nx-btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: var(--nx-shadow-md);
}

.nx-btn-outline {
    background: transparent;
    border: 1.5px solid var(--nx-color-brand);
    color: var(--nx-color-brand);
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: var(--nx-weight-bold);
    transition: var(--nx-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nx-btn-outline:hover {
    background: var(--nx-color-brand);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--nx-shadow-md);
}

.nx-btn-ghost-white {
    background: transparent;
    color: #fff;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: var(--nx-weight-bold);
    transition: var(--nx-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.nx-btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.nx-btn-cta-banner {
    background: white;
    color: var(--nx-color-brand-dark);
    padding: 15px 20px;
    border-radius: var(--nx-border-radius);
    font-weight: var(--nx-weight-bold);
    text-transform: uppercase;
    transition: var(--nx-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nx-btn-cta-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--nx-shadow-md);
}

/* ================================================================
   5. HERO
   ================================================================ */
.nx-hero {
    padding: 80px 0;
}

.nx-hero-grid {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.nx-hero-content {
    flex: 1;
}

.nx-hero-content h1 {
    font-size: 48px;
    line-height: 55px;
    font-weight: 100;
    margin-bottom: 24px;
}

.nx-hero-content p {
    font-size: 24px;
    font-weight: 300;
    line-height: 34px;
    margin-bottom: 32px;
}

.nx-hero-image {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

/* ================================================================
   6. SECCIONES
   ================================================================ */
.nx-section {
    padding: 80px 0;
    background: var(--nx-bg-white);
    overflow: hidden;
}

.nx-section--gray {
    background: var(--nx-bg-light);
}

.nx-section--dark {
    background: var(--nx-color-brand-darker);
    color: #fff;
}

.nx-section--hero {
    padding: 80px 0;
}

/* ================================================================
   7. ROW / COLUMNS
   ================================================================ */
.nx-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.nx-col {
    flex: 1;
    min-width: 280px;
}

.nx-col--image {
    flex: 1.1;
    min-width: 280px;
}

.nx-col--text {
    flex: 1.2;
    min-width: 300px;
}

/* Orden en móvil */
@media (max-width: 992px) {
    .nx-order-first {
        order: -1;
    }
}

/* ================================================================
   8. IMÁGENES CON ANIMACIÓN
   ================================================================ */
.nx-image-wrapper {
    overflow: hidden;
}

.nx-image-wrapper img {
    max-width: 100%;
    height: auto;
    opacity: 0;
    transition: var(--nx-transition-slow);
}

/* Animación: izquierda a derecha */
.nx-image-wrapper img.nx-animate-left-to-right {
    transform: translateX(-60px);
}
.nx-image-wrapper img.nx-animate-left-to-right.nx-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Animación: derecha a izquierda */
.nx-image-wrapper img.nx-animate-right-to-left {
    transform: translateX(60px);
}
.nx-image-wrapper img.nx-animate-right-to-left.nx-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ================================================================
   9. TEXTO CON ANIMACIÓN
   ================================================================ */
.nx-text-content {
    opacity: 0;
    transition: var(--nx-transition-slow);
}

.nx-text-content.nx-animate-left {
    transform: translateX(-40px);
}
.nx-text-content.nx-animate-right {
    transform: translateX(40px);
}
.nx-text-content.nx-animate-bottom {
    transform: translateY(60px);
}

.nx-text-content.nx-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ================================================================
   10. ELEMENTOS CON ANIMACIÓN
   ================================================================ */
.nx-animate-left,
.nx-animate-right,
.nx-animate-bottom {
    opacity: 0;
    transition: var(--nx-transition-slow);
}

.nx-animate-left {
    transform: translateX(-60px);
}
.nx-animate-right {
    transform: translateX(60px);
}
.nx-animate-bottom {
    transform: translateY(60px);
}

.nx-animate-left.nx-visible,
.nx-animate-right.nx-visible,
.nx-animate-bottom.nx-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ================================================================
   11. TÍTULOS Y TEXTOS DE SECCIÓN
   ================================================================ */
.nx-section-intro {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 56px auto;
}

.nx-section-intro .nx-subtitle {
    font-size: 18px;
    font-weight: var(--nx-weight-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-brand-light-blue);;
    line-height: 27px;
    margin: 0 0 10px;
}

.nx-section-intro .nx-title {
    font-size: 34px;
    line-height: normal;
    color: var(--color-brand-dark-blue);
    font-weight: var(--nx-weight-bold);
    margin-bottom: 0.5rem;
}

.nx-section-intro .nx-title--white {
    color: #fff;
}

.nx-section-intro .nx-description {
    font-size: 20px;
    font-weight: 300;
    line-height: 40px;
    max-width: 960px;
    margin: 0 auto;
    color: var(--nx-text-light);
}

.nx-section-intro .nx-description--white {
    color: rgba(255, 255, 255, 0.9);
}

/* ================================================================
   12. CHECKLIST
   ================================================================ */
.nx-checklist-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--nx-gray-200);
    padding-bottom: 16px;
}

.nx-checklist-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nx-checklist-icon {
    flex-shrink: 0;
    padding-top: 4px;
}

.nx-checklist-icon i {
    color: var(--nx-color-brand);
    font-size: 28px;
}

.nx-checklist-text h3 {
    font-size: 24px;
    font-weight: var(--nx-weight-medium);
    margin-bottom: 8px;
}

.nx-checklist-text p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--nx-text-light);
}

.nx-checklist-wrapper {
    flex: 1.2;
    min-width: 300px;
}

/* ================================================================
   13. CARDS
   ================================================================ */
.nx-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.nx-card {
    background: var(--nx-bg-white);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: var(--nx-shadow-sm);
    transition: var(--nx-transition);
    border: 1px solid var(--nx-border-light);
}

.nx-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nx-shadow-md);
}

.nx-card-icon {
    font-size: 36px;
    color: var(--nx-color-brand);
    margin-bottom: 20px;
}

.nx-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.nx-card p {
    color: var(--nx-text-light);
}

/* ================================================================
   14. FAQ
   ================================================================ */
.nx-faq-item {
    border-bottom: 1px solid var(--nx-border-light);
    transition: var(--nx-transition);
}

.nx-faq-item:first-child {
    padding-top: 0;
}

.nx-faq-question {
    font-size: 1.25rem;
    text-align: left;
    font-weight: var(--nx-weight-medium);
    color: var(--nx-text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s ease;
    padding: 22px 16px;
}

.nx-faq-question:hover {
    /*color: var(--nx-color-brand);*/
    background: var(--nx-bg-light);
}

.nx-faq-question::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--nx-color-brand);
    transition: transform 0.3s ease;
}

.nx-faq-item.nx-active .nx-faq-question::after {
    transform: rotate(180deg);
}

.nx-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    color: var(--nx-text-light);
    line-height: 1.6;
}

.nx-faq-item.nx-active .nx-faq-answer {
    max-height: 500px;
    margin-top: 0.5rem;
    padding: 0 16px 48px;
}

.nx-faq-answer p {
    margin-bottom: 0.5rem;
    text-align: left;
}

.nx-faq-answer ul {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.nx-faq-answer ul li {
    list-style: disc;
    margin-bottom: 0.25rem;
}

.nx-faq-answer .nx-link {
    color: var(--nx-color-brand);
    font-weight: var(--nx-weight-medium);
}

.nx-faq-answer .nx-link:hover {
    text-decoration: underline;
}

/* ================================================================
   15. VENTAJAS
   ================================================================ */
.nx-ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin: 48px 0;
}

.nx-ventaja-item {
    text-align: center;
    padding: 24px;
}

.nx-ventaja-icon {
    font-size: 2.5rem;
    background: var(--nx-bg-light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--nx-color-brand);
}

.nx-ventaja-item h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.nx-ventaja-item p {
    color: var(--nx-text-light);
}

/* ================================================================
   16. FEATURE BANNER
   ================================================================ */
.nx-feature-banner {
    background: linear-gradient(135deg, var(--nx-color-brand-darker) 0%, var(--nx-color-brand-dark) 100%);
    border-radius: 32px;
    padding: 60px 48px;
    text-align: center;
    color: white;
    margin: 40px 0;
}

.nx-feature-banner h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 16px;
}

.nx-feature-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* ================================================================
   17. BANNER CON FONDO
   ================================================================ */
.nx-banner-bg {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* ================================================================
   18. RESPONSIVE
   ================================================================ */
@media (max-width: 992px) {
    .nx-container {
        padding: 0 36px;
    }
    .nx-hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    .nx-hero-grid {
        flex-direction: column;
    }
    .nx-row {
        flex-direction: column;
        text-align: center;
    }
    .nx-col {
        width: 100%;
        text-align: center;
    }
    .nx-col--image,
    .nx-col--text {
        width: 100%;
        text-align: center;
    }
    .nx-check-list {
        text-align: left;
    }
    .nx-section-intro .nx-title {
        font-size: 1.9rem;
    }
    .nx-section-intro .nx-description {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    .nx-feature-banner {
        padding: 40px 24px;
    }
    .nx-feature-banner h3 {
        font-size: 1.5rem;
    }
    .nx-checklist-text h3 {
        font-size: 16px;
        text-align: left;
    }
    .nx-checklist-text p {
        font-size: 14px;
        text-align: left;
    }
    .nx-checklist-icon {
     padding-top: 0;
    }
}

@media (max-width: 768px) {
    .nx-faq-question {
        font-size: 16px;
    }
    .nx-section {
        padding: 48px 0;
    }
    .nx-hero {
        padding: 40px 0;
    }
    .nx-hero-content h1 {
        font-size: 1.8rem;
    }
    .nx-hero-content p {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    .nx-cards-grid {
        grid-template-columns: 1fr;
    }
    .nx-ventajas-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nx-faq-answer p {
    font-size: 15px;
    }
}

@media (max-width: 480px) {
    .nx-container {
        padding: 0 16px;
    }
    .nx-ventajas-grid {
        grid-template-columns: 1fr;
    }
    .nx-feature-banner {
        padding: 30px 16px;
    }
    .nx-feature-banner h3 {
        font-size: 1.3rem;
    }
}