body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.first_content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 5%;
  padding-top: 5%;
}

.second_content {
  display: flex;
  justify-content: center;
  padding-top: 5%;
}

.second_content_body {
  background-color: white;
  padding: 20px;
  border-radius: 20px;

  width: fit-content;
  max-width: 1200px;
}

/* Logo animado */
.logo-wrapper {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 100px;
}

.logo-static,
.logo-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.logo-video {
  opacity: 0;
}

.logo-wrapper:hover .logo-static {
  opacity: 0;
}

.logo-wrapper:hover .logo-video {
  opacity: 1;
}

/* Estilos para el fondo rojo de la página principal index.html, con los cirulos */
.Main_Background {
  background-color: #d71920;
  position: relative;
  overflow-x: hidden;
}

.fondo-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.grupo {
  animation: rotar 18s linear infinite;
}
.grupo:nth-child(2) {
  animation-duration: 22s;
  animation-direction: reverse;
}
.grupo:nth-child(3) {
  animation-duration: 16s;
}
.grupo:nth-child(4) {
  animation-duration: 25s;
  animation-direction: reverse;
}
.grupo:nth-child(5) {
  animation-duration: 20s;
}
.grupo:nth-child(6) {
  animation-duration: 14s;
  animation-direction: reverse;
}

@keyframes rotar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.main_content {
  flex: 1;
  padding: 20px;
}

.texto_animado_horizontal {
  animation: animation_enter_horizontal 1s ease-out forwards;
}

@keyframes animation_enter_horizontal {
  from {
    transform: translateX(-500px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.fade_up_scroll {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  animation-delay: 1.2s;
}

.fade_up_scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animación del mail de enviado */
.sobre-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 8px;
}

.sobre {
  font-size: 100px;
  filter: drop-shadow(1px 1px 30px rgba(0, 0, 0, 0.8)) drop-shadow(1px 1px 60px rgba(0, 0, 0, 0.5));
  animation: sobreAnimar 1.2s ease forwards;
}

@keyframes sobreAnimar {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  20% {
    transform: translateY(0) scale(1.3);
    opacity: 1;
  }
  60% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-200px) scale(0.5);
    opacity: 0;
  }
}

