/* ===== VARIABLES CSS ===== */
:root {
    --color-bg: #0a051a;
    --color-primary: #4f46e5;
    --color-secondary: #7c3aed;
    --color-text: #e0e0e0;
    --color-light-text: #a0a0a0;
    --color-accent: #00d1b2;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== UTILIDADES ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-breathing {
    padding: 8rem 0 !important;
}

/* ===== TIPOGRAFÍA ===== */
h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    color: #fff;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

p {
    margin-bottom: 1rem;
    color: var(--color-light-text);
}

strong {
    color: #fff;
}

mark {
    background: linear-gradient(45deg, #FF6F61, #DE425B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* ===== ENLACES Y BOTONES ===== */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4);
}

/* ===== LAYOUT GENERAL ===== */
section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

section:last-of-type {
    border-bottom: none;
}

/* ===== HERO ===== */
#hero {
    height: 100vh;
    background-image: linear-gradient(rgba(10, 5, 26, 0.8), rgba(10, 5, 26, 0.95)), url('img/Poster_Jornada_Innova.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-text);
    background: none;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* ===== AGENDA GRID ===== */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid;
    border-image: linear-gradient(90deg, var(--color-primary), var(--color-secondary)) 1;
}

.timeline-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
}

.timeline-card .time {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.timeline-card h3 {
    color: var(--color-text);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-card p {
    font-size: 0.9rem;
    color: var(--color-light-text);
}

.cafe-break {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1.5rem;
    border-top: 2px dashed rgba(255, 255, 255, 0.2);
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-light-text);
}

/* ===== SECCIONES DE CHARLAS ===== */
.charla-section {
    position: relative;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.charla-section-content {
    width: 100%;
    height: 75vh;
    display: flex;
    background-color: var(--color-bg);
}

.charla-section-content.right-image .image-container {
    order: 2;
}

.charla-section-content.right-image .text-container {
    order: 1;
}

.charla-section-content .image-container {
    width: 75%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

.charla-section-content .image-container picture,
.charla-section-content .image-container img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.charla-section-content .image-container img {
    transition: transform 0.5s ease;
}

.charla-section-content .image-container img:hover {
    transform: scale(1.05);
}

.charla-section-content .text-container {
    width: 25%;
    height: 100%;
    padding: 3rem 2.5rem;
    background-color: rgba(10, 5, 26, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    order: 2;
}

.charla-section-content .text-container h3 {
    font-size: 2.2rem;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.charla-section-content .text-container p {
    font-size: 1rem;
    color: var(--color-text);
}

.charla-section-content .material-icons {
    vertical-align: middle;
    font-size: 1.3rem;
    margin-right: 8px;
    color: var(--color-accent);
}

.section-super-title {
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* ===== MESA REDONDA ===== */
#mesa-redonda .portrait-image {
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

#mesa-redonda .panelistas-top {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

#mesa-redonda .panelistas-bottom {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

#mesa-redonda .panelista-item {
    text-align: center;
}

#mesa-redonda .panelista-item .portrait-image {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
}

#mesa-redonda .panelista-item:hover .portrait-image {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary), 0 0 35px var(--color-secondary);
}

#mesa-redonda .moderador-block {
    text-align: center;
    border-top: 2px dashed rgba(255, 255, 255, 0.2);
    padding-top: 3rem;
}

#mesa-redonda .moderador-block .portrait-image {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

#mesa-redonda .moderador-block:hover .portrait-image {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent);
}

#mesa-redonda .panelista-info .name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1.1rem;
}

#mesa-redonda .panelista-info .tag {
    font-size: 0.9rem;
    color: var(--color-light-text);
    max-width: 70vw;
}

#mesa-redonda .moderador-block .panelista-info .name {
    font-size: 1rem;
}

#mesa-redonda .moderador-block .panelista-info .tag {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ===== SPEAKERS ===== */
#speakers ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

#speakers li {
    padding: 0.7rem;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--color-text);
}

#speakers li:last-child {
    border-bottom: none;
}

/* ===== CALL TO ACTION ===== */
#cta {
    text-align: center;
    background: linear-gradient(rgba(10, 5, 26, 0.9), rgba(10, 5, 26, 0.9)), url('img/Poster_Jornada_Innova.jpg');
    background-attachment: fixed;
    background-size: cover;
}

#cta h2 {
    font-size: 2.8rem;
}

#cta p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

#cta a.email-link {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

#cta a.email-link:hover {
    transform: scale(1.05);
}

/* ===== COLABORADORES ===== */
#patrocinadores {
    padding: 8rem 0 4rem 0 !important;
}

.sponsors-banner {
    text-align: center;
    width: 100%;
}

