/* ==========================================================================
   ENTIDAD CREATIVA — PALETA EDITORIAL PROPIA (CERO AZUL/MORADO GENÉRICO IA)
   Inspirada en el logotipo original (Carmesí #E11D48 / #BE123C)
   Fondo: Grafito neutro cálido / pizarra (#0C0F17 / #101420 / #151928)
   Acentos: Carmesí de marca, blanco titanio y gris pizarra
   ========================================================================== */

:root {
    --brand-crimson: #e11d48;
    --brand-crimson-deep: #be123c;
    --brand-crimson-light: #fb7185;
    --brand-crimson-soft: rgba(225, 29, 72, 0.08);
    --brand-crimson-glow: rgba(225, 29, 72, 0.25);
    --brand-bg: #0c0f17;
    --brand-bg-alt: #101420;
    --brand-card: #151928;
    --brand-card-hover: #1c2235;
    --brand-border: rgba(255, 255, 255, 0.08);
    --brand-border-hover: rgba(225, 29, 72, 0.35);
    --brand-text: #f8fafc;
    --brand-muted: #94a3b8;
    --brand-dim: #64748b;
}

/* 1. Fondo global y base */
html,
body,
.reference-page {
    background: #0c0f17 !important;
    color: #f8fafc !important;
}

/* 2. Hero y degradados */
.reference-page .home-hero,
.reference-page .immersive-hero {
    background: 
        radial-gradient(circle at 75% 28%, rgba(225, 29, 72, 0.09), transparent 45rem),
        radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.02), transparent 40rem),
        #0c0f17 !important;
}

.reference-page .immersive-hero::before {
    background: 
        linear-gradient(90deg, rgba(12, 15, 23, 0.92) 0%, rgba(12, 15, 23, 0.3) 60%, transparent 100%),
        radial-gradient(circle at 75% 28%, rgba(225, 29, 72, 0.12), transparent 35%) !important;
}

.reference-page .home-hero::after {
    background: radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), rgba(225, 29, 72, 0.08), transparent 70%) !important;
}

.stars, .stars:before, .stars:after {
    opacity: 0.15 !important;
}

/* 3. Títulos, spans y textos destacados */
.reference-page .hero-copy h1 span,
.reference-page h1 span,
.reference-page h2 span,
.trust-title span {
    color: #f43f5e !important;
    text-shadow: 0 0 25px rgba(225, 29, 72, 0.22) !important;
}

.entity-text-gradient {
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 50%, #fda4af 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* 4. Botones principales */
.button,
.reference-page .button,
.reference-page .hero-copy .button {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.28) !important;
    color: #ffffff !important;
}

.button:hover,
.reference-page .button:hover,
.reference-page .hero-copy .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(225, 29, 72, 0.42) !important;
}

.button.button-outline,
.button-outline {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
    color: #f1f5f9 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.button.button-outline:hover,
.button-outline:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    color: #ffffff !important;
}

.to-top {
    background: #e11d48 !important;
}

/* 5. Eyebrows y cápsulas */
.eyebrow,
.reference-page .eyebrow,
.check-pill,
.reference-page .check-pill {
    border-color: rgba(225, 29, 72, 0.3) !important;
    background: rgba(225, 29, 72, 0.07) !important;
    color: #fecdd3 !important;
}

.hero-entity-proof > i {
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.1), rgba(225, 29, 72, 0.7), rgba(225, 29, 72, 0.1)) !important;
}

/* 6. Escena 3D del Hero */
.agency-hero-stage::before {
    background: radial-gradient(ellipse, rgba(225, 29, 72, 0.15), rgba(255, 255, 255, 0.02) 50%, transparent 70%) !important;
}

.agency-hero-frame {
    background: #111422 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 3rem 8rem rgba(0, 0, 0, 0.55),
        0 0 4rem rgba(225, 29, 72, 0.08),
        inset 0 1px rgba(255, 255, 255, 0.08) !important;
}

.agency-hero-scan {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent) !important;
}

.entity-stage-label,
.entity-stage-status {
    background: rgba(17, 20, 32, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
}

.entity-stage-label > i,
.entity-stage-status > i {
    background: #e11d48 !important;
    box-shadow: 0 0 0.7rem #e11d48 !important;
}

.label-marketing > i {
    background: #fb7185 !important;
    box-shadow: 0 0 0.7rem #fb7185 !important;
}

.label-automation > i {
    background: #94a3b8 !important;
    box-shadow: 0 0 0.7rem #94a3b8 !important;
}

/* 7. Immersive Bridge & Capability Strip */
.immersive-bridge {
    background: #0e111d !important;
    border-block-color: rgba(255, 255, 255, 0.07) !important;
}

.immersive-bridge::before {
    background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.5), transparent) !important;
}

