/* ============================================================
   CONTACTO — form section stylesheet
   Extends the tokens defined in styles.css (:root) — no overrides,
   no !important, nothing here fights the base stylesheet.
   ============================================================ */

/* ---------- Eyebrow label (small caps tag above headings) ---------- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-orange-600);
  background: rgba(255, 158, 0, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: var(--sp-4);
}

/* ---------- Page intro ---------- */
.contact-hero {
  padding-bottom: var(--sp-6);
  background:
    linear-gradient(120deg, rgba(5, 62, 92, 0.95), rgba(3, 46, 69, 0.88)),
    url("../assets/img/nosotros/banner.jpg") center / cover;
  color: var(--c-white);
}
.contact-hero h1 {
  margin-bottom: var(--sp-4);
  color: var(--c-white);
  max-width: 920px;
}
.contact-hero-sub {
  max-width: 820px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Layout: info column + form card ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: var(--sp-8);
  }
}

.contact-section {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

/* ---------- Info column ---------- */
.contact-info h2 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 1.75rem);
  margin-bottom: var(--sp-2);
}
.contact-info-sub {
  color: var(--c-text);
  margin-bottom: var(--sp-4);
  font-size: 0.95rem;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.info-ico {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--c-white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

/* Donation items list */
.contact-info-list li > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.35rem;
}
.contact-info-list li strong {
  font-family: var(--f-title);
  color: var(--c-navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-info-list li a,
.contact-info-list li span {
  color: var(--c-text);
  font-size: 0.95rem;
  transition: color var(--d-fast) var(--ease-out);
}
.contact-info-list li a:hover {
  color: var(--c-orange-600);
}
.contact-whatsapp {
  width: 100%;
}

/* ---------- Regional contact accordion ---------- */
.sede-accordion {
  margin-top: var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(5, 62, 92, 0.07);
  padding: var(--sp-3);
}
.sede-accordion-head {
  padding: var(--sp-2) var(--sp-2) var(--sp-3);
}
.sede-accordion-head .section-eyebrow {
  margin-bottom: var(--sp-2);
}
.sede-accordion-head h3 {
  color: var(--c-navy);
  font-size: 1rem;
  margin: 0;
}
.sede-acc {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sede-acc + .sede-acc {
  margin-top: var(--sp-2);
}
.sede-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 0.85rem;
  background: var(--c-bg-gray);
}
.sede-acc summary::-webkit-details-marker {
  display: none;
}
.sede-acc summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-orange);
  color: var(--c-white);
  font-family: var(--f-title);
  font-weight: 700;
  line-height: 1;
}
.sede-acc[open] summary::after {
  content: "-";
}
.sede-acc summary span {
  font-family: var(--f-title);
  font-weight: 700;
  color: var(--c-navy);
}
.sede-acc summary small {
  margin-left: auto;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 0.78rem;
}
.sede-acc dl {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
  padding: 0.85rem;
}
.sede-acc dl div {
  display: grid;
  gap: 0.1rem;
}
.sede-acc dt {
  font-family: var(--f-title);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(5, 62, 92, 0.68);
}
.sede-acc dd {
  margin: 0;
  color: var(--c-text);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.sede-acc a {
  color: var(--c-navy);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--d-fast) var(--ease-out);
}
.sede-acc a:hover {
  color: var(--c-orange-600);
}

/* ---------- Form card ---------- */
.contact-form-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.contact-form-head {
  margin-bottom: var(--sp-4);
}
.contact-form-head h2 {
  color: var(--c-navy);
  font-size: clamp(1.55rem, 1.7vw, 2.05rem);
  margin-bottom: var(--sp-2);
}
.contact-form-head p {
  color: var(--c-text);
  max-width: 720px;
}

/* Honeypot — visually and structurally hidden from real users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  margin-bottom: var(--sp-4);
}
.field label {
  display: block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--c-navy);
  margin-bottom: var(--sp-2);
}
.field .req {
  color: var(--c-orange-600);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  background: var(--c-bg-gray);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--c-text-strong);
  transition:
    border-color var(--d-fast) var(--ease-out),
    background var(--d-fast) var(--ease-out),
    box-shadow var(--d-fast) var(--ease-out);
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9aa0a6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--c-white);
  border-color: var(--c-orange);
  box-shadow: 0 0 0 4px rgba(255, 158, 0, 0.14);
}

/* Invalid state — added by JS after a failed validation pass */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #dc2626;
  background: #fff5f5;
}
.field-error {
  display: none;
  margin-top: var(--sp-2);
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 600;
}
.field.has-error .field-error {
  display: block;
}

/* Checkbox row (data-consent) */
.field-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
}
.field-checkbox input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 0.15rem;
  accent-color: var(--c-orange);
  cursor: pointer;
}
.field-checkbox label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--c-text);
  line-height: 1.5;
}
.field-checkbox label a {
  color: var(--c-navy);
  text-decoration: underline;
}
.field-checkbox .field-error {
  grid-column: 2;
}

/* ---------- Submit button ---------- */
.form-submit {
  width: 100%;
  margin-top: var(--sp-2);
  position: relative;
}
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: var(--c-white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.form-submit.is-loading .btn-label {
  opacity: 0.6;
}
.form-submit.is-loading .btn-spinner {
  display: inline-block;
}
.form-submit:disabled {
  cursor: not-allowed;
  transform: none !important;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Status banner (success / error) ---------- */
.form-status {
  display: none;
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.is-visible {
  display: block;
}
.form-status--success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--c-green-600);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.form-status--error {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.25);
}
