/*========== GOOGLE FONTS ==========*/
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@300;400;700&family=Roboto:wght@100..900&family=Raleway:wght@300;400;700&family=Play&display=swap');

/*========== VARIABLES ==========*/
:root {
  --header-font: 'Bebas Neue', sans-serif;
  --menu-font: 'Raleway', sans-serif;
  --body-font: 'Roboto', sans-serif;
  --highlight-font: 'Oswald', sans-serif;

  /* Tamaños y colores */
  --normal-font-size: 1rem;
  --text-color: black;
  --background-color: #f4f4f4;
  --header-bg-color: #2c3e50;
  --primary-color-1: #e74c3c;
  --primary-color: #e74c3c;
  --new-color: #1d3340;
}

h1 {
  font-size: 2.5rem;
  font-family: var(--header-font);
  color: var(--primary-color);
  letter-spacing: 0.1rem;
}

h2 {
  font-size: 2rem;
  font-family: var(--highlight-font);
  color: var(--text-color);
}

p {
  font-size: 1rem;
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-color);
}

/* GENERAL STYLES */
*,
::before,
::after {
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--background-color);
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}


/*========== HEADER ==========*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color-1);
  padding: 0 1rem;
  z-index: 100;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__img {
  margin-right: 100px;
  width: 180px;
  border-radius: 15px;
}

.header__toggle {
  font-size: 2rem;
  color: var(--background-color);
  cursor: pointer;
}

/* Estilo para el contenedor de búsqueda */


.header__search {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.header__search h1 {
  font-size: 2rem;
  margin: 0;
  font-weight: bold;
  font-family: 'Comic Sans MS', cursive;
  font-size: 24px;
  color: var(--background-color);
}

@media (max-width: 768px) {
  .header__search h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header__search {
    padding: 0.5rem;
  }

  .header__search h1 {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}

/*========== NAV ==========*/
.nav {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  padding: 2rem 2rem 0;
  background-color: var(--primary-color-1);
  box-shadow: 2px 0 0 rgba(22, 8, 43, 0.1);
  z-index: 100;
  transition: .4s;
}

.nav__container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 3rem;
  overflow: auto;
  scrollbar-width: none;
}

.nav__container::-webkit-scrollbar {
  display: none;
}

.nav_link {
  text-decoration: none;
}

.nav_logo {
  display: flex;
  align-items: center;
}

.nav__logo-text {
  font-family: var(--header-font);
  font-size: 55px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav__list,
.nav__items {
  display: grid;
}

.nav__list {
  row-gap: 2.5rem;
}

.nav__items {
  row-gap: 1.5rem;
}

.nav__subtitle {
  font-size: var(--normal-font-size);
  text-transform: uppercase;
  letter-spacing: .1rem;
  color: var(--background-color);
}

.nav__icon {
  font-size: 1.2rem;
  margin-right: .5rem;
  color: var(--background-color);
}

.nav__name {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  white-space: nowrap;
  color: var(--background-color);
}

.nav__logout {
  margin-top: 20rem;
}

.nav__dropdown {
  overflow: hidden;
  max-height: 21px;
  transition: .4s ease-in-out;
}

.nav__dropdown-collapse {
  background-color: var(--background-color);
  border-radius: 1rem;
  margin-top: 1rem;
}

.nav__dropdown-content {
  display: grid;
  row-gap: .5rem;
  padding: .75rem 2.5rem .75rem 1.8rem;
}

.nav__dropdown-item {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.nav_dropdown-icon {
  color: var(--header-bg-color);
}

.nav__dropdown-item:hover {
  color: var(--header-bg-color);
}

.nav__dropdown-icon {
  margin-left: auto;
  transition: .4s;
}

.nav__dropdown:hover {
  max-height: 100rem;
}

.nav__dropdown:hover .nav__dropdown-icon {
  transform: rotate(180deg);
}

.show-menu {
  left: 0;
}

.active {
  color: var(--header-bg-color);
}

/* ========== MEDIA QUERIES ==========*/
@media screen and (min-width: 768px) {
  body {
    padding: 0px 0px 0px 60px;
    margin: 0;
  }

  .header {
    padding: 0 3rem 0 6rem;
  }

  .header__toggle {
    display: none;
  }

  .header__logo {
    width: 200px;
    height: 100px;
  }

  .header__img {
    width: 100px;
    height: 50px;
  }

  .nav {
    left: 0;
    padding: 1.2rem 1.5rem 0;
    width: 68px;
  }

  .nav__items {
    row-gap: 1.7rem;
  }

  .nav__icon {
    font-size: 1.3rem;
  }

  .nav__logo-name,
  .nav__name,
  .nav__subtitle,
  .nav__dropdown-icon {
    opacity: 0;
    transition: .3s;
  }

  .nav:hover {
    width: 219px;
  }

  .nav:hover .nav__logo-name {
    opacity: 1;

  }

  .nav:hover .nav__subtitle {
    opacity: 1;
  }

  .nav:hover .nav__name {
    opacity: 1;
  }

  .nav:hover .nav__dropdown-icon {
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {
  .nav__logo-img {
    max-width: 200px;
  }
}

@media screen and (max-width: 480px) {
  .nav__logo-img {
    max-width: 100px;
  }
}

/* Ajusta los estilos responsivos */
@media (max-width: 768px) {
  .header__container {
    height: auto;
    margin: 5px;

  }

  .header__container a span {
    font-size: 1.5rem;
  }

  .header__img {
    width: 150px;
  }
}



/* Estilo para el mensaje flotante */
#mensaje {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  display: none;
  z-index: 1000;
  font-size: 16px;
}

#mensaje.error {
  background-color: #dc3545;
}

/* Contenedor principal */
.container {
  width: 95%;
  /* Ocupa el 95% del ancho disponible */
  max-width: 1200px;
  /* Limita el ancho máximo */
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, #f9f9f9, #e0e7ff);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;
  margin-top: 80px;
}

/* Título */
.container h1 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: #4a5bff;
  margin-bottom: 1.5rem;
}

/* Etiquetas */
.container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #4a4a4a;
}

/* Entradas de texto */
.container input[type="text"],
.container input[type="email"],
.container input[type="tel"],
.container input[type="date"],
.container textarea,
.container select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

/* Hover y focus en entradas */
.container input:focus,
.container textarea:focus,
.container select:focus {
  outline: none;
  border-color: #4a5bff;
  box-shadow: 0 0 5px rgba(74, 91, 255, 0.5);
}

/* Textarea */
.container textarea {
  height: 120px;
  resize: none;
}

/* Botón */
.container .btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: #4a5bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

/* Hover y focus en botón */
.container .btn:hover {
  background: #3a4beb;
  box-shadow: 0 5px 15px rgba(58, 75, 235, 0.3);
}

/* Archivo adjunto */
.container input[type="file"] {
  font-size: 0.9rem;
}

/* Resaltar select vacío */
.container select:invalid {
  color: #aaa;
}

/* Ajustar placeholder */
.container input::placeholder,
.container textarea::placeholder {
  color: #bbb;
  font-style: italic;
}

/* Pequeñas pantallas */
@media (max-width: 600px) {
  .container {
    width: 90%;
    /* Reduce un poco el ancho para pantallas pequeñas */
    padding: 1.5rem;
  }

  .container h1 {
    font-size: 1.5rem;
  }

  .container .btn {
    font-size: 0.9rem;
  }
}

label[for="archivo"] {
  font-size: 14px;
  font-weight: bold;
  display: block;
  text-align: center;
  margin-bottom: 5px;
  color: #333;
}

input[type="file"] {
  display: none; /* Oculta el input original */
}

.custom-file-upload {
  display: block;
  width: fit-content;
  margin: 0 auto; /* Centra el botón */
  padding: 5px 12px;
  background-color: #007bff;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.custom-file-upload:hover {
  background-color: #0056b3;
}




/* Whassapp */
.container-boton {
  background-color: #2e6329;
  border: 1px solid #fff;
  position: fixed;
  z-index: 999;
  border-radius: 100%;
  bottom: 15px;
  right: 15px;
  padding: 15px;
  /* Ajuste inicial */
  transition: ease 0.3s;
  animation: efecto 1.2s infinite;
}

.container-boton:hover {
  transform: scale(1.1);
  transition: 0.3s;
}

.boton {
  width: 60px;
  /* Ajuste inicial */
  transition: ease 1s;
}

@keyframes efecto {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.85);
  }

  100% {
    box-shadow: 0 0 0 25px rgba(0, 0, 0, 0);
  }
}




