/* ==========================================================================
   Formación Fácil — hoja de estilos
   Paleta extraída del logotipo (azul #005A94) + acento cálido ámbar.
   ========================================================================== */

:root {
  --navy: #0A2F45;
  --blue-deep: #0B4C70;
  --blue: #0B6BA0;
  --blue-2: #1583BE;
  --teal: #2FB4C6;
  --amber: #F0A63B;
  --amber-deep: #D98A1F;
  --bg: #F6FAFC;
  --bg-alt: #EEF4F8;
  --surface: #FFFFFF;
  --ink: #0F2430;
  --muted: #52707D;
  --muted-2: #7C93A0;
  --border: #E2EBF0;
  --shadow-sm: 0 2px 10px rgba(10,47,69,0.06);
  --shadow-md: 0 14px 36px rgba(10,47,69,0.10);
  --shadow-lg: 0 28px 70px rgba(10,47,69,0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 16px; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--blue); background: rgba(11,107,160,0.09);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 0.96rem;
  border: none; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--amber), var(--amber-deep)); color: #fff; box-shadow: 0 10px 26px rgba(217,138,31,0.34); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(217,138,31,0.42); }
.btn-outline { background: #fff; color: var(--blue-deep); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,0.14); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.24); }
.btn-sm { padding: 10px 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,250,252,0.78); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.brand { flex: none; }
.brand img { height: 34px; width: auto; max-width: none; }
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; min-width: 0; }
.main-nav a {
  padding: 10px 12px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; white-space: nowrap;
  color: var(--navy); transition: background .2s ease, color .2s ease;
}
.main-nav a:hover, .main-nav a.active { background: rgba(11,107,160,0.1); color: var(--blue-deep); }
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; }

.demo-aviso {
  background: linear-gradient(90deg, #6B3FA0, #8C4FC7); color: #fff; text-align: center;
  padding: 10px 16px; font-size: 0.85rem; font-weight: 600;
}
.demo-aviso a { color: #fff; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 40px; position: relative; overflow: hidden;
  background:
    radial-gradient(760px 420px at 82% -10%, rgba(47,180,198,0.22), transparent 60%),
    radial-gradient(600px 500px at -5% 20%, rgba(11,107,160,0.16), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy .lede { margin-bottom: 30px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted-2); font-size: 0.86rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: '✓'; color: var(--teal); font-weight: 800; }

.hero-visual { position: relative; }
.hero-photo-frame {
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid #fff; transform: rotate(1.2deg);
  aspect-ratio: 4/3.1;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.floating-chip {
  position: absolute; background: rgba(255,255,255,0.86); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7); box-shadow: var(--shadow-md);
  border-radius: 14px; padding: 12px 16px; font-size: 0.82rem; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.floating-chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip-a { top: 8%; left: -8%; }
.chip-a .dot { background: var(--amber); }
.chip-b { bottom: 10%; right: -9%; }
.chip-b .dot { background: var(--teal); }

/* ---------- Situations checklist ---------- */
.situations { background: var(--bg-alt); }
.situations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; margin-top: 40px; }
.situation-item { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.situation-item .mark {
  flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--blue);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800;
  margin-top: 2px;
}
.situation-item p { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- Cards / services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.card {
  --mx: 50%; --my: 50%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(11,107,160,0.10), transparent 70%);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(11,107,160,0.25); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; margin-bottom: 20px; flex: none;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 14px; font-size: 0.95rem; }
.card .card-link { font-weight: 700; color: var(--blue-deep); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.card .card-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Methodology ---------- */
.method { background: linear-gradient(180deg, var(--navy), var(--blue-deep)); color: #fff; }
.method h2, .method .eyebrow { color: #fff; }
.method .eyebrow { background: rgba(255,255,255,0.14); color: #fff; }
.method .eyebrow::before { background: var(--amber); }
.method p.lede { color: rgba(255,255,255,0.75); }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; counter-reset: step; }
.method-step { position: relative; padding: 28px 22px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); }
.method-step .num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  font-weight: 800; margin-bottom: 16px; color: var(--amber);
}
.method-step h4 { color: #fff; font-size: 1.02rem; margin-bottom: 8px; }
.method-step p { color: rgba(255,255,255,0.68); font-size: 0.9rem; margin: 0; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; margin-top: 40px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(11,107,160,0.1); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.why-item .ic svg { width: 22px; height: 22px; }
.why-item h4 { margin: 0 0 4px; font-size: 1rem; }
.why-item p { margin: 0; font-size: 0.92rem; }

/* ---------- Media band (foto de textura + texto, sin rostros identificables) ---------- */
.media-band {
  position: relative; border-radius: 28px; overflow: hidden; min-height: 340px;
  display: flex; align-items: center; box-shadow: var(--shadow-lg);
}
.media-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,47,69,0.94), rgba(11,76,112,0.86) 55%, rgba(47,180,198,0.55));
}
.media-band-content { position: relative; z-index: 1; max-width: 640px; padding: 56px; color: #fff; }
.media-band-content h2 { color: #fff; }
.media-band-content p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 55%, var(--teal));
  border-radius: 28px; padding: 64px; color: #fff; text-align: center; position: relative; overflow: hidden;
  margin: 0 24px;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 15% 0%, rgba(255,255,255,0.18), transparent 60%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto 30px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 64px 0 56px;
  background: radial-gradient(700px 380px at 90% -10%, rgba(47,180,198,0.18), transparent 60%), var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

/* ---------- Service detail blocks ---------- */
.service-block { padding: 70px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 100px; }
.service-block:last-child { border-bottom: none; }
.service-block .layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: start; }
.service-block .tag { display: inline-block; font-size: 0.78rem; font-weight: 800; color: var(--blue-deep); background: rgba(11,107,160,0.09); padding: 6px 12px; border-radius: 8px; margin-bottom: 14px; letter-spacing: .03em; text-transform: uppercase; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 0.96rem; }
.check-list li::before { content: '✓'; color: var(--teal); font-weight: 800; flex: none; margin-top: 2px; }
.two-col-list { columns: 2; column-gap: 32px; }
.two-col-list li { break-inside: avoid; margin-bottom: 10px; }
.benefit-box { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; border: 1px solid var(--border); }
.benefit-box h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-deep); margin-bottom: 14px; }

