/* tarjetas de informacion */
 body {
      background-color: #fff;  /* Fondo blanco */
      /* padding: 30px 0; */
      font-family: Arial, sans-serif;
    }
    
/* Header */
:root {
      --sky-blue:       #59d2ec;
      --viridian-green: #029e99;
      --chinese-black:  #161616;
      --yankees-blue:   #0af89b;
      --snow:           #fbfaf7;
      --bg-light:       var(--snow);
      --text-light:     var(--chinese-black);
      --bg-dark:        var(--chinese-black);
      --text-dark:      var(--snow);
    }
    /* Modo Oscuro */
 .dark-mode { background-color: var(--bg-dark); color: var(--text-dark); }
    
 header {
      background: var(--chinese-black);
      color: var(--snow);
      padding: 1rem;
      text-align: center;
      position: relative;
    }
    header img { height: 80px; vertical-align: middle; }
    header h1 {
      display: inline-block;
      margin-left: 0.5rem;
      font-size: 1.75rem;
      font-weight: bold;
    }
      #theme-toggle, #translate-toggle {
      position: absolute;
      top: 1rem;
      background: var(--sky-blue);
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      color: #fff;
      cursor: pointer;
    }
    #theme-toggle { right: 1rem; }

    
    /* Titulos */

.section-heading {
  margin-bottom: 2rem;
}
.section-heading h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.section-heading p {
  position: static;
  display: block;
  font-size: 1rem;
  line-height: 1.5;
}


.section-heading em {
  font-style: normal;
  font-weight: 700;
  color: #029e99;
}

    
  /* Botón hamburguesa */
.menu-toggle {
  position: absolute;
  left: 4rem;
  top: 3.3rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1002;
}
.menu-toggle span {
  display: block;
  width: 50px;
  height: 4px;
  background: var(--snow);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Menú flotante con estilo consistente */
.floating-menu {
  position: absolute;
  top: 60px;
  left: 1rem;
  background: var(--chinese-black);
  color: var(--snow);
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  display: none;
  z-index: 1001;
  min-width: 180px;
  font-family: 'Raleway', sans-serif;
}

.floating-menu a {
  display: block;
  color: var(--snow);
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.floating-menu a:last-child {
  border-bottom: none;
}
.floating-menu a:hover {
  background-color: #333;
  padding-left: 5px;
}

/* Fondo para cerrar al hacer clic fuera */
.overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100% - 60px);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Dark mode también afecta al menú flotante */
.dark-mode .floating-menu {
  background: var(--bg-dark);
  color: var(--text-dark);
}
.dark-mode .floating-menu a {
  color: var(--text-dark);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.dark-mode .floating-menu a:hover {
  background-color: #222;
}

/* */ 
.btn2 {
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  cursor: pointer;
  width: 80px;
  height: 35px;
  background-image: linear-gradient(to top, #000000 0%, #000000 80%, #000000 100%);
  border-radius: 40px;
  border: 1px solid #8f909200;
  transition: all 0.2s ease;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #606060;
  text-shadow: 0 1px #fff;
}

.btn2:hover {
  box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 3px 3px #CECFD1;
}

.btn2:active {
  box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 5px 3px #999, inset 0 0 30px #aaa;
}

.btn2:focus {
  box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 5px 3px #999, inset 0 0 30px #aaa;
}


    .container {
      background-color: #fff;
      max-width: 1300px;
      margin: auto;
    }
    h2 {
      margin-bottom: 30px;
    }
    /* Centramos y agrupamos más las tarjetas */
    .carousel-inner {
  width: 100%;
  /* overflow-x: hidden; */
}

.carousel-inner .row {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  padding: 20px;
  justify-content: center;
}
 
   /* 1) Contenedor de la flip‑card */
.flip-card {
  flex: 0 0 calc(25% - 20px);
  position: relative;       /* para los pseudo‑elementos */
  perspective: 1000px;
  width: 200px; height: 300px;
  margin: 18px;
  display: inline-block;
}

/* 2) Borde animado con un pseudo‑elemento ::before */
.flip-card::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 12px;
  background: linear-gradient( 
    60deg, 
    #00ff75, #3700ff, #f89b29, #ff0f7b
  );
  background-size: 400% 400%;
  z-index: 1;
  animation: borderShift 4s ease infinite;
}

/* 3) “Hueco” interior para que no tape la imagen */
.flip-card-inner,
.flip-card-front,
.flip-card-back {
  position: relative;
  z-index: 2;  /* por encima del ::before */
}

/* 4) Definición de la animación del borde */
@keyframes borderShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* 5) Capa animada sobre la imagen (puede ser un brillo giratorio) */
.flip-card-front::after,
.flip-card-back::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
  animation: sheen 2.5s ease-in-out infinite;
}

