/* HERO */
.pub-hero {
  background: linear-gradient(135deg, #e3f8ff, #ffffff);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.pub-hero__inner h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: #215f9b;
}

.pub-hero__inner p {
  font-size: 1rem;
  color: #5a6b80;
}

/* LAYOUT */
.pub-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.pub-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr;
  gap: 2rem;
}

/* Columna izquierda */
.pub-info {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.pub-info h2 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: #215f9b;
}

.pub-info p {
  font-size: 0.95rem;
  color: #4a5666;
  margin-bottom: 1rem;
}

.pub-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #5a6b80;
}

.pub-steps li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.4rem;
}

.pub-steps li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #215f9b;
}

/* Formulario derecha */
.pub-form-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.pub-form-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: #215f9b;
}

.pub-note {
  font-size: 0.85rem;
  color: #7a8697;
  margin-bottom: 1rem;
}

.pub-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pub-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #34495e;
  margin-bottom: 0.25rem;
}

.pub-field label span {
  color: #e63946;
}

.pub-field input,
.pub-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d0d7e2;
  padding: 0.6rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.pub-field textarea {
  resize: vertical;
  min-height: 140px;
}

.pub-legal {
  font-size: 0.8rem;
  color: #7a8697;
  margin-top: 0.5rem;
  margin-bottom: 0.7rem;
}

/* Responsivo */
@media (max-width: 900px) {
  .pub-grid {
    grid-template-columns: 1fr;
  }

  .pub-info {
    order: -1;
  }
}

@media (max-width: 600px) {
  .pub-hero {
    padding: 3rem 1rem 2rem;
  }
  .pub-wrap {
    padding: 1.5rem 1rem 3rem;
  }
}


.pub-msg {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.pub-msg--ok {
  color: #0b9150;        /* verde éxito */
  font-weight: 600;
}

.pub-msg--error {
  color: #c0392b;        /* rojo error */
  font-weight: 600;
}


/* ===== FAQ / PREGUNTAS ===== */

.pub-info h2 {
  margin-bottom: 18px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #f4f7ff;
  border: 1px solid #d6def7;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  color: #2d3a5f;
  transition: 0.2s;
}

.faq-item:hover {
  background: #e8eeff;
  transform: translateX(4px);
}

/* ===== MODAL ===== */

.faq-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.faq-modal.active {
  display: flex;
}

.faq-modal-content {
  background: #fff;
  padding: 26px 30px;
  border-radius: 18px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.faq-close {
  position: absolute;
  top: 10px;
  right: 14px;

  background: #ffffff;
  color: #215f9b;                 /* tono institucional */
  border: 2px solid #215f9b;
  width: 34px;
  height: 34px;
  border-radius: 50%;

  font-size: 1.2rem;
  font-weight: bold;
  line-height: 28px;
  text-align: center;

  cursor: pointer;
  transition: 0.2s;
}

.faq-close:hover {
  background: #215f9b;
  color: white;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .pub-grid {
    flex-direction: column !important;
  }

  .faq-item {
    font-size: 1rem;
  }
}
