/* --- VARIABLES DE DISEÑO (Paleta exacta de la imagen) --- */
:root {
    --bg-deep: #020816;
    --bg-surface: #071630;
    --bg-surface-glow: #0d2350;
    --primary: #ff6a00;
    --primary-glow: rgba(255, 106, 0, 0.28);
    --text-main: #ffffff;
    --text-muted: #b5c3d8;
    --accent-blue: #2b9fff;
    --accent-blue-glow: rgba(43, 159, 255, 0.2);
    --font-sans: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET Y CONFIGURACIÓN BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 88% 34%, rgba(43, 159, 255, 0.14) 0%, transparent 38%),
        radial-gradient(circle at 72% 78%, rgba(255, 106, 0, 0.1) 0%, transparent 45%),
        linear-gradient(120deg, #01040d 0%, #020816 45%, #04122d 100%);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fondo de red neuronal simulado con CSS */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--accent-blue-glow) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--primary-glow) 0%, transparent 45%),
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- COMPONENTES REUTILIZABLES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.45);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 106, 0, 0.65);
}

.btn-secondary {
    background-color: rgba(5, 18, 42, 0.5);
    color: var(--text-main);
    border: 1px solid rgba(43, 159, 255, 0.35);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(8, 30, 70, 0.75);
    border-color: rgba(43, 159, 255, 0.7);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* --- HEADER / NAVBAR --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(2, 8, 22, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(43, 159, 255, 0.12);
    transition: var(--transition);
}

.header-scrolled {
    padding: 0.5rem 0;
    background-color: rgba(2, 8, 22, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-box {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-main span {
    color: var(--primary);
}

.logo-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--primary);
    opacity: 1;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero {
    height: 100svh;
    min-height: 720px;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 8, 22, 0.95) 0%, rgba(2, 8, 22, 0.9) 36%, rgba(2, 8, 22, 0.45) 62%, rgba(2, 8, 22, 0.2) 100%),
        linear-gradient(180deg, rgba(1, 4, 13, 0.4) 0%, rgba(1, 4, 13, 0.58) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    right: -140px;
    top: 20%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 159, 255, 0.22) 0%, rgba(43, 159, 255, 0.06) 35%, transparent 70%);
    filter: blur(12px);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 660px;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

.hero-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 74% center;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* --- SUB-HERO (LOS 4 PILARES) --- */
.pilares {
    padding: 5rem 0;
    background-color: rgba(7, 22, 48, 0.38);
    border-top: 1px solid rgba(43, 159, 255, 0.12);
    border-bottom: 1px solid rgba(43, 159, 255, 0.12);
    backdrop-filter: blur(5px);
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pilar-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-left: 1px solid rgba(43, 159, 255, 0.22);
    transition: var(--transition);
}

.pilar-card:hover {
    border-left-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.01);
    transform: translateX(5px);
}

.pilar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pilar-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    flex-shrink: 0;
}

.pilar-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
}

.pilar-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- SECCIÓN NOSOTROS --- */
.nosotros {
    padding: 8rem 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.mv-card {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(11, 19, 41, 0.5) 100%);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.mv-card h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mv-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.valores-subtitle {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.valor-card {
    background-color: var(--bg-surface);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.valor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.valor-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    background-color: var(--bg-surface-glow);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.valor-card:hover::before {
    transform: scaleX(1);
}

.valor-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.valor-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* --- SECCIÓN PRODUCTOS (TURIVISA) --- */
.productos {
    padding: 8rem 0;
    background-color: rgba(11, 19, 41, 0.2);
    position: relative;
}

.product-premium-card {
    background: linear-gradient(145deg, var(--bg-surface-glow) 0%, var(--bg-surface) 100%);
    border-radius: 20px;
    border: 1px solid rgba(43, 159, 255, 0.2);
    padding: 4rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 50px rgba(43, 159, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.product-premium-card::after {
    content: 'PREMIUM';
    position: absolute;
    top: 30px;
    right: -40px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.product-badge {
    display: inline-block;
    background: rgba(255, 90, 0, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.product-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    text-align: justify;
}

.product-meta-box {
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.meta-item {
    text-align: center;
    flex: 1;
}

.meta-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.meta-value.highlight {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Mockup o Arte de la App en CSS */
.product-visual {
    display: flex;
    justify-content: center;
}

.app-mockup {
    width: 280px;
    height: 560px;
    background: #030712;
    border: 10px solid #1e293b;
    border-radius: 36px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 30px rgba(255,90,0,0.05);
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-notch {
    width: 120px;
    height: 18px;
    background: #1e293b;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.app-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding-top: 1rem;
}

.app-header {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

.app-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.app-radial-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-blue) 85%, rgba(255,255,255,0.05) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.app-radial-inner {
    width: 100px;
    height: 100px;
    background: #030712;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-btn {
    background: var(--primary);
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- SECCIÓN CONTACTO / FOOTER --- */
.contacto {
    padding: 6rem 0 3rem;
    background: linear-gradient(to top, #01030a 0%, var(--bg-deep) 100%);
    border-top: 1px solid rgba(43, 159, 255, 0.12);
}

.contacto-panel {
    background: radial-gradient(circle at top right, var(--bg-surface-glow), var(--bg-surface));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.contacto-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contacto-desc {
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

.contacto-channels {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.channel-card {
    background: rgba(3, 7, 18, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.channel-card:hover {
    border-color: var(--primary);
    background: rgba(255, 90, 0, 0.02);
    transform: translateY(-3px);
}

.channel-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.channel-info {
    text-align: left;
}

.channel-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.channel-value {
    font-size: 1.05rem;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- ANIMACIONES KEYFRAMES --- */
/* --- RESPONSIVE / ADAPTABILIDAD --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .pilares-grid { grid-template-columns: repeat(2, 1fr); }
    .valores-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr; gap: 3rem; }
    .product-visual { order: -1; }
    .hero-video { object-position: 68% center; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-deep);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        transition: var(--transition);
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .nav-menu.active { left: 0; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero { min-height: 640px; }
    .hero-description { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .hero-content { margin: 0 auto; }
    .hero-video { object-position: 64% center; }
    .mv-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contacto-panel { padding: 2.5rem 1.5rem; }
    .contacto-channels { flex-direction: column; gap: 1rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
    .hero { min-height: 600px; }
    .hero-title { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .pilares-grid { grid-template-columns: 1fr; }
    .valores-grid { grid-template-columns: 1fr; }
    .product-premium-card { padding: 2rem 1.5rem; }
    .product-meta-box { flex-direction: column; gap: 1.5rem; }
    .meta-item { width: 100%; }
    .meta-item:not(:last-child) { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1rem; }
}
