:root {
  --color-primary: #001947;
  --color-text: #0053f1;
  --color-white: #f1f1f2;
}

:root {
  --primary-color: #001947;
  --secondary-color: #0053f1;
  --success-color: #45bf55;
  --background-color: #00194755;
  --shadow-light: #ffffff;
  --shadow-dark: #0054f169;
  --gradient-start: #4caf50;
  --gradient-end: #81c784;
}

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "VVDS-Fifties-Exp-Med"; /* Nombre de la fuente Este era el Comfortaa Medium */
  src: url("/src/ELEMENTOS DE MARCA/TIPOGRAFIAS/PARA TITULOS/VVDS-Fifties-Exp-Med.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "VVDS-Fifties-Exp-Reg"; /* Nombre de la fuente: Este era Comfortaa Bold*/
  src: url("/src/ELEMENTOS DE MARCA/TIPOGRAFIAS/PARA TITULOS/VVDS-Fifties-Exp-Reg.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* {
  font-family: "VVDS-Fifties-Exp-Med";
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  opacity: 1;
  margin-top: 5%;
  padding: 20px;
  background: #f1f1f2;
  font-family: "VVDS-Fifties-Exp-Med", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.5;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Navbar styles */

.header {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 100px;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.header:hover::before {
  left: 100%;
}
.logo {
  cursor: pointer;
}

.navbar a {
  font-family: "VVDS-Fifties-Exp-Reg", system-ui, -apple-system, sans-serif;
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  text-decoration: none;
  margin-left: 35px;
  transition: 0.3s;
}
.navbar a:hover {
  color: var(--color-text);
}

.header.scroll {
  position: fixed; /* Asegura que el header esté fijo al hacer scroll */
  top: 10px; /* Ajusta la posición desde la parte superior */
  left: 50%; /* Centra horizontalmente */
  transform: translateX(
    -50%
  ); /* Corrige el desplazamiento hacia la izquierda */
  margin: 0; /* Elimina márgenes que puedan descentrarlo */
  padding: 10px 50px;
  border-radius: 50px;
  width: auto;
  background: rgba(255, 255, 255, 0.313);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(231, 229, 229, 0.539);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Logo reducido */
.header.scroll .logo img {
  width: 50px;
  transition: width 0.3s ease-in-out;
}

.nav-links {
  display: none;
}

.navbar.scrolled .logo img {
  width: 100px;
}

#main-logo {
  width: 50px;
}

/* Estilos básicos para el botón de menú */
#menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* Se mostrará solo en pantallas pequeñas */
}

@media (min-width: 768px) {
  .navbar .nav-links {
    display: flex; /* Asegurarse de que sea visible */
    gap: 2rem; /* Espaciado entre los elementos */
    position: static; /* Restablecer la posición */
    background: none; /* Quitar fondo */
    padding: 0; /* Ajustar padding */
    box-shadow: none; /* Quitar sombra */
  }

  .navbar .nav-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .navbar .nav-links a:hover {
    color: var(--color-text);
  }

  #menu-toggle {
    display: none; /* Ocultar el botón de menú */
  }
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none; /* Ocultar el menú por defecto */
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
  }

  .navbar.open .nav-links {
    display: flex; /* Mostrar el menú desplegable */
  }

  .nav-links a {
    margin: 10px 0;
    text-align: right;
  }

  #menu-toggle {
    margin-left: 10px;
    display: block; /* Mostrar el botón de menú */
    font-size: 1.5rem;
    cursor: pointer;
  }
}

/* FIN DE NAV BAR */

.contacto {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  width: 100%;
  overflow: hidden;
  margin-top: 5%;
}

.form {
  flex: 1;
  max-width: 500px;
}

h2 {
  color: var(--color-primary);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
}



.phone-group {
  display: flex;
  gap: 10px;
}

.phone-group select {
  width: 35%;
}

.phone-group input {
  width: 65%;
}

.animated-button:hover {
  box-shadow: 0 5px 15px var(--secondary-color);
}

