/* ==========================================================================
   HOJA DE ESTILOS PRINCIPAL - GLOBAL, NAVEGACIÓN, SERVICIOS Y CONTACTO
   ========================================================================== */

/* Variables globales CSS */
:root {
  --bg: #08080a;
  --surface: #111115;
  --line: rgba(255, 255, 255, .11);
  --text: #f5f5f3;
  --muted: #aaa9b0;
  --orange: #ff542e;
  --cyan: #8fdbdb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(ellipse 80% 34% at 53% 0, #2e090833, transparent 63%), var(--bg);
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
  overflow-x: hidden;
}

/* Accesibilidad y Salto directo al contenido */
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  background: #fff;
  color: #000;
  padding: .75rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Header Flotante / Menú Principal */
.site-header {
  height: 72px;
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  z-index: 5;
  padding: 0 13px 0 22px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(14, 14, 17, .72);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color .3s, box-shadow .3s;
}

.site-header:hover {
  border-color: #ff542e88;
  box-shadow: 0 14px 35px #0008;
}

.brand {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -1.3px;
}

.brand span {
  color: var(--orange);
}

.brand-dot {
  font-size: 25px;
  line-height: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav>a {
  color: #b8b7bd;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  position: relative;
}

.nav>a:not(.nav-cta):after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .28s;
}

.nav>a:hover {
  color: #fff;
}

.nav>a:not(.nav-cta):hover:after {
  transform: scaleX(1);
}

.nav .nav-cta {
  color: #111;
  background: #fff;
  border-radius: 99px;
  padding: 11px 16px;
}

.nav-cta span {
  color: var(--orange);
  font-size: 16px;
}

/* Botón Hamburguesa Móvil */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Estructura Global de Secciones */
.section {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

/* Sección 01: Hero / Portada */
.hero {
  min-height: 810px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 55px;
  align-items: center;
  position: relative;
  padding: 140px 0 70px;
  isolation: isolate;
}

.grid-bg {
  position: absolute;
  inset: 0;
  opacity: .21;
  background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 54% 45%, #000, transparent);
  pointer-events: none;
  animation: grid-drift 18s linear infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: float-orb 8s ease-in-out infinite;
}

.orb-orange {
  width: 340px;
  height: 340px;
  background: #ff542e3b;
  top: 140px;
  left: -150px;
}

.orb-blue {
  width: 300px;
  height: 300px;
  background: #5cb5bf24;
  right: -70px;
  bottom: 80px;
  animation-direction: reverse;
  animation-duration: 11s;
}

.hero-scan {
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 520px;
  top: 105px;
  left: 37%;
  border-radius: 50%;
  border: 1px solid #ff705422;
  box-shadow: inset 0 0 90px #ff3d1820, 0 0 100px #ff3d1812;
  animation: spin 20s linear infinite;
}

.hero-scan:before,
.hero-scan:after {
  content: '';
  position: absolute;
  border-radius: inherit;
  inset: 40px;
  border: 1px dashed #ff785333;
}

.hero-scan:after {
  inset: 100px;
  border-style: solid;
  border-color: #ff785322;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font: 500 11px/1.3 'DM Mono', monospace;
  letter-spacing: .11em;
  color: #bbb8bb;
  margin: 0 0 23px;
}

.eyebrow i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px var(--orange);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 6.1vw, 5.75rem);
  line-height: .99;
  letter-spacing: -.075em;
  margin-bottom: 27px;
}

em {
  font-style: normal;
  background: linear-gradient(112deg, #fff 15%, #9d9da4 57%, var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead,
.section-heading>p:not(.eyebrow),
.problem-copy>p:not(.eyebrow),
.contact-lead {
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 13px;
  margin-top: 31px;
}

/* Botones genéricos */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 99px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 15px 20px;
  transition: .25s;
}

.button-primary {
  position: relative;
  overflow: hidden;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 15px 40px #ff542e33;
}

.button-primary:before {
  content: '';
  position: absolute;
  inset: -2px auto -2px -40%;
  width: 35%;
  background: #fff8;
  transform: skewX(-23deg);
  transition: left .65s;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 19px 44px #ff542e59;
}

.button-primary:hover:before {
  left: 115%;
}

.button-primary span {
  position: relative;
  transition: transform .25s;
}

.button-primary:hover span {
  transform: translateX(5px);
}

.button-quiet {
  color: #f0f0f2;
  border: 1px solid var(--line);
}

.button-quiet:hover {
  background: #18181c;
}

.trust-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  gap: 17px;
  flex-wrap: wrap;
  color: #9d9ba2;
  font: 11px 'DM Mono', monospace;
}

.trust-list li:before {
  content: '✓';
  color: var(--cyan);
  margin-right: 6px;
}

