/* Definición de variables CSS para nuestros colores */
:root {
    --azul-oscuro: #0a4f6d;
    --verde-agua: #84dcc6;
    --dorado: #f5c249;
    --rojo-coral: #ff6f61;
    --gris-oscuro: #2c3e50;
    --gris-claro: #ecf0f1;
    --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Base de tipografía y colores */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--gris-oscuro);
    background-color: var(--gris-claro);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-weight: 600;
    color: var(--azul-oscuro);
}

h2,
h3 {
    text-align: center;
}

/* Contenedor principal */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Navegación */
.main-nav {
    background-color: white;
    box-shadow: var(--sombra-suave);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease-in-out;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gris-oscuro);
    padding: 10px 20px;
    font-weight: 600;
    transition: color 0.3s, background-color 0.3s, border-bottom 0.3s ease-in-out;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rojo-coral);
    background-color: var(--gris-claro);
    border-radius: 5px;
    border-bottom-color: var(--rojo-coral);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--rojo-coral);
    color: white;
    box-shadow: 0 4px 8px rgba(255, 111, 97, 0.3);
}

.btn-secondary {
    background-color: var(--azul-oscuro);
    color: white;
    box-shadow: 0 4px 8px rgba(10, 79, 109, 0.3);
}

.btn-inscripcion {
    background-color: var(--verde-agua);
    color: var(--gris-oscuro);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.2s ease-in-out;
    border: 2px solid transparent;
}

.btn-inscripcion:hover {
    background-color: var(--dorado);
    color: white;
    transform: scale(1.05);
    border-color: var(--dorado);
}

/* Header principal */
.header {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, #1a5e84 100%);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    /* Nuevo: usar flexbox */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-content {
    margin-bottom: 2rem;
}

.header h1,
.header h2,
.header h3 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.header h3.modalidad-title {
    font-size: 1.5rem;
    color: var(--verde-agua);
}

/* Ubicación y Modalidad */
.location-container {
    background: var(--azul-oscuro);
    /* Mantener el color, pero con un gradiente */
    background: linear-gradient(to right, var(--azul-oscuro), #1a5e84);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    /* Nuevo: flexbox para la distribución */
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    width: 90%;
    max-width: 800px;
    margin: -2rem auto 2rem;
    /* Elevar el contenedor para que se superponga */
    position: relative;
    z-index: 5;
}

.location-info,
.modalidad-info {
    flex-basis: 40%;
}

.location-title {
    font-size: 2.5rem;
    color: var(--dorado);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.location-address {
    font-size: 1.2rem;
    margin: 0.5rem 0 0;
    color: #eee;
}

.modalidad-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--verde-agua);
}

.modalidad-type {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Títulos de sección */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--rojo-coral);
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--dorado);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Tarjetas de Precios */
.pricing-section {
    padding: 3rem 0;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pricing-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 2.5rem 0;
    color: white;
    font-weight: bold;
}

.card-header.full-access {
    background: linear-gradient(135deg, var(--azul-oscuro), #1a5e84);
}

.card-header.fair-access {
    background: linear-gradient(135deg, var(--rojo-coral), #ff8c80);
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--azul-oscuro);
}

.price-suffix {
    font-size: 1.2rem;
    vertical-align: top;
    font-weight: normal;
    color: var(--gris-oscuro);
}

.price-cedia p,
.price-general p {
    margin-top: 0;
    font-size: 1.1rem;
}

.promo-code {
    font-weight: bold;
    color: var(--rojo-coral);
    margin: 1rem 0;
    font-size: 1.1rem;
    padding: 10px;
    background-color: rgba(255, 111, 97, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 111, 97, 0.3);
    text-align: left;
}

.contact-info {
    font-size: 1rem;
    color: var(--gris-oscuro);
    margin-top: 1.5rem;
}

.contact-info a {
    color: var(--verde-agua);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--azul-oscuro);
}

/* Nuevos estilos para los pies de tarjeta flex */
.card-footer-flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--sombra-suave);
}

.flex-item {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
}

.flex-item .subtitle {
    font-size: 1.5rem;
    color: var(--azul-oscuro);
    border-bottom: 2px solid var(--dorado);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.flex-item ul {
    list-style: none;
    padding: 0;
}

.flex-item li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.flex-item li i {
    color: var(--verde-agua);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Cronograma */
.schedule-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.schedule-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.schedule-container table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    border: 1px solid #eee;
}

.schedule-container th,
.schedule-container td {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.schedule-container th {
    background-color: var(--dorado);
    color: var(--gris-oscuro);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-container tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.schedule-container tbody tr:hover {
    background-color: #f0f0f0;
}

.schedule-container td {
    color: var(--gris-oscuro);
}

.schedule-container td:first-child {
    font-weight: 600;
    color: var(--azul-oscuro);
}

/* Ejes Temáticos */
.ejes-tematicos {
    margin: 4rem auto;
    text-align: center;
}

.tematicos-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    justify-content: center;
}

.tematico-card {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.tematico-card:hover {
    transform: translateY(-5px);
}

.card-number {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--rojo-coral);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    width: 80px;
    min-height: 100%;
    flex-shrink: 0;
    border-radius: 15px 0 0 15px;
}

.card-content {
    padding: 20px;
    text-align: left;
}

.card-content strong {
    color: var(--azul-oscuro);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--gris-oscuro), #1f2a36);
    color: white;
    text-align: center;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer img {
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #ddd;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.5s ease-out;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--rojo-coral);
    text-decoration: none;
    cursor: pointer;
}

.form-title {
    color: var(--azul-oscuro);
    border-bottom: 2px solid var(--dorado);
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--gris-oscuro);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--azul-oscuro);
    box-shadow: 0 0 5px rgba(10, 79, 109, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--verde-agua);
    color: var(--gris-oscuro);
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-submit:hover {
    background-color: var(--dorado);
    transform: translateY(-3px);
}

.message-container {
    padding: 15px;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    display: none;
}

.message-container.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message-container.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.message-container.sending-message {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    display: block;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
    }

    .nav-list {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 10px 15px;
    }

    .btn-inscripcion {
        margin-top: 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header h2 {
        font-size: 1.5rem;
    }

    .header h3.modalidad-title {
        font-size: 1.2rem;
    }

    .location-container {
        flex-direction: column;
        width: 100%;
        margin: -2rem auto 1rem;
    }

    .location-info,
    .modalidad-info {
        flex-basis: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .pricing-card {
        width: 90%;
    }

    .card-footer-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .flex-item {
        min-width: unset;
    }

    .tematicos-grid-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

/* Estilos para la nueva sección de ponentes con carrusel */
.speakers-section {
    margin: 4rem auto;
    text-align: center;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 50px; /* Espacio para los botones */
}

.carousel-container {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    height: 100%;
    gap: 25px;
    justify-content: flex-start;
}

.speaker-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    flex: 0 0 auto; /* No se encogen, ni crecen */
    width: 380px; /* Ancho fijo para cada tarjeta */
}

.speaker-card:hover {
    transform: translateY(-5px);
}

.speaker-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.carousel-btn {
    background-color: var(--azul-oscuro);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-btn:hover {
    background-color: var(--rojo-coral);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}