/* Anira premium visual layer. Load after styles.css and landing.css. */
:root {
  --premium-ink: #071f1b;
  --premium-ink-soft: #0d2b25;
  --premium-emerald: #08745b;
  --premium-emerald-bright: #12a17b;
  --premium-mint: #8ce8c8;
  --premium-paper: #f4f8f5;
  --premium-white: #ffffff;
  --premium-line: rgba(7, 31, 27, .12);
  --premium-shadow: 0 18px 50px rgba(7, 31, 27, .10);
  --premium-ease: cubic-bezier(.2,.75,.25,1);
}

/* Shared shell and controls */
.navbar-anira {
  border-bottom-color: rgba(140,232,200,.15) !important;
  box-shadow: 0 8px 28px rgba(4,20,17,.18) !important;
}
.navbar-anira .nav-link { transition: color .2s var(--premium-ease), opacity .2s var(--premium-ease); }
.navbar-anira .nav-link:hover, .navbar-anira .nav-link:focus-visible { color: var(--premium-mint) !important; }
.btn-anira-primary, .offer-button {
  background: linear-gradient(120deg, #07513f, #08745b) !important;
  border: 1px solid rgba(140,232,200,.38) !important;
  box-shadow: 0 8px 24px rgba(8,116,91,.2) !important;
  transition: transform .22s var(--premium-ease), box-shadow .22s var(--premium-ease), filter .22s var(--premium-ease) !important;
}
.btn-anira-primary:hover, .btn-anira-primary:focus-visible, .offer-button:hover, .offer-button:focus-visible {
  filter: brightness(1.08); transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(8,116,91,.3) !important;
}
.btn-anira-secondary { transition: transform .2s var(--premium-ease), background-color .2s, border-color .2s !important; }
.btn-anira-secondary:hover, .btn-anira-secondary:focus-visible { transform: translateY(-2px); }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #13a17c !important; outline-offset: 3px;
}

