/* style.css */
:root {
  --amarillo: #ffeb3b;
  --azul: #2196f3;
  --verde: #4caf50;
  --rojo: #f44336;
  --morado: #9c27b0;
  --naranja: #ff9800;
  --gris-claro: #f5f5f5;
  --texto: #333;
/*Carrousel*/
  --negro: #393939;
  --blanco: #ececec;
  --sombra-ppal: #c9c9c9;
  --sombra-sec: #ffffff;
  --borde-negro: #00000050;
  --marcado: rgb(127, 195, 255);
}

@font-face {
  font-family: 'Krabby Patty';
  src: url('../font/krabby_patty/Krabby\ Patty.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

* {
  font-family: 'Lexend', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  font-family: 'Krabby Patty', cursive;
  color: var(--amarillo);
  font-size: 2.5rem;
}

h2 {
  color: var(--texto);
  font-size: 2rem;
}

h2 a {
  font-family: 'Krabby Patty', cursive;
  text-decoration: none;
  color: inherit;
  transition: all 0.5s ease-in-out;
}

h2 a:hover {
  color : var(--gris-claro);
  text-decoration: underline;
  text-decoration-color: var(--amarillo);
  text-underline-offset: 0.2rem;
  text-decoration-thickness: 0.1rem;
  transition: all 0.5s ease-in-out;
}

.divetext {
  font-family: 'Krabby Patty', cursive;
  font-size: 2rem;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--texto);
}

.upperNav {
  position: relative;
  padding: 2rem 0;
  overflow: hidden;
  z-index: 1;
}

.upperNav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/banner.jpg'); 
  background-size: cover;
  background-position: center;
  background-position: center 30%;
  z-index: -1;
}

#fixed-logo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 70px;
  filter: drop-shadow(0 0 8px var(--azul));
  transition: transform 0.3s ease;
}

#fixed-logo img {
  width: 100%;
  height: auto;
  display: block;
}

#fixed-logo:hover {
  transform: scale(1.1);
  cursor: pointer;
}


.imagenes img {
  width: 100px;       
  height: auto;       
  vertical-align: middle; 
  margin-right: 10px; 
  transition: transform 0.3s ease; 
  filter: drop-shadow(0 0 8px var(--texto));

}

.imagenes img:hover {
  transform: scale(1.05); 
}

#logo {
  filter: drop-shadow(0 0 12px var(--azul));
  max-width: 100%;
  height: auto;
  opacity: 0;
}

#logo2 {
  filter: drop-shadow(0 0 12px var(--azul));
  max-width: 100%;
  height: auto;
  opacity: 1;
}

.arenita {
  width: 20% !important;
  justify-content: center;
  text-align: center;
  padding-bottom: 30px; 
  filter: drop-shadow(0 0 15px var(--texto));
}

.arenita2:hover {
  transform: scale(1.05) !important;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.card-text {
  color: var(--texto);
  font-size: 1.2rem;
  text-align: center;
  font-family: 'Lexend', sans-serif;
}

.patricio {
  width: 20% !important;
  justify-content: center;
  text-align: center;
  padding-bottom: 30px; 
}

.seccion {
  width: 100%;
  min-height: 30vh;
  padding: 1rem 1rem;
  color: #fff;
  position: relative;
  overflow: visible;
}

/* Gradientes */
#personajes { background: linear-gradient(to right, #ff9a9e, #fad0c4); }
#episodios { background: linear-gradient(to right, #a18cd1, #fbc2eb); }
#galeria { background: linear-gradient(to right, #fbc2eb, #a6c1ee); }
#recetas { background: linear-gradient(to right, #ffecd2, #fcb69f); }
#simon { background: linear-gradient(to right, #89f7fe, #66a6ff); }
#contacto {
  background: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Base Button Styles */
.squishy {
  color: whitesmoke !important;
  position: relative;
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  font-weight: 200;
  border: none;
  cursor: pointer;
  transition: all 250ms;
  

 
  align-items: center;
  gap: 0.5rem;
}

.squishy i {
  width: 0.5rem;
  height: 0.5rem;
}

/* Candy Squishy */
.squishy-candy {
  background: linear-gradient(to bottom right, rgb(244 114 182), rgb(248 113 113));
  color: white;
  border-radius: 9999px;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.4),
    0 2px 0 0 #f472b6,
    0 4px 0 0 #f43f5e,
    0 6px 0 0 #e11d48,
    0 8px 0 0 #be123c,
    0 8px 16px 0 rgba(244,114,182,0.5);
}

.squishy-candy:hover {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.4),
    0 1px 0 0 #f472b6,
    0 2px 0 0 #f43f5e,
    0 3px 0 0 #e11d48,
    0 4px 0 0 #be123c,
    0 4px 8px 0 rgba(244,114,182,0.5);
}

.squishy-candy:hover i {
  animation: pulse 1s infinite;
}