/* Ilustración simulada de navegador y tarjetas flotantes */
.browser-card {
  border: 1px solid #ffffff2b;
  border-radius: 17px;
  background: linear-gradient(140deg, #1b1b21, #101013);
  padding: 0;
  box-shadow: 0 35px 70px #0008;
  overflow: hidden;
  transform: rotate(3deg);
  transform-style: preserve-3d;
  transition: box-shadow .45s, border-color .45s;
}

.browser-card:hover {
  border-color: #ff7256aa;
  box-shadow: 0 42px 100px #000b, 0 0 55px #ff3d1826;
}

.browser-top {
  height: 37px;
  background: #16161a;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 13px;
  gap: 6px;
}

.browser-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #76757a;
}

.browser-top span:first-child {
  background: var(--orange);
}

.browser-top b {
  margin-left: 8px;
  color: #aaa;
  font: 10px 'DM Mono', monospace;
}

.browser-content {
  position: relative;
  padding: 48px 39px 33px;
  min-height: 400px;
  overflow: hidden;
  background: radial-gradient(circle at 75% 5%, #ff542e33, transparent 30%);
}

.browser-content:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, #fff1 45%, transparent 59%);
  transform: translateX(-110%);
  transition: transform .9s;
}

.browser-card:hover .browser-content:before {
  transform: translateX(110%);
}

.browser-content small,
.case-screen span {
  font: 10px 'DM Mono', monospace;
  color: #c3bfc4;
  letter-spacing: .08em;
}

