/* ============================================================
   GenUs Ingeniería — styles.css
   Paleta oficial: Naranja #F5A623 · Gris Carbón #595959 · Blanco
   Tipografía: Poppins (archivos locales en /assets/fonts, licencia OFL)
   ============================================================ */

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

/* ─── Variables ──────────────────────────────────────────── */
:root {
  --bg:         #ffffff;
  --bg-alt:     #f2f2f2;
  --bg-dark:    #3d3d3d;
  --ink:        #1a1a1a;
  --ink-soft:   #595959;
  --ink-mute:   #8c8c8c;
  --accent:     #f5a623;
  --accent-d:   #c07d0a;
  --accent-text:#8a5a00; /* naranja oscuro para texto sobre fondo claro (contraste AA) */
  --line:       rgba(89,89,89,0.15);
  --nav-h:      72px;
  --max-w:      1200px;
  --ease:       cubic-bezier(0.16,1,0.3,1);
  --r:          8px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ─── Container ──────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; }
p { color: var(--ink-soft); line-height: 1.75; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
  transition: all 0.25s var(--ease); cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,166,35,0.35); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.75); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--bg-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent-text); background: transparent; }
.btn-outline:hover { background: var(--accent); color: var(--ink); }
.btn-wa { background: #25d366; color: var(--ink); }
.btn-wa:hover { background: #1fbd5b; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }
.btn-lg { padding: 15px 34px; font-size: 0.95rem; }

/* ─── Section ────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.72); }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
.section-dark .section-label, .page-hero .section-label { color: var(--accent); }
.section-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--accent); }
.section-title { margin-bottom: 14px; }
.section-sub { font-size: 1rem; max-width: 56ch; color: var(--ink-soft); margin-bottom: 52px; }
.section-header { margin-bottom: 60px; }
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background 0.35s, box-shadow 0.35s;
  padding: 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav.scrolled { background: #fff; box-shadow: 0 2px 24px rgba(0,0,0,0.08); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-full { display: block; width: auto; height: 52px; flex-shrink: 0; }
.nav-logo-main { display: none; }
.nav.scrolled .nav-logo-inv { display: none; }
.nav.scrolled .nav-logo-main { display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.83rem; font-weight: 500; color: rgba(255,255,255,0.85); transition: color 0.2s; white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1180px) { .nav-links { gap: 14px; } }
@media (min-width: 901px) and (max-width: 980px) { .nav-links { gap: 10px; } }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active { color: var(--accent-text); }
.nav-cta { padding: 10px 20px; font-size: 0.82rem; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.nav.scrolled .nav-hamburger span { background: var(--ink); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: #fff; flex-direction: column;
    align-items: center; justify-content: center; gap: 36px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.15rem; color: var(--ink-soft) !important; }
  .nav-links a.active { color: var(--accent-text) !important; }
  .nav-links a.btn-primary { color: var(--ink) !important; }
  .nav-cta-mobile { display: block !important; }
}
.nav-cta-mobile { display: none; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; transition: opacity 2s ease-in-out; }
.hero-bg img.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, rgba(26,26,26,0.65) 0%, rgba(26,26,26,0.4) 55%, rgba(26,26,26,0.15) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 60px 0; }
.hero-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.hero-kicker::before { content: ''; width: 28px; height: 2px; background: var(--accent); display: block; }
.hero-title { color: #fff; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,0.4); font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.15; }
h1.hero-kicker { line-height: 1.4; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 50ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.45); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 32px; background: rgba(255,255,255,0.3);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1) translateY(0); }
  50% { opacity: 0.9; transform: scaleY(0.7) translateY(4px); }
}

/* ─── Proof bar ──────────────────────────────────────────── */
.proof-bar { background: var(--accent); padding: 22px 0; }
.proof-bar-inner { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.proof-item { display: flex; align-items: center; gap: 10px; }
.proof-item-icon { font-size: 1.3rem; }
.proof-item-text { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.proof-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.35); }
@media (max-width: 600px) { .proof-divider { display: none; } }

/* ─── Services grid ──────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 36px 28px; transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.service-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.09); transform: translateY(-4px); }
.service-card:hover::after { transform: scaleX(1); }
.service-card-icon { font-size: 2.2rem; margin-bottom: 16px; }
.service-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.service-card-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.service-card-list li {
  font-size: 0.82rem; color: var(--ink-soft); display: flex; align-items: flex-start; gap: 8px;
}
.service-card-list li::before { content: '—'; color: var(--accent); flex-shrink: 0; }

/* ─── Why us ─────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.why-item { display: flex; flex-direction: column; gap: 12px; }
.why-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: rgba(245,166,35,0.1); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem;
}
.why-title { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.why-desc { font-size: 0.83rem; color: var(--ink-soft); }

/* ─── Process steps preview ──────────────────────────────── */
.process-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
@media (max-width: 900px) { .process-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-strip { grid-template-columns: 1fr; } }
.process-step {
  padding: 32px 24px; text-align: center;
  border-right: 1px solid var(--line); position: relative;
}
.process-step:last-child { border-right: none; }
@media (max-width: 900px) { .process-step { border-right: none; border-bottom: 1px solid var(--line); } }
.process-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.process-title { font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.process-desc { font-size: 0.78rem; color: var(--ink-soft); }

/* ─── Guarantee section ──────────────────────────────────── */
.guarantee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.guarantee-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.guarantee-item:hover { background: rgba(255,255,255,0.1); }
.guarantee-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.guarantee-title { font-size: 0.92rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.guarantee-desc { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.faq-item { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 2px; }
.faq-question {
  width: 100%; text-align: left; padding: 20px 24px;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; transition: background 0.2s; cursor: pointer;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-icon {
  width: 24px; height: 24px; border: 2px solid var(--accent); border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, background 0.3s;
}
.faq-icon::after { content: '+'; font-size: 0.9rem; color: var(--accent); font-weight: 600; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); }
.faq-item.open .faq-icon::after { color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer-inner { padding: 4px 24px 20px; font-size: 0.875rem; color: var(--ink-soft); line-height: 1.75; }

/* ─── CTA section ────────────────────────────────────────── */
.cta-section { padding: 100px 0; background: var(--bg-alt); text-align: center; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ─── Floating WhatsApp ──────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200; translate: 0 calc(-1 * var(--consent-h, 0px));
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45); transition: transform 0.3s var(--ease), box-shadow 0.3s;
  cursor: pointer;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(37,211,102,0.55); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 560px) { .wa-float { bottom: 18px; right: 18px; width: 52px; height: 52px; } }

/* ─── Footer ─────────────────────────────────────────────── */
.footer { background: var(--ink); }
.footer-top {
  padding: 64px 0 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-full { display: block; width: auto; height: 52px; }
.footer-desc { font-size: 0.83rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 22px; max-width: 260px; }
.footer-slogan { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.62); letter-spacing: 0.06em; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
  color: rgba(255,255,255,0.6); transition: all 0.2s;
}
.footer-social:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
/* Colores de cada red (los mismos que en Contacto) */
.footer-social--ig, .footer-social--fb, .footer-social--in, .footer-social--wa { border: none; color: #fff; }
.footer-social--in { background: #0A66C2; }
.footer-social--ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.footer-social--fb { background: #1877F2; }
.footer-social--wa { background: #25D366; }
.footer-social--ig:hover, .footer-social--fb:hover, .footer-social--in:hover, .footer-social--wa:hover { transform: translateY(-2px); filter: brightness(1.1); }
.footer-col-title {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.83rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.footer-contact-icon { color: var(--accent); flex-shrink: 0; font-size: 1rem; margin-top: 2px; }
.footer-contact-text { font-size: 0.83rem; color: rgba(255,255,255,0.55); }
.footer-contact-text a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: rgba(255,255,255,0.62);
}
.footer-bottom a { color: rgba(255,255,255,0.62); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }
.footer-cookies { padding: 0; border: 0; background: none; color: rgba(255,255,255,0.62); font: inherit; cursor: pointer; transition: color 0.2s; }
.footer-cookies:hover { color: var(--accent); }
.footer-cookies[hidden] { display: none; }

/* ─── Aviso de cookies ─── */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 16px 24px; flex-wrap: wrap;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-dark); color: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,0.2);
}
.consent[hidden] { display: none; }
.consent-text { margin: 0; flex: 1 1 320px; max-width: 720px; font-size: 0.82rem; line-height: 1.5; color: #fff; }
.consent-text a { color: var(--accent); text-decoration: underline; }
.consent-actions { display: flex; gap: 12px; flex: 0 1 auto; }
.consent-btn { min-width: 112px; min-height: 44px; justify-content: center; padding: 10px 18px; font-size: 0.85rem; }
@media (max-width: 560px) {
  .consent { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .consent-text { flex-basis: 100%; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1 1 0; }
}
@media (max-width: 560px) { .footer-bottom { text-align: center; justify-content: center; } }

/* ─── Reveal animations ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensive override */
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* ─── Page hero (inner pages) ────────────────────────────── */
.page-hero {
  background: var(--bg-dark); color: #fff;
  padding: calc(var(--nav-h) + 64px) 0 72px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(245,166,35,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.68); max-width: 52ch; margin-top: 4px; }
.page-hero h1.section-label { line-height: 1.4; margin-bottom: 14px; }
.page-hero p.page-hero-title { color: #fff; max-width: none; margin: 0 0 12px; font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.15; }
.page-hero-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.page-hero-split h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero-media { box-shadow: 0 18px 48px rgba(0,0,0,0.35); }
.about-layout.svc-lists { align-items: start; }
@media (max-width: 820px) {
  .page-hero-split { grid-template-columns: 1fr; gap: 28px; }
  .about-layout.svc-lists { gap: 36px; }
}

/* Zonas táctiles de al menos 44 px en móvil, sin mover el diseño */
@media (max-width: 900px) {
  .breadcrumb a, .footer-bottom a, .footer-cookies, .footer-contact-text a {
    display: inline-block; min-width: 44px; padding: 13px 4px; margin: -13px -4px; text-align: center;
  }
  .nav .lang-switch a, .nav.scrolled .lang-switch a { min-width: 44px; min-height: 44px; margin: 0 -7px; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; }
  .footer-social { width: 44px; height: 44px; }
  .nav-hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: rgba(255,255,255,0.25); }

/* ─── Services page ──────────────────────────────────────── */
.services-category { margin-bottom: 72px; }
.services-category:last-child { margin-bottom: 0; }
.services-cat-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
  padding-bottom: 16px; border-bottom: 2px solid var(--accent);
}
.services-cat-icon { font-size: 2rem; }
.services-cat-title { font-size: 1.3rem; font-weight: 700; }
.services-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.service-item {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; display: flex; align-items: flex-start; gap: 12px;
  transition: all 0.25s var(--ease);
}
.service-item:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: rgba(245,166,35,0.3); }
.service-item-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }
.service-item-text { font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); }

/* ─── Process full page ──────────────────────────────────── */
.process-full { display: flex; flex-direction: column; gap: 48px; max-width: 820px; margin: 0 auto; }
.process-full-step { display: grid; grid-template-columns: 76px 1fr; gap: 28px; align-items: start; }
.process-full-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.process-full-content { padding-top: 10px; }
.process-full-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.process-full-desc { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.8; }
@media (max-width: 560px) { .process-full-step { grid-template-columns: 1fr; } .process-full-num { margin: 0 auto; } }

/* ─── Blog ───────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.blog-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); transition: all 0.3s var(--ease);
}
.blog-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 26px; }
.blog-cat { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.blog-card-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; line-height: 1.35; }
.blog-card-excerpt { font-size: 0.83rem; color: var(--ink-soft); margin-bottom: 16px; }
.blog-meta { font-size: 0.76rem; color: var(--ink-mute); }

/* ─── Contact page ───────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(245,166,35,0.1); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0;
  overflow: hidden;
}
.contact-info-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.contact-info-value { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.contact-info-value a:hover { color: var(--accent); }

/* ─── Form ───────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.form-input, .form-select, .form-textarea {
  padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 0.875rem; color: var(--ink); background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-input, .form-select, .form-textarea { min-width: 0; max-width: 100%; }
.form-row > * { min-width: 0; }
/* iPhone: los campos de fecha ignoran el ancho si conservan el estilo del sistema */
@supports (-webkit-touch-callout: none) {
  input[type="date"].form-input { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-height: 46px; }
}
/* iPhone: con letra menor de 16 px, Safari amplía la página al tocar un campo y la deja cortada a la derecha */
@media (max-width: 820px), (pointer: coarse) {
  .form-input, .form-select, .form-textarea { font-size: 16px; }
}
/* Tras un envío correcto solo queda el mensaje de confirmación (evita enviarlo dos veces) */
.contact-form.is-sent > :not(.form-success) { display: none !important; }
/* Recursos descargables */
.resources-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.resources-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
/* Adjuntos (planos, pliegos, especificaciones, bosquejos) */
.form-files { gap: 8px; }
.form-opt { font-weight: 400; color: var(--ink-soft); }
.form-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.form-file-btn { display: inline-block; align-self: flex-start; font-weight: 600; padding: 12px 18px; min-height: 44px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; cursor: pointer; }
.form-file:focus-visible + .form-file-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-files-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.form-files-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--bg-alt); border-radius: 8px; font-size: 0.82rem; overflow-wrap: anywhere; }
.form-files-remove { flex: none; min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; background: transparent; color: #a3221b; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.form-files-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #7a1a14; font-size: 0.82rem; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); padding: 4px; border-radius: 6px; }
.form-check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent-d, #c07d0a); }
.form-upload-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.form-upload-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.form-success-ref { display: block; margin-top: 6px; font-weight: 700; }
.form-success-ref:empty { display: none; }
.form-submit { align-self: flex-start; padding: 14px 34px; font-size: 0.9rem; }
.form-note { font-size: 0.78rem; color: var(--ink-soft); }
.form-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.form-success {
  display: none; padding: 18px 20px;
  background: rgba(37,211,102,0.08); border: 1px solid rgba(37,211,102,0.3);
  border-radius: 8px; color: #0a6640; font-size: 0.875rem; font-weight: 500;
  margin-top: 8px;
}

/* ─── Nosotros page ──────────────────────────────────────── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 820px) { .about-layout { grid-template-columns: 1fr; } }
.about-img { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
@media (max-width: 560px) { .about-pillars { grid-template-columns: 1fr; } }
.about-pillar {
  padding: 22px 20px; border-radius: 10px;
  background: #fff; border-left: 4px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.about-pillar-icon { font-size: 1.5rem; margin-bottom: 8px; }
.about-pillar-title { font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.about-pillar-desc { font-size: 0.78rem; color: var(--ink-soft); }

.cert-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.cert-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
  transition: all 0.2s;
}
.cert-badge:hover { border-color: var(--accent); color: var(--accent); }
.cert-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.value-card { padding: 28px 22px; text-align: center; }
.value-num { font-size: 2.8rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.value-num-text { font-size: 1.6rem; line-height: 1.75; }
.value-label { font-size: 0.88rem; font-weight: 600; color: #fff; }
.value-sub { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* ─── Privacy page ───────────────────────────────────────── */
.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.prose p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 14px; }
.prose ul { padding-left: 20px; list-style: disc; margin-bottom: 14px; }
.prose ul li { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 6px; }

/* ─── Utility ────────────────────────────────────────────── */
.accent { color: var(--accent); }
.mt-40 { margin-top: 40px; }
.mt-32 { margin-top: 32px; }
.divider { height: 1px; background: var(--line); }

/* ============================================================
   Añadidos 2026-10 (multilenguaje, chat, accesibilidad)
   ============================================================ */

/* ─── Accesibilidad ──────────────────────────────────────── */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll-line { animation: none; }
}

/* ─── Acciones del nav + selector de idioma ──────────────── */
.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.85); transition: color 0.3s; }
.lang-switch a, .lang-current { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; padding: 0 4px; }
.lang-switch a { opacity: 0.75; }
.lang-switch a:hover { color: var(--accent); opacity: 1; }
.lang-current { color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--accent); }
.nav.scrolled .lang-current { color: var(--accent-text); border-color: var(--accent-text); }
.lang-sep { opacity: 0.5; }
.nav.scrolled .lang-switch { color: var(--ink-soft); }
@media (max-width: 900px) {
  .nav-actions { gap: 10px; }
  .nav.menu-open { background: #fff; }
  .nav.menu-open .nav-logo-inv { display: none; }
  .nav.menu-open .nav-logo-main { display: block; }
  .nav.menu-open .lang-switch { color: var(--ink); }
  .nav.menu-open .nav-hamburger span { background: var(--ink); }
}

/* ─── Listas semánticas sin cambiar el aspecto ───────────── */
.process-full { list-style: none; }
.faq-heading { font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }

/* ─── Formulario ─────────────────────────────────────────── */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success-text { display: block; }
.form-success-wa { margin-top: 12px; }
.form-error {
  display: none; padding: 18px 20px; margin-top: 8px;
  background: rgba(163,34,27,0.06); border: 1px solid rgba(163,34,27,0.3);
  border-radius: 8px; color: #8a1c16; font-size: 0.875rem; font-weight: 500;
}

/* ─── Privacidad (borrador) y créditos ───────────────────── */
.draft-notice {
  padding: 16px 20px; margin-bottom: 28px; border-radius: 8px;
  background: #fff6e5; border: 1px solid var(--accent); color: var(--ink); font-size: 0.9rem; line-height: 1.6;
}
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.photo-credits { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.photo-credits p, .photo-credits li { font-size: 0.75rem; line-height: 1.6; color: var(--ink-soft); }
.photo-credits ul { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.photo-credits a { text-decoration: underline; }

/* ─── Blog: reels de Instagram ───────────────────────────── */
.reels-intro { display: flex; align-items: center; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.reels-intro-text { flex: 1; min-width: 220px; }
.reels-intro-text h2 { margin-bottom: 10px; }
.reels-intro-text p { color: var(--ink-soft); max-width: 48ch; }
.reels-note { margin-top: 8px; font-size: 0.85rem; font-weight: 600; }
.services-note { margin-top: 40px; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--bg-alt); border-radius: var(--r); font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.reels-follow-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: #fff; font-weight: 600; font-size: 0.9rem;
  padding: 12px 22px; border-radius: 8px; text-decoration: none;
  transition: opacity .2s; white-space: nowrap; flex-shrink: 0;
}
.reels-follow-btn:hover { opacity: .85; }
.reels-follow-btn svg { flex-shrink: 0; }
.reels-grid { columns: 3; column-gap: 16px; }
.reels-grid .reel-item { break-inside: avoid; margin-bottom: 16px; }
.reels-grid blockquote.instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
.reels-grid blockquote.ig-lazy {
  margin: 0; min-height: 96px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px;
}
.reels-grid blockquote.ig-lazy a { font-size: 0.85rem; font-weight: 600; color: var(--ink); text-decoration: underline; padding: 12px 16px; }
.reels-grid blockquote.ig-lazy a::before { content: '▶'; margin-right: 8px; color: var(--accent-text); }
@media (max-width: 900px) { .reels-grid { columns: 2; } }
@media (max-width: 560px) {
  .reels-grid { columns: 1; }
  .reels-intro { flex-direction: column; align-items: flex-start; }
}
.reel-title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 8px; padding-left: 2px; line-height: 1.4;
}
.reels-cta-strip { text-align: center; padding: 48px 0 0; }
.reels-cta-strip p { color: var(--ink-soft); margin-bottom: 20px; }

/* ─── Burbuja del chat (el panel vive en assets/chat/chat.css) ─── */
.chat-bubble {
  position: fixed; right: 28px; bottom: 100px; z-index: 200; translate: 0 calc(-1 * var(--consent-h, 0px));
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--bg-dark); color: #fff; border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28); transition: transform 0.3s var(--ease);
}
.chat-bubble:hover, .chat-bubble.is-open { transform: scale(1.08); }
.chat-bubble svg { width: 28px; height: 28px; fill: currentColor; }
@media (max-width: 560px) { .chat-bubble { right: 18px; bottom: 82px; width: 52px; height: 52px; } .chat-bubble svg { width: 26px; height: 26px; } }

/* ─── Intro con el logo (solo Inicio, una vez por visita) ─── */
.intro-splash { display: none; }
html.intro .intro-splash {
  display: flex; position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  align-items: center; justify-content: center; background: var(--bg-dark);
  animation: introOut 0.3s var(--ease) 0.6s forwards;
}
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.intro-inner img { width: auto; height: 180px; animation: introLogo 0.35s var(--ease) both; }
.intro-line { height: 3px; width: 140px; border-radius: 2px; background: var(--accent); transform-origin: left; animation: introLine 0.3s var(--ease) 0.2s both; }
@keyframes introLogo { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes introLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes introOut { to { transform: translateY(-100%); visibility: hidden; } }

/* ─── Revisión v10 ───────────────────────────────────────── */
.services-cat-note { margin-top: 14px; font-size: 0.82rem; color: var(--ink-soft); }
.featured-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.featured-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; font-size: 0.92rem; color: var(--ink);
}
.featured-links a:hover { border-color: var(--accent); color: var(--accent-text); }
.reels-group-title { font-size: 1.25rem; margin: 48px 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.reel-ai { font-size: 0.6875rem; font-weight: 400; color: var(--ink-soft); margin: -4px 0 8px; }
.page-updated { margin-top: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.prose-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 24px; }
.draft-banner { background: #fff6e5; border: 1px solid var(--accent); border-radius: var(--r); padding: 10px 14px; font-size: 0.85rem; margin-bottom: 24px; }
.ref-badge { position: absolute; left: 6px; bottom: 6px; z-index: 2; padding: 2px 6px; border-radius: 3px; background: rgba(26,26,26,0.62); color: #fff; font-size: 0.625rem; font-weight: 500; line-height: 1.4; pointer-events: none; } /* fondo 0.62: contraste AA también sobre una foto blanca */
.hero > .ref-badge { left: 24px; bottom: 20px; }
html.consent-open .hero > .ref-badge { translate: 0 calc(var(--nav-h) + 52px - 100svh); } /* con el aviso abierto sigue visible, bajo el menú */
@media (max-width: 560px) { .hero > .ref-badge { left: 16px; bottom: 14px; font-size: 0.625rem; } }
.footer-contact-label { color: rgba(255,255,255,0.8); font-weight: 600; }

/* ─── Solicitud guiada ───────────────────────────────────── */
.form-geo-notice { margin: 0; padding: 10px 14px; border-left: 4px solid var(--accent); border-radius: 4px; background: var(--bg-alt); color: var(--ink); font-size: 0.85rem; }
.form-geo-notice[hidden] { display: none; }
.form-step { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form-step[hidden] { display: none; }
.form-step-title { font-size: 1.1rem; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 14px; }
.form-geo { display: flex; flex-direction: column; gap: 18px; }
.form-geo[hidden] { display: none; }
.form-progress-text { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.form-progress-bar { height: 6px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; }
.form-progress-bar span { display: block; height: 100%; width: 25%; background: var(--accent); transition: width 0.3s var(--ease); }
.form-step-nav { display: flex; justify-content: space-between; gap: 12px; }
.form-step-nav[hidden] { display: none; }
.form-next[hidden] { display: none; }
.form-select:disabled { opacity: 0.6; cursor: not-allowed; }
.reel-answer { font-size: 0.86rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: 10px; }
