
:root {
    --celex-guinda: #6b1524;
    --celex-guinda-2: #8a1d32;
    --celex-dorado: #b9a46a;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #f6f7fb;
    --panel: #ffffff;
    --teal: #0f766e;
    --blue: #2563eb;
    --radius: 8px;
}

* { letter-spacing: 0; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink);
    background: var(--soft);
    min-width: 320px;
}
a { text-decoration: none; }

.public-site { display: flex; flex-direction: column; min-height: 100svh; }
.public-site main { flex: 1; }
.public-site p { overflow-wrap: break-word; }
.public-site a, .public-site button, .public-site summary { -webkit-tap-highlight-color: transparent; }
.public-site :focus-visible { outline: 3px solid #237cce; outline-offset: 5px; }
.public-skip { position: fixed; top: 8px; left: 8px; z-index: 1100; padding: 12px 20px; background: white; color: #6b1524; transform: translateY(-150%); }
.public-skip:focus { transform: none; }
.nav-link.active { text-decoration: underline; text-underline-offset: 7px; }
.hero-actions { align-items: stretch; }
.hero-entry { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 8px; border: 1px solid white; min-height: 86px; transition: transform .18s ease, background-color .18s ease; }
.hero-entry > i:first-child { font-size: 1.65rem; }
.hero-entry > i:last-child { margin-left: auto; }
.hero-entry span { min-width: 0; }
.hero-entry strong, .hero-entry small { display: block; }
.hero-entry strong { font-size: 1.15rem; }
.hero-entry small { font-size: .8rem; margin-top: 5px; }
.hero-entry--new { color: #6b1524; background: white; }
.hero-entry--new:hover { color: #54101c; background: #fff2f5; transform: translateY(-3px); }
.hero-entry--returning { color: white; background: rgba(35, 13, 23, .48); border-color: #d8bfc6; }
.hero-entry--returning:hover { color: white; background: #6b1524; transform: translateY(-3px); }
.hero-calendar { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; color: white; font-weight: 700; }
.hero-calendar:hover { color: white; text-decoration: underline; text-underline-offset: 5px; }
.hero-account-note { font-size: .85rem; margin: 18px 0 0; color: #fff0f5; }
.identity-band { margin-top: 42px; padding: 30px 0; background: #edf8f6; border-block: 1px solid #d3e9e4; }
.identity-band__inner { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 28px; }
.identity-band h2 { font-size: 1.25rem; font-weight: 800; margin: 4px 0 0; }
.identity-band p { font-size: .9rem; color: #375c55; margin: 0; line-height: 1.7; }
.text-action { color: #6b1524; font-weight: 800; display: inline-flex; align-items: center; gap: 9px; }
.text-action:hover { color: #54101c; text-decoration: underline; text-underline-offset: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: #4d596d; font-size: .9rem; font-weight: 700; margin-bottom: 28px; }
.back-link:hover { color: #6b1524; }
.welcome-intro { padding: 34px 0 44px; background: #fff5f7; border-bottom: 1px solid #edd8de; }
.welcome-intro h1 { font-size: 3.2rem; font-weight: 800; color: #57172a; margin: 12px 0 18px; }
.welcome-lead { font-size: 1.2rem; max-width: 800px; color: #4e4050; line-height: 1.7; }
.welcome-facts { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 28px; }
.welcome-facts span { display: inline-flex; gap: 9px; align-items: center; flex-wrap: wrap; color: #651d33; font-size: .92rem; }
.welcome-facts i { color: #147566; font-size: 1.2rem; }
.welcome-two-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.welcome-two-columns h2, .welcome-finish h2 { font-size: 2.1rem; font-weight: 800; line-height: 1.2; margin: 12px 0 20px; }
.welcome-two-columns p, .welcome-finish p { color: #4c5869; line-height: 1.8; margin: 0; }
.welcome-identity { padding: 54px 0; background: white; }
.identity-checks > div { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid #e2e8ed; }
.identity-checks > div:first-child { padding-top: 0; }
.identity-checks > div:last-child { border: 0; padding-bottom: 0; }
.identity-checks i { font-size: 1.5rem; color: #0f766e; }
.identity-checks strong { display: block; color: #172b3c; margin-bottom: 4px; }
.welcome-process { background: #f6f9fc; }
.welcome-process .section-lead { max-width: 850px; }
.welcome-steps { list-style: none; margin: 36px 0 0; padding: 0; }
.welcome-steps > li { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; padding: 30px 0; border-top: 1px solid #d4dfe7; }
.welcome-step-heading { display: flex; align-items: flex-start; gap: 18px; }
.step-number { color: #176f77; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.welcome-steps h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.5; margin: 0; }
.welcome-steps p { color: #435367; line-height: 1.75; margin-bottom: 12px; }
.welcome-steps p:last-child { margin-bottom: 0; }
.welcome-steps strong { color: #172b3c; }
.step-note { background: #e9f3fa; padding: 12px 16px; border-left: 3px solid #2b78a6; font-size: .9rem; }
.step-note i { margin-right: 6px; }
.welcome-detail { margin-top: 20px; }
.welcome-detail summary { font-weight: 700; color: #6b1524; padding: 10px 0; }
.welcome-detail p { padding: 8px 0; }
.welcome-essentials { padding: 54px 0; background: white; }
.welcome-essentials .text-action { margin-top: 22px; }
.welcome-faq details { border-bottom: 1px solid #d9e3ea; }
.welcome-faq summary { padding: 20px 0; font-weight: 800; color: #263b4a; }
.welcome-faq details:first-child summary { padding-top: 0; }
.welcome-faq details[open] summary { color: #6b1524; }
.welcome-faq details > div { padding-bottom: 20px; }
.welcome-faq p + p { margin-top: 14px; }
.welcome-finish { background: #edf8f6; border-top: 1px solid #d5e8e2; padding: 42px 0; }
.welcome-finish__inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.welcome-finish h2 { margin: 8px 0 12px; }
.welcome-finish p { max-width: 700px; }
.welcome-finish__actions { display: grid; justify-items: center; gap: 18px; }
.welcome-finish__actions .btn { padding: 17px 22px; }
.welcome-finish__actions .text-action { font-size: .85rem; }
.public-page-intro { padding-top: 36px; padding-bottom: 38px; }
.public-page-intro h1 { font-size: 2.6rem; font-weight: 800; }
.public-information #convocatoria { padding-top: 0; }
.public-information #anuncios .row:first-child { display: none; }
.public-information #servicios { padding-top: 0 !important; }
.public-service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-bottom: 52px; }
.public-info-note { display: flex; gap: 18px; padding: 24px; background: #edf8f6; border-left: 4px solid #248373; margin-bottom: 28px; }
.public-info-note i { color: #147566; font-size: 1.4rem; }
.public-info-note p { margin: 0; line-height: 1.7; }
.orientation-link { display: flex; align-items: center; gap: 20px; background: white; border: 1px solid #dbe3e9; border-radius: 8px; padding: 24px; color: #6b1524; height: 100%; }
.orientation-link:hover { border-color: #6b1524; background: #fff5f7; color: #54101c; }
.orientation-link > i:first-child { font-size: 1.8rem; }
.orientation-link > i:last-child { margin-left: auto; }
.orientation-link strong, .orientation-link small { display: block; }
.orientation-link small { margin-top: 6px; line-height: 1.65; color: #4c5869; }
.contact-followup { margin: 28px 0 52px; font-size: .95rem; line-height: 1.7; color: #4c5869; }
.contact-followup a { color: #6b1524; text-decoration: underline; }
.contact-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-channel { display: flex; align-items: flex-start; gap: 18px; padding: 26px; border: 1px solid #dce5e8; border-radius: 8px; background: white; color: #172b3c; transition: border-color .18s ease, background-color .18s ease; }
.contact-channel:hover { color: #172b3c; border-color: #718b9c; background: #fafcfd; }
.contact-channel__icon { flex: 0 0 50px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 8px; font-size: 1.6rem; }
.contact-channel--whatsapp .contact-channel__icon { color: #11684c; background: #e1f5eb; }
.contact-channel--email .contact-channel__icon { color: #6b1524; background: #fbe8ee; }
.contact-channel__body { min-width: 0; }
.contact-channel__label { display: block; font-size: .85rem; font-weight: 700; color: #4c5869; margin-bottom: 8px; }
.contact-channel strong { display: block; font-size: 1.3rem; line-height: 1.4; overflow-wrap: anywhere; }
.contact-channel__action { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: #6b1524; font-size: .9rem; font-weight: 800; }
.contact-channel--whatsapp .contact-channel__action { color: #11684c; }
.contact-location { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px; align-items: center; padding-block: 42px; }
.contact-location__info h2 { font-size: 2rem; line-height: 1.25; font-weight: 800; margin: 10px 0 20px; }
.contact-location__info address { font-size: 1rem; line-height: 1.8; color: #4c5869; margin-bottom: 24px; }
.contact-location__info .btn { display: inline-flex; align-items: center; justify-content: center; }
.contact-map { display: block; width: 100%; height: 380px; border: 1px solid #d4dfe7; background: #eaf0f5; border-radius: 8px; }

@media (max-width: 1199px) {
    .identity-band__inner { grid-template-columns: 1fr 1.3fr; }
    .identity-band__inner > .text-action { grid-column: 2; }
    .welcome-two-columns, .welcome-steps > li { gap: 32px; }
}
@media (max-width: 991px) {
    .contact-channels { gap: 14px; }
    .contact-channel { flex-direction: column; padding: 22px; }
    .contact-location { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .welcome-finish__inner { grid-template-columns: 1fr; gap: 26px; }
    .welcome-finish__actions { justify-items: start; }
    .navbar-collapse { padding: 16px 0 12px; }
}
@media (max-width: 767px) {
    .contact-channels { grid-template-columns: minmax(0, 1fr); }
    .contact-channel { padding: 20px; }
    .contact-channel strong { font-size: 1.15rem; }
    .contact-location { padding-block: 32px; }
    .contact-location__info h2 { font-size: 1.8rem; }
    .contact-location__info .btn { width: 100%; }
    .contact-map { height: 320px; }
    .hero-entry { flex: 1 1 100%; padding: 14px 16px; min-height: 78px; }
    .hero-calendar { padding: 14px 0 0; }
    .hero-account-note { font-size: .8rem; line-height: 1.6; }
    .identity-band__inner, .welcome-two-columns, .welcome-steps > li { grid-template-columns: 1fr; gap: 20px; }
    .identity-band__inner > .text-action { grid-column: auto; }
    .welcome-intro { padding: 24px 0 32px; }
    .welcome-intro h1 { font-size: 2.15rem; }
    .welcome-lead { font-size: 1.05rem; }
    .welcome-facts { flex-direction: column; gap: 14px; }
    .welcome-two-columns h2, .welcome-finish h2 { font-size: 1.8rem; }
    .welcome-identity, .welcome-essentials { padding: 36px 0; }
    .welcome-steps { margin-top: 26px; }
    .welcome-steps > li { padding: 24px 0; }
    .welcome-step-heading { gap: 14px; }
    .welcome-finish__actions .btn { width: 100%; }
    .public-page-intro h1 { font-size: 2rem; }
    .public-info-note, .orientation-link { padding: 18px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .public-site *, .public-site *::before, .public-site *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.navbar-public {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229,231,235,.9);
    padding: 10px 0;
}
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--celex-guinda) !important;
    font-weight: 800;
}
.brand-lockup img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.brand-lockup span {
    line-height: 1.05;
    display: block;
}
.brand-lockup small {
    display: block;
    color: #6b7280;
    font-size: .68rem;
    font-weight: 800;
}
.nav-link {
    color: #334155 !important;
    font-size: .92rem;
    font-weight: 800;
}
.nav-link:hover { color: var(--celex-guinda) !important; }

.btn-celex {
    border: 1px solid var(--celex-guinda);
    background: var(--celex-guinda);
    color: #fff;
    border-radius: var(--radius);
    padding: 11px 18px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(107,21,36,.18);
}
.btn-celex:hover {
    background: #54101c;
    border-color: #54101c;
    color: #fff;
    transform: translateY(-1px);
}
.btn-soft {
    border: 1px solid rgba(255,255,255,.58);
    background: rgba(255,255,255,.12);
    color: #fff;
    border-radius: var(--radius);
    padding: 12px 18px;
    font-weight: 800;
}
.btn-soft:hover { background: #fff; color: var(--celex-guinda); }

.hero {
    min-height: min(650px, calc(100svh - 150px));
    background:
        linear-gradient(90deg, rgba(35,14,25,.95) 0%, rgba(65,17,35,.88) 52%, rgba(30,18,32,.42) 100%),
        var(--portada-img) center / cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    padding: 52px 12px 76px;
    position: relative;
    z-index: 1;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.12);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}
.hero h1 {
    font-size: 4rem;
    line-height: 1.06;
    font-weight: 800;
    margin: 18px 0;
    max-width: 780px;
}
.hero-copy {
    max-width: 720px;
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255,255,255,.88);
    margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-celex {
    background: #fff;
    color: var(--celex-guinda);
    border-color: #fff;
}
.hero .btn-celex:hover {
    color: #fff;
    background: var(--celex-guinda);
    border-color: var(--celex-guinda);
}
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    max-width: 760px;
    margin-top: 26px;
}
.hero-fact {
    padding: 0 0 0 12px;
    border-left: 2px solid #d9b4bd;
}
.hero-fact b { display: block; font-size: 1.35rem; line-height: 1; }
.hero-fact span { display: block; margin-top: 6px; color: rgba(255,255,255,.76); font-size: .78rem; font-weight: 700; }

.section-pad { padding: 72px 0; }
.anchor-offset {
    display: block;
    position: relative;
    top: -84px;
    visibility: hidden;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
}
.section-kicker {
    color: var(--celex-guinda);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
    margin-bottom: 8px;
}
.section-lead {
    color: var(--muted);
    font-weight: 600;
    line-height: 1.65;
    margin: 10px 0 0;
}

.quick-access {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}
.quick-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(15,23,42,.12);
    padding: 12px;
}
.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px;
    border-radius: var(--radius);
    color: var(--ink);
    border: 1px solid transparent;
}
.quick-link:hover {
    border-color: var(--line);
    background: #f8fafc;
    color: var(--celex-guinda);
}
.quick-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex: 0 0 auto;
}
.quick-title { font-weight: 800; display: block; }
.quick-sub { font-size: .8rem; color: var(--muted); font-weight: 700; display: block; margin-top: 2px; }

.feature-card,
.notice-card,
.convocatoria-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(15,23,42,.05);
}
.notice-card {
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 4px solid var(--celex-guinda);
}
.notice-meta {
    font-size: .75rem;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.notice-card h3 {
    font-size: 1.12rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.notice-card p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
    font-weight: 600;
}
.notice-link {
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-shell {
    background: #101827;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 45px rgba(15,23,42,.16);
}
.carousel-item img {
    width: 100%;
    height: 430px;
    object-fit: contain;
}
.empty-banner {
    height: 430px;
    display: grid;
    place-items: center;
    text-align: center;
    color: rgba(255,255,255,.78);
    background:
        linear-gradient(120deg, rgba(107,21,36,.88), rgba(15,118,110,.65)),
        var(--portada-img) center / cover no-repeat;
    padding: 28px;
}
.empty-banner i { font-size: 3rem; display: block; margin-bottom: 10px; }
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background-color: #fff;
    opacity: .55;
}
.carousel-indicators .active { opacity: 1; background-color: var(--celex-dorado); }

.convocatoria-panel {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    min-height: 360px;
}
.convocatoria-copy {
    padding: 36px;
    min-width: 0;
}
.convocatoria-copy h2 {
    font-weight: 800;
    font-size: 2.4rem;
    margin-bottom: 16px;
}
.convocatoria-copy p {
    color: var(--muted);
    line-height: 1.7;
    font-weight: 600;
    font-size: 1.02rem;
}
.date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    margin: 22px 0;
}
.date-box {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}
.date-box span {
    display: block;
    color: var(--muted);
    font-size: .76rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 5px;
}
.date-box b {
    color: var(--ink);
    font-size: .95rem;
}
.convocatoria-image {
    min-height: 320px;
    background:
        linear-gradient(0deg, rgba(17,24,39,.18), rgba(17,24,39,.18)),
        var(--portada-img) center / cover no-repeat;
}

.feature-card {
    padding: 24px;
    height: 100%;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    margin-bottom: 18px;
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.62;
    font-weight: 600;
    margin: 0;
}

.footer {
    background: #101827;
    color: rgba(255,255,255,.72);
    padding: 42px 0;
}
.footer-brand {
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.footer-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius);
    padding: 4px;
}
.footer-link {
    color: rgba(255,255,255,.72);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 16px;
}
.footer-link:hover { color: #fff; }

@media (max-width: 991px) {
    .hero { min-height: auto; }
    .hero-inner { padding: 44px 16px 64px; }
    .hero-facts { grid-template-columns: 1fr; }
    .convocatoria-panel { grid-template-columns: minmax(0, 1fr); }
    .convocatoria-image { min-height: 260px; order: -1; }
}
@media (max-width: 767px) {
    .navbar-public { padding: 8px 0; }
    .brand-lockup img { width: 34px; height: 34px; }
    .brand-lockup small { display: none; }
    .hero h1 { font-size: 2.35rem; }
    .hero { background-image: linear-gradient(90deg, rgba(35,14,25,.94), rgba(65,17,35,.87)), var(--portada-img); }
    .hero-inner { padding: 28px 16px 54px; }
    .hero-copy { font-size: .98rem; }
    .hero-entry { min-height: 68px; }
    .hero-facts { gap: 20px; margin-top: 22px; }
    .hero-fact { padding-left: 8px; }
    .hero-fact b { font-size: 1.05rem; }
    .hero-fact span { display: none; }
    .eyebrow { font-size: .7rem; text-transform: none; }
    .quick-access .row > div { width: 50%; }
    .quick-link { padding: 10px; gap: 8px; flex-direction: column; align-items: flex-start; }
    .quick-title { font-size: .9rem; }
    .convocatoria-copy { padding: 24px 20px; }
    .convocatoria-copy h2 { font-size: 1.75rem; }
    .section-title { font-size: 1.8rem; }
    .hero-actions .btn-celex,
    .hero-actions .btn-soft { width: 100%; text-align: center; }
    .quick-access { margin-top: -24px; }
    .carousel-item img,
    .empty-banner { height: 290px; }
    .date-grid { grid-template-columns: 1fr; }
    .section-pad { padding: 52px 0; }
        .footer-link { margin: 14px 16px 0 0; }
}
