/* Mejoras de la página informativa (inicio). Se carga al final: para revertir, quitar el <link> en Views/Inicio/Index.cshtml. */
:root {
    --brand: #e5383b;
    --brand-dark: #c92a2d;
    --brand-soft: rgba(229, 56, 59, .10);
}

body {
    font-family: "Plus Jakarta Sans", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Las imágenes WebP van dentro de <picture>: que no alteren el diseño. */
picture { display: contents; }

/* ── Menú ─────────────────────────────────────────────── */
#header .nav-desktop { align-items: center; }

.nav-login { position: relative; }
.nav-login summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}
.nav-login summary::-webkit-details-marker { display: none; }
.nav-login summary i { font-size: .7rem; margin-left: .25rem; transition: transform .2s; }
.nav-login[open] summary i { transform: rotate(180deg); }
.nav-login-menu {
    position: absolute;
    right: 0;
    top: calc(100% + .6rem);
    min-width: 230px;
    padding: .4rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
    z-index: 1200;
}
.nav-login-menu a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .8rem;
    border-radius: 10px;
    font-weight: 600;
    color: #0f172a !important;
}
.nav-login-menu a:hover { background: var(--brand-soft); color: var(--brand-dark) !important; }
[data-theme="dark"] .nav-login-menu { background: #131a24; border-color: rgba(255, 255, 255, .10); }
[data-theme="dark"] .nav-login-menu a { color: #eef3ff !important; }

#header .nav-desktop a.btn-nav-cta {
    background: var(--brand);
    color: #fff;
    padding: .55rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(229, 56, 59, .28);
    white-space: nowrap;
}
#header .nav-desktop a.btn-nav-cta:hover { background: var(--brand-dark); color: #fff; }

.mobile-group-label {
    display: block;
    padding: .4rem .9rem 0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .6;
}
.mobile-nav a.mobile-cta {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff !important;
    font-weight: 700;
}

/* ── Hero: título corto y botones visibles ─────────────── */
.hero-copy h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    max-width: 14ch;
}
.hero-copy .hero-lead { font-size: 1.08rem; line-height: 1.6; max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn.btn-cta {
    background: var(--brand);
    border: 0;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: .8rem 1.5rem;
    box-shadow: 0 12px 26px rgba(229, 56, 59, .32);
    transition: transform .15s ease, background .15s ease;
}
.btn.btn-cta:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.hero-actions .btn.btn-ghost { border-radius: 999px; font-weight: 600; }

.hero-admin-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--brand);
    text-decoration: none;
}
.hero-admin-link i { font-size: .75rem; margin-left: .25rem; transition: transform .15s; }
.hero-admin-link:hover { color: var(--brand-dark); }
.hero-admin-link:hover i { transform: translateX(3px); }

/* ── Tema claro: más cálido y limpio ──────────────────── */
[data-theme="light"] #presentation {
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(229, 56, 59, .08), transparent 60%),
        linear-gradient(180deg, #fff7f5, #ffffff 70%);
}
[data-theme="light"] #presentation .hero-copy,
[data-theme="light"] #presentation .hero-copy.glass {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
[data-theme="light"] #presentation .hero-lead,
[data-theme="light"] #presentation .hero-lead strong { color: #334155 !important; }
[data-theme="light"] #presentation .hero-lead strong { color: #0f172a !important; }
[data-theme="light"] #presentation .hero-actions .btn.btn-ghost {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .18) !important;
    color: #0f172a !important;
}
[data-theme="light"] #presentation .hero-actions .btn.btn-ghost:hover { border-color: var(--brand) !important; color: var(--brand-dark) !important; }
[data-theme="light"] #presentation .hero-proof span {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    color: #334155 !important;
    opacity: 1 !important;
}
[data-theme="light"] #presentation .hero-proof span i { color: var(--brand); }
[data-theme="light"] #presentation .section-accent-bar .sa-text { color: #475569 !important; }
[data-theme="light"] #presentation h1 { color: #0f172a; }

/* ── Preguntas frecuentes ─────────────────────────────── */
.faq-section { padding: 4.5rem 0; }
.faq-list { max-width: 820px; margin: 2rem auto 0; display: grid; gap: .75rem; }
.faq-list details {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: #ffffff;
    padding: 0 1.25rem;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-list details[open] { border-color: rgba(229, 56, 59, .35); box-shadow: 0 12px 28px rgba(15, 23, 42, .08); }
.faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 0;
    font-weight: 700;
    font-size: 1.02rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #0f172a;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 0; padding: 0 0 1.2rem; line-height: 1.65; color: #475569; }
.faq-list p a { color: var(--brand); font-weight: 600; }

[data-theme="dark"] .faq-list details { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .10); }
[data-theme="dark"] .faq-list summary { color: #eef3ff; }
[data-theme="dark"] .faq-list p { color: #adb8c7; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 767.98px) {
    .hero-copy h1 { max-width: none; }
    .hero-actions .btn { flex: 1 1 100%; text-align: center; }
    .faq-section { padding: 3rem 0; }
}

/* Preguntas frecuentes: fondo y títulos según el tema */
.faq-section .modern-section-head { max-width: none; text-align: center; margin-left: auto; margin-right: auto; }
.faq-section .modern-section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.01em;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #0f172a;
}
.faq-section .modern-section-head p { color: #475569; margin-left: auto; margin-right: auto; }
[data-theme="light"] section#faq.faq-section { background: linear-gradient(180deg, #ffffff, #eef2f8) !important; }
[data-theme="dark"] .faq-section .modern-section-head h2 { color: #eef3ff; }
[data-theme="dark"] .faq-section .modern-section-head p { color: #adb8c7; }
