/* =========================================================
   SISTEMA DE DISEÑO
   Tinta:      #16241B  (texto principal / fondos oscuros)
   Arena:      #EDE6D6  (fondo cálido)
   Hueso:      #FAF8F3  (fondo claro alterno)
   Arcilla:    #C0683D  (acento principal)
   Musgo:      #5C7A5E  (acento secundario)
   ========================================================= */

:root {
  --ink: #16241B;
  --sand: #EDE6D6;
  --bone: #FAF8F3;
  --clay: #C0683D;
  --moss: #5C7A5E;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;

  --max-width: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(22, 36, 27, 0.08);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
}

.nav__links a:hover { color: var(--clay); }

.nav__cta {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.nav__cta:hover {
  background: var(--ink);
  color: var(--bone);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* ===== HERO ===== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.hero__content { max-width: 640px; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.hero__role {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--moss);
  margin-top: 0.5rem;
}

.hero__lede {
  font-size: 1.1rem;
  max-width: 480px;
  color: #3a4a3d;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--bone);
}

.btn--primary:hover {
  background: var(--clay);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bone);
}

/* Sello / firma visual */
.hero__mark {
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.hero__seal {
  width: 96px;
  height: 96px;
  animation: spin 22s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__seal { animation: none; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero__seal circle {
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.2;
}

.hero__seal text {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.15em;
  fill: var(--ink);
}

.hero__seal-year {
  font-size: 11px;
  font-weight: 600;
}

/* ===== SECCIONES ===== */
.section {
  padding: 5rem 1.5rem;
}

.section--alt {
  background: var(--sand);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.5rem 0 2.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 3rem;
}

.big-text {
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1.5rem 0 0;
}

.tag-list li {
  border: 1px solid rgba(22,36,27,0.2);
  border-radius: var(--radius);
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}

/* ===== CARDS / SERVICIOS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bone);
  border-radius: var(--radius);
  padding: 2rem;
  border-top: 3px solid var(--clay);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card p {
  margin: 0;
  color: #3a4a3d;
}

/* ===== TRABAJOS ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.work-item {
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(22,36,27,0.1);
}

.work-item__thumb {
  background: var(--moss);
  color: var(--bone);
  height: 220px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: background 0.2s ease;
}

.work-item:hover .work-item__thumb {
  background: var(--clay);
}

.work-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.work-item p {
  margin: 0;
  color: #3a4a3d;
  font-size: 0.95rem;
}

/* ===== CONTACTO / FORM ===== */
.socials {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.socials a { border-bottom: 1px solid var(--ink); }
.socials a:hover { color: var(--clay); border-color: var(--clay); }

.form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form input,
.form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(22,36,27,0.25);
  border-radius: var(--radius);
  background: var(--bone);
  color: var(--ink);
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--clay);
  outline-offset: 1px;
}

.form button {
  align-self: flex-start;
  cursor: pointer;
}

.form__note {
  font-size: 0.9rem;
  color: var(--moss);
  min-height: 1.2em;
  margin: 0;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(22,36,27,0.1);
  padding: 2rem 1.5rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #3a4a3d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column-reverse; }
}

@media (max-width: 700px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bone);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(22,36,27,0.08);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__cta { width: 100%; text-align: center; }
}

/* Foco visible para accesibilidad */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