/* Homepage technology hero: supplied image remains the visual source. */
.page-home .tech-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(860px, 100svh); display: flex; align-items: center;
  padding: clamp(7.5rem, 12vh, 10rem) 0 clamp(4.5rem, 8vh, 7rem);
  color: #f5fffb; background:
    radial-gradient(ellipse at 78% 48%, rgba(13,124,91,.3), transparent 40%),
    linear-gradient(130deg, #061a17 0%, #08241f 54%, #061b18 100%);
}
.page-home .tech-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(140,232,200,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(140,232,200,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}
.page-home .tech-hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .94fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.page-home .tech-copy { max-width: 680px; }
.page-home .tech-eyebrow { display: inline-flex; align-items: center; gap: .65rem; color: var(--premium-mint); font: 700 .75rem/1.4 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.page-home .tech-eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.page-home .tech-hero h1 { margin: 1.5rem 0 1.25rem; color: #f6fffb; font: 600 clamp(2.65rem, 5.1vw, 4.35rem)/1.04 Inter, sans-serif; letter-spacing: -.055em; text-wrap: balance; }
.page-home .tech-summary { max-width: 58ch; margin: 0 0 2rem; color: rgba(239,250,246,.78); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.75; }
.page-home .tech-link { color: var(--premium-mint); text-decoration-color: rgba(140,232,200,.55); text-underline-offset: .25em; }
.page-home .tech-link:hover { color: #fff; }
.page-home .tech-hero .hero-trust { color: rgba(239,250,246,.7) !important; }
.page-home .tech-art { position: relative; display: grid; place-items: center; width: min(100%, 530px); aspect-ratio: 1; margin-inline: auto; border: 1px solid rgba(140,232,200,.2); border-radius: 32px; background: radial-gradient(circle at 50% 44%, rgba(24,153,115,.24), rgba(7,31,27,.12) 61%, rgba(255,255,255,.025)); box-shadow: inset 0 1px rgba(255,255,255,.09), 0 30px 90px rgba(0,0,0,.22); }
.page-home .tech-art::before, .page-home .tech-art::after { content: ""; position: absolute; inset: 9%; border: 1px solid rgba(140,232,200,.13); border-radius: 50%; pointer-events: none; }
.page-home .tech-art::after { inset: 18%; border-style: dashed; opacity: .65; }
.page-home .tech-art img { width: 78%; height: 78%; object-fit: contain; border-radius: 24px; filter: saturate(1.06) drop-shadow(0 22px 38px rgba(0,0,0,.28)); }
.page-home .tech-orbit-labels { position: absolute; inset: 0; pointer-events: none; }
.page-home .tech-orbit-labels > * { position: absolute; padding: .55rem .8rem; border: 1px solid rgba(140,232,200,.23); border-radius: 999px; background: rgba(5,30,25,.83); color: #e7fff5; font-size: .72rem; font-weight: 600; letter-spacing: .02em; box-shadow: 0 8px 24px rgba(0,0,0,.2); backdrop-filter: blur(10px); }
.page-home .tech-orbit-labels > :nth-child(1) { top: 13%; left: -4%; }
.page-home .tech-orbit-labels > :nth-child(2) { top: 43%; right: -7%; }
.page-home .tech-orbit-labels > :nth-child(3) { bottom: 12%; left: 7%; }

/* Shared home surface: keep every rule scoped away from legal and form content. */
.page-home h1, .page-home h2, .page-home h3, .page-home h4,
.page-home .font-display { font-family: Inter, sans-serif !important; letter-spacing: -.035em; }
.page-home section[id]:not(#hero):not(#cta-final) { position: relative; }
.page-home .section-paper { background-color: #eef5f1 !important; }
.page-home .section-white { background-color: #fbfdfb !important; }
.page-home #reconocimiento { border-color: var(--premium-line) !important; }
.page-home .panel-antes, .page-home .panel-despues, .page-home .demo-panel,
.page-home .step-item, .page-home #canales-section .card,
.page-home .card-editorial, .page-home .form-piloto,
.page-home #administracion .mockup-window, .page-home .control-card-glass {
  border-color: rgba(7,31,27,.12) !important; box-shadow: 0 12px 34px rgba(7,31,27,.055);
}
.page-home .panel-despues, .page-home #canales-section .card { background: linear-gradient(145deg, #fff, #f3faf6) !important; }
.page-home .step-item { border-radius: 18px; transition: transform .24s var(--premium-ease), box-shadow .24s var(--premium-ease); }
.page-home .step-item:hover, .page-home #canales-section .card:hover,
.page-home .form-piloto:focus-within { transform: translateY(-3px); box-shadow: var(--premium-shadow); }
.page-home .step-number, .page-home .icon-box, .page-home .offer-icon {
  color: #08745b; background: linear-gradient(145deg, #e7f8f0, #d2f1e4); border: 1px solid rgba(8,116,91,.15);
}
.page-home .card-editorial { overflow: hidden; border-radius: 18px; background: #fff; transition: box-shadow .25s var(--premium-ease), transform .25s var(--premium-ease); }
.page-home #casos-uso .card-editorial:hover { transform: translateY(-4px) !important; box-shadow: var(--premium-shadow) !important; }
.page-home .card-editorial-img { background: #e9f4ee; }
.page-home .accordion-faq .accordion-item { border-color: rgba(7,31,27,.14) !important; }
.page-home #cta-final { background: radial-gradient(ellipse at 80% 0%, #104a3b, #071f1b 60%) !important; }

/* Offer pages: premium edges and icon surfaces while retaining existing copy and prices. */
.offer-page .offer-header.navbar-anira { border-bottom-color: rgba(7,31,27,.14) !important; }
.offer-page .offer-cards article, .offer-page .offer-price-card, .offer-page .offer-conversation {
  border-color: rgba(8,116,91,.2); box-shadow: 0 16px 42px rgba(7,31,27,.07);
}
.offer-page .offer-icon { border-radius: 18px; color: #08745b; background: linear-gradient(145deg,#effbf5,#d9f4e8); box-shadow: 0 8px 24px rgba(8,116,91,.12); }
.offer-page .offer-product { background: linear-gradient(180deg,#f0f6f1,#e8f0e9); }
.offer-page .offer-price-card { border-top: 3px solid #0b8b68; }
.offer-page .offer-tag { background: #e2f4eb; color: #07543f; }
.offer-page .offer-journey, .offer-page .offer-addon { border-color: rgba(8,116,91,.18); }

@media (max-width: 767.98px) {
  .page-home .tech-hero { min-height: auto; padding: 7.25rem 0 4rem; }
  .page-home .tech-hero-grid { grid-template-columns: minmax(0,1fr); gap: 2.25rem; }
  .page-home .tech-copy { max-width: none; }
  .page-home .tech-hero h1 { margin-top: 1.15rem; font-size: clamp(2.55rem, 11vw, 3rem); }
  .page-home .tech-art { width: min(88%, 390px); border-radius: 24px; }
  .page-home .tech-orbit-labels > :nth-child(1) { left: -5%; }
  .page-home .tech-orbit-labels > :nth-child(2) { right: -6%; }
  .page-home .tech-orbit-labels > * { font-size: .66rem; }
  .offer-page .offer-cards, .offer-page .offer-steps { grid-template-columns: 1fr; }
  .offer-page .offer-price-card { padding: 30px 22px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .page-home .tech-hero-grid { grid-template-columns: minmax(0,1fr) minmax(260px,.8fr); gap: 2rem; }
  .page-home .tech-hero h1 { font-size: clamp(2.65rem, 5.4vw, 3.6rem); }
}
@media (max-width: 380px) {
  .page-home .tech-art { width: 84%; }
  .page-home .tech-orbit-labels > * { padding: .42rem .58rem; font-size: .61rem; }
  .page-home .tech-orbit-labels > :nth-child(2) { right: -9%; }
}
@media (prefers-reduced-motion: reduce) {
  .navbar-anira *, .page-home *, .offer-page * { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .btn-anira-primary:hover, .btn-anira-secondary:hover, .offer-button:hover,
  .page-home .step-item:hover, .page-home #canales-section .card:hover,
  .page-home #casos-uso .card-editorial:hover { transform: none !important; }
}

/* Progressive enhancement: readable even when animation code is unavailable. */
.fade-in { opacity: 1; transform: none; }
.premium-icon { display: inline-block; width: 72px; height: 72px; flex-shrink: 0; filter: drop-shadow(0 10px 13px #0b443820); transition: transform .35s ease; }
.step-item:hover .premium-icon, article:hover > .premium-icon { transform: translateY(-4px) rotate(-4deg); }
.page-home .tech-art { border: 0; border-radius: 0; background: none; box-shadow: none; }
.page-home .tech-art img { width: 115%; max-width: none; height: auto; border-radius: 0; filter: none; mask-image: radial-gradient(ellipse, #000 38%, transparent 71%); }
.page-home .tech-art::before { inset: 0; border-color: #8ce8c81a; }
.page-home .tech-art::after { inset: -6%; border-color: #8ce8c81a; }
.tech-accent { color: #8ce8c8; }
.tech-art-caption { position: absolute; bottom: 0; left: 0; right: 0; color: #b9d8cb; font: 10px/1.5 Inter,sans-serif; text-align: center; letter-spacing: .2em; }
.page-home .tech-hero { min-height: 760px; }
.page-home .tech-hero .btn-anira-primary { background: #9df0cf !important; color: #062e22 !important; box-shadow: 0 8px 36px #78f2bc18 !important; font-weight: 600; font-size: .875rem; }
.page-home .tech-art::after { animation: orbit-line 28s linear infinite; border-style: dashed; }
@keyframes orbit-line { to { transform: rotate(360deg); } }
.motion-toggle { position: fixed; bottom: 16px; left: 16px; z-index: 1030; border: 1px solid #adc3b9; border-radius: 30px; background: #f7fbf9f2; color: #183d30; padding: 9px 14px; font: 500 11px/1.4 Inter,sans-serif; box-shadow: 0 3px 14px #102e2010; }
.motion-toggle[aria-pressed="true"] { background: #e2f5ed; }
.premium-page h1, .premium-page h2, .premium-page h3, .premium-page .font-display { font-family: Inter,sans-serif !important; letter-spacing: -.04em; }
.premium-page .card-editorial, .premium-page .channel-card, .premium-page .card { border-radius: 20px; border: 1px solid #dae7df; box-shadow: 0 12px 32px #092c1f08; }
.premium-page .section-paper { background-color: #f0f6f2; }
.premium-page .offer-hero h1 { color: #fff !important; }
.premium-page .offer-eyebrow { letter-spacing: .13em; }
:root[data-motion-reduction="reduce"] *, :root[data-motion-reduction="reduce"] *::before, :root[data-motion-reduction="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media(prefers-reduced-motion: reduce) { .tech-art::after { animation: none !important; } }
@media(max-width:767px) { .page-home .tech-hero { min-height: auto; } .page-home .tech-art { width: 80%; margin-top: 1rem; } .motion-toggle { bottom: 10px; left: 8px; font-size: 10px; padding: 8px 10px; } }
/* Three roles presented as a connected system, rather than another stock photograph. */
.tech-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-bottom: 3rem; background: #c8dcd2; border: 1px solid #c8dcd2; border-radius: 24px; overflow: hidden; }
.tech-flow article { background: linear-gradient(130deg,#fff,#f3faf6); padding: clamp(24px,3vw,42px); position: relative; }
.tech-flow article::after { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 2px; background: linear-gradient(90deg,transparent,#1a9b72,transparent); }
.tech-flow-index { display: block; margin: 24px 0 12px; color: #466456; font: 600 11px/1.4 Inter,sans-serif; letter-spacing: .16em; }
.tech-flow h3 { font-size: 1.4rem; }
.tech-flow p { font-size: .96rem; line-height: 1.75; color: #496054; margin-bottom: 0; }
.page-home .demo-panel { background: #edf5f0 !important; border: 1px solid #c7ded2 !important; border-radius: 24px !important; box-shadow: 0 24px 80px #123d2410; }
.page-home #demo-interactiva { background: radial-gradient(ellipse at 50% 60%,#e3f4e9,transparent 65%),#fbfdfb; }
.page-home .tech-orbit-labels > * { animation: label-drift 7s ease-in-out infinite alternate; }
.page-home .tech-orbit-labels > :nth-child(2) { animation-delay: -3s; }
.page-home .tech-orbit-labels > :nth-child(3) { animation-delay: -5s; }
@keyframes label-drift { from { transform: translateY(-3px); } to { transform: translateY(5px); } }
@media(max-width:991px) { .page-home .tech-orbit-labels > :nth-child(2) { right: 0; } }
@media(max-width:767px) { .tech-flow { grid-template-columns: 1fr; } .tech-flow article { padding: 28px; } .tech-flow h3 { font-size: 1.3rem; } }
@media(prefers-reduced-motion:reduce) { .page-home .tech-orbit-labels > * { animation: none !important; } }
/* Secondary heroes use the same technology language with subdued photography. */
.premium-page .hero-bg { background: #071f1b; padding-top: 100px; }
.premium-page .hero-bg .hero-bg-img { opacity: .22; filter: saturate(.45); }
.premium-page .hero-bg .hero-overlay { background: linear-gradient(120deg,#071f1bf2,#0c392ccc); }
.premium-page .hero-bg::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#92eec609 1px,transparent 1px),linear-gradient(90deg,#92eec609 1px,transparent 1px); background-size: 52px 52px; }
.premium-page .hero-label { color: #a8e8cd; background: #164e3a; border: 1px solid #35644e; }
.premium-page .hero-content { position: relative; z-index: 1; }
.premium-page .hero-bg .hero-title { font-size: clamp(2.4rem,4.8vw,4.1rem); line-height: 1.1; }
.motion-toggle { position: static; display: block; margin: 0 auto 24px; width: fit-content; z-index: auto; }
:root[data-ambient-paused="true"] .tech-art::after, :root[data-ambient-paused="true"] .tech-orbit-labels > * { animation-play-state: paused; }
@media(max-width:767px) { .premium-page .hero-bg { padding-top: 65px; } .premium-page .hero-bg .hero-content { padding-top: 24px !important; } .premium-page .hero-bg .hero-text { font-size: 1.05rem !important; line-height: 1.7; } }
.offer-channel-details { margin: 1.5rem 0; padding: 15px 18px; border: 1px solid #d0ede540; border-radius: 12px; background: #062b2140; color: #edf9f3; font-size: .9rem; }
.offer-channel-details summary { cursor: pointer; font-weight: 600; line-height: 1.6; }
.offer-channel-details .offer-hero-note { margin: 16px 0 0; font-weight: 400; }
.offer-page .offer-icon { width: 80px; height: 80px; background: none; box-shadow: none; }
.premium-icon { max-width: 100%; object-fit: contain; }
.offer-page h1 { font-weight: 600; }
@media(max-width:767px) { .premium-page.offer-page h1 { font-size: 2.65rem; } }
.premium-icon { border-radius: 20px; background: linear-gradient(145deg,#f8fffb,#dcefe4); border: 1px solid #badaca; box-shadow: inset 0 1px 0 #fff,0 8px 18px #153e2210; }
.premium-page .offer-icon { overflow: visible; }
.offer-page .offer-year-card { border-radius: 28px; border: 1px solid #b9d5c7; background: linear-gradient(145deg,#f5fcf8,#dcefe5); box-shadow: 0 30px 80px #061c2540; }
.offer-page .offer-year-card .offer-eyebrow { color: #315a46 !important; }

/* Contrast repair: override the legacy translucent-white !important badge.
   Keep explicit foreground/background pairs, independent of hero photography. */
.premium-page .hero-label {
  color: #d3f9e7 !important;
  background: #164e3a !important;
  border-color: #568d73 !important;
  backdrop-filter: none;
}
.premium-page .bg-success-subtle.text-success { color: #12543b !important; }
.premium-page .bg-danger-subtle.text-danger { color: #8b2331 !important; }
.premium-page .bg-dark .text-success { color: #8ce8c8 !important; }
.premium-page .hero-bg .text-white-50,
.premium-page .bg-dark .text-white-50,
.premium-page .section-ink .text-white-50,
footer .text-white-50 { color: #c5d7ce !important; }

/* Anira light field: always behind content, never intercepts input. */
.has-light-field { position: relative; isolation: isolate; overflow: hidden; }
.hero-light-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-light-field canvas { display: block; width: 100%; height: 100%; }
.hero-light-field::before { content: ''; position: absolute; width: 80%; height: 100%; right: -15%; top: -30%; background: radial-gradient(ellipse,#49dca724,transparent 65%); transform-origin: 65% 50%; animation: anira-aurora 16s ease-in-out infinite alternate; }
@keyframes anira-aurora { from { transform: translate(-5%,3%) rotate(-18deg); opacity: .55; } to { transform: translate(5%,16%) rotate(18deg); opacity: 1; } }
.has-light-field > .container, .has-light-field > .offer-wrap { position: relative; z-index: 2; }
.hero-light-field[data-paused="true"]::before { animation-play-state: paused; }
:root[data-motion-reduction="reduce"] .hero-light-field::before { animation: none; }
@media(prefers-reduced-motion: reduce) { .hero-light-field::before { animation: none; } }
@media(max-width:767px) { .hero-light-field { opacity: .65; } }
.has-light-field .hero-light-field { z-index: 2; }
.has-light-field > .container, .has-light-field > .offer-wrap { z-index: 3; }
