/* =========================================================
   GATMO-TC 2026 – Styles
   ========================================================= */

*, *::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: #fff;
    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 9px;
    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: #E84040; background: #fef2f2; }

/* Botón Template Presentaciones en el menú */
.nav-template {
    background: #1B2D4F !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
}
.nav-template:hover,
.nav-template.active {
    background: #1A8B9A !important;
    color: #fff !important;
}

/* Botón Registrarse en el menú */
.nav-register {
    background: #E84040 !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
}
.nav-register:hover,
.nav-register.active {
    background: #c93030 !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; }

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

.section-title-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
/* Todos los títulos pill a la misma altura — el ancho se ajusta solo */
.section-title-img { height: 68px; width: auto; max-width: 100%; }

/* Pill title CSS */
.pill-title {
    display: inline-flex;
    align-items: center;
    padding: 13px 48px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    position: relative;
}
.pill-title::before,
.pill-title::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 34px;
    border: 2px solid currentColor;
    border-radius: 50px;
    opacity: 0.30;
}
.pill-title::before { right: calc(100% - 24px); }
.pill-title::after  { left:  calc(100% - 24px); }
.pill-red  { background: #E84040; }
.pill-teal { background: #1A8B9A; }

/* Botones imagen */
.section-body { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.btn-img-link { display: inline-block; transition: opacity 0.2s, transform 0.2s; }
.btn-img-link:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-img { height: 46px; width: auto; }
.cert-info { font-size: 0.92rem; color: #4a5568; line-height: 1.6; }

/* =========================================================
   DISERTANTES – cards sin foto
   ========================================================= */
.vcard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.vcard {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-top: 4px solid #E84040;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vcard:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.13); }
.vcard-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #E84040;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
}
.vcard-role { font-size: 0.78rem; color: #4a5568; line-height: 1.55; }

/* =========================================================
   REGISTRARSE
   ========================================================= */
.reg-section { background: #f8fafc; }

/* Cards informativas */
.reg-eventos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 760px;
    margin: 0 auto 28px;
}
.reg-evento-card {
    border-radius: 14px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid transparent;
}
.card-teal {
    background: linear-gradient(135deg, #edfafa 0%, #f0fbfc 100%);
    border-color: #b2e8ed;
}
.card-red {
    background: linear-gradient(135deg, #fff5f5 0%, #fff8f0 100%);
    border-color: #fbd0d0;
}
.reg-evento-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}
.badge-teal { background: #c8f0f4; color: #0b7480; }
.badge-red  { background: #fddcdc; color: #b91c1c; }
.reg-evento-title { font-size: 1.0rem; font-weight: 700; color: #1B2D4F; line-height: 1.3; margin-top: 2px; }
.reg-evento-desc  { font-size: 0.86rem; color: #4a5568; line-height: 1.6; }
.reg-evento-precio { font-size: 0.86rem; color: #c03030; font-weight: 600; margin-top: 4px; }

/* Texto de contacto */
.reg-contact-note {
    max-width: 760px;
    margin: 0 auto 32px;
    font-size: 0.88rem;
    color: #4a5568;
    text-align: center;
    line-height: 1.6;
}
.reg-contact-note a { color: #1A8B9A; font-weight: 600; }
.reg-contact-note a:hover { text-decoration: underline; }

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

/* 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: #E84040; }
.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: #1A8B9A;
    box-shadow: 0 0 0 3px rgba(26,139,154,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: #E84040;
    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: #c93030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232,64,64,0.35);
}

/* =========================================================
   PROGRAMAS – dos cards de descarga
   ========================================================= */
.prog-section {
    background-image: url('images/gatmoweb_fondo_gris.png');
    background-repeat: repeat;
    background-size: auto;
}
.prog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 760px;
    margin: 0 auto;
}
.prog-card {
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}
.prog-card-img {
    height: 90px;
    width: auto;
    max-width: 100%;
}

/* =========================================================
   REGISTRARSE – inscripción cerrada
   ========================================================= */
.cerrada-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    text-align: center;
}
.cerrada-wrap a { display: block; }
.cerrada-img {
    display: block;
    margin: 0 auto;
    max-width: 640px;
    width: 70%;
    height: auto;
    border-radius: 14px;
    transition: opacity 0.2s, transform 0.2s;
}
.cerrada-img:hover { opacity: 0.92; transform: translateY(-2px); }

/* =========================================================
   CERTIFICADOS
   ========================================================= */
.cert-section {
    background: #007a99;
}
.cert-section .cert-info {
    color: #d4eef5;
}
.cert-banner-wrap {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}
.cert-banner-img {
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* =========================================================
   SPONSORS
   ========================================================= */
#sponsors {
    background-image: url('images/gatmoweb_fondo_gris.png');
    background-repeat: repeat;
    background-size: auto;
}
.sponsors-banner-wrap { display: flex; justify-content: center; }
.sponsors-banner { max-width: 800px; width: 100%; height: auto; }

/* =========================================================
   AUSPICIOS
   ========================================================= */
.auspicios-section {
    background: #fff;
}
.auspicios-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.auspicio-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 20px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    min-width: 200px;
    max-width: 240px;
    flex: 1 1 200px;
}
.auspicio-item img {
    height: 68px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* =========================================================
   SEDE – imagen centrada, no full-width
   ========================================================= */
#sede {
    background-image: url('images/gatmoweb_fondo_gris.png');
    background-repeat: repeat;
    background-size: auto;
}
.sede-img-wrap { display: flex; justify-content: center; margin-top: 0; }
.sede-img-wrap img { max-width: 900px; width: 100%; height: auto; border-radius: 8px; }

/* =========================================================
   FOOTER
   ========================================================= */
footer { background: #007a99; color: #d4eef5; }

.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: #e8f6fa; }
.footer-link  { font-size: 0.82rem; color: #b8dde8; transition: color 0.2s; }
.footer-link:hover { color: #fff; }

/* Logo GrupoUno: un poco más pequeño que el de SAH */
.footer-logo-gu { height: 36px; }
.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: #cbd5e0;
    font-size: 0.82rem;
    transition: background 0.2s, color 0.2s;
}
.social-icon:hover { background: #E84040; color: #fff; }
.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: #1A8B9A;
    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: #E84040; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
    .vcard-grid { grid-template-columns: repeat(3, 1fr); }
    .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; }

    .vcard-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .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; }
    .reg-eventos-grid { grid-template-columns: 1fr; }
    .prog-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .prog-card-img { height: 70px; }

    .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) {
    .vcard-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .logo { height: 38px; }
    .section-title-img { max-width: 260px; }
    .pill-title { font-size: 0.9rem; padding: 12px 36px; }
    .pill-title::before, .pill-title::after { width: 50px; }
    .scroll-top-btn { bottom: 20px; right: 20px; }
}
