/* ==========================================================================
   Becas Carlos Salas — página "Ayuda"
   Portada, secciones y botones vienen de main.css.
   ========================================================================== */

/* Tarjeta de contacto de la portada --------------------------------------- */
.ay-tarjeta {
	display: flex; flex-direction: column; gap: 16px;
	padding: 32px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 24px;
	background: rgba(255, 255, 255, .04);
}
.ay-tarjeta__email { font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; letter-spacing: -.02em; color: #fff; text-decoration: none; word-break: break-word; }
.ay-tarjeta__email:hover { color: var(--amarillo); }
.ay-tarjeta__tel { font-size: 18px; color: rgba(255, 255, 255, .8); }
.ay-tarjeta__nota { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .6); }

/* Preguntas frecuentes ---------------------------------------------------- */
.ay-faq { gap: clamp(40px, 5vw, 72px); }
.ay-faq__bloque { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.ay-faq__titulo { position: sticky; top: 120px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--azul); }
.ay-faq__lista { display: flex; flex-direction: column; }
.ay-item { border-top: 1px solid rgba(0, 75, 146, .18); }
.ay-item__pregunta {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 22px 0; cursor: pointer; list-style: none;
	font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
}
.ay-item__pregunta::-webkit-details-marker { display: none; }
.ay-item__chevron { flex: none; transition: transform .25s var(--ease); }
.ay-item[open] .ay-item__chevron { transform: rotate(180deg); }
.ay-item__respuesta { display: flex; flex-direction: column; gap: 12px; padding: 0 48px 26px 0; max-width: 820px; }
.ay-item__respuesta p { font-size: 17px; line-height: 1.6; color: rgba(37, 22, 5, .8); text-wrap: pretty; }
.ay-item__enlace { font-size: 16px; font-weight: 700; }

/* Contacto ---------------------------------------------------------------- */
.ay-contacto__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
.ay-contacto__texto { display: flex; flex-direction: column; gap: 20px; }
.ay-contacto__titulo { font-size: clamp(32px, 3.2vw, 50px); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.ay-contacto__intro { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .8); max-width: 420px; text-wrap: pretty; }
.ay-contacto__datos { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 17px; }
.ay-contacto__datos a { color: #fff; font-weight: 700; text-decoration: none; }
.ay-contacto__datos a:hover { color: var(--amarillo); }
.ay-contacto__datos span { color: rgba(255, 255, 255, .75); }

.ay-caja { background: var(--fondo); color: var(--texto); border-radius: 28px; padding: clamp(28px, 4vw, 48px); --foco: var(--azul); }
.ay-caja--form { display: flex; flex-direction: column; gap: 22px; }
.ay-caja--jotform { padding: clamp(12px, 2vw, 24px); }
.ay-caja__iframe { display: block; width: 100%; min-width: 100%; height: 620px; border: 0; }

/* Formulario propio ------------------------------------------------------- */
.ay-form { display: flex; flex-direction: column; gap: 22px; }
.ay-form__fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.ay-form__campo { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.ay-form__campo input, .ay-form__campo textarea, .ay-form__campo select {
	width: 100%; border: 1px solid rgba(0, 75, 146, .3); border-radius: 6px; background: #fff;
	font: 400 16px var(--fuente); color: var(--texto);
}
.ay-form__campo input, .ay-form__campo select { height: 50px; padding: 0 16px; }
.ay-form__campo select { appearance: none; padding-right: 44px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%23004b92' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; }
.ay-form__campo textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; }
.ay-form__campo input:focus-visible, .ay-form__campo textarea:focus-visible, .ay-form__campo select:focus-visible { border-color: var(--azul); }
.ay-form__campo [aria-invalid="true"] { border-color: #b3261e; }
.ay-form__error { font-size: 14px; font-weight: 400; color: #b3261e; }
.ay-form__privacidad { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 15px; line-height: 1.45; color: rgba(37, 22, 5, .6); }
.ay-form__privacidad input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--azul); }
.ay-form__privacidad .ay-form__error { grid-column: 2; }
/* El enlace va en el mismo gris del texto: se reconoce por el subrayado. */
.ay-form__privacidad a { color: inherit; text-underline-offset: 3px; }
.ay-form__privacidad a:hover { color: var(--azul); }
.ay-form .btn { align-self: flex-start; }
/* Campo trampa para robots: fuera de la vista y del recorrido por teclado. */
.ay-form__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ay-form__mensaje { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px;
	background: rgba(0, 75, 146, .08); font-size: 16px; line-height: 1.5; }
.ay-form__mensaje strong { font-size: 19px; letter-spacing: -.01em; }
.ay-form__mensaje--error { background: rgba(179, 38, 30, .08); color: #8c1d18; }
.ay-form__mensaje--exito { flex-direction: row; align-items: center; gap: 16px; padding: 24px; }
.ay-form__mensaje-texto { display: flex; flex-direction: column; gap: 6px; }
.ay-form__check { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--amarillo); color: var(--texto); }
/* Tras enviar, el hueco conserva su alto y el mensaje queda centrado. */
.ay-caja--form.is-gracias { justify-content: center; }

/* Anclas: que el título no quede debajo de la cápsula. */
#faq, #contactar { scroll-margin-top: 80px; }

/* Móvil ------------------------------------------------------------------- */
@media (max-width: 760px) {
	.ay-faq__bloque, .ay-contacto__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.ay-faq__titulo { position: static; }
	.ay-item__respuesta { padding-right: 0; }
	.ay-caja__iframe { height: 720px; }
}
