@font-face {
    font-family: 'Pluto Sans Bold';
    src: url('../images/fonts/PlutoSansBold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Pluto Sans Light';
    src: url('../images/fonts/PlutoSansLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

:root {
    --primary-color: #000000;
    --accent-color: #8bc34a;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --header-height: 80px;
    --navbar-width: 250px;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pluto Sans Light', sans-serif;
    color: var(--text-color-dark);
    background-color: #f5f5f5;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
    font-family: 'Pluto Sans Bold', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15%;
    transition: background-color var(--transition-speed) ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logos img {
    height: 60px;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-mobile {
    display: none;
}

.btn-header-link {
    text-decoration: none;
    color: #333;
    font-family: 'Pluto Sans Bold';
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
}

.btn-header-outline {
    text-decoration: none;
    color: #333;
    font-family: 'Pluto Sans Bold';
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
}

.header-social {
    display: flex;
    gap: 10px;
}

.social-btn img {
    height: 33px;
    transition: transform 0.2s ease;
    border: 1px solid #ccc;
    border-radius: 50%;
    padding: 4px;
}

.social-btn:hover img {
    transform: translateY(-3px) scale(1.05);
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* STICKY FOOTER BAR */
.sticky-footer-bar {
    position: absolute;
    top: calc(100vh - 80px);
    left: 0;
    width: 100%;
    height: 80px;
    background: #333333;
    z-index: 999;
    /* Evita transformar top para evitar salto visual o doble animacion al hacer docking */
    transition: background 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    font-size: 0.8rem;
}

.sticky-footer-bar.docked {
    position: fixed;
    top: var(--header-height);
    bottom: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.info-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 1000px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    font-size: 1.5rem;
    color: #ff9800;
    border: 1px solid #ff9800;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text strong {
    display: block;
    font-size: 1.1rem;
}

.info-text span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* SIDE NAV */
.side-nav {
    position: fixed;
    left: -300px;
    top: 50%;
    transform: translateY(-70%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: left var(--transition-speed) ease;
}

.side-nav.visible {
    left: 140px;
}

.nav-btn {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: grayscale(100%) opacity(0.6);
}

.nav-btn img {
    width: 220px;
    height: auto;
}

.nav-btn:hover,
.nav-btn.active {
    transform: scale(1.05);
    filter: grayscale(0%) opacity(1);
}

/* HERO */
.section-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../images/BG_1.png') center center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
}

.logo-main {
    max-width: 724px;
    margin-bottom: 100px;
    animation: fadeInDown 1s ease-out;
}

.countdown-container {
    display: flex;
    gap: 15px;
    margin-bottom: 100px;
    justify-content: center;
}

.countdown-box {
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-color-light);
    padding: 20px;
    border-radius: 8px;
    min-width: 90px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-box span {
    display: block;
    font-family: 'Pluto Sans Bold';
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-box label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
}

.cta-btn img {
    height: 60px;
    transition: transform 0.3s ease;
}

.cta-btn:hover img {
    transform: scale(1.05);
}

/* SECTIONS */
.section {
    min-height: 100vh;
    padding: 150px 5% 80px 300px;
    position: relative;
    display: flex;
    align-items: center;
}

.section-light {
    background: url('../images/BG_2.png') center center/cover no-repeat;
    background-attachment: fixed;
}

.section-title {
    font-size: 3rem;
    color: #00a0e3;
    padding-top: 50px;
}

#talleres .section-title {
    color: #b67b0c;
}

.section-title .subtitle {
    color: #333;
    font-size: 1.5rem;
    display: block;
    margin-top: 5px;
}

/* INTRO */
.intro-text h2 {
    font-size: 3.5rem;
    color: #555;
    line-height: 1.2;
    margin-bottom: 30px;
    max-width: 800px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 700px;
    color: #666;
}

.cta-btn-flat {
    display: inline-block;
    background: #8bc34a;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Pluto Sans Bold';
    font-size: 1.2rem;
    transition: background 0.3s;
    margin-top: 20px;
}

.cta-btn-flat:hover {
    background: #7cb342;
}

/* AGENDA */
.table-responsive {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: white;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.agenda-table {
    width: 100%;
    min-width: 600px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    /* Base for stacking */
}

.agenda-row {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.agenda-row:last-child {
    border-bottom: none;
}

.agenda-row.header {
    background: #00a0e3;
    color: white;
    font-family: 'Pluto Sans Bold';
}

#talleres .agenda-row.header {
    background: #b67b0c;
}

.agenda-row.header .col-time,
.agenda-row.header .col-resp {
    color: white;
}

.agenda-row:nth-child(even):not(.header) {
    background: #f9f9f9;
}

.col-time {
    width: 150px;
    font-weight: bold;
    color: #2e2e2e;
}

.col-activity {
    flex: 1;
    padding-right: 20px;
}

.col-resp {
    width: 250px;
    color: #777;
    font-size: 0.9rem;
}

/* PONENTES INTERNACIONALES */
.grid-speakers-int {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 60px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.speaker-int-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.speaker-int-card:hover {
    transform: translateY(-5px);
}

.speaker-int-img {
    flex: 0 0 350px;
}

.speaker-int-img img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 10px;
}

.speaker-int-info {
    flex: 1;
}

.speaker-int-name {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 5px;
}

.speaker-int-country {
    font-size: 1.2rem;
    color: #e65d0e;
    font-family: 'Pluto Sans Light';
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.speaker-int-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 900px) {
    .speaker-int-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .speaker-int-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
    }
}

/* PONENTES DESTACADOS */
.grid-speakers-dest {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 100% !important;
}

#ponentes-dest .container {
    max-width: 1080px;
    /* Wider for "pantalla completa" feel */
    width: 100%;
}

.speaker-dest-card {
    background: rgba(187, 187, 187, 0.3);
    /* Darker base for overlay */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #ce8d14;
    transition: transform 0.3s ease;
    position: relative;
    display: block;
}

.speaker-dest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.speaker-dest-card img {
    width: 100%;
    aspect-ratio: 607 / 782;
    object-fit: cover;
    object-position: top;
    display: block;
}

.speaker-dest-card .info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 10px 10px 10px;
    text-align: left;
    color: rgb(83, 83, 83);
    box-sizing: border-box;
}

.speaker-dest-card h1 {
    font-size: 1.7rem;
    font-family: 'Pluto Sans Light';
    color: rgb(77, 77, 77);
    line-height: 1;
    margin: 0;
}

.speaker-dest-card h4 {
    font-size: 1.4rem;
    font-family: 'Pluto Sans Bold';
    color: rgb(65, 65, 65);
    /* Highlight lastName with accent color */
    margin-bottom: 4px;
    line-height: 1.1;
}

.speaker-dest-card p {
    font-size: 0.7rem;
    color: rgb(59, 59, 59);
    line-height: 1.2;
    margin: 0;
}

/* FORM */
.form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.inscribete-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inscribete-form input,
.inscribete-form select {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Pluto Sans Light';
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    background-color: white;
}

.inscribete-form input:focus,
.inscribete-form select:focus {
    border-color: #00a0e3;
}

.checkbox-group {
    text-align: left;
    margin: 10px 0;
}

.checkbox-group-title {
    font-family: 'Pluto Sans Bold';
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-grid label {
    font-family: 'Pluto Sans Light';
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
}

.checkbox-grid input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.inscribete-form button {
    padding: 18px;
    background: #8bc34a;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Pluto Sans Bold';
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.inscribete-form button:hover {
    background: #7cb342;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .side-nav {
        display: none;
    }

    .info-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .sticky-footer-bar {
        height: auto;
        padding: 15px 0;
    }

    .sticky-footer-bar.docked {
        position: static;
    }

    .site-header {
        padding: 0 15px;
        width: auto !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box;
    }

    .header-left-group {
        gap: 20px;
    }
}

@media (max-width: 800px) {
    .site-header {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 15px;
        height: auto;
        width: auto !important;
        left: 0 !important;
        right: 0 !important;
    }

    .header-left-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .table-responsive {
        margin: 25px auto;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
    }

    .agenda-table {
        min-width: 100%;
        width: 100%;
    }

    .agenda-row {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
    }

    .agenda-row.header {
        white-space: normal;
    }

    .col-time,
    .col-activity,
    .col-resp {
        font-size: 0.95rem; /* Reduced to avoid overflow */
        flex-shrink: 1;
        padding: 10px;
        word-wrap: break-word;
    }

    .header-right {
        display: none;
    }
}

@media (max-width: 700px) {
    .site-header {
        padding: 8px 15px;
        height: auto;
        min-height: 70px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background: #fff;
        width: auto !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box;
    }

    .header-left-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        flex: 1;
        margin-right: 15px;
    }

    .header-logos {
        gap: 10px;
        margin-bottom: 0;
    }

    .header-logos img {
        height: 32px;
    }

    .header-right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .header-right.active {
        display: flex;
    }

    .nav-mobile {
        display: block !important;
    }

    .header-social {
        display: flex !important;
        gap: 6px;
        margin-top: 5px;
    }

    .social-btn img {
        height: 26px;
        padding: 1px;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: 0;
        flex-shrink: 0;
    }

    .btn-header-link,
    .btn-header-outline {
        width: 100%;
        text-align: center;
    }

    /* Hero adjustments */
    .logo-main {
        max-width: 90%;
        margin-bottom: 40px;
    }

    .countdown-container {
        flex-wrap: wrap;
        margin-bottom: 40px;
        gap: 10px;
    }

    .countdown-box {
        min-width: 65px;
        padding: 8px;
    }

    .countdown-box span {
        font-size: 1.5rem;
    }

    /* Section adjustments */
    .section {
        padding-top: 100px;
        padding-bottom: 60px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .intro-text h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
        text-align: center;
    }

    /* Table Typography for very small screens */
    .table-responsive {
        max-width: calc(100vw - 30px);
        margin: 25px auto;
    }

    .col-time { width: 70px; flex-shrink: 0; }
    .col-resp { width: 100px; flex-shrink: 0; }
    .col-activity { flex: 1; min-width: 120px; }

    .agenda-table {
        min-width: 100%;
    }

    .agenda-row {
        width: 100% !important;
        min-width: 100%;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .col-time,
    .col-activity,
    .col-resp {
        font-size: 0.8rem; /* Small enough to fit */
        padding: 8px 5px;
        word-wrap: break-word;
    }

    /* Fixed/Sticky Footer Bar visibility */
    .sticky-footer-bar {
        position: absolute !important;
        display: flex !important;
        background: #222;
        margin-top: 0;
        z-index: 998;
        width: 100%;
        padding: 10px 0;
    }

    .sticky-footer-bar.docked {
        position: fixed !important;
        top: 90px !important;
        /* Repositioned 5px higher to sit flush below the site-header */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .info-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .info-item {
        gap: 8px;
    }

    .info-text strong {
        font-size: 0.7rem;
    }

    .info-text span {
        font-size: 0.6rem;
    }

    .info-icon {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    /* Background image fix */
    .section-hero,
    .section-light {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }

    .grid-speakers-dest {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .speaker-dest-card h1 {
        font-size: 1.2rem;
    }

    .speaker-dest-card h4 {
        font-size: 1rem;
    }
}