/* ──────────────────────────────────────────────
   CONGRESO LANDING PAGE v2
   Aplica solo cuando body tiene .congreso-landing
   ────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');
/* ══════════════════════════════════════════════
   SUBNAV CONGRESO
   ══════════════════════════════════════════════ */
.cg-subnav {
    background: var(--cg-dark-soft, #1A1A1A);
    border-bottom: 2px solid var(--cg-yellow, #F5C518);
    z-index: 90;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
    position: fixed;
    top: 60px; /* altura del header */
    left: 0;
    right: 0;
    pointer-events: none;
}

/* Cuando admin bar está visible */
.admin-bar .cg-subnav {
    top: 92px; /* 60px header + 32px admin bar */
}

.cg-subnav.is-sticky {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cg-subnav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cg-subnav__inner::-webkit-scrollbar {
    display: none;
}

.cg-subnav ul {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.cg-subnav li {
    flex-shrink: 0;
}

.cg-subnav a {
    display: block;
    padding: 0.75rem 1.1rem;
    color: rgba(255,255,255,0.7);
    font-family: var(--cg-font-body, 'DM Sans', sans-serif);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.01em;
}

.cg-subnav a:hover {
    color: #fff;
}

.cg-subnav a.is-active {
    color: var(--cg-yellow, #F5C518);
    border-bottom-color: var(--cg-yellow, #F5C518);
}

/* ── Offset para anclas (evitar que el contenido quede bajo la nav) ── */
.congreso-landing [id] {
    scroll-margin-top: 130px;
}

.admin-bar .congreso-landing [id] {
    scroll-margin-top: 162px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .cg-subnav a {
        padding: 0.65rem 0.85rem;
        font-size: 0.75rem;
    }

    .admin-bar .cg-subnav {
        top: 46px + 60px; /* mobile admin bar es 46px */
    }
}
/* ── Variables ── */
.congreso-landing {
    --cg-dark:         #0D0D0D;
    --cg-dark-soft:    #1A1A1A;
    --cg-yellow:       #F5C518;
    --cg-yellow-glow:  rgba(245, 197, 24, 0.12);
    --cg-yellow-dark:  #C9A000;
    --cg-white:        #FAFAFA;
    --cg-grey:         #666;
    --cg-grey-light:   #E8E8E5;
    --cg-border:       #E0E0DD;
    --cg-font-display: 'Playfair Display', Georgia, serif;
    --cg-font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --cg-max-width:    860px;
    --cg-radius:       12px;
}

/* ── Layout base ── */
.congreso-landing .site-main--servicio {
    max-width: 100%;
    padding: 0;
    background: var(--cg-white);
}

/* ── Hero título ── */
.congreso-landing .servicio-title {
    font-family: var(--cg-font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--cg-white);
    background: var(--cg-dark);
    text-align: center;
    padding: 4rem 2rem 3rem;
    margin: 0;
    border-bottom: 4px solid var(--cg-yellow);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.congreso-landing .servicio-title::after {
    content: '11 JUNIO 2026 · CARTAGENA · EL BATEL';
    display: block;
    font-family: var(--cg-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cg-yellow);
    margin-top: 1.2rem;
}

/* ── Entry content base ── */
.congreso-landing .entry-content {
    font-family: var(--cg-font-body);
    color: #333;
    line-height: 1.85;
    font-size: 1.02rem;
    padding: 0;
    max-width: 100%;
}

/* ── Secciones ── */
.cg-section {
    max-width: var(--cg-max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    border-bottom: 1px solid var(--cg-border);
}

.cg-section:last-child {
    border-bottom: none;
}

/* ── Tipografía ── */
.congreso-landing .entry-content h2 {
    font-family: var(--cg-font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--cg-dark);
    margin: 0 0 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--cg-yellow);
    line-height: 1.25;
}

.congreso-landing .entry-content h3 {
    font-family: var(--cg-font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cg-dark);
    margin: 2rem 0 0.8rem;
    line-height: 1.35;
}

.congreso-landing .entry-content h4 {
    font-family: var(--cg-font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cg-dark);
    margin: 1.5rem 0 0.6rem;
}

/* ── Listas ── */
.congreso-landing .entry-content ul,
.congreso-landing .entry-content ol {
    margin: 1rem 0 1.5rem 0;
    padding: 0;
    list-style: none;
}

.congreso-landing .entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.congreso-landing .entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--cg-yellow);
    border-radius: 50%;
}

.congreso-landing .entry-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.congreso-landing .entry-content ol li {
    margin-bottom: 0.5rem;
}

/* ── Enlaces ── */
.congreso-landing .entry-content a {
    color: var(--cg-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--cg-yellow);
    text-decoration: none;
    transition: all 0.2s ease;
}

.congreso-landing .entry-content a:hover {
    color: var(--cg-yellow-dark);
    border-bottom-color: var(--cg-yellow-dark);
}

/* ── Intro ── */
.cg-intro {
    padding-top: 3.5rem;
}

/* ══════════════════════════════════════════════
   CTA ENTRADAS
   ══════════════════════════════════════════════ */
.cg-cta-tickets {
    text-align: center;
    background: var(--cg-dark) !important;
    max-width: 100% !important;
    padding: 3rem 2rem !important;
    border-bottom: none !important;
}

.cg-cta-tickets h2 {
    color: var(--cg-white) !important;
    border-bottom-color: var(--cg-yellow) !important;
    display: inline-block;
}

.cg-cta-tickets p {
    color: rgba(255,255,255,0.85);
    max-width: var(--cg-max-width);
    margin-left: auto;
    margin-right: auto;
}

.cg-ticket-btn {
    margin: 2rem auto;
    max-width: 80%;
    width: 600px;
}
.cg-ticket-btn a {
    border-bottom: none !important;
}

.cg-ticket-btn img {
    display: inline-block;
    max-width: 420px;
    width: 100%;
    height: auto;
    border: 3px solid var(--cg-yellow);
    border-radius: var(--cg-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cg-ticket-btn img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 32px var(--cg-yellow-glow);
}

/* ══════════════════════════════════════════════
   TIMELINE / AGENDA
   ══════════════════════════════════════════════ */
.cg-schedule {
    max-width: var(--cg-max-width);
}

.cg-slot {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--cg-border);
}

.cg-slot:last-child {
    border-bottom: none;
}

.cg-slot-time {
    flex: 0 0 160px;
    font-family: var(--cg-font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cg-white);
    background: var(--cg-dark);
    padding: 0.8rem 1rem;
    border-radius: var(--cg-radius);
    border-left: 5px solid var(--cg-yellow);
    height: fit-content;
    text-align: center;
    line-height: 1.4;
}

.cg-slot-info {
    flex: 1;
}

.cg-slot-info h3 {
    font-family: var(--cg-font-display);
    font-size: 1.25rem;
    margin: 0 0 0.6rem;
    color: var(--cg-dark);
}

.cg-slot-info p:last-child {
    margin-bottom: 0;
}

/* Break slots (café, comida) */
.cg-slot--break {
    background: var(--cg-yellow-glow);
    border-radius: var(--cg-radius);
    padding: 1.5rem;
    margin: 0.5rem 0;
    border-bottom: none;
}

.cg-slot--break .cg-slot-time {
    background: var(--cg-yellow);
    color: var(--cg-dark);
    border-left-color: var(--cg-dark);
}

/* ══════════════════════════════════════════════
   PARTNERS
   ══════════════════════════════════════════════ */
.cg-partner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--cg-border);
        flex-direction: column;
}

.cg-partner:last-child {
    border-bottom: none;
}

.cg-partner:nth-child(even) {
    flex-direction: row-reverse;
}

.cg-partner-img {
    flex: 0 0 300px;
    max-width: 300px;
    height: auto;
    border-radius: var(--cg-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.cg-partner-text {
    flex: 1;
}

.cg-partner-text h3 {
    font-family: var(--cg-font-display);
    font-size: 1.3rem;
    margin-top: 0;
}

/* ══════════════════════════════════════════════
   SPEAKERS (para la sección detallada de ponentes)
   ══════════════════════════════════════════════ */
.cg-speaker {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--cg-border);
}

.cg-speaker:last-child {
    border-bottom: none;
}

.cg-speaker:nth-child(even) {
    flex-direction: row-reverse;
}

.cg-speaker-img {
    flex: 0 0 260px;
    max-width: 260px;
    height: auto;
    border-radius: var(--cg-radius);
    border: 3px solid var(--cg-grey-light);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: border-color 0.3s ease;
}

.cg-speaker-img:hover {
    border-color: var(--cg-yellow);
}

.cg-speaker-bio {
    flex: 1;
}

.cg-speaker-bio h4 {
    font-family: var(--cg-font-display);
    font-size: 1.2rem;
    margin: 0 0 0.8rem;
    color: var(--cg-dark);
}

/* Imágenes genéricas dentro del contenido */
.congreso-landing .entry-content img {
    border-radius: var(--cg-radius);
    max-width: 100%;
    height: auto;
}

.congreso-landing .entry-content img.cg-partner-img,
.congreso-landing .entry-content img.cg-speaker-img {
    /* ya estilizados arriba */
}

/* ══════════════════════════════════════════════
   VENUE / TRANSPORTE
   ══════════════════════════════════════════════ */
.cg-transport {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.cg-transport-item {
    background: var(--cg-yellow-glow);
    padding: 1.2rem 1.5rem;
    border-radius: var(--cg-radius);
    border: 1px solid rgba(245, 197, 24, 0.25);
}

.cg-transport-item h4 {
    margin-top: 0;
    font-size: 1.1rem;
}

.cg-hotel {
    background: #f8f8f6;
    padding: 1.5rem 2rem;
    border-radius: var(--cg-radius);
    border-left: 4px solid var(--cg-yellow);
    margin: 1.5rem 0;
}

.cg-hotel h4 {
    margin-top: 0;
}

/* ══════════════════════════════════════════════
   DESCUENTOS
   ══════════════════════════════════════════════ */
.cg-coupon {
    background: var(--cg-dark);
    color: var(--cg-yellow);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    padding: 1.2rem 2rem;
    border-radius: var(--cg-radius);
    margin: 1.5rem 0;
    letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════
   LIBROS
   ══════════════════════════════════════════════ */
.cg-books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.cg-book a {
    display: block;
    border-bottom: none !important;
    transition: transform 0.3s ease;
}

.cg-book a:hover {
    transform: translateY(-6px);
}

.cg-book img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cg-book-title {
    display: block;
    margin-top: 0.8rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--cg-dark);
    line-height: 1.3;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .congreso-landing .servicio-title {
        padding: 3rem 1.2rem 2rem;
        font-size: 1.8rem;
    }

    .cg-section {
        padding: 2rem 1rem;
    }

    .cg-slot {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cg-slot-time {
        flex: none;
        width: 100%;
    }

    .cg-partner,
    .cg-speaker {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }

    .cg-partner-img {
        flex: none;
        max-width: 280px;
    }

    .cg-speaker-img {
        flex: none;
        max-width: 220px;
    }

    .cg-transport {
        grid-template-columns: 1fr;
    }

    .cg-books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .cg-cta-tickets {
        padding: 2rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .congreso-landing .servicio-title {
        font-size: 1.5rem;
        padding: 2.5rem 1rem 1.5rem;
    }

    .congreso-landing .servicio-title::after {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .cg-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cg-coupon {
        font-size: 1.1rem;
        padding: 1rem;
    }
}
/* ══════════════════════════════════════════════
   SUBNAV CONGRESO — DESKTOP BAR
   ══════════════════════════════════════════════ */
.cg-subnav {
    background: var(--cg-dark-soft, #1A1A1A);
    border-bottom: 2px solid var(--cg-yellow, #F5C518);
    z-index: 90;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.admin-bar .cg-subnav { top: 92px; }

.cg-subnav.is-sticky {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cg-subnav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cg-subnav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cg-subnav li { flex-shrink: 0; }

.cg-subnav a {
    display: block;
    padding: 0.75rem 1.1rem;
    color: rgba(255,255,255,0.65);
    font-family: var(--cg-font-body, 'DM Sans', sans-serif);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 3px solid transparent !important;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cg-subnav a:hover { color: #fff; }

.cg-subnav a.is-active {
    color: var(--cg-yellow, #F5C518);
    border-bottom-color: var(--cg-yellow, #F5C518) !important;
}

/* ══════════════════════════════════════════════
   FAB — BOTÓN FLOTANTE (solo móvil)
   ══════════════════════════════════════════════ */
.cg-fab {
    display: none; /* oculto en desktop */
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 95;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--cg-dark, #0D0D0D);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 3px var(--cg-yellow, #F5C518);
    cursor: pointer;
    transform: translateY(80px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.cg-fab.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cg-fab:active {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3), 0 0 0 3px var(--cg-yellow, #F5C518);
    transform: scale(0.95);
}

.cg-fab__icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* ══════════════════════════════════════════════
   BOTTOM SHEET — OVERLAY + DRAWER (solo móvil)
   ══════════════════════════════════════════════ */
.cg-sheet-overlay {
    display: none; /* oculto en desktop */
    position: fixed;
    inset: 0;
    z-index: 96;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.cg-sheet-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cg-sheet {
    display: none; /* oculto en desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 97;
    background: var(--cg-dark, #0D0D0D);
    border-top: 3px solid var(--cg-yellow, #F5C518);
    border-radius: 20px 20px 0 0;
    padding: 0.8rem 1.5rem 2rem;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 75vh;
    overflow-y: auto;
}

.cg-sheet.is-open {
    transform: translateY(0);
}

.cg-sheet__handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    margin: 0 auto 1rem;
}

.cg-sheet__title {
    color: var(--cg-yellow, #F5C518);
    font-family: var(--cg-font-body, 'DM Sans', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cg-sheet__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cg-sheet__links li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cg-sheet__links li:last-child {
    border-bottom: none;
}

.cg-sheet__links a {
    display: block;
    padding: 0.9rem 0.5rem;
    color: rgba(255,255,255,0.85);
    font-family: var(--cg-font-body, 'DM Sans', sans-serif);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: none !important;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.cg-sheet__links a:hover,
.cg-sheet__links a:active {
    color: var(--cg-yellow, #F5C518);
    padding-left: 1rem;
}

/* ══════════════════════════════════════════════
   SCROLL-MARGIN PARA ANCLAS
   ══════════════════════════════════════════════ */
.congreso-landing [id] {
    scroll-margin-top: 130px;
}

.admin-bar .congreso-landing [id] {
    scroll-margin-top: 162px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Ocultar barra desktop */
    .cg-subnav {
        display: none !important;
    }

    /* Mostrar FAB + sheet */
    .cg-fab,
    .cg-sheet-overlay,
    .cg-sheet {
        display: block;
    }

    /* Ajuste anclas sin subnav */
    .congreso-landing [id] {
        scroll-margin-top: 80px;
    }

    .admin-bar .congreso-landing [id] {
        scroll-margin-top: 112px;
    }
}

@media (max-width: 480px) {
    .cg-fab {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .cg-fab__icon {
        font-size: 1.3rem;
    }

    .cg-sheet {
        padding: 0.8rem 1.2rem 1.5rem;
    }

    .cg-sheet__links a {
        padding: 0.75rem 0.3rem;
        font-size: 0.95rem;
    }
}