.character-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.character {
  width: 300px;
  height: auto;
}

#back_hand,
#front_hand,
#sunglasses,
#right_eye,
#right_eye_wink {
  transition: all 0.3s ease-in-out;
}

.container:hover #back_hand {
  transform: translateX(10px);
}

.container:hover #front_hand {
  transform: translateX(15px);
}

.container:hover #sunglasses {
  transform: translateY(-27px);
}

.container:hover #right_eye {
  opacity: 0;
}

.container:hover #right_eye_wink {
  opacity: 1;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .form,
  .character-container {
    width: 100%;
  }

  .character {
    width: 200px;
    margin-top: 2rem;
  }
}

/* FORMULARIO */

.fondo {
  background: rgba(245, 245, 245, 0.276);
}

@keyframes shine {
  0% {
    transform: translateX(-50%) translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateX(-50%) translateY(-50%) rotate(360deg);
  }
}

h2 {
  color: var(--primary-color);
  font-family: "VVDS-Fifties-Exp-Reg";
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  text-shadow: 2px 2px 4px var(--shadow-dark);
  font-size: 1.6rem;
  letter-spacing: 1px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 4px;
}

.form-group {
  margin-bottom: 1.2rem;
  position: relative;
}

label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  text-shadow: 1px 1px 2px var(--shadow-light);
  font-size: 1.1rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--primary-color);
  box-shadow: inset 6px 6px 12px var(--shadow-dark),
    inset -6px -6px 12px var(--shadow-light);
  transition: all 0.4s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light), 0 0 15px rgba(76, 175, 80, 0.3);
}

.phone-group {
  display: flex;
  gap: 10px;
}

.phone-group select {
  width: 35%;
}

.phone-group input {
  width: 65%;
}

.animated-button {
  background: linear-gradient(135deg, var(--primary-color),var(--secondary-color),var(--shadow-dark));
  background-size: 300% 300%;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light), 0 0 20px #00194760;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

button::after {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light), 0 0 30px rgba(76, 175, 80, 0.6);
}

button:active {
  transform: translateY(1px);
  box-shadow: inset 6px 6px 12px rgba(0, 0, 0, 0.2),
    inset -6px -6px 12px rgba(255, 255, 255, 0.1);
}


.animated-button .text {
  position: relative;
  z-index: 1;
}

.animated-button:hover {
  color: #f1f1f2;
}

.animated-button:active {
  box-shadow: 0 0 0 4px greenyellow;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.error {
  box-shadow: inset 5px 5px 10px #e74c3c,
    inset -5px -5px 10px var(--shadow-light) !important;
  animation: shake 0.3s ease-in-out;
}

/* FIN FORMULARIO */

/* FOOTER */

.custom-footer {
  background-color: white;
  border-radius: 20px; /* Bordes redondeados */
  width: 50%;
  margin: 2rem auto;
  padding: 4rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.409);
  text-align: center;
}

/* Estilo para los links principales */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem; /* Espaciado entre los enlaces */
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-family: "VVDS-Fifties-Exp-Reg";
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* Redes sociales */
ul {
  list-style: none;
}

.redes {
  display: flex;
  justify-content: center;
  align-items: center;
}
.redes .contenido-icono {
  margin: 0 10px;
  position: relative;
}
.redes .contenido-icono .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}
.redes .contenido-icono:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}
.redes .contenido-icono a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.redes .contenido-icono a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.redes .contenido-icono a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}
.redes .contenido-icono a:hover {
  color: white;
}
.redes .contenido-icono a .relleno {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.redes .contenido-icono a:hover .relleno {
  height: 100%;
}

.redes .contenido-icono a[data-social="linkedin"] .relleno,
.redes .contenido-icono a[data-social="linkedin"] ~ .tooltip {
  background-color: #EA4335;
}

.redes .contenido-icono a[data-social="whatsapp"] .relleno,
.redes .contenido-icono a[data-social="whatsapp"] ~ .tooltip {
  background-color: #25d366;
}
.redes .contenido-icono a[data-social="instagram"] .relleno,
.redes .contenido-icono a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(
    45deg,
    #405de6,
    #5b51db,
    #b33ab4,
    #c135b4,
    #e1306c,
    #fd1f1f
  );
}
.redes .contenido-icono a[data-social="youtube"] .relleno,
.redes .contenido-icono a[data-social="youtube"] ~ .tooltip {
  background-color: #ff0000;
}

