/* ═══════════════════════════════════════════════════
   VARIABLES — ePoster identity (teal/blue-science)
═══════════════════════════════════════════════════ */
:root {
    --negro:     #0a0a0a;
    --gris-dark: #1c1c1c;
    --acento:    #0369a1;   /* sky-700 */
    --acento2:   #0ea5e9;   /* sky-500 */
    --texto:     #2d3748;
    --claro:     #f7f9fc;
    --borde:     #e2e8f0;
    /* ePoster identity */
    --ep-teal:   #0d6e94;   /* steel-blue */
    --ep-teal2:  #22b8dc;   /* sky-blue-light */
    --ep-screen: #1e293b;   /* the dark vertical congress screen */
}

/* ═══════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════ */
body.public-layout {
    font-family: 'Roboto', sans-serif;
    color: var(--texto);
    background: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.public-layout h1,
body.public-layout h2,
body.public-layout h3,
body.public-layout h4,
body.public-layout h5 {
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 0;
}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.navbar-home {
    background: var(--negro);
    border: none;
    border-radius: 0;
    padding: 0;
    min-height: 80px;
}
.navbar-home .navbar-brand {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 29px;
    font-weight: 900;
    color: #fff !important;
    padding: 0;
    height: 80px;
    display: flex !important;
    align-items: center;
    letter-spacing: -0.25px;
}
.navbar-home .navbar-brand span { color: var(--ep-teal2); }
.navbar-home .nav-logo {
    height: 54px;
    max-height: 54px;
    width: auto;
    display: block;
}
.navbar-home .navbar-nav .nav-link {
    color: rgba(255,255,255,0.82) !important;
    font-size: 13.5px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0 16px !important;
    height: 80px;
    display: flex !important;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1;
}
.navbar-home .navbar-nav .nav-link:hover {
    color: #fff !important;
    border-bottom-color: var(--acento2);
}
.navbar-home .navbar-nav .nav-link.active {
    color: #fff !important;
    border-bottom-color: var(--acento2);
}
.navbar-home .navbar-toggler {
    border-color: #444;
    margin: 16px 0;
}
.navbar-home .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(200,200,200,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-home .navbar-collapse { border-color: #222; }

.btn-nav-login {
    background: var(--acento) !important;
    color: #fff !important;
    border-radius: 3px;
    padding: 8px 20px !important;
    margin-left: 12px;
    font-weight: 500;
    font-size: 13px !important;
    transition: background 0.2s;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: auto !important;
    border-bottom: none !important;
    line-height: 1.4;
    text-decoration: none;
}
.btn-nav-login:hover { background: var(--acento2) !important; color: #fff !important; text-decoration: none; border-bottom: none !important; }

/* ═══════════════════════════════════════════════════
   HERO SLIDER
═══════════════════════════════════════════════════ */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--negro);
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}
.slide.active { opacity: 1; }
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.80) 0%, rgba(2,40,60,0.65) 100%);
}