/* ---------- Course grid (formación) ---------- */
.course-group { margin-top: 20px; }
.course-group h3 { color: var(--blue-deep); }
.course-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 30px; }
.course-list li { padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 0.92rem; color: var(--ink); font-weight: 600; }

/* ---------- Pillars (sobre nosotros) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.pillar { text-align: center; padding: 30px 20px; }
.pillar .n { font-size: 2.6rem; font-weight: 800; color: rgba(11,107,160,0.16); line-height: 1; margin-bottom: 8px; }
.pillar h4 { font-size: 1.02rem; }
.pillar p { font-size: 0.9rem; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-info-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; }
.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,0.72); }
.contact-info-row { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; }
.contact-info-row .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; }
.contact-info-row .ic svg { width: 18px; height: 18px; color: var(--amber); }
.contact-info-row a, .contact-info-row span { color: #fff; font-weight: 600; font-size: 0.94rem; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  font-family: inherit; font-size: 0.95rem; color: var(--ink); background: #fbfdfe;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,107,160,0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-microcopy { font-size: 0.8rem; color: var(--muted-2); margin-top: 14px; }
.form-alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; font-weight: 600; font-size: 0.92rem; }
.form-alert.ok { background: rgba(47,180,198,0.14); color: #0d6f7a; }
.form-alert.error { background: rgba(217,90,90,0.12); color: #a3372f; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-grid h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: rgba(255,255,255,0.65); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Custom cursor (desktop, mouse only) ---------- */
body.cursor-on, body.cursor-on a, body.cursor-on button, body.cursor-on input, body.cursor-on textarea, body.cursor-on select { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none !important; z-index: 9999; will-change: transform; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--amber); transition: opacity .2s ease; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px; border-radius: 50%; border: 1.5px solid rgba(11,107,160,0.55);
  transition: width .22s ease, height .22s ease, margin .22s ease, border-color .22s ease, background .22s ease;
}
.cursor-ring.hot { width: 58px; height: 58px; margin: -29px; background: rgba(11,107,160,0.08); border-color: var(--blue); }
.cursor-ring.click { width: 30px; height: 30px; margin: -15px; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Cookie banner ---------- */
#cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1000; max-width: 640px; margin: 0 auto; }
.cookie-banner-inner { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-lg); }
.cookie-banner-inner p { font-size: 0.88rem; margin-bottom: 16px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-prefs { position: fixed; inset: 0; z-index: 1001; background: rgba(10,47,69,0.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
#cookie-prefs[hidden] { display: none; }
.cookie-prefs-card { background: #fff; border-radius: 20px; padding: 30px; max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); }
.cookie-pref-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cookie-pref-row p { font-size: 0.84rem; margin: 4px 0 0; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 640px; margin-bottom: 8px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto; }
  .situations-grid, .card-grid, .why-grid, .method-steps, .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .service-block .layout { grid-template-columns: 1fr; }
  .two-col-list { columns: 1; }
  .contact-layout { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 14px; border-bottom: 1px solid var(--border); display: none; box-shadow: var(--shadow-md); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary.btn-sm { display: none; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .card-grid, .situations-grid, .why-grid, .method-steps, .gallery-grid, .course-list, .pillars { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 26px; margin: 0 16px; }
  .media-band { margin: 0 16px; min-height: 0; }
  .media-band-content { padding: 36px 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