.sponsors-image {
    width: 90vw;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsors-image:hover {
    transform: scale(1.02);
}

/* ===== MODALES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, var(--color-bg) 0%, #1a0d2e 100%);
    margin: 5% auto;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    border: 2px solid rgba(79, 70, 229, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

.modal-logo-img {
    width: 90%;
}

.modal-text {
    font-size: 1.2rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--color-light-text);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-email-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.modal-email-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4);
}

/* Estilos específicos del modal de agenda */
#agenda-modal .modal-content {
    padding: 2rem;
}

#agenda-modal .agenda-grid {
    gap: 1rem;
}

#agenda-modal .timeline-card {
    padding: 1rem;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: var(--color-light-text);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
    .charla-section-content {
        flex-direction: column;
        height: auto;
    }

    .charla-section-content .image-container,
    .charla-section-content.right-image .image-container {
        order: -1;
        width: 100%;
        height: 50vh;
    }

    .charla-section-content .text-container,
    .charla-section-content.right-image .text-container {
        order: 1;
        width: 100%;
        padding: 3rem;
        text-align: center;
    }

    .charla-section-content .text-container h3 {
        text-align: center;
    }

    .section-super-title {
        font-size: 2.2rem;
    }

    #mesa-redonda .panelistas-top,
    #mesa-redonda .panelistas-bottom {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {

    /* Utilidades móvil */
    .section-breathing {
        padding: 6rem 0 !important;
    }

    /* Tipografía móvil */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Charlas móvil */
    .charla-section-content .image-container {
        height: 40vh;
    }

    .charla-section-content .text-container {
        padding: 2rem 1.5rem;
    }

    .charla-section-content .text-container h3 {
        font-size: 1.8rem;
    }

    .section-super-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    /* Agenda móvil */
    .agenda-grid {
        grid-template-columns: 1fr;
    }

    /* Mesa redonda móvil */
    #mesa-redonda .panelistas-top,
    #mesa-redonda .panelistas-bottom {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    #mesa-redonda .panelista-item .portrait-image {
        width: 130px;
        height: 130px;
    }

    #mesa-redonda .moderador-block .portrait-image {
        width: 100px;
        height: 100px;
    }

    /* Textos móvil */
    #mesa-redonda p {
        max-width: 99vw !important;
        padding: 0 1rem;
    }

    #speakers p {
        max-width: 90vw !important;
        padding: 0 1rem;
    }

    /* Modal móvil */
    .modal-content {
        margin: 10% auto;
        padding: 2rem;
    }

    .modal-logo {
        width: 120px;
        height: 120px;
    }

    .modal-text {
        font-size: 1rem;
    }

    /* Footer móvil */
    footer {
        padding: 2rem 1rem;
    }

    footer .container {
        max-width: 90vw;
        padding: 0;
    }

    footer p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Colaboradores móvil */
    #patrocinadores {
        padding: 6rem 0 3rem 0 !important;
    }
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    text-align: center;
}

.loader-logo {
    width: 25vw;           /* Más grande */
    height: 25vh;
    margin-bottom: 2rem;    /* Más separación */
    animation: pulse 2s infinite;
    filter: brightness(1.2); /* Más visible */
}

.spinner {
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
/* ===== MESA PROYECTO (mismo estilo que mesa redonda) ===== */
#mesa-proyecto .portrait-image {
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

#mesa-proyecto .panelistas-top {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

#mesa-proyecto .panelista-item {
    text-align: center;
}

#mesa-proyecto .panelista-item .portrait-image {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
}

#mesa-proyecto .panelista-item:hover .portrait-image {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary), 0 0 35px var(--color-secondary);
}

#mesa-proyecto .panelista-info .name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1.1rem;
}

#mesa-proyecto .panelista-info .tag {
    font-size: 0.9rem;
    color: var(--color-light-text);
    max-width: 70vw;
}

/* Responsive para mesa proyecto */
@media screen and (max-width: 992px) {
    #mesa-proyecto .panelistas-top {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    #mesa-proyecto .panelistas-top {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    #mesa-proyecto .panelista-item .portrait-image {
        width: 130px;
        height: 130px;
    }
}
/* ===== FOOTER REDISEÑADO ===== */
footer {
    text-align: center;
    padding: 0;
    font-size: 0.9rem;
    color: var(--color-light-text);
}

/* Sección del logo oficial */
.footer-logo-section {
    width: 100vw;
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;

}

.footer-logo-image {
    max-width: 90vw;
    max-height: 15vh;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo-image:hover {
    opacity: 1;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .footer-logo-section {
        height: 15vh;
    }

    .footer-logo-image {
        max-width: 95vw;
        max-height: 12vh;
    }

    footer .container {
        max-width: 90vw;
        padding: 0;
    }

    footer p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}