/* Global Styles */
:root {
    --primary-color: #1F3257;
    --secondary-color: #003366;
    --accent-color: #FFD700;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --error-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
/* ============================
   HEADER (FULL WIDTH BANNER)
   ============================ */

.header {
  padding: 0;
  margin: 0;
  /* altura automática según la imagen */
  height: auto;
}

/* Anulamos el max-width solo para el contenedor dentro del header */
.header > .container {
  max-width: none;
  width: 100%;
  padding: 0;
}

/* Hacemos que la imagen del picture ocupe TODO el ancho */
.header-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Si tenías background-image en .header, quítalo o coméntalo: */
/*
.header {
  background: none !important;
}
*/
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background-color: var(--light-color);
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

.number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.label {
    font-size: 1rem;
    color: var(--gray-color);
}

/* Schedule Section */
.schedule {
    background-color: white;
}

.days-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    background-color: var(--light-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #e0e0e0;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: white;
}

.day-content {
    display: none;
}

.day-content.active {
    display: block;
}

.event {
    display: flex;
    margin-bottom: 1.5rem;
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.event-time {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    /* opcional: ajusta o quita min-width si te sobra espacio */
    /* min-width: 200px; */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    white-space: nowrap;
}

.event-details {
    padding: 1.5rem;
    flex-grow: 1;
}

.event-details h3 {
    color: var(--primary-color);
}

.speakers {
    margin-top: 0.5rem;
}

.speaker-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* Speakers Section */
.speakers-section {
    background-color: var(--light-color);
    text-align: center;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.speaker-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-10px);
}

.speaker-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--light-color);
}

.speaker-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.speaker-bio {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Registration Form */
.registration {
    background-color: white;
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group select[multiple] {
    height: auto;
    min-height: 120px;
}

.form-group textarea {
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
}

.submit-button {
    background-color: #1F3159;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
    display: block;
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--error-color);
    display: block;
}

/* Loader */
.loader {
    text-align: center;
    margin-top: 1rem;
}

.loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Footer */
.footer {
    background-color: #1F3159;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-info i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.footer-social h3 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

/* Simple Checkbox Styles */
.simple-checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.simple-checkbox-label {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.simple-checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.simple-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
}

.simple-checkbox-label:hover input ~ .simple-checkmark {
    background-color: #ccc;
}

.simple-checkbox-label input:checked ~ .simple-checkmark {
    background-color: #2196F3;
}

.simple-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.simple-checkbox-label input:checked ~ .simple-checkmark:after {
    display: block;
}

.simple-checkbox-label .simple-checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.social-icons a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #FFF;
}

/* Eventos cargados dinámicamente */
.event {
    display: flex;
    margin-bottom: 1.5rem;
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event:hover {
    transform: translateY(-5px);
}

.event-time {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    min-width: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.event-details {
    padding: 1.5rem;
    flex-grow: 1;
}

.event-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-conferencia .event-time {
    background-color: var(--primary-color);
}

.event-taller .event-time {
    background-color: #28a745;
}

.event-networking .event-time {
    background-color: #6f42c1;
}

.event-almuerzo .event-time {
    background-color: #fd7e14;
}

.speakers {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.speaker-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    gap: 0.5rem;
}

.speaker-photo-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.events-loader {
    text-align: center;
    padding: 2rem;
}

.events-loader .loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.error-message {
    color: var(--error-color);
    text-align: center;
}

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

@media (max-width: 768px) {
    .event {
        flex-direction: column;
    }
    
    .event-time {
        min-width: 100%;
        padding: 0.5rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header h2 {
        font-size: 1.2rem;
    }
    
    .event {
        flex-direction: column;
    }
    
    .event-time {
        min-width: 100%;
        padding: 0.5rem;
    }
}
