main {
    max-width: 650px;
    margin: 60px auto;
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', sans-serif;
    animation: fadeIn 1s ease-in-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  main h1 {
    font-size: 34px;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
 main p {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
    font-size: 18px;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  label {
    font-weight: bold;
    color: #2d3436;
    font-size: 15px;
  }
  
  input,
  textarea {
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  
  input:focus,
  textarea:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
    outline: none;
  }
  
  textarea {
    resize: vertical;
    min-height: 120px;
  }
  
/* ===========================Terminos y condidcionrd */

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

/* Oculta el checkbox nativo */
.checkbox-container input[type="checkbox"] {
  display: none;
}

/* Estilo del checkbox personalizado */
.checkmark {
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-right: 8px;
  position: relative;
}

/* Cuando el checkbox está marcado */
.checkbox-container input:checked + .checkmark {
  background-color: #4caf50;
  border-color: #4caf50;
}

/* Dibujar la palomita (✓) */
.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked + .checkmark::after {
  display: block;
}    
  button {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(101, 86, 226, 0.4);
  }
/* Menú principal (puede estar dentro de un ul grande) */
/* IMPORTAMOS UNA FUENTE MODERNA */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f7f9fc;
  color: #333;
}

/* HEADER */
#head {
  background-color: #1e1e1e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

/* LOGO / ENLACE PRINCIPAL */
#index {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}


/* BOTÓN DE MENÚ (MÓVIL) */
#menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  transition: transform 0.3s ease;
}

#menu-toggle:hover {
  transform: scale(1.1);
}

/* MENÚ PRINCIPAL */
#menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

/* ENLACES DEL MENÚ */
#menu li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}

#menu li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #00bcd4;
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
}

#menu li a:hover::after {
  width: 100%;
}

#menu li a:hover {
  color: #00bcd4;
}

/* SUBMENÚ */
.submenu {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #ffffff;
  display: none;
  flex-direction: column;
  list-style: none;
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  animation: fadeIn 0.3s ease-in-out;
}

.submenu:hover .dropdown {
  display: flex;
}

.dropdown li a {
  padding: 0.75rem 1.25rem;
  display: block;
  color: #333;
  white-space: nowrap;
  font-weight: 500;
  transition: background-color 0.3s;
}

.dropdown li a:hover {
  background-color:  white;
  border-radius: 8px;
}

/* ANIMACIÓN DE ENTRADA */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  #menu {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }

  #menu.show {
    display: flex;
  }

  #menu li a {
    color: #333;
    padding: 1rem;
  }

  .submenu .dropdown {
    position: static;
    box-shadow: none;
    background-color: #f9f9f9;
  }

  .submenu.active .dropdown {
    display: flex;
  }

  .submenu:hover .dropdown {
    display: none;
  }
}
#preguntas {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(170deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
}

#preguntas:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);

}