/* 6) Movimiento de brillo */
@keyframes sheen {
  0%   { transform: translateX(-100%) rotate(10deg); }
  50%  { transform: translateX(100%)  rotate(10deg); }
  100% { transform: translateX(-100%) rotate(10deg); }
}

/* Asegúrate de que la imagen no esté aislada */
.flip-card-front img,
.flip-card-back img {
  display: block;
  width: 100%; height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

    
    .flip-card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      transition: transform 0.6s;
      transform-style: preserve-3d;
    }
    .flip-card.flipped .flip-card-inner {
      transform: rotateY(180deg);
    }
    .flip-card-front, .flip-card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
    .flip-card-back {
      transform: rotateY(180deg);
    }
    .flip-card-front img,
    .flip-card-back img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    /* Flechas transparentes sin sombreado */
    .carousel-control {
      background: transparent !important;
      /* filter: none; */
      width: 5%;
    }
    .carousel-control .glyphicon {
      color: #12e32a00;
      font-size: 30px;
      top: 50%;
      transform: translateY(-50%);
    }
    .carousel-control:hover .glyphicon {
      color: #e80a0a00;
    }
    .carousel-inner .item {
  background: transparent !important;
}

/* animacion hover */

/* === ESTILOS DE HOVER ANIMADO 3D EN flip-card-front === */
.hover-3d {
  background: linear-gradient(135deg,#0000 18.75%,#f3f3f3 0 31.25%,#0000 0),
              repeating-linear-gradient(45deg,#f3f3f3 -6.25% 6.25%,#ffffff 0 18.75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 0;
  background-color: #f0f0f0;
  transition: all 0.5s ease-in-out;
  transform-style: preserve-3d;
}

/* animación de fondo + inclinación */
.hover-3d:hover {
  background-position: -100px 100px, -100px 100px;
  transform: rotate3d(0.5, 1, 0, 50deg);
}

/* Puedes incluir contenido con profundidad si lo deseas */
.hover-3d .content-box {
  background: rgba(4, 193, 250, 0.732);
  padding: 20px;
  transform-style: preserve-3d;
  transition: all 0.5s ease-in-out;
}

.hover-3d .card-title,
.hover-3d .card-content,
.hover-3d .see-more {
  transform: translate3d(0, 0, 30px);
  transition: all 0.5s ease-in-out;
}

.hover-3d:hover .card-title,
.hover-3d:hover .card-content,
.hover-3d:hover .see-more {
  transform: translate3d(0, 0, 60px);
}


/* modal */
.modal-content {
    border-radius: 20px;
    border: 4px double #777;
    padding: 15px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    background-image: url('https://www.transparenttextures.com/patterns/pw-maze-white.png');
    background-size: cover;
  }

  .modal-header {
    background-color: #333;
    color: white;
    border-radius: 15px 15px 0 0;
    text-align: center;
    padding: 20px;
  }

  .modal-header h4 {
    font-family: 'Lobster', cursive;
    font-size: 26px;
    margin: 0;
  }

  .modal-body {
    text-align: center;
    font-size: 16px;
    padding: 20px;
    color: #333;
  }

  .modal-footer {
    background-color: #fafafa;
    padding: 15px;
    text-align: center;
    border-radius: 0 0 15px 15px;
  }

  .modal-footer .btn {
    background-color: #444;
    color: #fff;
    border-radius: 25px;
    padding: 8px 20px;
    transition: 0.3s;
  }

  .modal-footer .btn:hover {
    background-color: #666;
  }



  /* Icono decorativo por modal */
  #modal1 .modal-content::before { content: "🎨"; }
  #modal2 .modal-content::before { content: "🌿"; }
  #modal3 .modal-content::before { content: "🔢"; }

  .modal-content::before {
    font-size: 40px;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 50%;
    padding: 5px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  

 /* Íconos decorativos únicos */
#modal4 .modal-content::before { content: "📚"; }
#modal5 .modal-content::before { content: "🎼"; }
#modal6 .modal-content::before { content: "🏃‍♂️"; }
#modal7 .modal-content::before { content: "🌌"; }
#modal8 .modal-content::before { content: "💭"; }
#modal9 .modal-content::before { content: "👥"; }

.modal-footer .btn {
  background-color: white;
  color: black ; /* toma el mismo color del encabezado */
  border: 2px solid currentColor;
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: bold;
  transition: 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.modal-footer .btn:hover {
  background-color: currentColor; /* se llena con el color del encabezado */
  color: white;
}


  #modal1 .modal-header, #modal1 .modal-footer { background-color: #2196f3; color: white; }
    #modal2 .modal-header, #modal2 .modal-footer { background-color: #4caf50; color: white; }
    #modal3 .modal-header, #modal3 .modal-footer { background-color: #f44336; color: white; }
    #modal4 .modal-header, #modal4 .modal-footer { background-color: #00bcd4; color: white; }
    #modal5 .modal-header, #modal5 .modal-footer { background-color: #ffc107; color: white; }
    #modal6 .modal-header, #modal6 .modal-footer { background-color: #ff9800; color: #333; }
    #modal7 .modal-header, #modal7 .modal-footer { background-color: #6a1b9a; color: white; }
    #modal8 .modal-header, #modal8 .modal-footer { background-color: #e939c3; color: white; }
    #modal9 .modal-header, #modal9 .modal-footer { background-color: #6b432be7; color: white; }

/* modal imagenes interior */
  .modal-personajes {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.modal-personajes figure {
  text-align: center;
  margin: 0;
  cursor: pointer;
}

.modal-personajes img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.modal-personajes img:hover {
  transform: scale(1.1);
}

.modal-personajes figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.personaje-modal .modal-dialog {
  width: 300px;
  margin: 100px auto;
}

.personaje-modal .modal-content {
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  background-color: #fefefe;
  border: 2px solid #ccc;
}

.footer {
  background-color: rgba(12,12,12,0.9);
  height: 80px;
  line-height: 80px;
  display: inline-block;
  text-align: center;
  width: 100%;
  color: white;
}

.footer p {
  margin-bottom: 0px;
  font-size: 13px;
  line-height: 80px;
  color: #ffffff;
  letter-spacing: 0.5px;
  font-weight: 300;
  z-index: 3;
}

.footer p a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  z-index: 3;
}

.form-group {
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0,123,255,0.3);
  outline: none;
  background-color: #fff;
}

.form-control {
  font-size: 14px;         /* Aumenta el tamaño del texto del <select> */
  height: 39px;            /* Altura del <select> */
  width: 550px;
  padding: 10px 14px; 
}

.form-control option {
  font-size: 18px;         /* Aumenta el tamaño del texto de cada <option> */
  padding: 10px;           /* Más espacio dentro de las opciones */
}

/* formulario */
.form-container {
  background-color: rgba(2,158,153,0.4);
  border-radius: 10px;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
}

.img-responsive {
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  display: block;
}

/* == Responsive mínimo para móvil (<576px) == */
@media (max-width: 575.98px) {
  /* Fuerza wrapping y ancho completo en las tarjetas */
  .carousel-inner .row {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }
  .flip-card {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    height: 250px;       /* altura fija para mantener flip */
    margin: 0 0 1rem;
  }

  /* Baja el botón hamburguesa para no tapar el logo */
  .menu-toggle {
    width: 60px;
    top: 3rem;
    left: 1rem;
  }
}
