/* =====================================================
   Contacto — contact-redesign.css
   Scope: .contact-page
   Pixel-fiel al diseño del diseñador (Style Block 2)
   ===================================================== */

/* --- Tokens ----------------------------------------- */
.contact-page {
  --amber-50:   #FFF9E8;
  --amber-100:  #FDF1CB;
  --amber-200:  #FCE5A0;
  --amber-300:  #F8D26A;
  --amber-400:  #F5BE3F;
  --amber-500:  #E8A91E;
  --amber-600:  #C98A10;
  --cream-50:   #FDFAF1;
  --cream-100:  #FBF4DE;
  --cream-200:  #F8EBC2;
  --ink-900:    #0E0E0E;
  --ink-800:    #1A1A1A;
  --ink-700:    #2A2A2A;
  --ink-600:    #444444;
  --ink-500:    #6B6B6B;
  --ink-400:    #9A9A9A;
  --ink-300:    #C7C7C7;
  --ink-200:    #E5E5E5;
  --ink-100:    #F2F2F2;
  --ink-50:     #FAFAFA;
  --white:      #FFFFFF;
  --border-1:   #E5E5E5;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-pill: 999px;
  --shadow-sm:  0 2px 6px rgba(14,14,14,.06), 0 1px 2px rgba(14,14,14,.04);
  --shadow-md:  0 10px 24px rgba(14,14,14,.08), 0 2px 6px rgba(14,14,14,.04);
  --lh-base:    1.55;
  --lh-loose:   1.65;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--ink-900);
  background: var(--white);
}

/* --- Container -------------------------------------- */
.contact-page .cnt {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =====================================================
   HERO
   ===================================================== */
.contact-hero {
  background: var(--cream-50);
  border-bottom: 1px solid var(--cream-200);
}

.contact-hero .cnt {
  padding-top: 56px;
  padding-bottom: 56px;
}

.contact-eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 12px;
}

.contact-hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink-900);
  text-wrap: balance;
}

.contact-hero p {
  margin: 16px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: var(--lh-loose);
  color: var(--ink-700);
  text-wrap: pretty;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-section {
  padding: 64px 0 72px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

/* --- Form card -------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 34px 34px 32px;
}

.form-card > h2 {
  margin: 0 0 4px;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.form-lede {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--ink-500);
  line-height: var(--lh-base);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.field .req {
  color: #D93D3D;
  margin-left: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--ink-900);
  border: 1px solid var(--border-1);
  background: var(--ink-50);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B6B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
  line-height: var(--lh-base);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--white);
  border-color: var(--amber-400);
  box-shadow: 0 0 0 3px var(--amber-100);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-400);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.form-foot .note {
  font-size: 12px;
  color: var(--ink-400);
}

/* reCAPTCHA wrapper */
.recaptcha-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

/* Success message */
.form-success {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--cream-100);
  border: 1px solid var(--amber-300);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
}

.form-success i {
  color: var(--amber-600);
  flex-shrink: 0;
}

/* Errores de validación del servidor */
.form-error {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
}
.form-error i { color: #DC2626; flex-shrink: 0; margin-top: 2px; }
.form-error ul { margin: 0; padding: 0; list-style: none; }

#contact-form {
  scroll-margin-top: calc(var(--ms-header-height, 166px) + 16px);
}

/* Submit button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  border: none;
  padding: 13px 24px;
  cursor: pointer;
  background: var(--amber-400);
  color: var(--ink-900);
  transition: background 120ms ease, transform 120ms ease;
  white-space: nowrap;
}

.btn-submit:hover {
  background: var(--amber-500);
  color: var(--ink-900);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* --- Aside ------------------------------------------ */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Channel cards */
.channel-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  text-decoration: none;
  transition: box-shadow 120ms ease, border-color 120ms ease, transform 120ms ease;
}

a.channel-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--amber-400);
  transform: translateY(-2px);
  text-decoration: none;
}

.channel-ico {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  color: var(--amber-400);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.channel--wa .channel-ico {
  background: var(--amber-400);
  color: var(--ink-900);
}

.channel-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.channel-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber-600);
}

.channel-v {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  margin-top: 3px;
  line-height: 1.25;
}

.channel-d {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 3px;
  line-height: var(--lh-base);
}

/* Hours / office block */
.info-block {
  background: var(--ink-900);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.info-block-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-400);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ink-700);
  font-variant-numeric: tabular-nums;
}

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

.info-day {
  color: var(--ink-400);
}

.info-hrs {
  color: var(--white);
  font-weight: 600;
}

.info-hrs.closed {
  color: var(--ink-500);
  font-weight: 400;
}

/* =====================================================
   DEPARTMENTS SECTION
   ===================================================== */
.depts-section {
  background: var(--white);
  border-top: 1px solid var(--border-1);
  padding: 72px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dept-card {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  transition: box-shadow 120ms ease, border-color 120ms ease;
}

.dept-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--amber-400);
}

.dept-ico {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--cream-100);
  color: var(--ink-900);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.dept-card h3 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
}

.dept-card p {
  margin: 0;
  font-size: 13px;
  line-height: var(--lh-base);
  color: var(--ink-500);
  flex: 1;
}

.dept-mail {
  margin-top: auto;
  padding-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dept-mail:hover {
  color: var(--amber-600);
  text-decoration: underline;
}

/* =====================================================
   CTA FINAL — fondo AMBER (no negro)
   ===================================================== */
.contact-cta {
  background: var(--amber-400);
  padding: 64px 0;
}

.contact-cta .cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-cta h2 {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  max-width: 620px;
  text-wrap: balance;
  line-height: 1.05;
}

.contact-cta p {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--ink-800);
  max-width: 520px;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* CTA buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  border: none;
  padding: 13px 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.cta-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* dark = negro sobre amber */
.cta-btn--dark {
  background: var(--ink-900);
  color: var(--white);
}

.cta-btn--dark:hover {
  background: var(--ink-700);
  color: var(--white);
}

/* outline = blanco con borde oscuro sobre amber */
.cta-btn--outline {
  background: var(--white);
  color: var(--ink-900);
  box-shadow: inset 0 0 0 1.5px var(--ink-900);
}

.cta-btn--outline:hover {
  background: var(--ink-900);
  color: var(--white);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 760px) {
  .contact-hero .cnt    { padding-top: 40px; padding-bottom: 40px; }
  .contact-hero h1      { font-size: 30px; }
  .contact-hero p       { font-size: 15px; }
  .contact-section      { padding: 40px 0 48px; }
  .contact-grid         { grid-template-columns: 1fr; gap: 26px; }
  .form-card            { padding: 24px 20px; }
  .form-grid            { grid-template-columns: 1fr; }
  .dept-grid            { grid-template-columns: 1fr; gap: 14px; }
  .contact-cta          { padding: 40px 0; }
  .contact-cta .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .contact-cta h2       { font-size: 26px; }
  .cta-actions          { width: 100%; }
  .cta-btn              { width: 100%; justify-content: center; }
  .section-title        { font-size: 24px; }
  .depts-section        { padding: 40px 0; }
}

