/* Reset básico para eliminar márgenes por defecto */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden; /* Evita scroll horizontal */
}

canvas#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(1px);
}

/* ========================================= */
/* --- HEADER / MENÚ (MODIFICADO) --- */
/* ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;           
    width: 100%;       
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.header-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-container img {
    height: 60px;
    width: auto;
    display: block;
}

/* --- CORRECCIÓN AQUÍ: Wrapper para centrar menú --- */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1; /* Ocupa el espacio restante entre logo y borde derecho */
}

/* Navegación Desktop: Margen automático para centrar */
.nav-menu {
    margin: 0 auto; /* ESTO CENTRA LOS ENLACES (Beneficios...FAQ) */
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: #b0b0b0;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffffff;
}

/* Botones Header */
.cta-container {
    display: flex;
    align-items: center;
    gap: 10px;
    /* No tiene margen, se queda a la derecha por el empuje del menú */
}

.lang-btn {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 15px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.lang-btn:hover {
    background-color: #1a1a1a;
    border-color: #555;
}

.btn-whatsapp {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 15px;
    background: linear-gradient(to bottom, #a32e2e, #7a1f1f);
    border-radius: 2px;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.btn-whatsapp:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

/* Estilos Botón Hamburguesa (oculto en desktop) */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.hamburger-btn .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- SECCIÓN HERO --- */
.hero-section {
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #080808;
    background-image: radial-gradient(#3025259a 1px, transparent 1px);
    background-size: 20px 20px;
    padding-top: 80px;
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    padding: 50px 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a0a0a0;
    border: 1px solid #333;
    padding: 8px 12px;
    margin-bottom: 25px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.05);
}

.red-dot {
    height: 6px;
    width: 6px;
    background-color: #D32F2F;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 5px #D32F2F;
}

.hero-title {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #ffffff;
}

.text-red {
    color: #c92a2a;
    font-style: italic;
}

.hero-description {
    color: #888;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #b92b27;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #a0221e;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid #444;
}

.btn-secondary:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.hero-visual {
    flex: 0 0 400px;
    display: flex;
    justify-content: flex-end;
}

.visual-frame {
    width: 100%;
    height: 500px;
    background-color: #000;
    position: relative;
    border: 1px solid #222;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}

.visual-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* --- SECCIÓN BENEFICIOS --- */
.why-iaxtion {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background-color: #000;
    overflow: hidden;
}

.why-iaxtion .container {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    color: white;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ffffff;
    margin: 15px auto 0;
    border-radius: 2px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.card {
    background-color: #141414;
    padding: 40px 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #262626;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-icon {
    margin-bottom: 25px;
}

.card-icon svg {
    width: 40px;
    height: 40px;
    color: #ffffff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.card:hover .card-icon svg {
    color: #b92022;
    transform: scale(1.1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #b92022;
}

.card-description {
    font-size: 1rem;
    color: #a3a3a3;
    line-height: 1.5;
}

/* --- SECCIÓN AGENTES A LA MEDIDA --- */
.custom-agents {
    background-color: #141414;
    color: #ffffff;
    padding: 100px 20px;
}

.split-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center; /* CENTRADO VERTICAL */
    gap: 60px;
}

.left-content {
    flex: 1;
    min-width: 300px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.description-wrap {
    border-left: 4px solid #ffffff;
    padding-left: 20px;
}

.description-wrap p {
    font-size: 1.2rem;
    color: #a3a3a3;
    line-height: 1.6;
}

.right-list {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    background-color: #0f0f0f;
    padding: 25px;
    border: 1px solid #262626;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-box {
    margin-right: 20px;
    padding-top: 5px;
    min-width: 30px;
}

.icon-box svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.text-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.text-box p {
    font-size: 0.95rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.feature-item:hover {
    border-color: #b92022;
    background-color: #1a0505;
}

.feature-item:hover .icon-box svg {
    color: #b92022;
}

/* --- SECCIÓN CARRUSEL (Agentes Disponibles - MODIFICADO) --- */
.agents-carousel-section {
    padding: 80px 0;
    background-color: #000;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 700; }
.section-header p { color: #9ca3af; font-size: 1.1rem; }

/* Wrapper para posicionar flechas */
.carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* El contenedor que tiene el scroll */
.slider {
    width: 100%;
    overflow-x: auto; /* Permite scroll horizontal */
    scroll-behavior: smooth;
    padding: 20px 0; /* Espacio para sombras */
    
    /* Ocultar barra de scroll pero mantener funcionalidad */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* La pista interna */
.slider-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* Eliminamos la animation: scroll anterior */
    padding: 0 40px; /* Margen lateral para que no pegue al borde */
}

/* Estilos de las flechas */
/* Estilos de las flechas (CORREGIDO) */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8); /* Fondo más oscuro para contraste */
    border: 1px solid #333;
    color: #b92022;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100; /* AUMENTADO: Asegura que esté encima de todo */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    outline: none; /* Quita borde azul al clickear */
}

.carousel-arrow:hover {
    background-color: #b92022;
    color: #fff;
    border-color: #b92022;
    box-shadow: 0 0 15px rgba(185, 32, 34, 0.5);
    transform: translateY(-50%) scale(1.1); /* Pequeño zoom al pasar el mouse */
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95); /* Efecto de presión al clickear */
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    pointer-events: none; /* Asegura que el click pase al botón, no al icono */
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }


.agent-card {
    min-width: 320px;
    max-width: 350px;
    background-color: #0c0c0c;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Evita que se encojan en el flex */
    flex-shrink: 0; 
}

.agent-card:hover { border-color: #ef4444; }

.glow-effect {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, rgba(0,0,0,0) 70%);
    filter: blur(20px);
    z-index: 0;
}

.agent-card .icon-box {
    width: 45px;
    height: 45px;
    background-color: #1a0505;
    border: 1px solid #2e1010;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    z-index: 1;
    padding: 0;
}
.agent-card .icon-box svg { width: 24px; height: 24px; color: #ef4444; }

.agent-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    z-index: 1;
}

.badge {
    background-color: #2b0b0b;
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #450a0a;
    width: fit-content;
    margin-bottom: 20px;
    z-index: 1;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
    z-index: 1;
}
.feature-list li {
    margin-bottom: 10px;
    color: #d1d5db;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}
.check { margin-right: 10px; color: #fff; font-size: 0.8rem; min-width: 15px; }

.learn-more-btn {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s;
    z-index: 1;
}
.learn-more-btn:hover { background: #fff; color: #000; }


/* --- SECCIÓN PRECIOS --- */
.pricing-section {
    padding: 80px 20px;
    background-color: #141414;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pricing-card {
    background-color: #0a0a0a;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: #404040;
}

.plan-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.price { font-size: 1.8rem; font-weight: 700; margin-bottom: 15px; }
.description { font-size: 0.9rem; color: #a3a3a3; margin-bottom: 30px; min-height: 40px; }

.features { list-style: none; margin-bottom: 30px; }
.features li { display: flex; align-items: flex-start; margin-bottom: 12px; font-size: 0.9rem; color: #e5e5e5; }
.check-icon { width: 18px; height: 18px; margin-right: 10px; stroke: #fff; flex-shrink: 0; }

.select-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #404040;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.select-btn:hover { background-color: #fff; color: #000; }

.pricing-card.recommended {
    border: 1px solid #7f1d1d;
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.1) 0%, rgba(10, 10, 10, 1) 100%);
}

.badge-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #fca5a5 0%, #ffffff 100%);
    color: #7f1d1d;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    white-space: nowrap;
}

/* --- FAQ --- */
.faq-section {
    padding: 80px 20px;
    background-color: #141414;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #050505;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover { border-color: #333; }

/* Botón de la pregunta */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    text-align: left;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: color 0.3s ease;
}

/* Texto de la pregunta */
.faq-question span {
    flex: 1;
    margin-right: 15px; 
}

/* Flecha */
.faq-question .icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: #0a0a0a;
}

.faq-answer p {
    padding: 0 25px 25px 25px;
    font-size: 0.95rem;
    color: #a3a3a3;
    line-height: 1.6;
}

.faq-item.active .faq-answer { max-height: 500px; }
.faq-item.active .icon { transform: rotate(180deg); color: #fff; }

/* --- FOOTER --- */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 20px 40px;
    font-size: 16px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand {
    flex: 2;
    min-width: 250px;
}

/* Wrapper del logo y redes sociales juntos */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 20px; /* Separación entre logo e íconos */
    margin-bottom: 20px;
}

.logo-container img { height: 60px; width: auto; }

.tagline {
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1rem;
}

.social-icons { display: flex; gap: 15px; flex-wrap: wrap;}

.social-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    overflow: hidden; 
}

.social-btn svg {
    width: 18px;      
    height: 18px;
    fill: currentColor; 
    display: block;
    
}

.Nota{
    margin-top: 20px;
}

.pricing_note2{
    color: #000;
}

.social-btn:hover { background-color: #fff; color: #000; border-color: #fff; }

.footer-nav { flex: 1; min-width: 150px; }
.footer-nav h4, .footer-lang h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #fff;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 15px; }
.footer-nav a { text-decoration: none; color: #a3a3a3; font-size: 0.95rem; transition: color 0.3s; }
.footer-nav a:hover { color: #fff; }

.footer-lang { flex: 1; min-width: 200px; text-align: right; }

.footer-divider {
    border: 0;
    height: 1px;
    background-color: #1f1f1f;
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #737373;
}

/* ========================================= */
/* MEDIA QUERIES (RESPONSIVE PARA MÓVILES) */
/* ========================================= */

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    /* MENU MOBILE */
    
    .hamburger-btn {
        display: flex; 
        z-index: 1001; 
    }

    /* Ocultar wrapper normal y convertir en overlay */
    .nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95); 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%); 
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        padding: 20px;
    }

    .nav-wrapper.active {
        transform: translateY(0);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-menu a {
        font-size: 1.5rem; 
    }

    .cta-container {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 300px;
    }

    .lang-btn, .btn-whatsapp {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 1rem;
    }

    /* Ajustes generales mobile */
    .hero-container {
        flex-direction: column;
        text-align: left;
        margin: 0 auto; 
        width: 90%;    
    }

    .hero-visual {
        width: 100%;
        flex: auto;
        margin-top: 40px;
        justify-content: center;
    }

    .visual-frame {
        height: 300px;
        width: 100%;
    }

    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    /* Responsive para flechas del carrusel */
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    .carousel-arrow.prev { left: 0px; }
    .carousel-arrow.next { right: 0px; }

    .header-container {
        padding: 0 10px;
    }
    
    .logo-container img {
        height: 50px;
    }

    .section-title, .section-header h2 {
        font-size: 2rem;
    }

    .split-layout {
        flex-direction: column;
        gap: 40px;
    }

    .main-title {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-brand, .footer-nav, .footer-lang {
        flex: auto;
        text-align: left;
        min-width: 100%;
    }
    
    .footer-lang {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-section {
        padding: 40px 15px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .faq-question .icon {
        width: 18px;
        height: 18px;
    }

    .hero-title {
        font-size: 32px;
    }
}