/* ===========================================================================
   Igneo — hoja de estilos compartida
   Paleta ascua / volcánica, tema oscuro, tipografía Unbounded + Inter.
   =========================================================================== */

:root{
  --bg: #0B0C10;
  --panel: #15171C;
  --panel-2: #1B1D23;
  --text: #F1EFEA;
  --muted: #9A9CA5;
  --ember: #FF5A1F;
  --ember-deep: #C2361A;
  --gold: #FFB347;
  --line: rgba(255,255,255,0.09);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth; background:var(--bg);}
body{
  background:transparent;              /* deja ver la capa de chispas fija */
  color:var(--text);
  font-family:'Inter', sans-serif;
  line-height:1.6;
  overflow-x:hidden;
}

/* ---------- CHISPAS EN TODO EL SITIO ----------------------------------- */
.site-embers{position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none;}
.site-embers i{
  position:absolute; bottom:-20px; left:var(--x);
  width:var(--s); height:var(--s); border-radius:50%;
  background:radial-gradient(circle, #FFCE8A, #FF5A1F 55%, transparent 75%);
  animation:rise var(--d) linear var(--delay) infinite;
  opacity:0;
}
@media (prefers-reduced-motion: reduce){ .site-embers{display:none;} }
h1,h2,h3,.wordmark{ font-family:'Unbounded', sans-serif; }
img{max-width:100%;}

/* idioma — el <script> del <head> pone .lang-en en <html> antes de pintar.
   !important porque es un interruptor de visibilidad que debe ganar SIEMPRE
   a las reglas de componente (.tier small, .btn, etc.). */
html:not(.lang-en) [data-en]{display:none !important;}
html.lang-en [data-es]{display:none !important;}

.wrap{max-width:1120px; margin:0 auto; padding:0 28px;}
.section-tight{padding:80px 0;}

/* ---------- NAV ---------------------------------------------------------- */
nav{
  position:sticky; top:0; z-index:50;
  background:rgba(11,12,16,0.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:72px; gap:20px; }
.wordmark{
  display:inline-flex; align-items:center; flex:none;
  font-weight:700; font-size:1.15rem; letter-spacing:-0.02em;
  color:var(--text); text-decoration:none;
}
.wordmark img{height:36px; width:auto; display:block;}
footer .wordmark img{height:28px;}
@media (max-width:720px){ .wordmark img{height:30px;} }
.nav-links{display:flex; align-items:center; gap:28px; flex-wrap:wrap; justify-content:center;}
.nav-links a{
  color:var(--muted); text-decoration:none; font-size:0.95rem; font-weight:500;
  transition:color .2s ease;
}
.nav-links a:hover{color:var(--text);}
.nav-links a[aria-current="page"]{color:var(--text);}
.lang-toggle{
  display:flex; border:1px solid var(--line); border-radius:100px; padding:3px;
  background:var(--panel); flex:none;
}
.lang-toggle button{
  border:none; background:none; color:var(--muted); font-family:'Inter';
  font-size:0.8rem; font-weight:600; padding:6px 14px; border-radius:100px;
  cursor:pointer; transition:all .2s ease;
}
.lang-toggle button.active{background:var(--ember); color:#fff;}
@media (max-width:720px){
  nav .wrap{flex-wrap:wrap; height:auto; padding-top:12px; padding-bottom:12px; row-gap:12px;}
  .wordmark{order:1;}
  .lang-toggle{order:2; margin-left:auto;}
  .nav-links{order:3; width:100%; justify-content:space-between; gap:8px 16px;}
  .nav-links a{font-size:0.85rem;}
}

/* ---------- BOTONES ---------------------------------------------------------- */
.btn{
  display:inline-block; padding:14px 28px; border-radius:8px;
  font-weight:600; font-size:0.95rem; text-decoration:none;
  transition:transform .15s ease, background .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover{transform:translateY(-1px);}
.btn-primary{ background:var(--ember); color:#fff; box-shadow:0 10px 34px -10px rgba(255,90,31,0.65); }
.btn-primary:hover{background:var(--ember-deep); box-shadow:0 14px 40px -8px rgba(255,90,31,0.75);}
.btn-ghost{border:1px solid var(--line); color:var(--text);}
.btn-ghost:hover{border-color:var(--ember);}

/* ---------- EYEBROW ---------------------------------------------------------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  color:var(--ember); font-weight:600; font-size:0.8rem;
  text-transform:uppercase; letter-spacing:0.14em; margin-bottom:24px;
}
.eyebrow::before{
  content:""; width:7px; height:7px; border-radius:50%; flex:none;
  background:var(--ember); box-shadow:0 0 12px 2px rgba(255,90,31,0.7);
}

/* ---------- HERO (solo portada) ------------------------------------------- */
.hero{ position:relative; padding:150px 0 130px; overflow:hidden; isolation:isolate; }
.hero-photo{
  position:absolute; inset:0; z-index:-3; pointer-events:none;
  background:
    linear-gradient(180deg, rgba(11,12,16,0.64) 0%, rgba(11,12,16,0.80) 42%, rgba(11,12,16,0.90) 72%, var(--bg) 100%),
    url("hero-famara.jpg") center 30% / cover no-repeat;
  filter:saturate(0.88) contrast(1.02);
}
.ember-glow,
.ember-core{position:absolute; left:50%; pointer-events:none; z-index:-2;}
.ember-glow{
  top:-260px; transform:translateX(-50%);
  width:min(1040px, 128vw); height:740px;
  background:
    radial-gradient(closest-side, rgba(255,138,61,0.28), transparent 72%),
    radial-gradient(closest-side, rgba(255,90,31,0.20), transparent 80%);
  filter:blur(16px);
  animation:pulse 7s ease-in-out infinite;
}
.ember-core{
  top:-150px; width:440px; height:440px;
  background:radial-gradient(closest-side, rgba(255,179,71,0.26), transparent 70%);
  filter:blur(34px);
  animation:pulse 5s ease-in-out infinite reverse;
}
@keyframes pulse{
  0%,100%{opacity:0.62; transform:translateX(-50%) scale(1);}
  50%{opacity:1; transform:translateX(-50%) scale(1.05);}
}
.embers{position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:-1;}
.embers i{
  position:absolute; bottom:-24px; left:var(--x);
  width:var(--s); height:var(--s); border-radius:50%;
  background:radial-gradient(circle, #FFCE8A, #FF5A1F 55%, transparent 75%);
  animation:rise var(--d) linear var(--delay) infinite;
  opacity:0;
}
@keyframes rise{
  0%{transform:translateY(0) scale(1); opacity:0;}
  12%{opacity:0.9;}
  75%{opacity:0.55;}
  100%{transform:translateY(-78vh) translateX(26px) scale(0.35); opacity:0;}
}
.hero::after{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:0.04; mix-blend-mode:overlay;
}
.hero::before{
  content:""; position:absolute; left:0; right:0; bottom:0; height:200px; z-index:-1;
  background:linear-gradient(transparent, var(--bg)); pointer-events:none;
}
.hero-content{position:relative; z-index:2; max-width:780px;}
.hero-content > *{
  opacity:0; transform:translateY(18px);
  animation:fadeUp .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-content > .eyebrow{animation-delay:.05s;}
.hero-content > h1{animation-delay:.15s;}
.hero-content > p{animation-delay:.28s;}
.hero-content > .cta-row{animation-delay:.4s;}
@keyframes fadeUp{to{opacity:1; transform:none;}}
.hero h1{
  font-size:clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight:900; line-height:1.04; letter-spacing:-0.025em; margin-bottom:26px;
}
@media (min-width:760px){ .hero h1{text-wrap:balance;} }
.hero h1 .accent{ color:var(--ember); text-shadow:0 0 44px rgba(255,90,31,0.45); }
.hero p{ font-size:1.18rem; color:var(--muted); max-width:580px; margin-bottom:38px; text-wrap:pretty; }
.cta-row{display:flex; gap:16px; flex-wrap:wrap;}

.scroll-cue{
  position:absolute; left:50%; bottom:28px; transform:translateX(-50%);
  width:22px; height:34px; border:1px solid var(--line); border-radius:12px;
  display:flex; justify-content:center; padding-top:7px; z-index:2;
  opacity:0; animation:fadeUp .7s ease .55s forwards;
}
.scroll-cue span{
  width:3px; height:7px; border-radius:2px; background:var(--ember);
  animation:scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot{ 0%,100%{transform:translateY(0); opacity:1;} 50%{transform:translateY(8px); opacity:.3;} }

@media (prefers-reduced-motion: reduce){
  .ember-glow, .ember-core{animation:none;}
  .embers{display:none;}
  .hero-content > *{opacity:1; transform:none; animation:none;}
  .scroll-cue{opacity:1; animation:none;}
  .scroll-cue span{animation:none;}
}

/* ---------- CABECERA DE PÁGINA INTERIOR --------------------------------- */
.page-header{
  position:relative; padding:128px 0 68px; overflow:hidden; isolation:isolate;
  border-bottom:1px solid var(--line);
}
.page-header::before{
  content:""; position:absolute; top:-320px; left:50%; transform:translateX(-50%);
  width:900px; height:620px; z-index:-1; pointer-events:none;
  background:radial-gradient(closest-side, rgba(255,90,31,0.18), transparent 70%);
  filter:blur(20px);
}
.page-header h1{
  font-size:clamp(2.1rem, 4.6vw, 3.3rem); font-weight:900;
  letter-spacing:-0.02em; line-height:1.08; margin-bottom:18px; max-width:820px;
}
.page-header p{color:var(--muted); font-size:1.12rem; max-width:640px;}

/* ---------- SECCIONES GENÉRICAS --------------------------------------------- */
section{padding:100px 0;}
.section-head{max-width:640px; margin-bottom:56px;}
.section-head .tag{color:var(--ember); font-weight:600; font-size:0.9rem; margin-bottom:14px;}
.section-head h2{font-size:clamp(1.8rem,3.5vw,2.6rem); font-weight:700; letter-spacing:-0.01em; margin-bottom:16px;}
.section-head p{color:var(--muted); font-size:1.05rem;}
.band{background:var(--panel-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.inline-link{color:var(--ember); font-weight:600; text-decoration:none;}
.inline-link:hover{text-decoration:underline;}

/* ---------- LANDING: DOS CAMINOS --------------------------------------- */
.two-paths{display:grid; grid-template-columns:1fr 1fr; gap:28px;}
.path-card{
  display:flex; flex-direction:column; padding:42px; border-radius:16px;
  background:var(--panel); border:1px solid var(--line);
  transition:border-color .2s ease, transform .2s ease;
}
.path-card:hover{border-color:var(--ember); transform:translateY(-3px);}
.path-card .eyebrow{margin-bottom:18px;}
.path-card h3{font-size:1.55rem; margin-bottom:12px;}
.path-card > p{color:var(--muted); margin-bottom:22px;}
.path-card ul{list-style:none; margin-bottom:30px; display:flex; flex-direction:column; gap:10px;}
.path-card li{color:var(--text); font-size:0.96rem; padding-left:18px; position:relative;}
.path-card li::before{content:"\203A"; position:absolute; left:0; color:var(--ember); font-weight:700;}
.path-card .go{margin-top:auto; color:var(--ember); font-weight:600; text-decoration:none;}
.path-card .go:hover{text-decoration:underline;}
@media (max-width:800px){ .two-paths{grid-template-columns:1fr;} }

/* ---------- PRODUCTOS -------------------------------------------------------- */
.product-feature{
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
  padding:48px; border-radius:16px; background:var(--panel);
  border:1px solid var(--line); margin-bottom:28px;
}
.product-feature .visual{
  position:relative; height:300px; border-radius:12px; overflow:hidden; border:1px solid var(--line);
}
.product-feature .visual img{
  width:100%; height:100%; object-fit:cover; display:block; filter:saturate(0.92) contrast(1.03);
}
.product-feature .visual::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(115deg, rgba(255,90,31,0.14), transparent 55%),
    linear-gradient(0deg, rgba(11,12,16,0.42), transparent 55%);
}
.product-feature h3{font-size:1.6rem; margin-bottom:14px;}
.status{
  display:inline-block; font-size:0.78rem; font-weight:600; color:var(--gold);
  border:1px solid rgba(255,179,71,0.3); padding:4px 12px; border-radius:100px; margin-bottom:16px;
}
.product-feature p{color:var(--muted); margin-bottom:20px;}
.product-feature .inline-link{color:var(--ember); font-weight:600; text-decoration:none;}
.product-feature .inline-link:hover{text-decoration:underline;}

.product-pair{display:grid; grid-template-columns:1fr 1fr; gap:28px;}
.product-card{ border-radius:16px; background:var(--panel); overflow:hidden; border:1px solid var(--line); }
.card-media{position:relative; height:190px; border-bottom:1px solid var(--line);}
.card-media img{ width:100%; height:100%; object-fit:cover; display:block; filter:saturate(0.9) contrast(1.03); }
.card-media::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(21,23,28,0.6), transparent 62%);
}
.card-body{padding:30px 32px 34px;}
.card-body .status{font-size:0.75rem; padding:3px 10px; margin-bottom:14px;}
.product-card h3{font-size:1.3rem; margin-bottom:10px;}
.product-card p{color:var(--muted); font-size:0.95rem;}
@media (max-width:800px){
  .product-feature{grid-template-columns:1fr; padding:32px;}
  .product-feature .visual{height:220px;}
  .product-pair{grid-template-columns:1fr;}
}

/* ---------- DISEÑO WEB: COMPARATIVA DE PLANES --------------------------- */
.pricing{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px; align-items:stretch;
  max-width:1000px; margin:0 auto;
}
.price-card{
  position:relative; display:flex; flex-direction:column;
  padding:38px 30px 34px; border:1px solid var(--line); border-radius:18px; background:var(--panel);
}
.price-card.featured{
  border-color:var(--ember);
  background:linear-gradient(180deg, rgba(255,90,31,0.10), var(--panel) 42%);
  box-shadow:0 24px 70px -24px rgba(255,90,31,0.40);
}
@media (min-width:900px){ .price-card.featured{transform:scale(1.045);} }
.price-card .badge{
  position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  background:var(--ember); color:#fff; font-size:0.7rem; font-weight:700;
  text-transform:uppercase; letter-spacing:0.09em; padding:6px 15px; border-radius:100px;
  white-space:nowrap; box-shadow:0 8px 20px -6px rgba(255,90,31,0.6);
}
.price-card .plan{font-family:'Unbounded'; font-weight:700; font-size:1.15rem; margin-bottom:6px;}
.price-card .tagline{color:var(--muted); font-size:0.9rem; margin-bottom:22px; min-height:2.8em;}
.price-card .amount{font-family:'Unbounded'; font-weight:900; font-size:2.5rem; line-height:1;}
.price-card .amount small{font-family:'Inter'; font-size:0.95rem; font-weight:500; color:var(--muted);}
.price-card .pay-note{color:var(--muted); font-size:0.82rem; margin:8px 0 26px;}
.price-card ul{list-style:none; display:flex; flex-direction:column; gap:12px; margin-bottom:30px;}
.price-card li{position:relative; padding-left:24px; font-size:0.92rem; color:var(--text); line-height:1.45;}
.price-card li::before{content:"\2713"; position:absolute; left:0; top:0; color:var(--ember); font-weight:700;}
.price-card li.inherit{color:var(--muted); font-weight:600;}
.price-card li.inherit::before{content:"\002B";}
.price-card .btn{margin-top:auto; text-align:center;}
.price-card.featured .btn-ghost{border-color:var(--ember);}
.pricing-note{max-width:1000px; margin:22px auto 0; color:var(--muted); font-size:0.85rem; text-align:center;}
@media (max-width:900px){
  .pricing{grid-template-columns:1fr; max-width:440px; gap:28px;}
  .price-card.featured{transform:none;}
  .price-card .tagline{min-height:0;}
}

/* pasos "cómo trabajamos" */
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.step{padding:32px; border:1px solid var(--line); border-radius:14px; background:var(--panel);}
.step .n{font-family:'Unbounded'; font-weight:900; color:var(--ember); font-size:1.4rem; margin-bottom:12px;}
.step h3{font-size:1.1rem; margin-bottom:8px;}
.step p{color:var(--muted); font-size:0.95rem;}
@media (max-width:800px){ .steps{grid-template-columns:1fr;} }

/* ---------- SOBRE NOSOTROS --------------------------------------------- */
.prose{max-width:680px;}
.prose p{color:var(--muted); font-size:1.08rem; margin-bottom:22px;}
.prose p strong{color:var(--text);}
.values{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:8px;}
.value{padding:30px; border:1px solid var(--line); border-radius:14px; background:var(--panel);}
.value h3{font-size:1.05rem; margin-bottom:10px;}
.value p{color:var(--muted); font-size:0.95rem;}
@media (max-width:800px){ .values{grid-template-columns:1fr;} }

/* ---------- CONTACTO --------------------------------------------------- */
.contact-box{
  background:linear-gradient(135deg, rgba(255,90,31,0.12), rgba(194,54,26,0.04));
  border:1px solid rgba(255,90,31,0.25);
  border-radius:20px; padding:56px; text-align:center;
}
.contact-box h2{font-size:clamp(1.8rem,3.5vw,2.4rem); margin-bottom:16px;}
.contact-box p{color:var(--muted); margin-bottom:32px; max-width:480px; margin-left:auto; margin-right:auto;}
.contact-detail{display:flex; gap:40px; flex-wrap:wrap; margin-top:44px;}
.contact-detail div{min-width:180px;}
.contact-detail dt{color:var(--ember); font-size:0.8rem; font-weight:600; text-transform:uppercase; letter-spacing:0.1em; margin-bottom:6px;}
.contact-detail dd{color:var(--text);}

/* ---------- CTA reutilizable ----------------------------------------------- */
.cta-panel{
  text-align:center; padding:64px 40px; border:1px solid var(--line); border-radius:20px;
  background:var(--panel-2);
}
.cta-panel h2{font-size:clamp(1.6rem,3vw,2.2rem); margin-bottom:14px;}
.cta-panel p{color:var(--muted); max-width:520px; margin:0 auto 28px;}

/* ---------- FOOTER --------------------------------------------------------- */
footer{border-top:1px solid var(--line); padding:56px 0 40px;}
.footer-top{display:flex; justify-content:space-between; flex-wrap:wrap; gap:28px; margin-bottom:34px;}
.footer-nav{display:flex; gap:24px; flex-wrap:wrap;}
.footer-nav a{color:var(--muted); text-decoration:none; font-size:0.9rem;}
.footer-nav a:hover{color:var(--text);}
.footer-meta{color:var(--muted); font-size:0.85rem;}