.browser-content strong {
  display: block;
  font-size: clamp(1.7rem, 3.3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -.07em;
  margin: 28px 0 41px;
  position: relative;
}

.fake-chart {
  height: 92px;
  border-bottom: 1px solid #fff3;
  display: flex;
  align-items: end;
  gap: 9px;
  position: relative;
}

.fake-chart i {
  display: block;
  flex: 1;
  background: linear-gradient(#ff9a83, var(--orange));
  border-radius: 5px 5px 0 0;
  animation: chart-rise .9s cubic-bezier(.2, .8, .2, 1) both;
}

.fake-chart i:nth-child(1) { height: 18%; }
.fake-chart i:nth-child(2) { height: 38%; animation-delay: .08s; }
.fake-chart i:nth-child(3) { height: 29%; animation-delay: .16s; }
.fake-chart i:nth-child(4) { height: 57%; animation-delay: .24s; }
.fake-chart i:nth-child(5) { height: 49%; animation-delay: .32s; }
.fake-chart i:nth-child(6) { height: 73%; animation-delay: .4s; }
.fake-chart i:nth-child(7) { height: 100%; animation-delay: .48s; }

.chart-label {
  position: relative;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font: 10px 'DM Mono', monospace;
  color: #c7c7cc;
}

.chart-label b {
  color: #c6f1e9;
}

.floating-card {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #151519ee;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 16px 30px #0008;
  backdrop-filter: blur(12px);
  animation: float-card 5s ease-in-out infinite;
}

.floating-card p { margin: 0; }
.floating-card small { display: block; color: #aaa8ae; font: 9px 'DM Mono', monospace; }
.floating-card b { font-size: 11px; }
.floating-top { top: 25px; right: -30px; }
.floating-bottom { bottom: 3px; left: -32px; animation-delay: -2.1s; }
.icon-box { border-radius: 8px; background: #ff542e22; color: var(--orange); padding: 8px; }
.status-dot { width: 9px; height: 9px; background: #84e1ce; border-radius: 50%; box-shadow: 0 0 13px #84e1ce; }

/* Espaciado general de secciones */
.intro,
.problem-section,
.process-section,
.faq {
  padding: 145px 0;
}

.section-heading {
  max-width: 680px;
}

.section-heading h2,
.problem-copy h2,
.contact h2 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -.07em;
  margin-bottom: 22px;
}

/* Sección 02: Tarjetas de Servicios */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 60px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 27px 22px;
  min-height: 330px;
  background: linear-gradient(150deg, #16161a, #0e0e11);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: .3s;
}

.service-card:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--x, 50%) var(--y, 50%), #ff542e26, transparent 42%);
  opacity: 0;
  transition: opacity .35s;
}

.service-card:hover {
  border-color: #ff542e99;
  transform: translateY(-5px);
}

.service-card:hover:before { opacity: 1; }
.service-card>* { position: relative; z-index: 1; }
.service-number { font: 11px 'DM Mono'; color: #8f8d94; }
.service-icon { font-size: 31px; color: var(--orange); margin: 42px 0 22px; transition: .35s; }
.service-card:hover .service-icon { transform: scale(1.15) rotate(-8deg); text-shadow: 0 0 24px #ff542e99; }
.service-card h3 { letter-spacing: -.04em; font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 13px; line-height: 1.65; color: #a6a5ab; }
.service-card a { color: #fff; text-decoration: none; font-size: 12px; font-weight: 800; margin-top: auto; }
.service-card a span { color: var(--orange); margin-left: 5px; display: inline-block; transition: .25s; }
.service-card:hover a span { transform: translateX(6px); }
.feature-card { background: linear-gradient(155deg, #2b1915, #111114); }

/* Sección 03: Problemas / Costo de no actuar */
.problem-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  border-top: 1px solid var(--line);
}

.problems>div {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 54px 1fr;
  padding: 19px 0;
}

.problems span { color: var(--orange); font: 11px 'DM Mono'; }
.problems p { margin: 0; color: #9d9ca2; line-height: 1.6; font-size: 14px; }
.problems b { color: #f4f4f4; display: block; font-size: 16px; margin-bottom: 4px; }

/* Sección 04: Pasos del proceso */
.process-section { border-top: 1px solid var(--line); }
.process-list {
  padding: 0;
  margin: 65px 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.process-list li {
  border-top: 1px solid #b8b7bb;
  padding-top: 17px;
  transition: .35s;
}

.process-list li:hover {
  padding-left: 10px;
  border-color: var(--orange);
}

.process-list span { font: 11px 'DM Mono'; color: var(--orange); }
.process-list h3 { font-size: 19px; letter-spacing: -.04em; margin: 45px 0 10px; }
.process-list p { color: var(--muted); line-height: 1.6; font-size: 13px; }

/* Sección 06: Acordeón FAQ */
.faq {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
  transition: .25s;
}

.faq-list details:hover { border-color: #ff542eaa; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 22px; font-weight: 400; color: var(--orange); transition: .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { color: var(--muted); font-size: 14px; line-height: 1.7; padding-right: 30px; margin: 15px 0 0; }

/* Sección 07: Llamado a la acción (Contacto) */
.contact {
  width: min(1180px, calc(100% - 40px));
  margin: 30px auto 70px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 55% 75% at 50% 115%, #ff3d1844, transparent 60%), linear-gradient(150deg, #1b1515, #101014);
}

.contact>* { position: relative; }
.contact .eyebrow { margin-bottom: 18px; }
.contact h2 { margin-bottom: 18px; }
.contact-lead { margin: 0 auto 30px; }
.contact small { display: block; color: #99979c; font: 10px 'DM Mono'; margin-top: 17px; }

.contact-glow {
  position: absolute !important;
  inset: auto auto -230px 50%;
  width: 600px;
  height: 400px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ff542e33;
  filter: blur(75px);
  transition: .7s;
}

.contact:hover .contact-glow {
  transform: translateX(-50%) scale(1.2);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform .3s, box-shadow .3s;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* Footer / Pie de página */
footer {
  width: min(1180px, calc(100% - 40px));
  border-top: 1px solid var(--line);
  margin: auto;
  padding: 29px 0 42px;
  display: flex;
  align-items: center;
  gap: 25px;
  color: #85848a;
  font-size: 11px;
}

footer p:last-child { margin-left: auto; }

/* Animaciones de Entrada (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay {
  transition-delay: .16s;
}

/* Keyframes Globales */
@keyframes float-orb { 50% { transform: translate(45px, 25px) scale(1.12); } }
@keyframes float-card { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grid-drift { to { background-position: 64px 64px; } }
@keyframes chart-rise { from { transform: scaleY(.08); transform-origin: bottom; } }

/* Media Queries (Diseño adaptable) */
@media(max-width:900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 155px; gap: 55px; }
  .hero-visual { width: min(550px, 88%); margin: auto; }
  .hero-scan { left: 18%; top: 200px; width: 420px; height: 420px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; gap: 38px; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .problem-section { gap: 35px; }
}

@media(max-width:650px) {
  .site-header { top: 10px; width: calc(100% - 20px); height: 61px; }
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: absolute;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    top: 0;
    right: 0;
    width: min(330px, 87vw);
    height: 100vh;
    padding: 95px 28px 30px;
    background: #131316;
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: .3s;
  }
  .nav.is-open { transform: none; }
  .nav>a { padding: 16px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { text-align: center; border: 0; margin-top: 22px; }
  .menu-toggle[aria-expanded=true] span:not(.sr-only):first-child { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:not(.sr-only):nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded=true] span:not(.sr-only):nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .section { width: calc(100% - 32px); }
  .hero { padding-top: 132px; }
  .hero-scan { width: 290px; height: 290px; left: 15%; top: 165px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .floating-card { animation: none; }
  .floating-top { right: -20px; }
  .floating-bottom { left: -15px; }
  .browser-content { padding: 35px 25px 27px; min-height: 340px; }
  .intro, .problem-section, .process-section, .faq { padding: 94px 0; }
  .service-grid, .process-list { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
  .service-icon { margin: 23px 0 17px; }
  .problem-section { grid-template-columns: 1fr; }
  .faq { gap: 15px; }
  .contact { width: calc(100% - 32px); padding: 75px 18px; margin-bottom: 45px; }
  footer { display: block; text-align: center; }
  footer p { margin: 13px 0; }
  footer p:last-child { margin-left: 0; }
}

@media(prefers-reduced-motion:reduce) {
  *, *:before, *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .hero-scan { display: none; }
}