html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

*, *:before, *:after {
    box-sizing: inherit;
}

:root {
    --color-primary: #f9bc32;
    /* Amarillo/Dorado principal */
    --color-secondary: #0a1f2c;
    /* Azul/Verde muy oscuro */
    --color-text: #ffffff;
    --color-bg: #f4f6f8;
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-secondary);
    color: var(--color-text);
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* --- GATEKEEPER --- */
.gatekeeper-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: url('https://images.unsplash.com/photo-1593508512255-86ab42a8e620?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
}

.gatekeeper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 44, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.gatekeeper-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- BUTTONS --- */
.btn-primary {
    background-color: var(--color-primary);
    color: #000000;
    border: none;
    padding: 1.8rem 4.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    font-family: var(--font-body);
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: #ffd05c;
}

.btn-ghost {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid var(--color-primary);
    padding: 1.8rem 4.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    margin-top: 1rem;
    text-transform: uppercase;
}

.btn-ghost:hover {
    background-color: var(--color-primary);
    color: #000;
}

/* --- LOGIN BOX --- */
.login-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.error-text {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.login-box button {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* --- MAIN CONTENT TEMPLATE --- */
.main-content {
    min-height: 100vh;
}

/* Navbar */
.header {
    background: rgba(10, 31, 44, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 4rem;
    /* Adjusted side padding */
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 31, 44, 0.4) 0%, rgba(10, 31, 44, 0.9) 100%), url('hero-bg.jpg') no-repeat center right/cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    min-width: 0;
    text-align: right;
    margin-top: 4rem;
    margin-right: 5%;
    word-break: normal;
}

.hero-content h1, .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 5.6rem); /* Increased from 2.5rem/4.5vw/5.2rem */
    line-height: 0.95;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    white-space: nowrap;
}

.hero-slogan, .hero-subtitle {
    font-size: 2.45rem; /* Increased from 2.22rem */
    font-style: italic;
    color: #ffffff;
    letter-spacing: 1px;
    margin-top: -1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    font-family: var(--font-body);
}

.hero-event-type, .hero-event-free {
    font-size: 2.45rem; /* Increased from 2.22rem */
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    text-transform: uppercase;
    font-family: var(--font-body);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    /* Increased gap */
    justify-content: flex-end;
}

/* Logos Band Below Hero */
.logos-band {
    background: #ffffff;
    padding: 3rem 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: transparent;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
}

.logo-item-img {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s;
    display: block;
    margin: 0 auto;
}

/* Centralized control for sponsor section logos */
.sponsor-logos img {
    height: 120px !important;
    max-height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 2rem;
    filter: none;
    transition: all 0.3s;
}

.sponsor-logos img:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

.logo-item-img:hover {
    transform: scale(1.05);
}

.footer-logo-img {
    height: 120px;
    /* Increased from 100px to match ACCA global logic */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.logo-placeholder {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
    width: 160px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-placeholder.sm {
    width: 100px;
    padding: 0.5rem;
    font-size: 0.7rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.location-section {
    background: #ffffff;
    color: var(--color-secondary);
    padding: 4rem 10%;
}

.location-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.location-text {
    flex: 1;
    min-width: 300px;
}

.location-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.location-text p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.location-date {
    color: var(--color-primary);
    font-size: 1.3rem !important;
    margin-top: 1rem;
}

.location-map {
    flex: 1;
    min-width: 300px;
}

/* Contador Section */
.counter-section {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 4rem 2rem;
    text-align: center;
}

.counter-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 120px;
}

.time-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
}

.time-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Benefits Section (¡No te lo pierdas!) */
.benefits-section {
    background: #5b7b7a;
    /* Verde petróleo medio */
    padding: 5rem 10%;
    position: relative;
    color: white;
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-text {
    flex: 1;
    min-width: 300px;
}

.benefits-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.benefits-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.benefits-card {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    color: #5b7b7a;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.benefits-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.benefits-list li::before {
    content: '•';
    color: #5b7b7a;
    font-weight: bold;
    font-size: 1.8rem;
    position: absolute;
    left: 0;
    top: -4px;
}

.logos-bottom {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

/* Agenda Summary */
.agenda-summary {
    background: var(--color-bg);
    padding: 6rem 10%;
    text-align: center;
}

.agenda-summary h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-secondary);
}

.agenda-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 4rem;
    align-items: center;
}

.agenda-item {
    background: #f0f0f0;
    color: #333;
    padding: 20px 30px;
    border-radius: 10px;
    font-weight: 500;
    width: 100%;
    max-width: 600px;
    text-align: left;
}

.agenda-buttons-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-secondary-link {
    background: #5b7b7a;
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    font-weight: bold;
    font-family: var(--font-heading);
    transition: transform 0.2s, background 0.2s;
    font-size: 1.1rem;
    display: inline-block;
}