/* Candy Squishy yellow */
.squishy-candy-yellow {
  background: linear-gradient(to bottom right, rgb(238, 244, 114), rgb(248, 223, 113));
  color: white;
  border-radius: 9999px;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.4),
    0 2px 0 0 #f4d172,
    0 4px 0 0 #f4d172,
    0 6px 0 0 #f4d172,
    0 8px 0 0 #d89f3b,
    0 8px 16px 0 rgba(219, 150, 0, 0.5);
}

.squishy-candy-yellow:hover {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.4),
    0 1px 0 0 #f4d172,
    0 2px 0 0 #f4d172,
    0 3px 0 0 #f4d172,
    0 4px 0 0 #d89f3b,
    0 4px 8px 0 rgba(219, 150, 0, 0.5);
}

.squishy-candy-yellow:hover i {
  animation: pulse 1s infinite;
}


/* Scroll animations */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}



/* Navegación */
.navTool {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--amarillo);
  z-index: 80;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.navTool ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0.75rem 1rem;
  margin: 0;
}
.navTool li {
  position: relative;
  overflow: hidden;
}
.navTool a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 800;
  display: inline-block;
  position: relative;
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 1rem;    
}
.navTool a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--morado);
  transition: width 0.3s ease;
}
.navTool a:hover {
  color: #f472b6;
  transform: scale(0.95);
}
.navTool a:hover::after {
  width: 100%;
}

/* Scroll animations */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-left,
.fade-right {
  opacity: 0;
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-left {
  transform: translateX(-50px);
}
.fade-right {
  transform: translateX(50px);
}

.fade-left.show,
.fade-right.show {
  opacity: 1;
  transform: translateX(0);
}

.reveal-backwards {
  text-align: right;
  overflow: hidden;
}
.reveal-backwards::after {
  content: attr(data-text);
  display: inline-block;
  transform: translateX(100%);
  transition: transform 0.5s ease;
}
.reveal-backwards:hover::after {
  transform: translateX(0);
}


#episodios-hero {
  background-color: #a6c1ee;
  z-index: 20;
  position: relative;
}
.title{
  color: var(--amarillo);
}

.bg-title{
  background-color: rgba(165, 210, 246, 0.443);
}

/*===========characters===========*/

.icono{width:24px;cursor:pointer;transition:transform .2s}
.icono:hover{transform:scale(1.2)}

#sb{
  background-color: #feffc0;
  opacity: 90%;
  
}

#ps{
  background-color: #f2cffa;
  opacity: 90%;
}

#sq{
  background-color: #cffaf3;
  opacity: 90%;
}

#sn{
  background-color: #faeccf;
  opacity: 90%;
}

#kr{
  background-color: #facfcf;
  opacity: 90%;
}

#pl{
  background-color: #cffad6;
  opacity: 90%;
}
/*====================================================*/

/*==============Carrousel 1=============*/

.carrousel {
  li {
  list-style-type: none;
  }
  width: 50%;
  max-width: 120em;
  padding: 2em;
  color: var(--negro);
  transition: all 0.4s ease;
  border-radius: 1em;
  background-color: rgb(248, 213, 219);
  box-shadow: 1px 2px 2px var(--sombra-ppal), -1px -1px 2px var(--sombra-sec), inset 0 0 0 transparent, inset 0 0 0 transparent;
  overflow: hidden;
}

.carrousel .grande {
  width: 200%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  border-radius: 1em;
  background-color: rgb(246, 246, 161);
  box-shadow: 1px 1px 2px var(--sombra-ppal), -1px -1px 2px var(--sombra-sec), inset 0 0 0 transparent, inset 0 0 0 transparent;
  padding: 2em;
  transition: all 0.5s ease;
  transform: translateX(0%);
}

.carrousel .img {
  width: calc( 100% / 2 - 2em);
  min-height: 10vh;
  color: var(--negro);
  transition: all 0.4s ease;
  border-radius: 1em;
  background-color: var(--blanco);
  box-shadow: 1px 1px 2px var(--sombra-ppal), -1px -1px 2px var(--sombra-sec), inset 0 0 0 transparent, inset 0 0 0 transparent;
}

.carrousel .puntos {
  width: 100%;
  margin: 1em 0 0;
  padding: 0.4em;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
}

.carrousel .punto {
  width: 2em;
  height: 2em;
  margin: 1em 1em 0;
  color: var(--negro);
  transition: all 0.4s ease;
  border-radius: 1em;
  background-color: var(--blanco);
  box-shadow: 0.6px 0.6px 1.2px var(--sombra-ppal), -0.6px -0.6px 1.2px var(--sombra-sec), inset 0 0 0 transparent, inset 0 0 0 transparent;
}

.carrousel .punto.activo {
  background-color: lightblue;
}

/*====================================*/

/*==================Imágenes flotantes==================*/

