/* ======= HEADER ======= */
header {
    background-color: #d0a878;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    position: relative;
}

/* ======= BASE GENERAL ======= */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f0e6;
    color: #3e3e3e;
    margin: 0;
    padding: 0;
}

/* ======= MENÚ SUPERIOR (vistas antiguas) ======= */
.menu {
    background-color: #d2b48c;
    padding: 1em;
    display: flex;
    gap: 1.5em;
    justify-content: center;
}

.menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
}

main {
    padding: 2em;
}

/* ======= LOGO CENTRAL (vistas antiguas) ======= */
.logo-central {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.logo-central img {
    max-width: 299px;
    height: auto;
}

/* ======= CARRUSEL HORIZONTAL (vistas antiguas) ======= */
.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0;
    margin: 2rem auto;
    max-width: 95%;
    scroll-behavior: smooth;
    justify-content: center;
}

.carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
    background: white;
    width: 600px;
    height: 380px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    text-align: center;
    padding: 0.5em;
    font-size: 0.9em;
}

.carousel-caption h3 {
    margin: 0;
    font-size: 1em;
    color: #ffe8c2;
}

/* ======= LOGIN ICON ======= */
.acceso-login {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 1000;
    display: block;
}

.acceso-login img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
    transition: transform 0.2s ease;
}

.acceso-login img:hover {
    transform: scale(1.1);
}

/* ======= DOBLE CARRUSEL (otras vistas) ======= */
.contenedor-doble-carrusel {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 1rem;
}

.carrusel-contenedor {
    flex: 1 1 500px;
    max-width: 600px;
}

.carrusel-titulo {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carrusel-vacio {
    text-align: center;
    color: #777;
    font-style: italic;
}

/* ======= INICIO (INDEX ACTUAL NEIGUAN) ======= */

/* Header superior */
header {
    background-color: #d0a878;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 50px;
}
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-center a {
    margin: 0 25px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
}
.nav-center a:hover { text-decoration: underline; }
.login-icon {
    font-size: 26px;
    color: #000;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}
.login-icon:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

/* Logo con textos laterales */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 25px;
}

.logo-container img {
    max-width: 200px;
    display: block;
    margin: 0 auto;
}

.logo-text-left,
.logo-text-right {
    width: 250px;
    text-align: center;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

/* 🔹 Caja de texto lateral */
.texto-lateral {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 260px;
    max-height: 160px;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc rgba(255,255,255,0.4);
}

.texto-lateral::-webkit-scrollbar {
    width: 6px;
}
.texto-lateral::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 6px;
}

/* Zona de carruseles */
.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin-top: 60px;
    transition: all 0.4s ease;
}
.section-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 400px;
}
.section-title {
    font-size: 22px;
    margin-bottom: 10px;
}

/* Botón de actividades */
.btn-inscribete {
    display: inline-block;
    background-color: #3a7c6e;
    color: #fff;
    padding: 10px 26px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.btn-inscribete:hover {
    background-color: #2f685c;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

/* Carrusel */
.carousel-container {
    width: 460px;
    height: 270px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    background: #fff;
    margin: 0 auto;
}
.carousel-slide {
    display: none;
    position: absolute;
    inset: 0;
    transition: opacity 0.8s ease;
}
.carousel-slide.active {
    display: block;
    opacity: 1;
}
.slide-link {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    cursor: pointer;
}
.slide-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}
.carousel-caption {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 100%;
    padding: 12px;
    border-radius: 0 0 16px 16px;
    font-size: 14px;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    font-size: 22px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}
.carousel-btn:hover { background: rgba(0,0,0,0.7); }
.prev { left: 10px; }
.next { right: 10px; }

/* Responsivo vertical */
@media (max-height: 900px) {
    .main-container { gap: 60px; margin-top: 50px; }
    .carousel-container { width: 420px; height: 250px; }
    .logo-container img { max-width: 180px; }
}
@media (max-height: 800px) {
    .logo-wrapper { margin-top: 15px; }
    .main-container { gap: 50px; transform: scale(0.95); margin-top: 40px; }
}
@media (max-height: 700px) {
    .main-container { transform: scale(0.9); gap: 40px; margin-top: 30px; }
}

/* ============================
   ADAPTACIÓN MÓVIL (AJUSTADA, SIN ROMPER LAYOUT)
   ============================ */
@media (max-width: 768px) {
  body { overflow-x: hidden; }

  header {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }

  .nav-center a {
    font-size: 16px;
    margin: 0 12px;
  }

  /* Logo + textos laterales */
  .logo-wrapper {
    flex-wrap: wrap !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 30px auto !important;
  }

  .logo-text-left,
  .logo-text-right {
    flex: 1 1 40% !important;
    max-width: 200px !important;
  }

  .logo-container img {
    max-width: 120px !important;
    height: auto !important;
  }

  .texto-lateral {
    font-size: 14px !important;
    padding: 8px 12px !important;
    background: rgba(255,255,255,0.6) !important;
  }

  /* Carruseles más compactos */
  .carousel-container {
    width: 90% !important;
    height: auto !important;
  }
}

