/* Fuente moderna */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");

:root {
  --bg-color: #f9f9f9;
  --text-color: #333;
  --primary-color: #4a90e2;
  --accent-color: #ff6b6b;
  --card-bg: #fff;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 2rem;
  line-height: 1.6;
}

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

h1 {
  font-size: 2rem;
  color: var(--primary-color);
}

h2 {
  font-size: 1.5rem;
  color: var(--accent-color);
}

h3 {
  font-size: 1.3rem;
  color: var(--text-color);
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

.MiCara {
  text-align: center;
  margin-bottom: 2rem;
}

.MiCara img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.MiCara img:hover {
  transform: scale(1.1);
}

.icon {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
  margin-left: 6px;
  vertical-align: middle;
}

.language-switcher {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 14px;
}
.language-switcher a {
  color: #f00425;
  text-decoration: none;
  margin: 0 5px;
  opacity: 0.8;
}
.language-switcher a:hover {
  opacity: 1;
}

.PanelsTeam {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.2rem;
  gap: 1rem; /* Espacio entre imagen y texto */
  flex-wrap: wrap;
}

.PanelsTeam img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%; /* Para que las fotos sean redondas */
  border: 2px solid #ccc;
  flex-shrink: 0;
}

.PanelsTeam.right {
  flex-direction: row-reverse; /* Invierte orden imagen/texto */
  text-align: right;
}

.PosterImage {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
  margin-bottom: 1rem;
}

/* Contenido de texto dentro de Titulo */
.Titulo-content {
  padding: 1rem;
  text-align: center;
}

.Titulo {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

section {
  background-color: var(--card-bg);
  padding: 1.5rem;
  margin: 1rem auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 800px;
}

img {
  width: 40px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

footer {
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .Titulo,
  section {
    padding: 1rem;
  }

  .MiCara img {
    width: 140px;
    height: 140px;
    background-image: url("assets/Icons/banner.jpg");
  }
}

#VideoTrailer,
#GaleriaY2KIDS,
#EventosY2KIDS {
  text-align: center;
  padding: 40px 0;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* Aspect ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Agregar al final de tu style.css o integralo si ya tenés base */

section,
article {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

section.aparecer,
article.aparecer {
  opacity: 1;
  transform: translateY(0);
}

/* Hover en los artículos (proyectos) */
article {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

article:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Efecto sutil en los links */
a {
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  /* background-color: var(--primary-color); */
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

.img-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.img-row img {
  width: 45%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.img-row img:hover {
  transform: scale(1.03);
}

.navbar {
  background-color: #ffffff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Carrousel*/
.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

#carousel-eventos img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 500px;
  background: #000;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 5px 12px;
  cursor: pointer;
  z-index: 2;
  border-radius: 6px;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.carousel-dots div {
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  margin: 5px;
  cursor: pointer;
}

.carousel-dots .active {
  background: #555;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .nav-links {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-bottom: -2rem;
  }

  .PanelsTeam {
    flex-direction: column;
    text-align: center;
  }

  .PanelsTeam.right {
    flex-direction: column;
    text-align: center;
  }

  .PanelsTeam img {
    width: 80px;
    height: 80px;
  }

  .PosterImage {
    max-height: 250px;
  }

  body {
    padding: 1rem;
  }

  .MiCara img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .PanelsTeam img {
    width: 90px;
    height: 90px;
  }

  .MiCara img {
    width: 130px;
    height: 130px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  section img,
  li img {
    width: 34px !important;
    height: 34px !important;
  }
}