/* FOOTER GENERAL */
.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 5px solid #e74c3c;
}

/* TÍTULOS */
.footer h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #e74c3c;
  font-family: "Yatra One", system-ui;
}

/* SECCIÓN CONTACT INFO */
.contact-info {
  width: 48%;
  margin-right: 20px;
  padding-right: 20px;
  border-right: 2px solid white;
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.5;
}

.contact-info hr {
  border: 1px solid #fff;
  margin: 10px 0;
}

/* SECCIÓN REDES SOCIALES */
.social-media {
  width: 48%;
}

.social-media h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.social-media .separator {
  width: 60px;
  height: 2px;
  background-color: #e74c3c;
  margin-bottom: 15px;
}

.social-media p {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* ITEMS DE REDES SOCIALES */
.social-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.social-item a {
  color: #ecf0f1;
  font-size: 1.8rem;
  margin-right: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-item a:hover {
  color: #e74c3c;
  transform: scale(1.1);
}

.description {
  font-size: 1rem;
  color: #bdc3c7;
}

/* SECCIÓN SUGERENCIAS */
.sugerencias {
  margin-top: 20px;
}

.sugerencias h3 {
  font-size: 1.2rem;
  color: #e74c3c;
  margin-bottom: 10px;
}

.sugerencias form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sugerencias input,
.sugerencias textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #e74c3c;
  border-radius: 5px;
  background-color: white;
  color: black;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.sugerencias input:focus,
.sugerencias textarea:focus {
  border-color: #e74c3c;
  background-color: white;
  outline: none;
}

.sugerencias textarea {
  resize: none;
  height: 100px;
}

.sugerencias button {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: #ecf0f1;
  background-color: #e74c3c;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.sugerencias button:hover {
  background-color: #e74c3c;
  transform: scale(1.05);
}

.sugerencias button:active {
  transform: scale(1);
}

/* MEDIA QUERY PARA RESPONSIVE */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .social-media {
    width: 100%;
    margin-bottom: 30px;
    padding: 0;
    border: none;
  }

  .contact-info h3,
  .social-media h3 {
    text-align: center;
  }

  .social-item {
    justify-content: center;
  }
}

#mensajeFlotante {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 15px;
  border-radius: 5px;
  display: none;
  z-index: 1000;
}