.artsm{
  background-color: rgba(251, 232, 245, 0.746);
}

.art img {
  animation: floatDiagonal 6s ease-in-out infinite;
}

@keyframes floatDiagonal {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -10px); /* 20px a la derecha y 20px hacia arriba */
  }
}

#painting{
  transform: scaleX(-1);
}



/*====================================*/

.container-fluid {
  background-color: #a6c1ee;
  position: relative;
  z-index: 9999;
}

.bordercard {
  border-radius: 10px;
  padding: 1rem;
}

/* Footer general */
footer {
  background: linear-gradient(135deg, #0377a2 0%, #024e6e 100%);
  color: #eef6f9;
  font-family: 'Lexend', sans-serif;
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

/* Container grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem;
  padding: 0 1rem;
}

/* Títulos */
footer h5 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #ffee58;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Párrafos */
footer p {
  line-height: 1.6;
  opacity: 0.9;
}

/* Listas */
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  margin-bottom: 0.5rem;
}

/* Enlaces */
footer a {
  color: #eef6f9;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
footer a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffee58;
  transition: width 0.3s;
}
footer a:hover {
  color: #ffee58;
}
footer a:hover::after {
  width: 100%;
}

/* Separador */
footer hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 2rem 0 1rem;
}

/* Copyright */
footer .copyright {
  font-size: 0.85rem;
  opacity: 0.7;
}

body.glass-bg {
  position: relative;
  z-index: 0;
  background: none; 
}

body.glass-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/fondo.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.5;         
  filter: blur(3px);    
  z-index: -1;          
  pointer-events: none; 
}

body.glass-bg .container-fluid,
body.glass-bg .container {
  background-color: transparent !important;
}

body.glass-bg .seccion {
  background-color: transparent !important;
}

body.fondo-bg {
  position: relative;
  min-height: 100vh; /* que cubra toda la altura */
  background: url('../img/fondo2.jpg') no-repeat center center fixed;
  background-size: cover;  /* importante para que no se repita y escale bien */
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


body.fondo-bg .container-fluid,
body.fondo-bg .container {
  background-color: transparent !important;
}

body.fondo-bg .seccion {
  background-color: transparent !important;
}

body.fondo-bg .seccion {
  background: transparent !important;
}

.glass-form {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  color: #fff;
}

.glass-form label {
  color: #fff;
  font-weight: 500;
}

.glass-form input,
.glass-form textarea {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(5px);
  border-radius: 8px;
}

.glass-form input::placeholder,
.glass-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.glass-form button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0.75rem 2rem;
  color: #fff;
  font-weight: bold;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.glass-form button:hover {
  background: rgba(255, 255, 255, 0.4);
}

a.btn {
  background: none;      
  border: none;          
  outline: none;         
  box-shadow: none;       
}

body.fondo3-bg {
  position: relative;
  min-height: 100vh; /* que cubra toda la altura */
  background: url('../img/fondo3.jpg') no-repeat center center fixed;
  background-size: cover;  /* importante para que no se repita y escale bien */
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.fondo3-bg .container-fluid,
body.fondo3-bg .container {
  background-color: transparent !important;
}

body.fondo3-bg .seccion {
  background-color: transparent !important;
}

body.fondo4-bg {
  position: relative;
  min-height: 100vh; /* que cubra toda la altura */
  background: url('../img/fondo4.jpg') no-repeat center center fixed;
  background-size: cover;  /* importante para que no se repita y escale bien */
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.fondo4-bg .container-fluid,
body.fondo4-bg .container {
  background-color: transparent !important;
}

body.fondo4-bg .seccion {
  background-color: transparent !important;
}

body.fondo5-bg {
  position: relative;
  min-height: 100vh; /* que cubra toda la altura */
  background: url('../img/fondo5.webp') no-repeat center center fixed;
  background-size: cover;  /* importante para que no se repita y escale bien */
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.estirar {
  max-width: 100%;
}

body.fondo5-bg .container-fluid,
body.fondo5-bg .container {
  background-color: transparent !important;
}

body.fondo5-bg .seccion {
  background-color: transparent !important;
}

.collapse {
  transition: height 0.8s ease;
}

.slow-collapse.collapse {
  transition: height 1s ease;
}


/* SIMON SAYS */

#game-area {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1rem 0;
}

.game-button {
  width: 300px;
  height: 300px;
  cursor: pointer;
  opacity: 0.8;
  transition: transform .1s, opacity .1s;
  border: var(--blanco) 2px solid;
  background-color: var(--verde);
}

.game-button.active {
  transform: scale(1.1);
  opacity: 1;
}

#controls {
  margin-top: 2rem;
}

#startBtn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

#score,
#message {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.simon {
  color: white;
  font-family: 'Krabby Patty';
  src: url('/font/krabby_patty/Krabby Patty.ttf') format('truetype');
}