/* =========================================================
   Herramientas Prácticas para el Manejo de Hemofilia 2026
   ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a202c;
    background: #fff;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =========================================================
   HEADER
   ========================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #d2d2d2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    gap: 12px;
}

.header-logo-link { flex-shrink: 0; }
.logo { height: 48px; width: auto; }

/* Nav */
#mainNav { flex: 1; display: flex; justify-content: flex-end; }

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
}

.nav-menu li a {
    display: block;
    padding: 6px 11px;
    font-size: 0.73rem;
    font-weight: 700;
    color: #1B3A6B;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.nav-menu li a:hover,
.nav-menu li a.active { color: #B51B1B; background: #fef2f2; }

/* Botón Inscripción en el menú */
.nav-register {
    background: #B51B1B !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
}
.nav-register:hover,
.nav-register.active {
    background: #8B1218 !important;
    color: #fff !important;
}

/* Hamburguesa */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: #1B3A6B;
    padding: 4px 8px;
    flex-shrink: 0;
}

/* Ancla invisible (compensar header fijo) */
.anchor-target {
    display: block;
    position: relative;
    top: -80px;
    visibility: hidden;
}

/* =========================================================
   BANNERS FULL-WIDTH
   ========================================================= */
.section-banner { width: 100%; height: auto; display: block; }
.section-banner-link { display: block; transition: opacity 0.2s; }
.section-banner-link:hover { opacity: 0.95; }

/* =========================================================
   CONTENT SECTIONS
   ========================================================= */
.content-section { padding: 56px 0; }
.bg-light { background: #f5f6f8; }

.section-title-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.section-title-img { height: 46px; width: auto; max-width: 100%; }

/* Título pill CSS — mismo formato que hemofilia_ttinscripcion.jpg */
.hemo-pill-title {
    display: inline-block;
    background: #B51B1B;
    color: #fff;
    height: 46px;
    line-height: 46px;
    font-size: 1.15rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 52px;
    vertical-align: middle;
}

/* Auspicios */
.auspicios-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}
.auspicios-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
}

/* =========================================================
   PROGRAMA
   ========================================================= */
.prog-section {
    background-image: url('images/fondo_rayitas.png');
    background-repeat: repeat;
    background-size: auto;
    padding: 0;
}

/* =========================================================
   INSCRIPCIÓN
   ========================================================= */
.reg-section {
    background: #f8f0f0 url('images/fondo_rayitas.png') repeat;
}

/* Aranceles */
.aranceles-box {
    max-width: 760px;
    margin: 0 auto 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}
.aranceles-title {
    background: #B51B1B;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 28px;
}
.aranceles-items {
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.arancel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.arancel-sep {
    border-top: 1px solid #f0e0e0;
}
.arancel-cat {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}
.arancel-precio {
    font-size: 1.05rem;
    font-weight: 700;
    color: #B51B1B;
}
.arancel-precio.gratis {
    color: #276749;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}
.pago-info {
    background: #fdf5f5;
    border-top: 1px solid #f5d0d0;
    padding: 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.pago-titulo {
    font-size: 0.82rem;
    font-weight: 700;
    color: #8B1218;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.pago-titulo i { margin-right: 6px; }
.pago-info p {
    font-size: 0.82rem;
    color: #4a5568;
    line-height: 1.55;
}
.pago-info a { color: #B51B1B; font-weight: 600; }
.pago-info a:hover { text-decoration: underline; }
.pago-info strong { color: #2d3748; }

/* Alerta */
.reg-alert {
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}
.reg-alert.error   { background: #fff5f5; border: 1px solid #fc8181; color: #c53030; }
.reg-alert.success { background: #fff5f5; border: 1px solid #B51B1B; color: #8B1218; }

/* Formulario */
.form-wrap {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-col { display: flex; flex-direction: column; gap: 6px; }
.form-col-full { grid-column: 1 / -1; }
.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.req { color: #B51B1B; }
.form-input {
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #1a202c;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.form-input:focus {
    outline: none;
    border-color: #B51B1B;
    box-shadow: 0 0 0 3px rgba(181,27,27,0.12);
}
.form-select { cursor: pointer; }
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.form-note { font-size: 0.78rem; color: #718096; }
.btn-submit {
    background: #B51B1B;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover {
    background: #8B1218;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181,27,27,0.35);
}

/* =========================================================
   CERTIFICADOS – full-width banner, sin padding
   ========================================================= */
#certificados { padding: 0; }

/* =========================================================
   SPONSOR
   ========================================================= */
.sponsor-section {
    background: #fff;
    padding: 56px 0;
}
.sponsor-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.sponsor-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
}

/* =========================================================
   CÓMO LLEGAR
   ========================================================= */
#comollegar {
    background: #b3b3b3;
    padding: 32px 24px;
    display: flex;
    justify-content: center;
}
#comollegar img {
    max-width: 860px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer { background: #8B1218; color: #f7d5d5; }

.footer-inner-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 52px 48px 40px;
    flex-wrap: wrap;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 48px;
    min-width: 240px;
}
.footer-divider {
    width: 1px;
    background: rgba(255,255,255,0.25);
    align-self: stretch;
    min-height: 120px;
}
.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 4px;
}
.footer-name  { font-size: 0.88rem; font-weight: 600; color: #fce8e8; }
.footer-link  { font-size: 0.82rem; color: #f0b8b8; transition: color 0.2s; }
.footer-link:hover { color: #fff; }

.footer-logo-gu { height: 52px; }
.social-links { display: flex; gap: 10px; margin-top: 4px; }
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    color: #f0b8b8;
    font-size: 0.82rem;
    transition: background 0.2s, color 0.2s;
}
.social-icon:hover { background: #fff; color: #B51B1B; }
.x-icon { font-style: normal; font-weight: 700; font-size: 0.85rem; }
.footer-copy {
    border-top: 1px solid rgba(255,255,255,0.25);
    padding: 16px 24px;
    text-align: center;
    font-size: 0.78rem;
    color: #fff;
}

/* =========================================================
   SCROLL TO TOP
   ========================================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #B51B1B;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    z-index: 900;
    pointer-events: none;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top-btn:hover { background: #8B1218; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
    .nav-menu li a { font-size: 0.68rem; padding: 5px 7px; }
    .nav-register { padding: 5px 11px !important; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    #mainNav { display: none; }
    #mainNav.open {
        display: flex;
        position: fixed;
        top: 68px;
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 12px 24px 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        z-index: 999;
    }
    #mainNav.open .nav-menu { flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
    .nav-menu li { width: 100%; }
    .nav-menu li a { font-size: 0.9rem; padding: 10px 4px; border-bottom: 1px solid #f0f4f8; }
    .nav-register { border-radius: 8px !important; padding: 10px 4px !important; margin-top: 4px; }

    .content-section { padding: 40px 0; }
    .section-title-img { max-width: 300px; }

    .form-wrap { padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 16px; }
    .form-footer { flex-direction: column; align-items: flex-start; }

    .footer-inner-wrap { padding: 40px 24px 32px; flex-direction: column; align-items: center; }
    .footer-col { padding: 0; align-items: center; text-align: center; }
    .footer-divider { width: 80%; height: 1px; min-height: unset; margin: 20px 0; }
    .footer-logo { object-position: center; }
    .social-links { justify-content: center; }
}

@media (max-width: 480px) {
    .logo { height: 38px; }
    .section-title-img { max-width: 260px; }
    .scroll-top-btn { bottom: 20px; right: 20px; }
}