/* Estilos para socials.php  */
.Socials_nav {
  background: linear-gradient(to right, black, red);
  padding: 10px;
  width: 100%;
}
.Socials_elements {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons img {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
  transition: all 0.25s ease;
  cursor: pointer;
}

.social-icons img:hover {
  transform: scale(1.5);
  opacity: 0.8;
}

/* Estilos para header.php */

.Head_nav {
  background-color: white;
  padding: 10px;
  width: 100%;
}

.Nav_elements {
  display: flex;
  align-items: center;
}

.Nav_links {
  margin-left: auto;
  display: flex;
  gap: 45px;
  align-items: center;
}

.Nav_word {
  font-size: 18px;
  color: darkred;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.Nav_word:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.nav_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 18px;
  border: 2px solid darkred;
  border-radius: 999px;

  background: transparent;
}

.nav_button:hover {
  background-color: darkred;
  color: white;
}

.ImgPagPrin {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-mini {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.25s ease;
}

.profile-mini:hover {
  transform: scale(1.2);
}

.profile-icon {
  font-size: 40px;
  color: darkred;
  cursor: pointer;
  transition: all 0.25s ease;
}

.profile-icon:hover {
  transform: scale(1.1);
}

.profile-container {
  position: relative;
  display: inline-block;
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: bold;
}

.notif_styles {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  display: none;
  min-width: 18px;
  text-align: center;
}

.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(6deg);
  }
  50% {
    transform: rotate(-6deg);
  }
  75% {
    transform: rotate(4deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Dropdown perfil */
.profile-dropdown-toggle {
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.profile-dropdown-menu {
  display: none;
  position: absolute;
  top: 90px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 9999;
  overflow: hidden;
}

.profile-dropdown-item {
  padding: 12px 18px;
  font-size: 16px;
  color: darkred;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.profile-dropdown-item:hover {
  background-color: #f5f5f5;
}

.profile-dropdown-menu.open {
  display: block;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para Footer.php */

.Footer {
  background-color: darkred;
  padding: 30px 5%;
  width: 100%;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.Footer_content {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 80px;
  color: white;
}

.Footer_col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.Footer_logo {
  height: 100px;
  width: 100px;
  border-radius: 50%;
}

.Footer_contact_item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.Footer_contact_item i {
  font-size: 18px;
}

.Footer_socials {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.Footer_socials a {
  color: white;
  font-size: 24px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.Footer_socials a:hover {
  transform: scale(1.3);
  opacity: 0.8;
}

.linea {
  width: 100%;
  height: 2px;
  background-color: white;
  margin: 10px 0;
}

/*Estilos de Login.php */
.contenedor_login {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}
.conteneder_datos {
  width: 500px;
  height: auto;
  padding: 60px;
  background-color: white;
  border-radius: 30px;
  box-shadow: -50px 30px 30px rgba(0, 0, 0, 0.5);
}

.titulo_login {
  font: bolder;
  font-size: 40px;
}

.link_registro {
  color: darkred;
  text-decoration: none;
  font-weight: bold;
  margin-left: 5px;
  transition: all 0.2s ease;
}

.link_registro:hover {
  color: red;
  text-decoration: underline;
}

/* Estilos de Perfil.php */

.profile_data {
  width: 80%;
  height: auto;
  padding: 60px;
  background-color: white;
  border-radius: 30px;
  box-shadow: -50px 30px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.profile_pic_medium {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
}

.profile_pic_small {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

/* Estilos buscar.php*/
.resultado_user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.resultado_user_img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

/* Estilos para los  de horarios */

#calendar {
  width: 100% !important;
  display: block !important;
}

.calendar-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 9999;
  padding: 20px;
  overflow: auto;
}

.entrar_calendario {
  animation: salir_c 0.8s ease reverse forwards;
}

.salir_calendario {
  animation: salir_c 0.8s ease forwards;
  pointer-events: none;
}

@keyframes salir_c {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(300%);
    opacity: 0;
  }
}

.entrar_editor {
  animation: salir_e 0.8s ease reverse forwards;
}

.salir_editor {
  animation: salir_e 0.8s ease forwards;
}

@keyframes salir_e {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(0.6) translateY(0);
  }

  100% {
    transform: scale(0.6) translateY(-300%);
  }
}

.fc-event {
  cursor: pointer;
}

.dias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 50px;
  margin-bottom: 20px;
  text-align: center;
}

.dias-grid label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
}

.domingo-wrap {
  grid-column: 2;
  display: flex;
  justify-content: center;
}

.personalized_checbox {
  height: 25px;
  width: 25px;
  border-radius: 50%;
  accent-color: lime;
  color: white;
}

/* Estilos de la página somos*/

.somos_hero {
  text-align: left;
  padding: 80px 8%;
  color: white;
}

.somos_hero h1 {
  font-size: 72px;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-100px);
  animation: entrarIzq 0.9s ease forwards;
}

.somos_hero p {
  font-size: 22px;
  max-width: 750px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

.somos_section {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 8%;
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.somos_section.desde_izq {
  transform: translateX(-80px);
}

.somos_section.desde_der {
  flex-direction: row-reverse;
  transform: translateX(80px);
}

.somos_section.visible {
  opacity: 1;
  transform: translateX(0);
}

.somos_card {
  background: white;
  padding: 40px;
  flex: 1;
}

.somos_card h2 {
  font-size: 28px;
  font-weight: 800;
  color: darkred;
  margin-bottom: 16px;
}

.somos_card p {
  font-size: 17px;
  color: #333;
  line-height: 1.7;
}

.somos_icon {
  font-size: 100px;
  color: white;
  flex: 0 0 auto;
  text-align: center;
  width: 140px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

/* Valores */
.valores_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px 8% 60px;
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.valores_grid.visible {
  opacity: 1;
  transform: translateY(0);
}

.valor_chip {
  background: white;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 18px;
  font-weight: 700;
  color: darkred;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.valor_chip i {
  font-size: 20px;
}

/* Titulo sección */
.somos_titulo_seccion {
  text-align: center;
  color: white;
  font-size: 36px;
  font-weight: 800;
  padding: 40px 8% 10px;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.somos_titulo_seccion.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes entrarIzq {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Somos - unidad imagen + card */
.somosbloque_unidad {
  display: flex;
  flex-direction: row;
  border: 10px ridge darkred;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: -15px 15px 35px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.somosbloque_img {
  width: 38%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 5px;
  background: white;
}

/* Fundadores */
.fundadores_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px 8% 60px;
}

.fundador_card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fundador_card.visible {
  opacity: 1;
  transform: translateY(0);
}

.fundador_img {
  width: 250px;
  height: 250px;
  border-radius: 45%;
  object-fit: cover;
  border: 5px ridge darkred;
}

.fundador_nombre {
  font-size: 20px;
  font-weight: 800;
  color: black;
  margin-bottom: 4px;
}

.fundador_puesto {
  font-size: 14px;
  color: darkred;
  font-weight: 600;
  margin-bottom: 12px;
}

.fundador_bio {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.5s ease;
  text-align: left;
}

.fundador_bio.expandido {
  max-height: 600px;
}

.fundador_btn {
  margin-top: 12px;
  background: none;
  border: 2px solid darkred;
  color: darkred;
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fundador_btn:hover {
  background: darkred;
  color: white;
}
