:root {
  --marfil: #f4efe5;
  --tinta: #121212;
  --gris: #665f58;
  --azul: #2c4e79;
  --oro: #8a6a2f;
  --borde: #d7d0c5;
  --shadow-card: 0 18px 38px rgba(18, 18, 18, 0.08);
}

html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
*:focus-visible {
  outline: 2px solid rgba(44, 78, 121, 0.45);
  outline-offset: 3px;
}

body {
  margin: 0;
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--tinta);
  background: linear-gradient(180deg, #f7f3ea 0%, #f1ebdf 100%);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--azul);
}
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 1.4rem);
}

header {
  border-bottom: 1px solid var(--borde);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex-shrink: 0;
}
.brand img {
  height: 68px;
  width: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  margin-left: 0.35rem;
  flex: 0 1 340px;
  max-width: 340px;
  min-width: 280px;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 44px;
  padding: 0.7rem 3rem 0.7rem 1rem;
  border: 1px solid rgba(44, 78, 121, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.95rem;
  color: var(--tinta);
  box-shadow:
    0 8px 18px rgba(18, 18, 18, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.header-search input::placeholder {
  color: #7b746d;
}
.header-search input:focus {
  border-color: rgba(44, 78, 121, 0.28);
  box-shadow:
    0 0 0 3px rgba(44, 78, 121, 0.08),
    0 10px 20px rgba(18, 18, 18, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.96);
}
.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--azul);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.header-search button:hover {
  color: var(--oro);
  background: rgba(138, 106, 47, 0.08);
}
.header-search button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.76rem 1rem;
  border: 1px solid rgba(44, 78, 121, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f7f1e8 100%);
  color: var(--azul);
  border-radius: 18px;
  font: inherit;
  font-weight: 600;
  box-shadow:
    0 8px 18px rgba(18, 18, 18, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  cursor: pointer;
}

.menu-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.menu-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

nav {
  margin-left: auto;
}
nav ul {
  display: flex;
  gap: 1rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a {
  color: var(--gris);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
nav a:hover {
  color: var(--azul);
  border-bottom-color: rgba(44, 78, 121, 0.45);
}
nav a[aria-current="page"] {
  color: var(--azul);
  border-bottom-color: var(--azul);
}

.page-hero {
  padding: 4.4rem 0 1.25rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 0.8rem;
}
.page-hero p {
  max-width: 760px;
  color: var(--gris);
  font-size: 1.06rem;
  margin: 0;
}

main {
  padding: 0 0 4rem;
}
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(249, 244, 236, 0.96) 100%
  );
  border: 1px solid rgba(138, 106, 47, 0.14);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}

.content-stack {
  display: grid;
  gap: 1.4rem;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.content-panel {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--borde);
  border-radius: 20px;
  background: #fff;
}
.contact-hero {
  padding-bottom: 1.6rem;
}
.contact-card {
  padding: 1.9rem;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.35rem;
  align-items: start;
}
.contact-copy,
.contact-form-panel {
  padding: 1.3rem 1.35rem;
  border: 1px solid var(--borde);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
}
.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 78, 121, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f8f2e9 100%);
  color: var(--oro);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-copy h2,
.contact-form-panel h2 {
  margin: 0.9rem 0 0.75rem;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  color: var(--tinta);
  text-transform: none;
  letter-spacing: 0;
}
.contact-copy p,
.contact-form-panel p {
  margin: 0 0 0.9rem;
  color: #3f3933;
}
.contact-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: #3f3933;
}
.contact-list li + li {
  margin-top: 0.45rem;
}
.contact-form {
  display: grid;
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field label {
  color: var(--azul);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.field.field-invalid label,
.check-field.field-invalid .check-label {
  color: #983d2f;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(44, 78, 121, 0.18);
  border-radius: 16px;
  background: #fff;
  color: var(--tinta);
  font: inherit;
  padding: 0.9rem 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.check-field {
  gap: 0;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(44, 78, 121, 0.14);
  border-radius: 16px;
  background: #fffdfa;
  color: #3f3933;
  font-size: 0.94rem;
  line-height: 1.55;
}
.check-label input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.18rem;
  accent-color: var(--azul);
  flex: 0 0 auto;
}
.check-label a {
  font-weight: 700;
}
.field.field-invalid input,
.field.field-invalid textarea {
  border-color: rgba(152, 61, 47, 0.72);
  box-shadow: 0 0 0 3px rgba(152, 61, 47, 0.12);
  background: #fff8f7;
}
.check-field.field-invalid .check-label {
  border-color: rgba(152, 61, 47, 0.52);
  box-shadow: 0 0 0 3px rgba(152, 61, 47, 0.08);
  background: #fff8f7;
}
.field textarea {
  resize: vertical;
  min-height: 180px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #7b746d;
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(44, 78, 121, 0.3);
  box-shadow: 0 0 0 3px rgba(44, 78, 121, 0.08);
  background: #fffdfb;
  outline: none;
}
.field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.contact-submit[disabled] {
  opacity: 0.65;
  cursor: wait;
}
.recaptcha-shell {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(44, 78, 121, 0.12);
  border-radius: 18px;
  background: #fffdfa;
}
.recaptcha-copy {
  margin: 0;
  color: var(--azul);
  font-size: 0.88rem;
  font-weight: 700;
}
.contact-status {
  min-height: 1.5rem;
  margin: 0;
  font-size: 0.92rem;
}
.contact-status[data-state="success"] {
  color: #2d5d3b;
}
.contact-status[data-state="error"] {
  color: #983d2f;
}
.contact-status[data-state="loading"] {
  color: var(--gris);
}
.content-stack h2,
.content-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul);
}
.content-stack p,
.content-stack li,
.content-panel p,
.content-panel li {
  color: #3f3933;
  line-height: 1.8;
}
.content-panel ul,
.content-stack ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--azul);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(44, 78, 121, 0.16);
}
.btn-link.secondary {
  background: transparent;
  color: var(--azul);
  border: 1px solid rgba(44, 78, 121, 0.25);
  box-shadow: none;
}

