/* Fuentes */
.rancho-regular {
  font-family: "Rancho", cursive;
}

.crafty-girls-regular {
  font-family: "Crafty Girls", cursive;
}

body {
  background-color: black;
  background-image: url(img/bg2.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  margin: 0;
  font-family: 'Gill Sans', sans-serif;
  font-size: 20px;
}

/* Encabezado */
header {
  text-align: center;
}

.titulo {
  font-size: 80px;
  color: #fbeffb;
  text-shadow: 2px 2px 10px #503c6e;
  margin: 0;
}

.sub {
  font-size: 25px;
  margin-top: -10px;
  text-shadow: 2px 2px 10px #30283b;
}

/* Navegación */
nav {
  text-align: center;
  margin: 20px auto;
}

.nav-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.nav-container a {
  padding: 15px 25px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 235, 124, 0.6);
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-container a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: black;
}

/* Diseño general */
.layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 0 20px;
}

#content {
  transition: opacity 0.3s ease;
  opacity: 1;
}


/* Aside */
aside {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 235, 124, 0.6);
  width: 300px;
  padding: 20px;
  position: relative;
  text-align: center;
}

.corner {
  position: absolute;
  width: 60px;
}

.top-left {
  top: 0;
  left: 0;
}

.top-right {
  top: 0;
  right: 0;
}

.bottom-left {
  bottom: 0;
  left: 0;
}

.bottom-right {
  bottom: 0;
  right: 0;
}

/* Gatos */
.gatito {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0;
}

.gato {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}

.dormido {
  opacity: 1;
  z-index: 2;
}

.despierto {
  opacity: 0;
  z-index: 1;
}

.gatito:hover .dormido {
  opacity: 0;
}

.gatito:hover .despierto {
  opacity: 1;
}

.perfil {
  margin: 0 auto;
  text-align: center;
}

#michi3 {
  width: 200px;
}

/* Main */
main {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 235, 124, 0.6);
  width: 600px;
  padding: 30px;
  position: relative;
}


/* Galería */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

figure {
  text-align: center;
}

figure img {
  width: 200px;
  border: 2px solid white;
  border-radius: 10px;
  transition: transform 0.3s;
}

figure img:hover {
  transform: scale(1.2);
}

figcaption a {
  color: white;
  text-decoration: none;
}

figcaption a:hover {
  text-decoration: underline;
}


/* Contacto */

#contact {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  transition: filter 0.3s ease;
  cursor: pointer;
}

.icons img {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.icons:hover {
  animation: glow-tintineo 1.5s infinite ease-in-out;
}


/* Formulario */
.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 30px auto;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(255, 235, 255, 0.3);
}

.form-contacto input,
.form-contacto textarea {
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.form-contacto input::placeholder,
.form-contacto textarea::placeholder {
  color: #fbeffb;
}

.form-contacto button {
  background-color: #fbeffb;
  color: black;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-contacto button:hover {
  background-color: #ffd6f0;
}


@keyframes glow-tintineo {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.6));
  }
}


/* Responsive */
@media screen and (max-width: 700px) {
  .layout {
    flex-direction: column;
    align-items: center;
  }

  main,
  aside {
    width: 90%;
  }

  .titulo {
    font-size: 50px;
  }

  #contact {
    flex-wrap: wrap;
    gap: 15px;
  }
}