/* ================= VARIABLES & UTILS ================= */
:root {
    --bg-white: #ffffff;
    --bg-black: #050505;
    --bg-light-gray: #f4f6f8;
    --text-black: #111;
    --text-white: #fff;
    --text-gray: #888;
    --accent:#e6321f;
    --blue-tech: #0071c5; /* Azul estilo Intel/Qualcomm */
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --font-heading: 'Titillium Web', sans-serif;
    --font-primary: 'Inter', sans-serif;
}

body { background-color: var(--bg-white); color: var(--text-black); font-family: var(--font-primary); overflow-x: hidden; }

/* UTILS */
.bg-black { background-color: #050505 !important; color: var(--text-white); }
.bg-white { background-color: #ffffff !important; color: var(--text-black); }
.bg-light-gray { background-color: #f4f6f8 !important; }
.relative-z { position: relative; z-index: 5; }
.text-center { text-align: center; }
.text-orange { color: var(--accent); }
.text-gray { color: var(--text-gray); }
.text-white { color: #fff; }
.mb-60 { margin-bottom: 60px; }
.mb-40 { margin-bottom: 40px; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.section-pad { padding: 120px 0; }

::selection { background: var(--accent); color: #fff; text-shadow: none; }

/* TYPOGRAPHY */
h1, h2, h3, .headline-giant, .headline-lg, .headline-md { font-family: var(--font-heading); }

.headline-giant { 
    font-size: 8rem; font-weight: 300; line-height: 0.95; letter-spacing: -3px; 
    margin: 30px 0; text-align: left; 
}
.headline-lg { font-size: 4rem; font-weight: 300; line-height: 1.1; }
.headline-md { font-size: 2.5rem; font-weight: 600; }
.body-lg { font-size: 1.3rem; line-height: 1.6; font-weight: 300; }
.body-sm { font-size: 1.1rem; line-height: 1.6; }
.hero-desc { font-size: 1.5rem; color: rgba(255,255,255,0.7); font-weight: 300; text-align: left; margin-top: 30px; }

/* PILLS */
.pill-badge { 
    display: inline-flex; align-items: center; justify-content: center; width: fit-content;
    padding: 8px 20px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; 
    letter-spacing: 2px; text-transform: uppercase; 
    background-color: transparent; border: 1px solid currentColor; color: inherit; margin-bottom: 20px;
}
.pill-badge.grey { border-color: #999; color: #666; }
.pill-badge.orange { border-color: var(--accent); color: var(--accent); }
.pill-badge.glass-effect { 
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); 
    color: #fff; backdrop-filter: blur(5px); 
}
.pill-badge.glass-effect::before { content: ""; width: 6px; height: 6px; background: var(--accent); margin-right: 10px; border-radius: 50%; }

/* ANIMATIONS */
.fade-section { opacity: 0; transform: translateY(20px); transition: 0.8s ease; }
.fade-section.visible { opacity: 1; transform: translateY(0); }
.slide-in-left { opacity: 0; transform: translateX(-60px); transition: 1s var(--ease-smooth); }
.slide-in-right { opacity: 0; transform: translateX(60px); transition: 1s var(--ease-smooth); }
.slide-in-up { opacity: 0; transform: translateY(60px); transition: 1s var(--ease-smooth); }
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp 1s var(--ease-smooth) forwards; }
.delay-1 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; animation-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; animation-delay: 0.6s; }
.is-visible { opacity: 1; transform: translate(0,0); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.word-up { display: inline-block; opacity: 0; transform: translateY(80px); filter: blur(10px); animation: revealWord 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards; animation-delay: var(--d); margin-right: 0.1em; }
@keyframes revealWord { 0% { opacity: 0; transform: translateY(80px); filter: blur(10px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }

/* ================= HERO STICKY ================= */
.page-intro {
    position: sticky; top: 0; z-index: 0;
    background: radial-gradient(circle at 80% 50%, #1a1a1a 0%, #000 100%);
    color: #fff; height: 100vh; padding: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    overflow: hidden;
}
#tech-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.4; }
.hero-glow { position: absolute; top: 50%; right: -10%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%); border-radius: 50%; pointer-events: none; z-index: 1; transform: translateY(-50%); }
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ================= CONTENT LAYER ================= */
.content-layer { position: relative; z-index: 10; background-color: #ffffff; box-shadow: 0 -50px 100px rgba(0,0,0,0.5); width: 100%; }

/* ================= SECCIÓN IA STACK (Oscura) ================= */
.section-ai-stack {
    background-color: #050505; color: #fff; padding: 150px 0;
}
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* Diagrama Stack */
.stack-diagram { display: flex; flex-direction: column; gap: 15px; position: relative; padding-left: 20px; }
.stack-line { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--blue-tech), var(--accent)); }
.stack-line::before, .stack-line::after { content: ''; position: absolute; left: -4px; width: 10px; height: 10px; background: #fff; border-radius: 50%; }
.stack-line::before { top: 0; }
.stack-line::after { bottom: 0; }
.stack-layer {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 20px 30px; border-radius: 12px; font-family: var(--font-heading);
    font-size: 1.1rem; letter-spacing: 1px; backdrop-filter: blur(5px);
    transition: 0.3s; cursor: default;
}
.stack-layer:hover { transform: translateX(10px); border-color: var(--blue-tech); background: rgba(0, 113, 197, 0.1); }
.layer-1 { color: #8a2be2; border-left: 3px solid #8a2be2; }
.layer-2 { color: #00c3ff; border-left: 3px solid #00c3ff; }
.layer-3 { color: #ffcc00; border-left: 3px solid #ffcc00; }
.layer-4 { color: #fff; border-left: 3px solid #fff; }
.layer-5 { color: var(--accent); font-weight: 700; border-color: var(--accent); border-left: 3px solid var(--accent); }

/* Features & Íconos Estilo Intel */
.feature-block { display: flex; gap: 30px; align-items: flex-start; margin-bottom: 50px; }
.feature-icon-outline { font-size: 4rem; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.5); flex-shrink: 0; transition: 0.3s; }
.feature-block:hover .feature-icon-outline { -webkit-text-stroke: 1px #fff; transform: scale(1.1); }
.feature-block h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.feature-block p { color: #aaa; line-height: 1.6; font-size: 1rem; }

/* ================= SECCIÓN SOLUCIONES TRICOLOR ================= */
.solutions-tricolor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }

.sol-card-tri {
    border-radius: 24px; padding: 40px 30px;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 450px; 
    /* Quitamos transition base para manejarlo con la animación escalonada, se agrega en hover */
    border: 1px solid transparent; overflow: hidden; position: relative;
    /* Estado inicial para la animación */
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-top { display: flex; flex-direction: column; gap: 30px; align-items: flex-start; margin-bottom: 20px; }
.card-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 6px 12px; border-radius: 50px; letter-spacing: 1px; }

.icon-large-outline { font-size: 5rem; color: transparent; -webkit-text-stroke: 1px currentColor; opacity: 0.3; margin-left: auto; transition: 0.3s; }
.sol-card-tri:hover .icon-large-outline { opacity: 0.8; transform: scale(1.05); }

.card-content h3 { font-size: 2.2rem; font-weight: 700; margin-bottom: 15px; line-height: 1; }
.card-content p { font-size: 1rem; line-height: 1.6; opacity: 0.9; }

.btn-card-circle { width: 50px; height: 50px; border-radius: 50%; border: 1px solid; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.3s; margin-top: auto; color: inherit; }
.btn-card-circle:hover { transform: scale(1.1); }

/* Estilos Cards */
.style-white { background-color: #fff; border-color: #eee; color: #111; }
.style-white .card-tag { border: 1px solid #ddd; color: #555; }
.style-white .btn-card-circle { border-color: #ddd; }
.style-white .btn-card-circle:hover { background: #111; color: #fff; border-color: #111; }
.style-white .icon-large-outline { -webkit-text-stroke: 1px #ccc; }

.style-orange { background-color: var(--accent); color: #fff; }
.style-orange .card-tag { background: rgba(255,255,255,0.2); color: #fff; }
.style-orange .btn-card-circle.white { border-color: rgba(255,255,255,0.5); color: #fff; }
.style-orange .btn-card-circle.white:hover { background: #fff; color: var(--accent); }
.style-orange .icon-large-outline { -webkit-text-stroke: 1px rgba(255,255,255,0.5); }

.style-black { background-color: #111; color: #fff; }
.style-black .card-tag { border: 1px solid #444; color: #aaa; }
.style-black .btn-card-circle.white { border-color: #444; color: #fff; }
.style-black .btn-card-circle.white:hover { background: #fff; color: #000; }
.style-black .icon-large-outline { -webkit-text-stroke: 1px #444; }

/* ================= ANIMACIÓN ESCALONADA ================= */
.fade-section.visible .sol-card-tri { opacity: 1; transform: translateY(0); }
.fade-section.visible .sol-card-tri:nth-child(1) { transition-delay: 0.1s; }
.fade-section.visible .sol-card-tri:nth-child(2) { transition-delay: 0.2s; }
.fade-section.visible .sol-card-tri:nth-child(3) { transition-delay: 0.3s; }

.sol-card-tri:hover {
    transition-delay: 0s; /* Eliminar delay en hover para que sea rápido */
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* ================= METODOLOGÍA & FOOTER ================= */
.method-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.m-card { background: #fff; padding: 40px 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; border-top: 4px solid transparent; }
.m-card:hover { transform: translateY(-10px); border-top-color: var(--accent); }
.m-number { font-size: 4rem; font-weight: 800; color: #eee; line-height: 1; margin-bottom: 20px; font-family: var(--font-heading); }
.m-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; }
.m-card p { color: #666; line-height: 1.6; }
.headline-giant-quote { font-family: var(--font-heading); font-size: 4rem; font-weight: 700; color: #ccc; }

.footer-pre-wrapper { position: relative; z-index: 15; background-color: #111 !important; margin: 0 20px 40px 20px; border-radius: 40px; padding: 100px 0; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.footer-solid { position: relative; z-index: 20; background-color: #050505 !important; padding-top: 20px; }
.btn-cta.orange { background: var(--accent); color: #fff; padding: 15px 40px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: 0.3s; }
.btn-cta.orange:hover { background: #e6321f; transform: translateY(-3px); }
.btn-group-center { display: flex; justify-content: center; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .headline-giant { font-size: 6rem; }
    .split-layout, .solutions-tricolor-grid { grid-template-columns: 1fr; gap: 40px; }
    .method-cards { grid-template-columns: 1fr; }
    .footer-pre-wrapper { margin: 0; border-radius: 0; }
    .col-visual { order: -1; }
    .headline-giant-quote { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .headline-giant { font-size: 4rem; letter-spacing: -2px; }
    .headline-lg { font-size: 3rem; }
    .sol-card-tri { min-height: auto; }
}