.btn-secondary-link:hover {
    transform: translateY(-3px);
    background: var(--color-secondary);
}

/* --- TRANSVERSAL AGENDA ROWS --- */
.transversal-row td {
    padding: 1.5rem 1rem !important;
    vertical-align: middle;
}

.transversal-cell {
    padding: 0.5rem 1rem !important;
}

.transversal-box {
    background-color: #d8e5e3 !important; /* Muted mint/beige */
    color: #214343; /* Dark petroleum green */
    border-radius: 4px;
    padding: 1.2rem;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.transversal-time {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1.1rem;
    white-space: nowrap;
}

/* Speakers Section */
.speakers-section {
    padding: 6rem 10%;
    text-align: center;
    background: var(--color-secondary);
}

.speakers-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--color-primary);
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.speaker-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s;
    cursor: pointer;
}

.speaker-card:hover {
    transform: translateY(-10px);
}

.speaker-img-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--color-primary);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    background: #0a1f2c; /* Ensure background matches card in case of loading */
}

.speaker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
      object-position: center 15%;
      transition: transform 0.3s;
}

.speaker-card:hover .speaker-img {
    transform: scale(1.22);
}

.speaker-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
    font-family: var(--font-heading);
}

.btn-outline-small {
    background: transparent;
    color: #aaaaaa;
    border: 1px solid #aaaaaa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-small:hover {
    background: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
}

/* Community Section */
.community-section {
    background: #5b7b7a;
    padding: 6rem 10%;
    text-align: center;
    position: relative;
}

.community-card {
    background: #d8e5e3;
    /* Verde clarito muy suave */
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    border-radius: 20px;
    color: var(--color-secondary);
}

.community-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    color: #3d5857;
}

.community-card p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-community {
    background: #5b7b7a;
    color: white;
    border: 2px solid white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-community:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
}

/* Sponsors Section */
.sponsors-section {
    background: #ffffff;
    padding: 6rem 10%;
    text-align: center;
    color: var(--color-secondary);
}

.sponsors-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.sponsor-tier {
    margin-bottom: 4rem;
}

.sponsor-tier h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem; /* Reduced from 2rem to compensate for large logos */
    text-transform: uppercase;
}

.sponsor-tier.organiza-tier {
    margin-bottom: 2rem; /* Tighter for top tier */
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem; /* Increased from 4rem */
    flex-wrap: wrap;
    margin-top: 2rem;
}

.special-guests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Increased from 180px */
    gap: 5rem; /* Increased from 3rem */
    align-items: center;
    justify-items: center;
    max-width: 1200px; /* Widened slightly */
    margin: 4rem auto;
}

.logo-item-img {
    height: 70px !important;
    max-height: 70px !important;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-item-img:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.sponsor-logos .logo-large-scale,
.special-guests-grid .logo-large-scale,
.logo-large-scale {
    height: 432px !important; 
    max-height: 432px !important;
    width: auto !important;
    max-width: 600px !important; /* Cap width for extreme horizontal logos */
}

.sponsor-logos .logo-medium-scale,
.special-guests-grid .logo-medium-scale,
.logo-medium-scale {
    height: 210px !important; /* Visual 2x for logos */
    max-height: 210px !important;
    width: auto !important;
    max-width: 400px !important; /* Prevent overlap for wide logos like Bentley */
}

.footer-logo-img {
    height: 80px !important;
    max-height: 80px !important;
    width: auto;
    object-fit: contain;
}

.sponsor-logos .logo-placeholder {
    background: #f4f6f8;
    color: var(--color-secondary);
    border: 1px solid #ddd;
}

.empty-sponsors {
    color: #999;
    font-style: italic;
}

/* Footer */
.footer {
    background: #ffffff;
    padding: 4rem 10% 2rem;
    color: #333;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.social-circles {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5b7b7a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.social-icon:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    color: #555;
}

.footer-contact strong {
    color: #333;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-footer-light-new {
    background: #aabfbd;
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    padding: 18px 36px !important; /* 1.5x scaling approx */
    cursor: pointer;
    text-decoration: underline;
    font-size: 1.2rem !important;
    transition: all 0.3s ease;
}

.btn-footer-dark-new {
    background: #5b7b7a;
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    padding: 18px 36px !important;
    cursor: pointer;
    text-decoration: underline;
    font-size: 1.2rem !important;
    transition: all 0.3s ease;
}

.btn-footer-light {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 1rem 3rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-heading);
    transition: background 0.3s;
}

.btn-footer-light:hover {
    background: #cccccc;
}

.btn-footer-dark {
    background: #106f70;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-heading);
    transition: background 0.3s;
}

