/* ============================================================================
   Landing pública EdE24 — estilos autónomos (mobile-first, sin frameworks).
   Paleta: azul institucional profundo + acento turquesa.
   ============================================================================ */

:root {
    --azul-900: #0d1b3e;
    --azul-800: #12285c;
    --azul-700: #1b3a86;
    --azul-500: #2f5bd6;
    --turq-500: #1fb6c9;
    --turq-400: #46d0e0;
    --ink:      #17203a;
    --muted:    #5b6478;
    --line:     #e6e9f2;
    --bg:       #ffffff;
    --bg-alt:   #f5f7fc;
    --white:    #ffffff;
    --radius:   14px;
    --shadow:   0 10px 30px rgba(13, 27, 62, .10);
    --maxw:     1120px;
    --font:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--azul-500); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------- Botones -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .95rem;
    padding: .65rem 1.2rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--turq-500); color: #04222a; border-color: var(--turq-500); }
.btn-primary:hover { background: var(--turq-400); box-shadow: 0 8px 20px rgba(31, 182, 201, .35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: transparent; color: var(--white); border-color: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* -------------------- Header / Nav -------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--azul-900);
    color: var(--white);
}
.nav-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 64px;
}
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.main-nav { display: none; margin-left: auto; gap: 1.4rem; }
.main-nav a { color: rgba(255,255,255,.85); font-weight: 500; }
.main-nav a:hover { color: var(--white); text-decoration: none; }
.nav-cta { display: none; gap: .6rem; margin-left: 1rem; }

.nav-toggle {
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; }

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: .8rem 20px 1.2rem;
    background: var(--azul-800);
    border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a { color: rgba(255,255,255,.9); padding: .6rem 0; font-weight: 500; }
.mobile-nav a:hover { text-decoration: none; }
.mobile-nav .btn { margin-top: .5rem; }

/* -------------------- Aviso discreto -------------------- */
.notice { background: #fff7e6; border-bottom: 1px solid #f2dca8; }
.notice .container { display: flex; align-items: flex-start; gap: .6rem; padding-top: .8rem; padding-bottom: .8rem; font-size: .92rem; color: #6b5410; }
.notice .ico { font-style: normal; }

/* -------------------- Hero -------------------- */
.hero {
    background: radial-gradient(1200px 500px at 80% -10%, var(--azul-700) 0%, var(--azul-900) 55%);
    color: var(--white);
    padding: 3rem 0 3.5rem;
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--turq-400);
    margin: 0 0 .6rem;
}
.hero h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 1rem; font-weight: 800; }
.hero .hl { color: var(--turq-400); }
.lead { font-size: 1.08rem; color: rgba(255,255,255,.85); margin: 0 0 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding: 0; margin: 0; }
.hero-badges li { font-size: .88rem; color: rgba(255,255,255,.8); position: relative; padding-left: 1.2rem; }
.hero-badges li::before { content: "✓"; position: absolute; left: 0; color: var(--turq-400); font-weight: 700; }
.hero-art img { margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }

/* -------------------- Secciones -------------------- */
.section { padding: 3.2rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 1.6rem; font-weight: 800; text-align: center; margin: 0 0 .6rem; color: var(--azul-900); }
.section-sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 2.2rem; font-size: 1.02rem; }

/* Problema -> solución */
.ps-grid { display: grid; gap: 1.2rem; }
.ps-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1rem; box-shadow: var(--shadow); }
.ps-col h3 { margin: 0 0 .8rem; font-size: 1.15rem; }
.ps-col ul { margin: 0; padding-left: 1.1rem; }
.ps-col li { margin-bottom: .5rem; color: #37405a; }
.ps-problem h3 { color: #b04a2f; }
.ps-problem li::marker { color: #d1836f; }
.ps-solution h3 { color: var(--azul-700); }
.ps-solution li::marker { color: var(--turq-500); }

/* Tarjetas de herramientas */
.cards-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(13,27,62,.14); }
.card-ico { font-size: 1.7rem; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: 12px; margin-bottom: .9rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--azul-900); }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Perfiles */
.perf-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.perf { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.perf-ico { font-size: 1.5rem; }
.perf h3 { margin: .4rem 0 .3rem; font-size: 1.02rem; color: var(--azul-800); }
.perf p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Login / subdominio */
.login-box { text-align: center; }
.login-url {
    display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .1rem;
    background: var(--white); border: 1.5px dashed var(--azul-500); border-radius: 12px;
    padding: .8rem 1.2rem; font-size: 1.25rem; font-family: "SFMono-Regular", Consolas, monospace;
    margin: .4rem auto 1rem; color: var(--muted); max-width: 100%; word-break: break-word;
}
.login-url strong { color: var(--azul-700); }
.login-hint { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: .96rem; }

/* CTA / formulario */
.cta-section { background: linear-gradient(180deg, var(--bg-alt), var(--white)); }
.contact-form { max-width: 720px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field .req { color: #d63b3b; font-weight: 700; }
.field input, .field textarea, .field select { font: inherit; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='%235b6478'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--azul-500); box-shadow: 0 0 0 3px rgba(47,91,214,.15); }
.field input.field-error, .field select.field-error { border-color: #d63b3b; box-shadow: 0 0 0 3px rgba(214,59,59,.12); }
.field-captcha .input-captcha { max-width: 180px; }
/* Honeypot: fuera de la vista sin usar display:none (los bots suelen ignorar posición). */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-note.ok { color: #1b7a34; font-weight: 600; }
.form-note.err { color: #d63b3b; font-weight: 600; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--azul-900); color: rgba(255,255,255,.85); padding-top: 2.4rem; }
.footer-grid { display: grid; gap: 1.4rem; padding-bottom: 1.6rem; }
.footer-brand p { margin: .5rem 0 0; color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: rgba(255,255,255,.8); font-size: .92rem; }
.footer-links a[aria-disabled="true"] { color: rgba(255,255,255,.4); cursor: not-allowed; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; }
.footer-legal .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.muted { color: rgba(255,255,255,.45); }

/* -------------------- Responsive -------------------- */
@media (min-width: 720px) {
    .ps-grid { grid-template-columns: 1fr 1fr; }
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .perf-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.6rem; }
    .section-title { font-size: 2rem; }
}

@media (min-width: 992px) {
    .nav-toggle { display: none; }
    .mobile-nav { display: none !important; }
    .main-nav { display: flex; }
    .nav-cta { display: inline-flex; }
    .hero-grid { grid-template-columns: 1.05fr .95fr; }
    .hero { padding: 4.5rem 0 5rem; }
    .cards-grid { grid-template-columns: repeat(4, 1fr); }
    .perf-grid { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------- Accesibilidad / preferencias -------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .card { transition: none; }
}
:focus-visible { outline: 3px solid var(--turq-400); outline-offset: 2px; border-radius: 4px; }
