/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0a1628;
  background-image:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(16, 185, 129, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(255, 107, 53, 0.08) 0%,
      transparent 50%
    ),
    linear-gradient(160deg, #0a1628 0%, #0d2044 50%, #0a1628 100%);
  min-height: 100vh;
  padding: 30px 20px;
  color: #333;
}

/* ===== Container ===== */
.container {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.15),
    0 30px 80px rgba(0, 0, 0, 0.5);
}

/* ===== Header ===== */
.header {
  background: linear-gradient(160deg, #0a1628 0%, #0d2550 100%);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 34px,
      rgba(255, 255, 255, 0.025) 34px,
      rgba(255, 255, 255, 0.025) 35px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 34px,
      rgba(255, 255, 255, 0.025) 34px,
      rgba(255, 255, 255, 0.025) 35px
    );
  pointer-events: none;
}

.logo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
}

/* ===== Subtítulo ===== */
.subtitulo {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  padding: 22px 30px 20px;
  text-align: center;
  position: relative;
}

.subtitulo::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 12px solid #f7931e;
  z-index: 2;
}

.subtitulo h1 {
  color: #fff;
  font-size: 1.9em;
  font-weight: 800;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.subtitulo p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95em;
  margin-top: 6px;
}

/* ===== Alerts ===== */
.alert {
  padding: 14px 20px;
  border-radius: 12px;
  margin: 28px 30px 0;
  font-weight: 500;
  font-size: 0.92em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 5px solid #10b981;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 5px solid #dc2626;
}

.alert-info {
  background: #e0f2fe;
  color: #0369a1;
  border-left: 5px solid #0ea5e9;
}

/* ===== Form ===== */
form {
  padding: 40px 30px 30px;
}

/* ===== Section Title ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1em;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0a1628, #0d2550);
  padding: 12px 20px;
  border-radius: 12px;
  margin: 30px 0 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(10, 22, 40, 0.2);
}

/* ===== Form Layout ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85em;
  color: #374151;
  margin-bottom: 7px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95em;
  color: #111827;
  background: #f9fafb;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6b35;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-group input[type="checkbox"] {
  width: auto;
  accent-color: #ff6b35;
  width: 17px;
  height: 17px;
  margin-right: 8px;
  cursor: pointer;
  vertical-align: middle;
}

.form-group label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  text-transform: none;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
}

/* ===== Hijo Cards ===== */
.hijo-card {
  background: linear-gradient(145deg, #f0f9ff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  position: relative;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.hijo-card:hover {
  border-color: #ff6b35;
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.12);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ff6b35;
}

.card-header h3 {
  color: #0a1628;
  font-size: 1em;
  font-weight: 700;
  margin: 0;
}

/* ===== Buttons ===== */
.btn-remove {
  background: #fee2e2;
  color: #dc2626;
  border: 2px solid #fca5a5;
  padding: 5px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82em;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-remove:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.95em;
  margin: 10px 0 20px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-add:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: "Poppins", sans-serif;
  font-size: 1.15em;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 24px;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
  text-transform: uppercase;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.45);
}

.btn-submit:active {
  transform: translateY(-1px);
}

/* ===== Info Importante ===== */
.info-importante {
  margin: 10px 30px 30px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1.5px solid #ffe0cc;
}

.info-importante h2 {
  background: linear-gradient(135deg, #0a1628, #0d2550);
  color: white;
  padding: 16px 22px;
  font-size: 1em;
  font-weight: 800;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-bloque {
  padding: 20px 22px;
  border-bottom: 1.5px solid #ffe0cc;
  background: #fff;
}

.info-bloque:last-child {
  border-bottom: none;
}

.info-bloque h3 {
  color: #0a1628;
  font-size: 0.95em;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-bloque p {
  font-size: 0.9em;
  line-height: 1.7;
  margin-bottom: 8px;
  color: #4b5563;
}

.info-bloque ul {
  margin: 8px 0 10px 20px;
  font-size: 0.9em;
  color: #4b5563;
  line-height: 1.9;
}

.info-bloque ul li::marker {
  color: #ff6b35;
}

.info-bloque strong {
  color: #111827;
}

.info-contacto {
  background: linear-gradient(135deg, #fff8f5, #fff3ee);
}

.info-contacto h3 {
  color: #ff6b35;
}

.info-contacto p {
  font-size: 1.05em;
  color: #1f2937;
  font-weight: 500;
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    padding: 15px 10px;
  }

  form {
    padding: 30px 18px 22px;
  }

  .subtitulo h1 {
    font-size: 1.45em;
    letter-spacing: 2px;
  }

  .alert {
    margin: 20px 18px 0;
  }

  .info-importante {
    margin: 10px 18px 22px;
  }

  .section-title {
    font-size: 0.9em;
  }
}
