/* ---------- BUTTONS & LINKS ---------- */
.btn-primary {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 15.5px;
  background: var(--cream);
  /* --orange-strong, not the raw brand orange: #EA5C1C text on #F2EFDF
     is only ~3:1 contrast (fails WCAG AA); this tone clears 4.5:1. */
  color: var(--orange-strong);
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(38, 62, 88, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--orange-strong);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(38, 62, 88, 0.45);
}

/* For CTAs sitting on an already-light/cream section — the fill alone
   wouldn't read as a distinct, clickable surface there. */
.btn-primary.on-light {
  border-color: var(--orange-strong);
  box-shadow: 0 6px 16px -8px rgba(38, 62, 88, 0.3);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.link-secondary {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 3px;
  transition: border-color 0.2s;
}

.link-secondary:hover,
.link-secondary:focus-visible {
  border-color: #fff;
}

/* ---------- SECTION HEAD ---------- */
section {
  padding: 108px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--navy);
  font-weight: 800;
}

.section-head p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- CARDS ---------- */
.servicio-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -20px rgba(38, 62, 88, 0.25);
}

.servicio-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.servicio-icon svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}

.servicio-card h3 {
  font-size: 21px;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 12px;
}

.servicio-card p.desc {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 20px;
}

.servicio-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.servicio-card li {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

.servicio-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
}

.persona-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.persona-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}

.persona-avatar.pending {
  background: var(--orange-light);
  color: var(--orange-strong);
  border: 1.5px dashed var(--orange-strong);
}

.persona-card h3 {
  font-size: 19px;
  color: var(--navy);
  font-weight: 800;
}

.persona-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-strong);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 5px 0 12px;
}

.persona-card p.bio {
  font-size: 15px;
  color: var(--ink-soft);
}

.persona-card p.bio.placeholder {
  font-style: italic;
  color: var(--ink-soft);
}

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
}

.portfolio-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-caption {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portfolio-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}

.portfolio-category {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  padding: 4px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- FORM ---------- */
form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

.field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.field input,
.field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: var(--ff-body);
  font-size: 15px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--orange);
  outline: none;
}

.field-error {
  font-size: 13px;
  color: var(--orange-on-dark);
  min-height: 1em;
}

.form-submit {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success,
.form-error {
  display: none;
  border-radius: 14px;
  padding: 22px;
  font-size: 15px;
}

.form-success {
  background: rgba(234, 92, 28, 0.12);
  border: 1px solid rgba(234, 92, 28, 0.4);
}

.form-error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.45);
  color: var(--danger-text);
}

.form-error a {
  color: inherit;
  text-decoration: underline;
}

.form-success.show,
.form-error.show {
  display: block;
}

.contact-form.hide {
  display: none;
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
