/* El Profe Que Aprende — Contacto público.
   Visualmente coherente con Home / Quién soy. Sin dependencias adicionales. */
body.page-contacto {
  --contact-navy: #102d61;
  --contact-blue: #2569ee;
  --contact-cyan: #04add5;
  --contact-ink: #1a3158;
  --contact-muted: #576e8b;
  --contact-border: #dbe8f9;
  background: #f6faff;
}
body.page-contacto .site-header { position: relative; z-index: 4; }
body.page-contacto .site-main {
  position: relative;
  isolation: isolate;
  min-height: 0;
  overflow: clip;
  padding: 0 0 36px;
  background:
    radial-gradient(ellipse 660px 380px at 1% 14%, rgba(127, 187, 255, .16), transparent 77%),
    radial-gradient(ellipse 580px 430px at 93% 55%, rgba(128, 218, 230, .12), transparent 75%),
    linear-gradient(180deg,#f8fbff 0%,#f1f7ff 100%);
}
body.page-contacto .animated-bg-canvas { display: none !important; }
body.page-contacto .epqa-contact {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 14px 0 12px;
  color: var(--contact-ink);
  font-family: 'Nunito Sans','Nunito',system-ui,sans-serif;
}
body.page-contacto .epqa-contact h1,
body.page-contacto .epqa-contact h2,
body.page-contacto .epqa-contact h3 {
  font-family: 'Nunito Sans','Nunito',system-ui,sans-serif;
  letter-spacing: -.025em;
  font-weight: 900;
}
body.page-contacto .epqa-contact p { line-height: 1.58; font-weight: 600; }
body.page-contacto .epqa-contact a:focus-visible,
body.page-contacto .epqa-contact button:focus-visible,
body.page-contacto .epqa-contact input:focus-visible,
body.page-contacto .epqa-contact select:focus-visible,
body.page-contacto .epqa-contact textarea:focus-visible { outline: 3px solid #4384fa; outline-offset: 3px; }
body.page-contacto .epqa-contact__crumbs {
  display: flex; align-items: center; gap: 9px;
  color: #627899; font-weight: 800; font-size: .78rem;
  margin: 4px 0 15px;
}
body.page-contacto .epqa-contact__crumbs a { text-decoration: none; color: #2763ae; }
body.page-contacto .epqa-contact__crumbs a:hover { text-decoration: underline; }
body.page-contacto .epqa-contact__crumbs i { font-size: .65rem; }
body.page-contacto .epqa-contact__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #265ebe; font-size: .73rem;
  font-weight: 900; letter-spacing: .055em;
}
body.page-contacto .epqa-contact__eyebrow i { font-size: 1rem; color: #0aa5cb; }
body.page-contacto .epqa-contact-hero {
  min-height: 245px;
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(280px,.67fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #dceafb;
  border-radius: 25px;
  background: linear-gradient(111deg, #fff 5%, #eff8ff 59%, #dceeff 100%);
  box-shadow: 0 13px 36px rgba(37,79,147,.065);
}
body.page-contacto .epqa-contact-hero__copy { padding: clamp(23px,3vw,37px); padding-right: 12px; }
body.page-contacto .epqa-contact-hero h1 {
  color: #102d68;
  font-size: clamp(1.85rem,3.1vw,3.1rem);
  line-height: 1.13;
  margin: 11px 0 12px;
  text-wrap: balance;
}
body.page-contacto .epqa-contact-hero h1 span { color: var(--contact-cyan); }
body.page-contacto .epqa-contact-hero__copy > p { max-width: 66ch; color: #536d8c; font-size: .95rem; margin: 0 0 14px; }
body.page-contacto .epqa-contact-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
body.page-contacto .epqa-contact-hero__tags span {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ffffffd9; border: 1px solid #d5e5f8;
  border-radius: 50px; padding: 6px 10px;
  font-weight: 850; font-size: .71rem; color: #345b8d;
}
body.page-contacto .epqa-contact-hero__tags i { color: #137bdb; font-size: .82rem; }
body.page-contacto .epqa-contact-hero__visual { min-height: 245px; height: 100%; position: relative; overflow: hidden; }
body.page-contacto .epqa-contact-hero__halo {
  position: absolute; inset: 9% -15% -25% -7%; border-radius: 50%;
  background: radial-gradient(circle,#edfaff 5%, #bde1ff 63%, rgba(134,196,253,0) 76%);
}
body.page-contacto .epqa-contact-hero__avatar {
  display: block; position: absolute;
  width: 85%; height: 139%; left: 8%; bottom: -36%;
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 8px 14px rgba(19,54,115,.12));
}
body.page-contacto .epqa-contact-hero__bubble {
  display: inline-flex; position: absolute; z-index: 2;
  top: 18px; right: 17px; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e0eafb; border-radius: 13px;
  padding: 9px 12px; color: #274e84;
  box-shadow: 0 8px 22px rgba(33,83,159,.13);
  font-size: .72rem; font-weight: 900;
}
body.page-contacto .epqa-contact-hero__bubble i { color: #16a9d6; font-size: 1.1rem; }
body.page-contacto .epqa-contact__notice {
  margin-top: 15px; display: flex; gap: 12px; align-items: center;
  border-radius: 15px; padding: 15px 17px;
  border: 1px solid #bcebd2; background: #eafbf1; color: #0b7048;
  font-size: .89rem; font-weight: 800;
}
body.page-contacto .epqa-contact__notice i { font-size: 1.2rem; }
body.page-contacto .epqa-contact__notice--error { border-color: #fac8c8; background: #fff0ef; color: #a02b2b; }
/* The form is the star of this page, not a second hero. */
body.page-contacto .epqa-contact__layout {
  margin: 17px 0 22px;
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(270px,.84fr);
  align-items: start;
  gap: 17px;
}
body.page-contacto .epqa-contact__form-card,
body.page-contacto .epqa-contact__aside-card {
  background: #fff;
  border: 1px solid var(--contact-border);
  border-radius: 23px;
  box-shadow: 0 7px 24px rgba(21,65,143,.065);
  min-width: 0;
}
body.page-contacto .epqa-contact__form-card { padding: clamp(20px,3vw,30px); }
body.page-contacto .epqa-contact__form-head { padding-bottom: 17px; border-bottom: 1px solid #e7eef8; margin-bottom: 21px; }
body.page-contacto .epqa-contact__form-head h2 {
  color: #18366a; font-size: clamp(1.35rem,2vw,1.75rem);
  margin: 6px 0 4px;
}
body.page-contacto .epqa-contact__form-head p { color: #647893; font-size: .86rem; margin: 0; }
body.page-contacto .epqa-contact__fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 14px; }
body.page-contacto .epqa-contact__field { min-width: 0; }
body.page-contacto .epqa-contact__field--full { grid-column: 1 / -1; }
body.page-contacto .epqa-contact__field label {
  display: block;
  margin: 0 0 7px;
  font-size: .84rem; font-weight: 900;
  color: #243b63;
}
body.page-contacto .epqa-contact__field label > span { color: #d05757; }
body.page-contacto .epqa-contact__field label small { color: #71839e; font-weight: 700; font-size: .72rem; }
body.page-contacto .epqa-contact__field input,
body.page-contacto .epqa-contact__field select,
body.page-contacto .epqa-contact__field textarea {
  width: 100%; display: block;
  min-height: 47px; padding: 11px 13px;
  background: #f8fbff; color: #193459;
  border: 1px solid #cfdced; border-radius: 12px;
  box-shadow: none; font-size: .89rem; font-weight: 650;
  line-height: 1.45; outline: none;
  transition: background-color .18s ease,box-shadow .18s ease,border-color .18s ease;
}
body.page-contacto .epqa-contact__field textarea { min-height: 122px; resize: vertical; }
body.page-contacto .epqa-contact__field select { padding-right: 30px; cursor: pointer; }
body.page-contacto .epqa-contact__field input::placeholder,
body.page-contacto .epqa-contact__field textarea::placeholder { color: #8596ad; opacity: 1; font-weight: 550; }
body.page-contacto .epqa-contact__field input:focus,
body.page-contacto .epqa-contact__field textarea:focus,
body.page-contacto .epqa-contact__field select:focus {
  border-color: #4c97ef; background: #fff;
  box-shadow: 0 0 0 3px rgba(62,140,242,.14); outline: none;
}
body.page-contacto .epqa-contact__hint { display: block; margin: 8px 0 0; color: #71819b; font-size: .76rem; font-weight: 700; }
body.page-contacto .epqa-contact__form-actions { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
body.page-contacto .epqa-contact__submit {
  display: inline-flex; gap: 10px; align-items: center; justify-content: center;
  min-height: 45px; padding: 11px 19px;
  border: 1px solid #256bec; border-radius: 12px;
  background: linear-gradient(112deg,#2485fa,#215ce8); color: #fff;
  cursor: pointer; font-size: .89rem; font-weight: 900;
  box-shadow: 0 7px 17px rgba(40,102,229,.16);
  transition: transform .18s ease,box-shadow .18s ease;
}
body.page-contacto .epqa-contact__submit:hover { transform: translateY(-2px);box-shadow: 0 10px 24px rgba(40,102,229,.24); }
body.page-contacto .epqa-contact__form-actions > p { margin: 0; font-size: .77rem; color: #71829c; }
body.page-contacto .epqa-contact__aside { display: grid; gap: 15px; }
body.page-contacto .epqa-contact__aside-card { padding: 22px; }
body.page-contacto .epqa-contact__aside-card--email { background: linear-gradient(145deg,#f2faff,#fff); }
body.page-contacto .epqa-contact__aside-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 15px;
  background: #e4f4ff; color: #138add; font-size: 1.5rem;
  margin-bottom: 15px;
}
body.page-contacto .epqa-contact__aside-icon--violet { background: #f2eafd; color: #8050d6; }
body.page-contacto .epqa-contact__aside-card h2 { font-size: 1.08rem; color: #1d3b71; line-height: 1.35; margin: 0 0 7px; }
body.page-contacto .epqa-contact__aside-card p { color: #647994; font-size: .83rem; margin: 0 0 12px; }
body.page-contacto .epqa-contact__aside-card a {
  text-decoration: none; display: inline-flex;
  gap: 8px; align-items: center; color: #2261cb;
  overflow-wrap: anywhere; font-size: .8rem; font-weight: 900;
}
body.page-contacto .epqa-contact__aside-card a:hover { text-decoration: underline; }
body.page-contacto .epqa-contact__topics { list-style: none; display: grid; gap: 12px; margin: 12px 0 2px; padding: 0; }
body.page-contacto .epqa-contact__topics li { display: flex; align-items: flex-start; gap: 9px; font-size: .82rem; font-weight: 750; color: #466384; line-height: 1.4; }
body.page-contacto .epqa-contact__topics i { color: #08a981; margin-top: 2px; }
body.page-contacto .epqa-contact__aside-note {
  display: flex; gap: 12px; align-items: flex-start; border: 1px solid #cbe4fa;
  padding: 16px 17px; border-radius: 17px;
  background: linear-gradient(100deg,#eaf6ff,#eff8ff); color: #326194;
}
body.page-contacto .epqa-contact__aside-note > i { color: #1689d4; font-size: 1.5rem; }
body.page-contacto .epqa-contact__aside-note strong { display: block; color: #1e487d; font-weight: 900; font-size: .81rem; }
body.page-contacto .epqa-contact__aside-note span { display: block; color: #55728e; font-size: .75rem; font-weight: 700; margin-top: 4px; line-height: 1.45; }
body.page-contacto .epqa-contact__bottom {
  border: 1px solid #d8e8fa; border-radius: 20px;
  padding: 21px clamp(18px,2.5vw,27px);
  background: linear-gradient(115deg,#e9f5ff,#f4f7ff);
  display: flex; gap: 18px; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
}
body.page-contacto .epqa-contact__bottom h2 { margin: 0 0 4px; color: #1c3768; font-size: clamp(1.13rem,1.75vw,1.48rem); }
body.page-contacto .epqa-contact__bottom h2 span { color: #00a4cf; }
body.page-contacto .epqa-contact__bottom p { margin: 0; color: #5c7592; font-size: .79rem; }
body.page-contacto .epqa-contact__bottom a { color: #2262c1; font-weight: 900; font-size: .85rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
body.page-contacto .epqa-contact__bottom a:hover { text-decoration: underline; }
/* The animated background used to paint a white veil above footer in legacy styles. */
body.page-contacto .site-footer {
  position: relative; z-index: 2; isolation: isolate;
  margin-top: 0 !important;
  background: linear-gradient(125deg,#0b214a,#112d64 65%,#10345e) !important;
  border-top: 1px solid #255495;
  color: #e8f3ff !important;
}
body.page-contacto .site-footer .footer-title { color: #fff !important; }
body.page-contacto .site-footer .footer-text,
body.page-contacto .site-footer .footer-copy { color: #c8d9f6 !important; }
body.page-contacto .site-footer .visit-counter,
body.page-contacto .site-footer .counter-label { color: #d1e2fa !important; }
body.page-contacto .site-footer .visit-counter strong { color: #fff !important; }
body.page-contacto .site-footer .footer-links a {
  color: #e5f0ff !important; border-color: #4771af; background: rgba(255,255,255,.09);
}
body.page-contacto .site-footer .footer-links a:hover,
body.page-contacto .site-footer .footer-links a:focus-visible {
  color: #08244f !important; background: #d8f5ff; border-color: #c4effb;
}
body.page-contacto .site-footer .footer-social a {
  color: #e6f7ff !important; background: rgba(255,255,255,.09) !important;
  border-color: #3c669f !important;
}
body.page-contacto .site-footer .epqa-impact-card { background: rgba(255,255,255,.08); border-color: rgba(169,204,255,.25); }
body.page-contacto .site-footer .footer-rule { border-color: rgba(204,226,255,.23); }
@media (max-width: 950px) {
  body.page-contacto .epqa-contact-hero { grid-template-columns: minmax(0,1.5fr) minmax(225px,.72fr); }
  body.page-contacto .epqa-contact-hero h1 { font-size: clamp(1.75rem,3.5vw,2.7rem); }
  body.page-contacto .epqa-contact__layout { grid-template-columns: minmax(0,1.4fr) minmax(240px,.85fr); gap: 12px; }
  body.page-contacto .epqa-contact__aside-card { padding: 18px; }
}
@media (max-width: 720px) {
  body.page-contacto .epqa-contact { width: calc(100% - 20px); padding-top: 10px; }
  body.page-contacto .epqa-contact__crumbs { margin: 3px 3px 10px; }
  body.page-contacto .epqa-contact-hero { grid-template-columns: 1fr; border-radius: 21px; min-height: 0; }
  body.page-contacto .epqa-contact-hero__copy { padding: 22px 18px 0; }
  body.page-contacto .epqa-contact-hero h1 { font-size: clamp(1.8rem,7.3vw,2.6rem); }
  body.page-contacto .epqa-contact-hero__copy > p { font-size: .87rem; }
  body.page-contacto .epqa-contact-hero__visual { min-height: 196px; height: 196px; }
  body.page-contacto .epqa-contact-hero__avatar { width: 53%; left: 24%; bottom: -57%; height: 163%; }
  body.page-contacto .epqa-contact-hero__bubble { top: 15px; right: 8%; }
  body.page-contacto .epqa-contact__layout { grid-template-columns: 1fr; margin: 12px 0 17px; }
  body.page-contacto .epqa-contact__form-card { padding: 20px 15px; }
  body.page-contacto .epqa-contact__aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.page-contacto .epqa-contact__aside-note { grid-column: 1/-1; }
  body.page-contacto .epqa-contact__aside-card { padding: 15px; }
  body.page-contacto .epqa-contact__bottom { padding: 19px 16px; }
}
@media (max-width: 560px) {
  body.page-contacto .epqa-contact__fields { grid-template-columns: 1fr; gap: 13px; }
  body.page-contacto .epqa-contact__field--full { grid-column: auto; }
  body.page-contacto .epqa-contact__form-head { padding-bottom: 14px; margin-bottom: 15px; }
  body.page-contacto .epqa-contact__form-actions { align-items: stretch; }
  body.page-contacto .epqa-contact__submit { width: 100%; }
  body.page-contacto .epqa-contact__aside { grid-template-columns: 1fr; }
  body.page-contacto .epqa-contact__aside-note { grid-column: auto; }
  body.page-contacto .epqa-contact-hero__tags span { font-size: .66rem; }
}
@media (prefers-reduced-motion: no-preference) {
  body.page-contacto .epqa-contact-hero__copy { animation: epqa-contact-in .34s ease both; }
  body.page-contacto .epqa-contact-hero__visual { animation: epqa-contact-in .4s .06s ease both; }
}
@keyframes epqa-contact-in {
  from { opacity: .7; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body.page-contacto .epqa-contact *,body.page-contacto .epqa-contact *::before,body.page-contacto .epqa-contact *::after {
    animation: none !important; transition: none !important;
  }
}
