/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000;
    overflow-x: hidden;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}

/* Encabezado */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 15px 20px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.menu-hamburguesa {
    font-size: 24px;
    cursor: pointer;
}

/* Menú lateral */
#menu-lateral {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #222;
    box-shadow: 2px 0px 5px rgba(0,0,0,0.5);
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 60px;
}

#menu-lateral ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu-lateral ul li {
    padding: 15px;
    border-bottom: 1px solid #444;
}

#menu-lateral ul li a {
    color: white;
    text-decoration: none;
    display: block;
}

/* Botón para cerrar el menú */
#cerrar-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Fondo oscuro cuando el menú está abierto */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 900;
}

/* Deshabilitar scroll cuando el menú está abierto */
body.menu-abierto {
    overflow: hidden;
}

/* Contenido principal */
section {
    padding: 20px;
}

/* Botón de inscripción */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: orange;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.bloque-texto {
    width: 70%;
    margin: 0 auto;         /* Центрирует блок */
    padding: 20px 0;
    font-size: 1.2rem;       /* Размер шрифта можно регулировать */
    line-height: 1.6;        /* Межстрочный интервал */
    text-align: justify;     /* Или left/center — как тебе нравится */
  }

/* Responsividad */
@media (max-width: 768px) {
    .menu-hamburguesa {
        display: block;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 16px;
    }

    section {
        padding: 10px;
    }
}


/* Контейнер для изображения */
.imagen-container {
    width: 100%; /* Занимает всю ширину */
    max-width: 800px; /* Ограничение максимального размера */
    margin: 0 auto; /* Центрирование */
    overflow: hidden; /* Избегаем выхода за границы */
}

/* Само изображение */
.imagen-container img {
    width: 100%; /* Подстраивается под контейнер */
    height: auto; /* Сохраняет пропорции */
    display: block; /* Убирает лишние отступы */
    border-radius: 8px; /* Закругленные углы (можно убрать) */
}

/* Адаптация под мобильные устройства */
@media (max-width: 600px) {
    .imagen-container {
        max-width: 100%; /* Убираем ограничение ширины */
    }
    .bloque-texto {
        width: 90%;
      }
}









/* Контейнер галереи */
.galeria-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 70vh; /* Галерея занимает 80% высоты экрана */
    overflow: hidden;
}

/* Лента изображений */
.galeria {
    display: flex;
    gap: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

/* Стили для изображений */
.galeria img {
    width: 100vw; /* Каждое изображение занимает всю ширину экрана */
    height: 100%;
    object-fit: cover; /* Заполняет весь блок без искажений */
    transition: transform 0.3s ease;
}

.galeria img:hover {
    transform: scale(1.02);
}

/* Кнопки прокрутки */
.btn-prev, .btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    font-size: 30px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-prev:hover, .btn-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Расположение кнопок */
.btn-prev { left: 10px; }
.btn-next { right: 10px; }















/* Секция новостей */
#noticias {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

#noticias h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Сетка новостей */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Одна новость */
.noticia {
    text-decoration: none;
    color: inherit;
    background-color: white;
    border: 1px solid #ccc;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px;
}

.noticia img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.noticia p {
    padding: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.noticia:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Секция Inscripciones по центру экрана */
#inscripcion {
    display: flex;              /* Включаем flex-контейнер */
    flex-direction: column;     /* Элементы располагаются вертикально */
    justify-content: center;    /* Вертикальное центрирование */
    align-items: center;        /* Горизонтальное центрирование */
    text-align: center;         /* Центрируем текст внутри элементов */
    padding: 20px;              /* Отступы по желанию */
    box-sizing: border-box;     /* Учитываем отступы в ширине/высоте */
  }



/* Стили для ссылок в заголовках */
.link-title {
    text-decoration: none;   /* убираем подчёркивание */
    color: inherit;          /* цвет наследуется от заголовка */
    cursor: pointer;         /* курсор "рука" */
  }
  
  /* (опционально) при наведении — тоже не менять цвет */
  .link-title:hover {
    text-decoration: underline; /* если хочешь — можешь вернуть подчёркивание при наведении */
  }









  .footer {
    background-color: #000;
    color: #fff;
    padding: 20px 10px;
  }
  
  .footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .footer-logo img {
    max-height: 60px;
    width: auto;
  }
  
  .footer-text {
    text-align: center;
  }
  
  .footer-text .site-name {
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  .footer-text .author {
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  /* Adaptación para móviles */
  @media (max-width: 600px) {
    .footer-content {
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }
  
    .footer-logo img {
      max-height: 50px;
    }
  }