/* FIN REDES SOCIALES */

.footer-info {
  font-size: 0.9rem;
  color: #555;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.footer-info p {
  font-size: 0.9rem;
}

.logo-section img {
  width: 30vh;
  margin-bottom: 30px;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}

.footer-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #555;
}

/* FIN FOOTER */

/* MEDIA QUERIES */
@media screen and (max-width: 1400px) {
  body {
    margin-top: 3%;
  }

  .form {
    padding: 1rem;
  }
  .custom-footer {
    width: 60%;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-info {
    font-size: 0.8rem;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 1200px) {
  .container {
    margin-top: 1.5rem;
  }
  body {
    margin-top: 4%;
  }

  .form {
    padding: 1rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-info {
    font-size: 0.8rem;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 1024px) {
  .container {
    margin-top: 3rem;
  }

  .form {
    padding: 1rem;
  }
  .custom-footer {
    width: 76%;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-info p {
    font-size: 0.8rem;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 768px) {
  .container {
    margin-top: 3rem;
  }

  .form {
    margin-bottom: 2rem;
  }

  .character {
    display: none;
  }
  .custom-footer {
    width: 100%;
  }
  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-info p {
    font-size: 0.775rem;
  }

  .footer-bottom p {
    font-size: 0.775rem;
  }
}

@media screen and (max-width: 480px) {
  .container {
    margin-top: 4rem;
  }
  .header {
    padding: 5px 128px;
  }

  .header.scroll {
    padding: 5px 64px;
  }
  .header.scroll .logo img {
    width: 80px;
  }
  .header .logo img {
    width: 100px;
  }
  .custom-footer {
    width: 100%;
  }
  .form {
    padding: 1rem;
  }

  .logo-section img {
    width: 20vh;
    margin-bottom: 20px;
  }

  .footer-links a {
    font-size: 0.8rem;
  }

  .footer-info {
    font-size: 0.7rem;
  }

  .footer-bottom p {
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 375px) {
  .container {
    margin-top: 3rem;
  }
  #main-logo {
    width: 40px;
  }
  .header {
    padding: 10px 144px;
  }

  .header.scroll {
    padding: 5px 64px;
  }
  .header.scroll .logo img {
    width: 80px;
  }
  .header .logo img {
    width: 100px;
  }

  .form {
    padding: 0.8rem;
  }

  .custom-footer {
    width: 100%;
  }

  .footer-links a {
    font-size: 0.7rem;
  }

  .footer-info {
    font-size: 0.6rem;
  }

  .footer-bottom p {
    font-size: 0.6rem;
  }
}

@media screen and (max-width: 320px) {
  .container {
    margin-top: 5rem;
  }

  .form {
    padding: 0.5rem;
  }

  .footer-links a {
    font-size: 0.7rem;
  }

  .footer-info p {
    font-size: 0.7rem;
  }
  .footer-bottom p {
    font-size: 0.6rem;
  }
}

@media screen and (max-width: 280px) {
  .container {
    margin-top: 3rem;
  }

  .form {
    padding: 0.3rem;
  }

  .footer-links a {
    font-size: 0.6rem;
  }

  .footer-info {
    font-size: 0.5rem;
  }

  .footer-bottom p {
    font-size: 0.5rem;
  }
}

@media screen and (max-width: 240px) {
  .container {
    margin-top: 3rem;
  }

  .form {
    padding: 0.2rem;
  }

  .footer-links a {
    font-size: 0.5rem;
  }

  .footer-info {
    font-size: 0.4rem;
  }

  .footer-bottom p {
    font-size: 0.4rem;
  }
}