/* ePoster slides use existing congress/poster images */
.slide-1 { background-color: #020e1a; background-image: url('/images/home/slider/1.jpg'); background-position: center; }
.slide-2 { background-color: #01150d; background-image: url('/images/home/slider/2.jpg'); background-position: center; }
.slide-3 { background-color: #0a1020; background-image: url('/images/home/slider/3.jpg'); background-position: center; }
.slide-4 { background-color: #0d1010; background-image: url('/images/home/slider/4.jpg'); background-position: center; }

/* Ornamento de fondo — pantalla vertical de congreso */
.slide::before {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(13,110,148,0.10);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
}
.hero-text { color: #fff; max-width: 680px; transition: opacity 0.5s ease, transform 0.25s ease; }

.hero-eyebrow {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--ep-teal2);
    margin-bottom: 14px;
    display: block;
    letter-spacing: 0.08em;
}
.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.0;
    margin: 0 0 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-title span { color: var(--ep-teal2); }
.hero-sub {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    max-width: 520px;
}
.btn-hero-primary {
    background: var(--acento);
    border: none;
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 13px 30px;
    border-radius: 3px;
    margin-right: 12px;
    margin-bottom: 10px;
    display: inline-block;
    transition: background 0.2s, transform 0.15s;
}
.btn-hero-primary:hover { background: var(--acento2); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-hero-ghost {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 11px 30px;
    border-radius: 3px;
    margin-bottom: 10px;
    display: inline-block;
    transition: border-color 0.2s, background 0.2s;
}
.btn-hero-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

/* Sello decorativo hero — pantalla vertical ePoster */
.hero-seal {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0.15;
    pointer-events: none;
}
.hero-seal svg { width: 280px; height: 340px; }

/* Flechas */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(0,0,0,0.35);
    border: none;
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.slider-arrow:hover { background: var(--ep-teal); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; }
.slider-dots span {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.slider-dots span.active { background: var(--ep-teal2); transform: scale(1.3); }

/* Hero fade-in */
.hero-anim .hero-eyebrow,
.hero-anim .hero-title,
.hero-anim .hero-sub,
.hero-anim .hero-actions .btn {
    opacity: 0;
    transform: translateY(10px);
    animation: heroFadeUp .65s ease forwards;
}
.hero-anim .hero-eyebrow { animation-delay: .05s; }
.hero-anim .hero-title   { animation-delay: .15s; }
.hero-anim .hero-sub     { animation-delay: .28s; }
.hero-anim .hero-actions .btn:nth-child(1) { animation-delay: .42s; }
.hero-anim .hero-actions .btn:nth-child(2) { animation-delay: .50s; }
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════ */
.stats-bar { background: var(--ep-teal); padding: 18px 0; }
.stat-item { text-align: center; color: #fff; }
.stat-divider { border-right: 1px solid rgba(255,255,255,0.25); }
.stat-number {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 38px;
    font-weight: 900;
    display: block;
    line-height: 1;
}
.stat-label { font-size: 12px; font-weight: 500; text-transform: uppercase; opacity: 0.88; }

/* ═══════════════════════════════════════════════════
   SECCIONES GENERALES
═══════════════════════════════════════════════════ */
.home-section { padding: 80px 0; }
.section-alt  { background: var(--claro); }
.section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ep-teal);
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.06em;
}
.section-title {
    font-size: 44px;
    font-weight: 900;
    color: var(--negro);
    margin-bottom: 8px;
    line-height: 1.1;
}
.section-sub {
    font-size: 15px;
    color: #718096;
    margin-bottom: 48px;
}

/* ═══════════════════════════════════════════════════
   SECCIÓN PARA AUTORES / ORGANIZADORES (oscura)
═══════════════════════════════════════════════════ */
.audience-section {
    padding: 80px 0;
    background: var(--ep-screen);
    position: relative;
    overflow: hidden;
}
.audience-section::before {
    content: '';
    position: absolute;
    top: -120px; left: -120px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,110,148,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.audience-section::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.audience-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ep-teal2);
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.08em;
}
.audience-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.1;
}
.audience-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0;
}
.audience-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    padding: 32px 28px;
    height: 100%;
    transition: border-color 0.2s, background 0.2s;
}
.audience-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(13,110,148,0.35);
}
.audience-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    margin-bottom: 20px;
}
.audience-card-icon.author  { background: linear-gradient(135deg, var(--acento), var(--acento2)); }
.audience-card-icon.organizer { background: linear-gradient(135deg, var(--ep-teal), var(--ep-teal2)); }
.audience-card h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
}
.audience-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin: 0 0 16px;
}
.audience-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.audience-card ul li {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.audience-card ul li i {
    color: var(--ep-teal2);
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   CÓMO FUNCIONA
═══════════════════════════════════════════════════ */
.how-step-number {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 72px;
    font-weight: 900;
    color: var(--borde);
    line-height: 1;
    margin-bottom: -10px;
    display: block;
}
.how-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 16px;
}
.how-step-icon.icon-1 { background: linear-gradient(135deg, #1a6fc4, #0ea5e9); }
.how-step-icon.icon-2 { background: linear-gradient(135deg, #0d6e94, #22b8dc); }
.how-step-icon.icon-3 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.how-step-icon.icon-4 { background: linear-gradient(135deg, #059669, #34d399); }

.how-step h4 { font-size: 20px; font-weight: 700; color: var(--negro); margin: 0 0 8px; }
.how-step p  { font-size: 14px; color: #718096; line-height: 1.7; margin: 0; }

.how-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    color: var(--borde);
    font-size: 24px;
}

/* ═══════════════════════════════════════════════════
   FEATURES / PLATAFORMA
═══════════════════════════════════════════════════ */
.features-lead-col { margin-bottom: 40px; }
.features-lead { font-size: 15px; color: #4a5568; line-height: 1.8; margin-bottom: 20px; }

.platform-badges { margin-bottom: 28px; }
.platform-badge {
    display: inline-block;
    background: var(--negro);
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 3px;
    margin: 3px 4px 3px 0;
}
.badge-accent { color: var(--ep-teal2); }

.feature-item {
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--acento) 0%, var(--acento2) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}
.feature-text h4 { font-size: 18px; font-weight: 700; color: var(--negro); margin: 0 0 5px; }
.feature-text p  { font-size: 13.5px; color: #718096; line-height: 1.6; margin: 0; }

/* ═══════════════════════════════════════════════════
   CTA / CONTACTO
═══════════════════════════════════════════════════ */
.cta-section {
    /*background: var(--negro);*/
    background: #1c1c1c;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(14,165,233,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.cta-info-col { margin-bottom: 40px; }
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.8);
    gap: 14px;
}
.contact-info-item i { color: var(--ep-teal2); font-size: 20px; margin-top: 2px; width: 20px; flex-shrink: 0; }
.contact-info-item strong { color: #fff; display: block; font-size: 13px; margin-bottom: 2px; }
.contact-info-item span  { font-size: 14px; }

.cta-form .form-control {
    height: 48px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
    font-family: 'Roboto', sans-serif;
}
.cta-form .form-control::placeholder { color: rgba(255,255,255,0.4); }
.cta-form .form-control:focus {
    border-color: var(--ep-teal2);
    background: rgba(255,255,255,0.10);
    box-shadow: 0 0 0 2px rgba(34,184,220,0.2);
    outline: none;
    color: #fff;
}
.cta-form textarea.form-control { height: auto; resize: vertical; }
.btn-cta-submit {
    background: var(--acento);
    border: none;
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 13px 36px;
    border-radius: 3px;
    width: 100%;
    transition: background 0.2s;
}
.btn-cta-submit:hover { background: var(--acento2); color: #fff; }

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-whatsapp:hover { color: #fff; text-decoration: none; }
.footer-whatsapp-icon { color: #25d366; font-size: 22px; }

/* Honeypot anti-bot */
.hp-field {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

#contact-alert {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .35s ease, transform .35s ease;
    margin-bottom: 14px;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 600;
}
#contact-alert.is-success {
    display: block;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.35);
    color: rgba(255,255,255,.92);
}
#contact-alert.is-error {
    display: block;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.35);
    color: rgba(255,255,255,.92);
}
#contact-alert.show { display: block; opacity: 1; transform: translateY(0); }
#contact-alert.hide { opacity: 0; transform: translateY(-6px); }

/* Spinner */
.ep-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.home-footer {
    background: #050505;
    padding: 40px 0 20px;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    flex-shrink: 0;
}
.footer-col { margin-bottom: 24px; }
.footer-brand { font-family: 'Roboto Condensed', sans-serif; font-size: 24px; font-weight: 900; color: #fff; }
.footer-brand span { color: var(--ep-teal2); }
.home-footer p { margin-top: 10px; font-size: 13px; line-height: 1.6; }
.footer-heading { color: rgba(255,255,255,0.6); font-weight: 500; font-size: 12px; text-transform: uppercase; margin-bottom: 12px; }
.footer-links li { line-height: 2; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-links a:hover { color: var(--ep-teal2); }
.footer-hr { border-color: rgba(255,255,255,0.08); margin: 24px 0 20px; }
.footer-copy { margin: 0; }
.footer-copy a { color: rgba(255,255,255,0.45); }
.footer-copy a:hover { color: var(--ep-teal2); }

/* ═══════════════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════
   LANGUAGE PICKER
═══════════════════════════════════════════════════ */
.public-layout .lp-flag-only .language-picker .dropdown-list,
.public-layout .lp-flag-only .language-picker a {
    display: inline-flex;
    align-items: center;
}
.public-layout .lp-flag-only .language-picker .dropdown-list span,
.public-layout .lp-flag-only .language-picker a span {
    display: none !important;
}
.public-layout .lp-flag-only .language-picker img {
    width: 18px;
    height: 12px;
    display: inline-block;
}
.public-layout .lp-flag-only .language-picker .dropdown-list {
    padding: 10px 10px;
}
/* .language-picker { top: 30px !important; } */

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .navbar-home .navbar-nav .nav-link {
        height: auto !important;
        padding: 10px 16px !important;
        border-bottom: none !important;
        border-left: 2px solid transparent;
    }
    .navbar-home .navbar-nav .nav-link:hover {
        border-bottom: none !important;
        border-left-color: var(--acento2);
    }
    .btn-nav-login {
        margin: 8px 0 12px 0 !important;
        display: inline-flex !important;
        width: auto;
    }
}
@media (max-width: 768px) {
    .hero-title  { font-size: 42px; }
    .hero-slider { height: 500px; }
    .hero-seal   { display: none; }
    .section-title { font-size: 34px; }
    .audience-title { font-size: 34px; }
    .how-connector { display: none; }
    .stat-divider { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 10px 0; }
    .stat-item:last-child { border-bottom: none; }
    .home-footer .text-end { text-align: left !important; margin-top: 6px; }
}
@media (max-width: 480px) {
    .audience-card { padding: 22px 18px; }
}