.btn-footer-dark:hover {
    background: #0d5859;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .floating-logos {
        top: 15%;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-placeholder {
        width: 100px;
    }

    .nav-links {
        display: none;
        /* simple mobile fix */
    }

    .benefits-container,
    .location-section {
        flex-direction: column;
        text-align: center;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.logos-bottom {
    align-items: center !important;
}



/* --- AGENDA DETAILED --- */
.agenda-detailed-section {
    background-color: #507b7b;
    padding: 6rem 10%;
    color: #ffffff;
    min-height: 80vh;
}

.agenda-detailed-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 4rem;
    color: #ffffff;
    font-family: var(--font-heading);
}

.agenda-detailed-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.agenda-detailed-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.agenda-detailed-card {
    background-color: #aabfbd;
    color: #214343;
    border-radius: 20px;
    padding: 2rem 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.agenda-time {
    font-weight: 700;
    font-size: 1.6rem;
    width: 220px;
    flex-shrink: 0;
    text-align: left;
}

.agenda-desc {
    font-weight: 400;
    font-size: 1.6rem;
    flex-grow: 1;
}

.agenda-sticky-sidebar {
    position: sticky;
    top: 12rem;
}

.agenda-sticky-card {
    border: 2px dashed #aabfbd;
    border-radius: 15px;
    padding: 3rem 2rem;
    background: transparent;
}

.agenda-sticky-card .btn-primary {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

@media (max-width: 900px) {
    .agenda-detailed-grid {
        grid-template-columns: 1fr;
    }

    .agenda-detailed-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }

    .agenda-time {
        font-weight: 700;
        width: auto;
    }

    .agenda-detailed-title {
        font-size: 2.5rem;
    }
}

/* --- AGENDA SUMMARY (Home) --- */
.agenda-summary {
    background-color: #507b7b;
    padding: 6rem 10%;
    color: #ffffff;
    text-align: center;
}

.agenda-summary h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 3rem;
}

.agenda-items {
    max-width: 800px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.agenda-item {
    background: #ffffff;
    color: #333;
    padding: 1.5rem 3rem;
    border-radius: 12px;
    font-size: 1.6rem;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.agenda-buttons-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-link {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 1.5rem 3rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary-link:hover {
    background: var(--color-primary);
    color: #000;
}

/* --- AGENDA TABLE STYLES --- */
.agenda-table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.2); /* Darker semi-transparent background for better contrast */
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.agenda-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    min-width: 800px;
}

.agenda-table th {
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: 1.5rem;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.agenda-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    line-height: 1.6;
}

.agenda-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.time-col {
    width: 15%;
    text-align: center;
    font-weight: 800;
    color: var(--color-primary);
}

.activity-col {
    width: 30%;
}

.speaker-col {
    width: 25%;
}

.company-col {
    width: 30%;
    text-align: right;
    color: var(--color-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    /* Global Section Padding Adjustments */
    .agenda-summary,
    .community-section,
    .sponsors-section,
    .footer,
    .benefits-section,
    .expositor-section,
    .lugar-section {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    /* Hero Section Mobile Fixes */
    .hero {
        padding: 0 5%;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        margin-right: 0;
        text-align: center;
    }

    .hero-bg {
        background: linear-gradient(to bottom, rgba(10, 31, 44, 0.4) 0%, rgba(10, 31, 44, 0.9) 100%), url('hero-bg.jpg') no-repeat center center/cover !important;
    }

    .hero-content h1 {
        white-space: normal;
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-primary {
        padding: 1.5rem 2rem;
        font-size: 1.4rem;
        width: 100%;
    }

    /* Agenda Cards (Home Page) */
    .agenda-item {
        padding: 1.5rem;
        font-size: 1.1rem;
    }

    /* Agenda Tables (Detailed Pages) */
    .agenda-table {
        min-width: 500px; /* Internal scroll only */
    }

    .agenda-table th, .agenda-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .time-col { 
        width: 120px;
        white-space: normal;
    }

    .company-col {
        width: 130px;
    }

    /* Sponsors & Partners Responsive Scales */
    .sponsor-logos .logo-large-scale,
    .special-guests-grid .logo-large-scale,
    .logo-large-scale {
        height: 144px !important;
        max-height: 150px !important;
        max-width: 90% !important;
        margin: 1rem auto;
    }

    .sponsor-logos .logo-medium-scale,
    .special-guests-grid .logo-medium-scale,
    .logo-medium-scale {
        height: 80px !important;
        max-height: 100px !important;
        max-width: 80% !important;
        margin: 0.8rem auto;
    }

    .sponsor-logos {
        gap: 2rem !important;
        padding: 0 5%;
    }

    /* Speaker Grid */
    .speaker-grid {
        gap: 1.5rem;
    }

    /* Sponsors & Logos Band */
    .logos-band {
        gap: 2rem;
        padding: 2rem 5%;
    }

    .logo-item img {
        height: auto !important;
        max-width: 250px !important;
    }

    /* Counter Section */
    .time-box {
        min-width: 80px;
        padding: 1rem;
    }

    .time-value {
        font-size: 2.5rem;
    }

    /* Footer Bottom Fix */
    .logos-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
}



/* Subfooter Section */
.subfooter-section {
    background: #061118;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.subfooter-section p {
    margin: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}




/* --- EXPOSITOR DETAIL VIEW (V4.2 PROFESSIONAL OVERHAUL) --- */
.expositor-detail-container {
    max-width: 1200px;
    margin: 8rem auto 4rem;
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: flex-start;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #f0f4f8;
}

.expositor-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: sticky;
    top: 8rem;
    height: fit-content;
}

.expositor-main-photo {
    width: 200px !important;
    height: 200px !important;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 4px solid #fff;
    background: #f8fafc;
}

.expositor-company-logo {
    max-width: 180px !important;
    max-height: 80px !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.04));
    transition: transform 0.3s ease;
}

.expositor-info-col {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.expositor-header h1 {
    font-size: 2.8rem !important;
    color: #214343 !important;
    margin: 0;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: 'Montserrat', sans-serif !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.expositor-company-name {
    font-size: 1.2rem;
    color: #85b035;
    font-weight: 700;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expositor-section-title {
    font-size: 1.1rem;
    color: #214343;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #85b035;
    display: inline-block;
    padding-bottom: 0.3rem;
    font-weight: 800;
}

.expositor-bio {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #4a5568;
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
}

.ponencia-box {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 6px solid #85b035;
    margin-top: 1rem;
}

.panelista-box {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 2px solid #85b035;
    margin-top: 0.5rem;
    text-align: left;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.panelista-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.2rem;
    color: #214343 !important;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ponencia-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #214343;
    display: block;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.ponencia-title h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 3.5rem;
    color: #0A1F2C;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
}

.ponencia-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
}

.btn-back-expositores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem auto 0;
    padding: 1rem 2.5rem;
    background: #214343;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    width: fit-content;
    align-self: center; /* Essential for centering in flex column */
}

.btn-back-expositores:hover {
    background: #85b035;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(133, 176, 53, 0.3);
}

@media (max-width: 992px) {
    .expositor-detail-container {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
        margin: 7rem auto 3rem;
        width: 92%;
        max-width: 100vw;
        gap: 3rem;
        overflow-x: hidden !important;
        display: flex;
        flex-direction: column;
    }
    .expositor-detail-container > div {
        min-width: 0;
        width: 100%;
    }
    .expositor-photo-col {
        position: static;
        flex-direction: column; /* Force vertical stack on mobile */
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .btn-back-expositores {
        margin: 1.5rem auto 0;
        width: 100%;
        max-width: 300px;
        order: 10; /* Ensure it stays below photo and logo */
    }
    .expositor-main-photo {
        width: 180px !important;
        height: 180px !important;
    }
    .expositor-header h1 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 768px) {
    .expositor-detail-container {
        width: 95%;
        padding: 2rem 1rem;
        margin-top: 6rem;
    }
    .expositor-header h1 {
        font-size: 1.8rem !important;
    }
    .expositor-bio {
        font-size: 1.05rem;
    }
    .ponencia-box {
        padding: 1.5rem;
    }
}



/* --- SECCIÓN LOGOS COMUNIDAD (RESPONSIVIDAD FINAL) --- */
.logos-bottom {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
    width: 100%;
}

.logos-bottom .logo-item-img.logo-large-scale {
    height: 220px !important;
    max-height: 280px !important;
    width: auto !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .logos-bottom {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 20px !important;
        padding: 0 5% !important;
        justify-items: center;
        width: 100%;
    }

    .logos-bottom .logo-item-img.logo-large-scale {
        height: 120px !important;
        max-height: 140px !important;
    }
}



.social-links-container {
    text-align: left !important;
    margin-top: 1rem;
}


.redes-sociales {
    text-align: left !important;
}

/* --- Social Media Profiles Refinement V9.0 --- */
.expositor-social {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    background: #f4f4f4; /* Light gray for visibility on white */
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.social-link-item:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.social-icon-circle {
    width: 34px;
    height: 34px;
    background: var(--color-secondary); /* Dark blue circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
}

.social-link-item:hover .social-icon-circle {
    background: white;
    color: var(--color-secondary);
}

.social-label {
    color: var(--color-secondary);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.social-link-item:hover .social-label {
    color: white;
}
