/* ==========================================================================
   juansaparicio.com — static rebuild (no WordPress, no plugins)
   Tokens taken from the original Elementor kit
   ========================================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins-latin-700-normal.woff2) format("woff2"); }

:root {
  --blue: #0373FE;
  --navy: #02469b;
  --cyan: #0AEEF6;
  --yellow: #F0FF00;
  --black: #000;
  --gray: #333;
  --magenta: #B1078E;
  --green: #58B107;
  --star: #FEC42D;
  --white: #fff;
  --wrap: 1140px;
  --shadow-txt: 4px 5px 0 rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
button { font: inherit; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 20px); margin: 0 auto; padding: 0 10px; }
.narrow { max-width: 1020px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.sec { margin-top: 60px; }

/* ---------- Type scale ---------- */
.h-hero { font-size: 89px; line-height: 1; font-weight: 700; letter-spacing: -1.3px; text-shadow: 3px 5px 0 rgba(0,0,0,.35); max-width: 1000px; margin: 0 auto; }
.h-sub { font-size: 54px; line-height: 1; font-weight: 400; letter-spacing: -1.5px; text-transform: uppercase; margin-top: 38px; }
.hl { background: linear-gradient(var(--yellow), var(--yellow)) 0 0 / 100% 100% no-repeat; color: var(--black); font-weight: 500; padding: 0 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.kicker { font-size: 33px; line-height: 1; font-weight: 400; letter-spacing: -.5px; text-transform: uppercase; }
.h-xl { font-size: 95px; line-height: 77px; font-weight: 600; letter-spacing: -4px; text-shadow: var(--shadow-txt); }
.h-big { font-size: 60px; line-height: 65px; font-weight: 600; letter-spacing: -4px; text-shadow: var(--shadow-txt); margin-bottom: 12px; }
.h-outline { font-size: 95px; line-height: 77px; font-weight: 600; letter-spacing: -4px; color: #fff; -webkit-text-stroke: 1px #000; text-shadow: 3px 2px 0 #000; }
.h-sec { font-size: 34px; line-height: 34px; font-weight: 600; color: #000; }
.eyebrow { font-size: 14px; line-height: 14px; letter-spacing: .2px; text-transform: uppercase; color: #4d4d4d; margin-top: 10px; }
.lead { font-size: 22px; letter-spacing: -.5px; }
.lead p + p, .body-xl p + p, .body-lg p + p, .body-md p + p { margin-top: 1em; }
.body-xl { font-size: 20px; }
.body-lg { font-size: 20px; }
.body-md { font-size: 18px; }
.body-xl ul, .body-lg ul { margin: 1em 0; padding-left: 1.3em; }
.body-xl li, .body-lg li { margin: .25em 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #000; text-decoration: none; cursor: pointer;
  border: 0; border-bottom: 3px solid #0ff; border-radius: 8px;
  font-weight: 600; font-size: 16px; line-height: 1.2; padding: 10px 15px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-cta {
  font-size: 24px; line-height: 24px; padding: 20px 40px;
  border-bottom: 4px solid var(--cyan);
  box-shadow: 0 5px 13px rgba(0,0,0,.24);
  margin: 15px 0;
}
.btn-cta:hover { box-shadow: 0 9px 18px rgba(0,0,0,.28); }
.btn-sm { font-size: 16px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; }
.header-inner { display: flex; flex-direction: column; align-items: center; padding-top: 20px; padding-bottom: 10px; }
.logo img { width: 230px; height: 140px; }
.site-nav { margin-top: 20px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; justify-content: center; }
.menu > li { position: relative; }
.menu > li > a, .sub-toggle {
  display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 15px;
  font-size: 15px; font-weight: 500; text-transform: uppercase; color: #fff; text-decoration: none;
  background: none; border: 0; cursor: pointer; transition: color .15s;
}
.menu > li > a:hover, .sub-toggle:hover, .has-sub:hover > .sub-toggle, .menu > li > a[aria-current] { color: #000; }
.sub-ind { font-size: 11px; }
.flag { width: 20px; height: 14px; border-radius: 2px; }
.sub {
  list-style: none; margin: 0; padding: 15px 0; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; box-shadow: 0 10px 30px rgba(45,45,45,.2);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 15px; font-size: 16px; color: #000; text-decoration: none; white-space: nowrap; }
.sub a:hover, .sub a[aria-current] { color: #707070; }
.nav-toggle { display: none; }

/* ---------- Shape dividers (Elementor-style) ---------- */
.shape { position: absolute; left: 50%; transform: translateX(-50%); width: calc(100% + 1.3px); fill: var(--blue); pointer-events: none; z-index: 0; }
.shape-top { top: -1px; }
.shape-bottom { bottom: -1px; }

/* ---------- Cards ---------- */
.card { background: #fff; color: #000; border-radius: 8px; padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.card-cyan { border-bottom: 4px solid var(--cyan); }
.card-black { border: 2px solid #000; border-bottom-width: 4px; }
.ibox { width: 52px; height: 52px; border-radius: 50%; background: #000; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }
.card-title { font-size: 22px; line-height: 1.35; font-weight: 600; color: #000; }
.ibox + .card-title { margin-top: 2px; }
.card-text { font-size: 16px; color: var(--gray); }
.card-text ul { margin: 0; padding-left: 1.2em; }
.card-text li + li { margin-top: .35em; }
.card-text p + p { margin-top: .8em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 320px); gap: 20px; justify-content: center; }
.grid3 .card { min-height: 318px; }
.problems .card, .services .card { gap: 0; }
.problems .card .card-title, .services .card .card-title { margin: 22px 0 8px; }

/* ---------- Home: hero ---------- */
.hero-home { padding-top: 10px; position: relative; z-index: 9; }
.hero-text { font-size: 27px; letter-spacing: -.5px; max-width: 900px; margin: 26px auto 0; }
.hero-photo { width: 450px; margin: 0 auto; }

/* ---------- Home: stop guessing ---------- */
.stop { position: relative; background: var(--navy); margin-top: -174px; padding: 290px 0 266px; }
.stop .shape { width: calc(120% + 1.3px); height: 171px; }
.stop-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; max-width: 930px; align-items: center; }
.stop-head { text-align: right; padding-right: 40px; }
.stop-head .h-xl { margin-top: 4px; }
.stop-text { padding-left: 40px; font-size: 20px; letter-spacing: -.5px; }

/* ---------- Home: problems ---------- */
.problems { position: relative; z-index: 2; margin-top: -191px; }
.problems-title { margin-bottom: 20px; }
.problems .grid3 { row-gap: 20px; }

/* ---------- Home: build ---------- */
.build .lead { margin-bottom: 20px; }
.checks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checks li { background: #fff; color: #000; border-radius: 8px; padding: 15px; min-height: 80px; display: flex; align-items: center; gap: 12px; font-size: 20px; line-height: 25px; letter-spacing: -.4px; }
.checks .ico { font-size: 26px; color: var(--green); }

/* ---------- Home: who ---------- */
.who { margin-bottom: 90px; }
.who-grid { display: grid; grid-template-columns: 457px 457px; gap: 58px; justify-content: center; align-items: center; }
.who-head { text-align: right; padding: 10px; }
.who-head .h-xl { font-size: 88px; margin-bottom: 29px; }
.who-head .kicker { font-size: 31px; line-height: 31px; }
.who-cards { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.who-cards .card { min-height: 217px; }
.who-cards .card-text { color: #000; }

/* ---------- Home: services ---------- */
.services .h-big { margin-bottom: 32px; }
.services .grid3 { row-gap: 20px; }
.card-link { text-decoration: none; justify-content: space-between; min-height: 394px !important; transition: transform .2s ease, box-shadow .2s ease; }
.card-link:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.more { align-self: flex-end; display: inline-flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 16px; text-transform: uppercase; color: #000; }
.more .ico { font-size: 21px; transition: transform .2s; }
.card-link:hover .more .ico { transform: translateX(4px); }

/* ---------- Home: process timeline ---------- */
.process { margin-bottom: 60px; }
.process-head { text-align: center; }
.process-head .kicker { margin-top: 20px; }
.timeline { list-style: none; margin: 20px 0 0; padding: 52px 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 12px; bottom: 0; width: 4px; margin-left: -2px; background: #fff; border-radius: 2px; }
.timeline::after { content: ""; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 96px 1fr; align-items: start; margin-bottom: 45px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-label { font-size: 24px; line-height: 24px; font-weight: 500; color: #fff; padding-top: 12px; }
.tl-icon { grid-column: 2; grid-row: 1; justify-self: center; width: 48px; height: 48px; border-radius: 50%; background: #000; border: 4px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; position: relative; z-index: 1; }
.tl-card { position: relative; background: #fff; color: #000; border-radius: 6px; padding: 20px; box-shadow: 0 2px 8px -2px rgba(0,0,0,.3); font-size: 18px; letter-spacing: -.5px; }
.tl-card::before { content: ""; position: absolute; top: 15px; width: 18px; height: 18px; background: #fff; transform: rotate(45deg); }
.tl-left .tl-label { grid-column: 1; grid-row: 1; text-align: right; }
.tl-left .tl-card { grid-column: 3; grid-row: 1; }
.tl-left .tl-card::before { left: -8px; }
.tl-right .tl-label { grid-column: 3; grid-row: 1; text-align: left; }
.tl-right .tl-card { grid-column: 1; grid-row: 1; }
.tl-right .tl-card::before { right: -8px; }
.process .btn-cta { margin-top: 34px; }

/* ---------- Home: testimonials ---------- */
.testimonials { background: #fff; color: #000; padding: 60px 0; }
.testimonials .h-outline { font-size: 75px; margin-bottom: 35px; }
.slider { position: relative; }
.slider-track { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 4px 24px; margin: 0 -4px; }
.slider-track::-webkit-scrollbar { display: none; }
.tcard { flex: 0 0 calc(50% - 7.5px); scroll-snap-align: start; background: #fff; border-radius: 8px; padding: 30px; border-top: 1px solid #000; border-bottom: 3px solid #000; box-shadow: 9px 11px 14px rgba(0,0,0,.1); display: flex; flex-direction: column; }
.tcard-top { display: flex; justify-content: space-between; align-items: flex-start; }
.stars { display: flex; gap: 3px; font-size: 21px; color: var(--star); padding-top: 5px; }
.quote { font-size: 52px; color: rgba(2,1,1,.09); }
.tcard blockquote { margin: 10px 0 0; font-size: 18px; flex: 1; }
.tcard figcaption { margin-top: 21px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tcard figcaption img { width: 75px; height: 75px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.tcard figcaption strong { font-size: 18px; line-height: 18px; margin-bottom: 5px; }
.tcard figcaption span { font-size: 13px; color: rgba(0,0,0,.5); }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(0,0,0,.2); cursor: pointer; transition: all .2s; }
.slider-dots button[aria-selected="true"] { background: var(--blue); width: 26px; border-radius: 5px; }

/* ---------- CTA ---------- */
.cta-sec { padding-bottom: 20px; }
.cta-sec .lead { max-width: 860px; margin: 0 auto; }

/* ---------- Service pages ---------- */
.hero-page { padding: 64px 0 60px; }
.hero-lead { font-size: 20px; max-width: 670px; margin: 20px auto 0; }
.hero-page .btn-cta { margin-top: 35px; }
.white-sec { position: relative; background: #fff; color: #000; padding: 97px 0 92px; }
.white-sec > .shape-top { height: 58px; }
.white-sec > .shape-bottom { height: 74px; transform: translateX(-50%) rotate(180deg); }
.white-sec > section, .white-sec > article { position: relative; z-index: 1; }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.why-text, .why-img { padding: 10px; }
.why-text .h-sec { line-height: 1; }
.divider { display: block; width: 95px; height: 2px; background: var(--blue); margin: 15px 0 24px; }
.why-img img { width: 100%; }
.included { margin-top: 40px; }
.included-head { max-width: 741px; margin: 0 auto 30px; text-align: center; }
.included-head .body-lg { margin-top: 10px; }
.inc-cards { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.inc-cards .card { width: 360px; gap: 0; }
.inc-cards .card-title { margin: 22px 0 14px; }
.inc-cards .card-text { color: #000; }
.ideal-faq { display: grid; grid-template-columns: 325px 1fr; gap: 40px; margin-top: 40px; }
.ideal, .faq { padding: 14px 10px 10px; }
.ideal .h-outline, .faq .h-outline { margin-bottom: 20px; }
.ilist { list-style: none; padding: 0; margin: 0; }
.ilist li { display: flex; align-items: flex-start; gap: 9px; font-size: 20px; padding: 6.5px 0; }
.ilist .ico { font-size: 17px; color: var(--magenta); margin-top: 7px; }
.accordion details { border-top: 1px solid #000; }
.accordion details:last-child { border-bottom: 1px solid #000; }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.5px; color: #1f2124; }
.accordion summary::-webkit-details-marker { display: none; }
.acc-ico { font-size: 13px; display: inline-flex; }
.acc-ico .i-minus { display: none; }
details[open] .acc-ico .i-plus { display: none; }
details[open] .acc-ico .i-minus { display: block; }
.acc-body { padding: 0 10px 10px; border-top: 1px solid #d5d8dc; font-size: 16px; letter-spacing: -.5px; }
.acc-body p { margin: 16px 0 0; }

/* ---------- Legal ---------- */
.hero-legal { padding-bottom: 60px; }
.legal { max-width: 995px; padding: 10px 20px; font-size: 16px; line-height: 1.65; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 2em 0 .8em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 1.5em 0 .6em; }
.legal p, .legal ul, .legal ol { margin: 0 0 1em; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal a { color: var(--blue); }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 14px; }
.legal th, .legal td { border: 1px solid #ccc; padding: 8px; text-align: left; vertical-align: top; }

/* ---------- About ---------- */
.about-top { margin-top: 30px; }
.about-grid { display: grid; grid-template-columns: 588px 483px; gap: 69px; justify-content: center; align-items: start; }
.about-text { padding: 10px; }
.about-text .h-xl { margin: 4px 0 25px; }
.about-text .body-xl + .kicker { margin-top: 0; }
.about-text .body-xl { margin-bottom: 25px; }
.about-card { gap: 20px; }
.about-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-claim { font-size: 16px; line-height: 16px; text-transform: uppercase; text-align: center; padding: 4px 0; }
.counter { display: flex; flex-direction: column; }
.counter-label { font-size: 19px; text-transform: none; }
.counter-num { font-size: 107px; line-height: 107px; font-weight: 600; text-align: right; }
.about-sep { display: block; height: 1px; background: #000; margin: 15px 0; }
.about-boxes .about-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-boxes .card { gap: 0; }
.about-boxes .card-title { margin: 22px 0 14px; }
.about-boxes .card-text { color: #000; font-size: 18px; }

/* ---------- Contact ---------- */
.contact-sec { margin-top: 30px; margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: 588px 482px; gap: 70px; justify-content: center; align-items: start; }
.contact-text { padding: 10px; }
.contact-text .h-xl { margin-top: 4px; }
.contact-text .body-md { margin-top: 25px; }
.msf { padding: 10px; }
.msf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.msf label { display: block; font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.msf .req { font-weight: 400; opacity: .85; }
.msf input[type="text"], .msf input[type="email"], .msf select, .msf textarea {
  display: block; width: 100%; margin-top: 6px; background: #fff; color: #000; border: 2px solid transparent; border-radius: 4px;
  padding: 12px; font: 400 16px/1.4 "Poppins", sans-serif; min-height: 48px;
}
.msf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.msf textarea { resize: vertical; min-height: 140px; }
.msf input:focus, .msf select:focus, .msf textarea:focus { outline: none; border-color: var(--cyan); }
.msf .invalid { border-color: #ff5a5a !important; }
.msf .err { display: block; font-size: 13px; font-weight: 500; color: #fff; background: #d62c2c; border-radius: 4px; padding: 2px 8px; margin-top: 6px; width: fit-content; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.msf-legend { font-size: 16px; font-weight: 600; margin-bottom: 12px; padding: 0; }
.checks-list { display: grid; gap: 10px; margin-bottom: 16px; }
.msf label.chk { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 500; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.35); border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: all .15s; }
.msf label.chk:hover { background: rgba(255,255,255,.18); }
.msf label.chk:has(input:checked) { background: #fff; color: #000; border-color: #fff; }
.chk input { width: 20px; height: 20px; accent-color: #000; flex: none; margin: 0; }
.msf-intro { font-size: 16px; margin-bottom: 16px; }
.msf-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.msf-nav [data-next]:only-child { margin-left: auto; }
.btn-submit { width: 100%; font-size: 18px; padding: 14px 12px; border-radius: 4px; border-bottom: 4px solid var(--cyan); margin-top: 4px; }
.btn-submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.msf-consent { font-size: 13px; margin: 12px 0 16px; opacity: .95; }
.msf-consent a { color: #fff; }
.msf-progress { display: flex; gap: 8px; margin-bottom: 20px; }
.msf-progress span { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); transition: background .2s; }
.msf-progress span.on { background: var(--cyan); }
.msf-status { font-weight: 500; margin-top: 8px; }
.msf-status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Thank you / 404 ---------- */
.thanks { margin: 40px 0 60px; }
.thanks .body-xl { font-size: 27px; letter-spacing: -.5px; }

/* ---------- Footer ---------- */
.site-footer { padding: 90px 0 80px; text-align: center; }
.f-title { font-size: 20px; line-height: 20px; font-weight: 500; }
.f-social { display: flex; justify-content: center; gap: 20px; padding: 10px; margin: 20px 0; }
.sq-btn { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 68px; padding: 12px; background: #fff; color: #000; border-radius: 8px; border-bottom: 4px solid #000; font-size: 40px; transition: transform .15s; }
.sq-btn:hover { transform: translateY(-3px); }
.f-copy { font-size: 16px; line-height: 16px; }
.f-legal { margin-top: 20px; font-size: 16px; }
.f-legal a { color: #fff; text-decoration: none; }
.f-legal a:hover { text-decoration: underline; }

/* ==========================================================================
   Motion
   Solo actúa con <html class="anim"> (lo pone base.njk si no hay «reducir movimiento»).
   Aparición al hacer scroll: js/site.js añade .in al entrar en pantalla y .done al terminar
   (con .done vuelven las transiciones propias de cada componente, p. ej. el hover).
   La lista de selectores está duplicada en REVEAL de js/site.js: mantenerlas iguales.
   ========================================================================== */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes rise-photo { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes hl-in { from { background-size: 0% 100%; color: #fff; } }

/* Hero: entrada escalonada al cargar */
.anim .hero :is(.h-hero, .h-xl, .h-sub, .hero-text, .hero-lead, .btn-cta) { animation: rise .8s var(--ease-out) backwards; }
.anim .hero .h-sub { animation-delay: .12s; }
.anim .hero :is(.hero-text, .hero-lead) { animation-delay: .24s; }
.anim .hero .btn-cta { animation-delay: .36s; }
.anim .hero-photo { animation: rise-photo 1s .2s var(--ease-out) backwards; }
.anim .hero .hl { animation: hl-in .8s .6s cubic-bezier(.65, 0, .35, 1) backwards; }

/* Aparición al hacer scroll */
.anim :is(.stop-head, .stop-text, .problems-title, .grid3 > .card, .build .narrow, .checks li, .who-head, .who-cards .card, .services .h-big, .process-head, .process > .wrap > .center, .testimonials .h-outline, .slider, .cta-sec .wrap > *, .why-text, .why-img, .included-head, .inc-cards .card, .ideal, .faq, .about-text > *, .about-card, .about-boxes .card, .contact-text, .msf, .thanks .wrap):not(.in) { opacity: 0; transform: translateY(28px); }
.anim :is(.stop-head, .who-head):not(.in) { transform: translateX(-32px); }
.anim :is(.stop-text, .why-img, .about-card):not(.in) { transform: translateX(32px); }
.anim :is(.stop-head, .stop-text, .problems-title, .grid3 > .card, .build .narrow, .checks li, .who-head, .who-cards .card, .services .h-big, .process-head, .process > .wrap > .center, .testimonials .h-outline, .slider, .cta-sec .wrap > *, .why-text, .why-img, .included-head, .inc-cards .card, .ideal, .faq, .about-text > *, .about-card, .about-boxes .card, .contact-text, .msf, .thanks .wrap):not(.done) {
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0s);
}

/* Timeline: la línea se dibuja con el scroll (--tl lo calcula site.js) y cada paso entra desde su lado */
.anim .timeline::before { transform: scaleY(var(--tl, 0)); transform-origin: top; }
.anim .tl-item:not(.done) > * { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.anim .tl-item:not(.done) .tl-icon { transition-delay: .1s; transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.anim .tl-item:not(.done) .tl-card { transition-delay: .2s; }
.anim .tl-item:not(.in) > * { opacity: 0; }
.anim .tl-item:not(.in) .tl-icon { transform: scale(.3); }
.anim .tl-left:not(.in) .tl-label, .anim .tl-right:not(.in) .tl-card { transform: translateX(-28px); }
.anim .tl-left:not(.in) .tl-card, .anim .tl-right:not(.in) .tl-label { transform: translateX(28px); }

/* Detalles que acompañan a la aparición */
.anim .why-text:not(.done) .divider { transition: transform .6s .3s var(--ease-out); }
.anim .why-text:not(.in) .divider { transform: scaleX(0); }
.divider { transform-origin: left; }
.anim .slider:not(.done) .stars .ico { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.anim .slider:not(.in) .stars .ico { transform: scale(0); }
.anim .slider .stars .ico:nth-child(2) { transition-delay: .38s; }
.anim .slider .stars .ico:nth-child(3) { transition-delay: .46s; }
.anim .slider .stars .ico:nth-child(4) { transition-delay: .54s; }
.anim .slider .stars .ico:nth-child(5) { transition-delay: .62s; }
.anim .slider .stars .ico:nth-child(1) { transition-delay: .3s; }

/* Hover: tarjetas que se elevan, icono que gira, brillo en el botón principal */
:is(.grid3, .who-cards, .inc-cards, .about-two) > .card, .checks li { transition: transform .25s ease, box-shadow .25s ease; }
:is(.grid3, .who-cards, .inc-cards, .about-two) > .card:hover, .checks li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.ibox { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.card:hover .ibox { transform: scale(1.08) rotate(-8deg); }
.btn-cta { position: relative; overflow: hidden; isolation: isolate; }
.btn-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(10,238,246,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn-cta:hover::after { transform: translateX(120%); }

/* FAQ: apertura suave (navegadores con ::details-content; el resto abre como siempre) */
.accordion details { interpolate-size: allow-keywords; }
.accordion details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.accordion details[open]::details-content { block-size: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .grid3 { grid-template-columns: repeat(3, minmax(0, 320px)); }
  .about-grid, .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; }
  .who-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 1024px) {
  /* header → hamburger */
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 44px; height: 38px; margin-top: 14px; padding: 0 11px; background: #fff; border: 0; border-radius: 6px; cursor: pointer; }
  .nav-toggle span { display: block; height: 2px; background: #000; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { display: none; width: 100%; max-width: 480px; margin-top: 14px; background: #f7f7f7; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.2); overflow: hidden; }
  .site-nav.open { display: block; }
  .menu { flex-direction: column; }
  .menu > li > a, .sub-toggle { width: 100%; color: #000; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,.08); height: 52px; }
  .menu > li > a:hover, .sub-toggle:hover, .has-sub:hover > .sub-toggle { color: var(--blue); }
  .menu > li > a.lang { justify-content: flex-start; }
  .sub { position: static; box-shadow: none; background: #fff; padding: 0; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.open > .sub { display: block; }
  .sub a { padding: 12px 24px; white-space: normal; }

  .h-hero { font-size: 72px; line-height: 1; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 360px)); }
  .stop-head .h-xl { font-size: 80px; }
  .why, .ideal-faq { grid-template-columns: 1fr; }
  .ideal-faq { gap: 10px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
  .who-grid { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
  .who-head { text-align: center; }
}

@media (max-width: 767px) {
  .wrap { padding: 0 15px; }
  .sec { margin-top: 50px; }
  .h-hero { font-size: 50px; line-height: 50px; }
  .h-sub { font-size: 30px; line-height: 30px; margin-top: 24px; }
  .kicker { font-size: 27px; line-height: 27px; }
  .h-xl, .who-head .h-xl, .stop-head .h-xl { font-size: 38px; line-height: 52px; letter-spacing: -1.2px; }
  .h-big { font-size: 38px; line-height: 52px; letter-spacing: -1.2px; }
  .h-outline, .testimonials .h-outline { font-size: 45px; line-height: 52px; letter-spacing: -1.2px; }
  .h-sec { font-size: 30px; line-height: 34px; }
  .hero-text, .lead { font-size: 20px; }
  .btn-cta { font-size: 18px; line-height: 22px; padding: 18px 24px; }
  .hero-photo { width: 320px; }

  .stop { margin-top: -120px; padding: 170px 0 190px; }
  .stop .shape { height: 90px; }
  .stop-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .stop-head, .stop-text { text-align: center; padding: 0; }
  .problems { margin-top: -110px; }
  .problems-title { font-size: 27px; }
  .grid3 { grid-template-columns: 1fr; }
  .grid3 .card, .card-link { min-height: 0 !important; }
  .checks { grid-template-columns: 1fr; }
  .checks li { font-size: 18px; }
  .who-head .kicker { font-size: 27px; line-height: 27px; }

  .timeline { padding: 30px 0 20px; }
  .timeline::before, .timeline::after { left: 24px; }
  .tl-item { grid-template-columns: 48px 1fr; column-gap: 16px; margin-bottom: 30px; }
  .tl-icon { grid-column: 1 !important; grid-row: 1 / span 2 !important; }
  .tl-label, .tl-left .tl-label, .tl-right .tl-label { grid-column: 2; grid-row: 1; text-align: left; font-size: 20px; line-height: 24px; padding: 10px 0 10px; }
  .tl-card, .tl-left .tl-card, .tl-right .tl-card { grid-column: 2; grid-row: 2; font-size: 16px; }
  .tl-card::before { display: none; }

  .tcard { flex-basis: 100%; padding: 24px; }
  .tcard blockquote { font-size: 16px; }

  .hero-page { padding: 40px 0 50px; }
  .white-sec { padding: 60px 0 70px; }
  .white-sec > .shape-top { height: 30px; }
  .white-sec > .shape-bottom { height: 40px; }
  .inc-cards .card { width: 100%; }
  .body-xl, .body-lg { font-size: 18px; }
  .about-card { padding: 20px; }
  .counter-num { font-size: 80px; line-height: 84px; }
  .about-boxes .about-two { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .site-footer { padding: 60px 0 50px; }
  .f-legal { font-size: 14px; }
  .thanks .body-xl { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