.entity-capability-strip {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.capability-segment {
    border-right-color: rgba(255, 255, 255, 0.08) !important;
    background: radial-gradient(circle at 50% 140%, rgba(225, 29, 72, 0.06), transparent 55%) !important;
}

.capability-segment > i {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(225, 29, 72, 0.08) !important;
    color: #f43f5e !important;
    box-shadow: 0 0 1.2rem rgba(225, 29, 72, 0.15) !important;
}

/* 8. Journey Section (Ecosistema Conectado) — Cero Morado/Azul */
.entity-journey {
    background: #090c14 !important;
}

.journey-shell {
    background: 
        radial-gradient(circle at 77% 49%, rgba(225, 29, 72, 0.09), transparent 35rem),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02), transparent 28rem),
        linear-gradient(180deg, #090c14, #0d101a) !important;
}

.journey-shell::before {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0 1px, transparent 1.5px) !important;
    opacity: 0.12 !important;
}

.journey-shell::after {
    display: none !important;
}

.journey-heading h2 em {
    background: linear-gradient(90deg, #ffffff 0%, #f43f5e 55%, #fda4af 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.journey-depth-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
}

.journey-orbit {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.journey-orbit::after {
    background: #e11d48 !important;
    box-shadow: 0 0 0.8rem #e11d48 !important;
}

.journey-orbit.orbit-b::after {
    background: #fb7185 !important;
    box-shadow: 0 0 0.8rem #fb7185 !important;
}

.journey-visual {
    background: #111422 !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 3rem 7rem rgba(0, 0, 0, 0.5), 0 0 4rem rgba(0, 0, 0, 0.3) !important;
}

.journey-agency-badge {
    background: linear-gradient(145deg, rgba(26, 32, 48, 0.92), rgba(16, 20, 32, 0.95)) !important;
    border-color: rgba(225, 29, 72, 0.3) !important;
    box-shadow: 0 0 0 1rem rgba(0, 0, 0, 0.25), 0 0 3.5rem rgba(225, 29, 72, 0.12) !important;
}

.journey-agency-badge > i {
    background: linear-gradient(90deg, #e11d48, #fb7185) !important;
    box-shadow: 0 0 0.75rem rgba(225, 29, 72, 0.5) !important;
}

.journey-agency-badge > i::after {
    background: #fda4af !important;
    box-shadow: 0 0 0.7rem #fda4af !important;
}

.journey-progress > span {
    background: linear-gradient(90deg, #e11d48, #fb7185, #fda4af) !important;
    box-shadow: 0 0 0.75rem rgba(225, 29, 72, 0.6) !important;
}

.journey-panel-meta > span {
    color: #f43f5e !important;
}

.journey-panel-meta > i {
    background: rgba(225, 29, 72, 0.4) !important;
}

.journey-panel > a {
    color: #fecdd3 !important;
}

.journey-tags > span {
    border-color: rgba(255, 255, 255, 0.09) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #cbd5e1 !important;
}

/* 9. Proceso Inmersivo */
.reference-page .immersive-process {
    background: 
        radial-gradient(circle at 50% 44%, rgba(225, 29, 72, 0.06), transparent 35rem),
        linear-gradient(180deg, #0d101a, #111523 50%, #0c0f18) !important;
}

.process-energy-rail {
    background: rgba(255, 255, 255, 0.07) !important;
}

.process-energy-rail > span {
    background: linear-gradient(90deg, #e11d48, #f43f5e, #fb7185) !important;
    box-shadow: 0 0 1.2rem rgba(225, 29, 72, 0.5) !important;
}

.process-station {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(150deg, #151928, #0f131f) !important;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.35) !important;
}

.process-station .process-icon {
    border-color: rgba(225, 29, 72, 0.3) !important;
    background: linear-gradient(145deg, rgba(225, 29, 72, 0.16), #161a29) !important;
    color: #f43f5e !important;
    box-shadow: 0 0 0 1rem rgba(225, 29, 72, 0.025), 0 1rem 3rem rgba(0, 0, 0, 0.25) !important;
}

.process-station-signal::after {
    background: #e11d48 !important;
    box-shadow: 0 0 0.8rem #e11d48 !important;
}

/* 10. Integraciones & Herramientas */
.reference-page .immersive-integrations,
.integrations {
    background: 
        radial-gradient(circle at 50% 30%, rgba(225, 29, 72, 0.07), transparent 35rem),
        #0c0f18 !important;
}

.integration-control,
.integration-lane {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(150deg, #141826, #0e121d) !important;
    box-shadow: 0 2.4rem 6rem rgba(0, 0, 0, 0.3) !important;
}

.integration-lane::before {
    background: linear-gradient(180deg, transparent, #e11d48, transparent) !important;
    box-shadow: 0 0 1.4rem rgba(225, 29, 72, 0.5) !important;
}

.integration-lane:nth-child(2)::before {
    background: linear-gradient(180deg, transparent, #f43f5e, transparent) !important;
    box-shadow: 0 0 1.4rem rgba(244, 63, 94, 0.5) !important;
}

.integration-lane:nth-child(3)::before {
    background: linear-gradient(180deg, transparent, #fb7185, transparent) !important;
    box-shadow: 0 0 1.4rem rgba(251, 113, 133, 0.5) !important;
}

.integration-lane > header > span,
.integration-lane:nth-child(2) > header > span,
.integration-lane:nth-child(3) > header > span {
    color: #f43f5e !important;
}

.integration-control-copy > span {
    color: #fb7185 !important;
}

.integration-control-copy li::before {
    border: 1px solid #e11d48 !important;
    box-shadow: 0 0 0.75rem rgba(225, 29, 72, 0.5) !important;
}

.integration-tool {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.integration-tool:hover {
    border-color: rgba(225, 29, 72, 0.35) !important;
    background: rgba(225, 29, 72, 0.06) !important;
}

.integration-tool > span,
.integration-lane:nth-child(2) .integration-tool > span,
.integration-lane:nth-child(3) .integration-tool > span {
    background: linear-gradient(145deg, #1c2234, #121624) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    box-shadow: none !important;
}

.integration-tool > i {
    background: #e11d48 !important;
    box-shadow: 0 0 0.6rem #e11d48 !important;
}

.integration-core {
    background: linear-gradient(145deg, #e11d48, #be123c) !important;
    box-shadow: 0 0 0 18px rgba(225, 29, 72, 0.1), 0 0 50px rgba(225, 29, 72, 0.35) !important;
}

/* 11. Bento Grid & Dashboards */
.dash,
.feature-card,
.reference-page .feature-card,
.price-card,
.quote-card,
.blog-card,
.project-card {
    background: linear-gradient(150deg, #151928, #0e121d) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.feature-card:hover,
.project-card:hover,
.blog-card:hover {
    border-color: rgba(225, 29, 72, 0.35) !important;
}

.feature-card:after {
    background: radial-gradient(circle, rgba(225, 29, 72, 0.12), transparent 70%) !important;
}

.dash {
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.3) !important;
}

.donut {
    background: conic-gradient(#e11d48 0 28%, #475569 28% 67%, #1e293b 67%) !important;
}

.donut:before {
    background: #151928 !important;
}

.meter {
    background: #1e2436 !important;
}

.meter i {
    background: linear-gradient(90deg, #e11d48, #fb7185) !important;
}

.bars i {
    background: #e11d48 !important;
}

.line-chart path {
    stroke: #e11d48 !important;
    filter: drop-shadow(0 0 6px rgba(225, 29, 72, 0.4)) !important;
}

.tooltip {
    background: #e11d48 !important;
}

/* 12. Servicios & Proyectos */
.projects {
    background: #0c0f17 !important;
}

.project-art,
.reference-page .project-art {
    background: #141826 !important;
}

.project-art:before {
    background: repeating-radial-gradient(circle, transparent 0 15px, rgba(255, 255, 255, 0.03) 16px 17px) !important;
}

.project-art .orb {
    background: radial-gradient(circle at 40% 35%, #fb7185, #be123c 40%, #151928 72%) !important;
    box-shadow: 0 0 45px rgba(225, 29, 72, 0.3) !important;
}

.art-2 {
    background: linear-gradient(135deg, #181c2c, #0f1320) !important;
}

.art-3 {
    background: linear-gradient(135deg, #161928, #0e111d) !important;
}

.project-card small,
.reference-page .project-card small {
    color: #f43f5e !important;
}

.round-arrow {
    background: #1a1f30 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.round-arrow:hover {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
}

.tag {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #cbd5e1 !important;
}

/* 13. Clientes & Partners */
.client-showcase-section {
    background: #0a0d14 !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
}

.client-fade-left {
    background: linear-gradient(to right, #0a0d14 15%, transparent 100%) !important;
}

.client-fade-right {
    background: linear-gradient(to left, #0a0d14 15%, transparent 100%) !important;
}

.client-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.client-card:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(225, 29, 72, 0.35) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(225, 29, 72, 0.15) !important;
}

.client-stat-card {
    background: rgba(255, 255, 255, 0.025) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.client-stat-card:hover {
    border-color: rgba(225, 29, 72, 0.3) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(225, 29, 72, 0.12) !important;
}

.client-stat-icon {
    color: #f43f5e !important;
}

.agency-partners-section {
    background: #0d101a !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
}

.partners-glow-mesh {
    background: 
        radial-gradient(circle at 20% 30%, rgba(225, 29, 72, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(244, 63, 94, 0.05) 0%, transparent 50%) !important;
    filter: blur(80px) !important;
}

.partner-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--partner-theme, rgba(225, 29, 72, 0.45)) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px color-mix(in srgb, var(--partner-theme) 18%, transparent) !important;
}

.partner-badge-container {
    background: rgba(10, 14, 23, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 25px rgba(0, 0, 0, 0.35) !important;
}

.partner-card:hover .partner-badge-container {
    background: rgba(14, 18, 30, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

.partner-badge-img {
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4)) !important;
}

/* 14. FAQ */
.reference-page .faq {
    background: 
        radial-gradient(ellipse at 50% 10%, rgba(225, 29, 72, 0.06), transparent 25%),
        #0c0f17 !important;
}

.faq-item,
.reference-page .faq-item {
    background: rgba(19, 23, 36, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.faq-item button b,
.reference-page .faq-item button b {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.faq-item.open button b,
.reference-page .faq-item.open button b {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
}

/* 15. Blog */
.blog-section {
    background: #0c0f17 !important;
}

.reference-page .blog-card {
    background: linear-gradient(150deg, #151928, #0e121d) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.reference-page .blog-art {
    background: radial-gradient(circle, rgba(225, 29, 72, 0.12), transparent 50%), #131726 !important;
}

.reference-page .blog-art:before {
    background: repeating-radial-gradient(circle, transparent 0 18px, rgba(255, 255, 255, 0.03) 19px 20px) !important;
}

.reference-page .blog-art b {
    background: #e11d48 !important;
    color: #fff !important;
}

.reference-page .blog-card > small {
    color: #f43f5e !important;
}

/* 16. Final CTA */
.agency-final-cta,
.entity-final-cta {
    background: 
        radial-gradient(circle at 75% 50%, rgba(225, 29, 72, 0.1), transparent 32rem),
        linear-gradient(180deg, #0c0f18, #131726) !important;
}

.agency-final-cta::before,
.entity-final-cta::before {
    background: linear-gradient(115deg, transparent 0 58%, rgba(225, 29, 72, 0.06) 58% 58.2%, transparent 58.2%) !important;
}

.agency-cta-scene::before {
    background: radial-gradient(circle, rgba(225, 29, 72, 0.12), transparent 68%) !important;
}

.agency-cta-scene > img {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.entity-final-cta h2 em {
    color: #f43f5e !important;
}

/* 17. Footer Oficial */
.agency-footer.site-footer,
.site-footer {
    background: 
        radial-gradient(circle at 20% 0%, rgba(225, 29, 72, 0.07), transparent 28rem),
        linear-gradient(180deg, #0c0f18, #07090f) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.agency-footer .footer-glow,
.footer-glow {
    background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.35), transparent) top / 100% 1px no-repeat !important;
}

.agency-footer-pitch h2 em {
    background: linear-gradient(90deg, #ffffff 0%, #f43f5e 60%, #fda4af 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.agency-footer-contact {
    background: rgba(255, 255, 255, 0.025) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.agency-footer-contact svg {
    color: #f43f5e !important;
}

.agency-footer-disciplines {
    border-block-color: rgba(255, 255, 255, 0.08) !important;
}

.agency-footer-disciplines > a {
    border-right-color: rgba(255, 255, 255, 0.08) !important;
}

.agency-footer-disciplines > a:hover,
.agency-footer-disciplines > a:focus-visible {
    background: rgba(225, 29, 72, 0.06) !important;
}

.agency-footer-disciplines span {
    color: #f43f5e !important;
}

.agency-footer-word {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(225, 29, 72, 0.12), rgba(255, 255, 255, 0.025)) !important;
    -webkit-background-clip: text !important;
}

.agency-footer .socials a:hover,
.agency-footer .socials a:focus-visible {
    border-color: rgba(225, 29, 72, 0.5) !important;
    background: rgba(225, 29, 72, 0.1) !important;
    color: #fff !important;
}

.footer-brand .entity-brand-full-logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

/* Ambient CTA Background Video & Video Styling */
.entity-final-cta.agency-final-cta {
    position: relative;
    overflow: hidden;
}

.agency-cta-ambient-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.agency-cta-ambient-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mix-blend-mode: screen;
    filter: saturate(1.2) contrast(1.1);
}

.agency-cta-ambient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(225, 29, 72, 0.15) 0%, transparent 65%),
        linear-gradient(90deg, #07031b 0%, rgba(7, 3, 27, 0.85) 45%, rgba(7, 3, 27, 0.4) 100%),
        linear-gradient(180deg, #07031b 0%, transparent 20%, transparent 80%, #07031b 100%);
}

.agency-cta-layout {
    position: relative;
    z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
    .agency-hero-video,
    .agency-cta-ambient-video {
        display: none !important;
    }
}