.social-block {
  display: flex;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.social-block-copy,
.social-kicker,
.social-title {
  display: none;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--azul);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}
.social-link:hover {
  transform: translateY(-2px);
  color: var(--oro);
  opacity: 1;
}
.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

footer {
  border-top: 1px solid var(--borde);
  padding: 1.4rem 0 2.5rem;
  color: #6b645d;
  font-size: 0.88rem;
}
.footer-shell {
  display: grid;
  gap: 1rem;
}
.footer-about {
  display: grid;
  gap: 0.65rem;
  padding: 0.15rem 0 0.35rem;
  text-align: center;
}
.footer-about h2 {
  margin: 0;
  color: var(--azul);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-about-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.15rem;
  margin: 0;
}
.footer-about-links a,
.footer-legal a {
  color: #746b63;
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
  opacity: 0.94;
}
.footer-about-links a:hover,
.footer-legal a:hover {
  color: var(--oro);
  opacity: 1;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 860px) {
  .wrap:not(.nav) {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }
  .nav {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 36px;
    align-items: center;
    column-gap: 0.55rem;
    row-gap: 0.7rem;
    min-height: auto;
    padding: 0.7rem 0.95rem;
    position: relative;
  }
  .brand {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
  }
  .brand img {
    height: 30px;
    max-width: 24px;
    border-radius: 3px;
  }
  .header-search {
    grid-column: 2;
    grid-row: 1;
    display: block;
    position: relative;
    min-width: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    flex: none;
  }
  .header-search input {
    width: 100%;
    height: 38px;
    min-height: 0;
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
  }
  .header-search button {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    z-index: 2;
  }
  .nav.menu-open .menu-toggle-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .nav.menu-open .menu-toggle-line:nth-child(2) {
    opacity: 0;
  }
  .nav.menu-open .menu-toggle-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
  nav {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    display: none;
  }
  .nav.menu-open nav {
    display: block;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 0.45rem 0 0.1rem;
  }
  nav a {
    display: block;
    padding: 0.8rem 0.1rem;
  }
  .page-hero {
    padding: 2.5rem 0 1.5rem;
  }
}

@media (max-width: 720px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-about {
    text-align: left;
  }
  .footer-about-links,
  .footer-legal {
    justify-content: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .page-hero {
    padding: 2.15rem 0 1.25rem;
  }
  .page-hero p {
    font-size: 1rem;
    line-height: 1.65;
  }
  .card {
    padding: 1rem;
    border-radius: 18px;
  }
  .contact-card,
  .contact-copy,
  .contact-form-panel {
    padding: 1rem;
    border-radius: 18px;
  }
  .content-panel {
    border-radius: 18px;
  }
  .btn-link {
    width: 100%;
  }
  .footer-copy {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .wrap:not(.nav) {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
  .nav {
    grid-template-columns: 20px minmax(0, 1fr) 32px;
    column-gap: 0.45rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
  .brand img {
    height: 28px;
    max-width: 20px;
  }
  .header-search input {
    height: 36px;
    padding: 0.56rem 0.72rem;
    font-size: 0.78rem;
  }
  .menu-toggle {
    width: 32px;
    height: 32px;
  }
  .menu-toggle-line {
    width: 13px;
  }
}
