/* ============================================================
   SECCIÓN HERO
   ============================================================ */
.adm-section:first-child {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 4rem 3rem;
  border-radius: 20px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px rgba(30, 60, 114, 0.3);
  position: relative;
  overflow: hidden;
}

.adm-section:first-child::before {
  content: "🎓";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 15rem;
  opacity: 0.05;
  transform: rotate(-15deg);
}

.adm-p {
  font-size: 1.4rem;
  line-height: 2;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.adm-p br {
  display: block;
  content: "";
  margin-top: 1.5rem;
}

/* ============================================================
   SECCIÓN DEL FORMULARIO
   ============================================================ */
.adm-section:last-child {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  align-items: center;
}

/* Contenedor del texto */
.adm-div:first-child {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Título del formulario */
.adm-h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 2rem;
  line-height: 1.4;
  position: relative;
  padding-left: 1.5rem;
  border-left: 5px solid #ff6b35;
}

/* Contenedor del formulario */
.interested-user {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 2.5rem;
  border-radius: 16px;
  border: 2px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Secciones del formulario */
.form-section {
  margin-bottom: 2rem;
}

.form-section:last-of-type {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.form-span {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.form-section:last-of-type .form-span {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.95rem;
  color: #666;
}

.form-section a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.form-section a:hover {
  color: #1e3c72;
  text-decoration: underline;
}

/* Contenedor de inputs */
.input-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-section:nth-child(3) .input-container {
  grid-template-columns: 1fr;
}

/* Inputs */
.form-input[type="text"],
.form-input[type="email"],
.form-input[type="tel"] {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

.form-input[type="text"]:focus,
.form-input[type="email"]:focus,
.form-input[type="tel"]:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
  transform: translateY(-2px);
}

.form-input[type="text"]::placeholder,
.form-input[type="email"]::placeholder,
.form-input[type="tel"]::placeholder {
  color: #adb5bd;
}

/* Placeholders personalizados */
#names::placeholder {
  content: "Nombres";
}

#lastnames::placeholder {
  content: "Apellidos";
}

#dni::placeholder {
  content: "DNI";
}

#phone::placeholder {
  content: "Teléfono";
}

#email::placeholder {
  content: "ejemplo@correo.com";
}

/* Agregar placeholders mediante JS o directamente en HTML */
.form-input[type="text"]:not(:placeholder-shown),
.form-input[type="email"]:not(:placeholder-shown),
.form-input[type="tel"]:not(:placeholder-shown) {
  border-color: #28a745;
}

/* Checkbox personalizado */
.form-input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #ff6b35;
  border-radius: 4px;
}

/* Botón de envío */
#send-message {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8555 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#send-message:hover {
  background: linear-gradient(135deg, #ff8555 0%, #ff6b35 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

#send-message:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

#send-message:disabled {
  background: #adb5bd;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Estados de validación */
.form-input:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

.form-input:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .adm-section:first-child {
    animation: fadeInDown 0.6s ease-out;
  }

  .adm-section:last-child {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loader para botón (opcional) */
#send-message.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  display: inline-block;
  margin-left: 10px;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   SECCIÓN DE PROCESO DE ADMISIÓN
   ============================================================ */
.process-section {
  background: white;
  padding: 4rem 3rem;
  border-radius: 20px;
  margin-top: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.process-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.process-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35 0%, #1e3c72 100%);
  border-radius: 2px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.process-step:hover {
  border-color: #ff6b35;
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8555 100%);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.process-step h3 {
  color: #1e3c72;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.process-step p {
  color: #666;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================================
   SECCIÓN DE BENEFICIOS
   ============================================================ */
.benefits-section {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 4rem 3rem;
  border-radius: 20px;
  margin-top: 3rem;
  box-shadow: 0 10px 40px rgba(30, 60, 114, 0.3);
}

.benefits-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.benefits-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: #ff6b35;
  border-radius: 2px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.benefit-card:hover {
  background: white;
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.2) rotate(5deg);
}

.benefit-card h3 {
  color: #1e3c72;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.benefit-card p {
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================================
   MODAL DE PRIVACIDAD
   ============================================================ */
#privacy-modal {
  max-width: 450px;
  padding: 24px;
  border: none;
  border-radius: 12px;
  margin: auto;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#privacy-modal::backdrop {
  background: rgb(0 0 0 / 50%);
}

#close-privacy {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
  margin: auto;
}

#close-privacy:hover {
  background: #555;
}

/* ============================================================
   RESPONSIVE
   (mismo orden de cascada que el original: 1024 -> 768 -> 480)
   ============================================================ */
@media (max-width: 1024px) {
  .adm-section:last-child {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  main {
    padding: 2rem 0;
  }

  #container {
    padding: 0 1rem;
  }

  .adm-section:first-child {
    padding: 3rem 2rem;
  }

  .adm-p {
    font-size: 1.2rem;
    line-height: 1.8;
  }

  .adm-section:last-child {
    padding: 2rem;
  }

  .adm-h2 {
    font-size: 1.6rem;
  }

  .interested-user {
    padding: 2rem;
  }

  .input-container {
    grid-template-columns: 1fr;
  }

  .process-section,
  .benefits-section {
    padding: 3rem 2rem;
    margin-top: 2rem;
  }

  .process-title,
  .benefits-title {
    font-size: 2rem;
  }

  .process-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .adm-section:first-child {
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }

  .adm-p {
    font-size: 1.1rem;
  }

  .adm-section:last-child {
    padding: 1.5rem;
    border-radius: 15px;
  }

  .adm-h2 {
    font-size: 1.4rem;
    padding-left: 1rem;
  }

  .interested-user {
    padding: 1.5rem;
  }

  .form-input[type="text"],
  .form-input[type="email"],
  .form-input[type="tel"] {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  #send-message {
    padding: 1rem;
    font-size: 1rem;
  }

  .process-section,
  .benefits-section {
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }

  .process-title,
  .benefits-title {
    font-size: 1.7rem;
    margin-bottom: 2rem;
  }

  .process-step,
  .benefit-card {
    padding: 1.5rem;
  }

  .step-number {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }

  .benefit-icon {
    font-size: 3rem;
  }
}
