/* =========================================
   ALCAIDE WORKS — LANDING PAGE
   ========================================= */

:root {
  --ink: #11120f;
  --paper: #f6f4ee;
  --white: #fff;
  --line: #d7d4ca;
  --muted: #62645e;
  --accent: #92966f;
  --accent-soft: #e8eadc;
  --sand: #d9cbb8;
  --radius: 2px;
  --container: 1240px;
  --header-height: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
svg { display: block; }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 999; transform: translateY(-160%);
  background: var(--ink); color: var(--white); padding: 10px 14px;
}
.skip-link:focus { transform: none; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }

h1 {
  margin-bottom: 26px;
  font-size: clamp(3rem, 5vw, 5.7rem);
  font-weight: 570;
  letter-spacing: -0.064em;
}
h1 span, .contact-copy h2 span { color: var(--accent); }

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 3.5vw, 4rem);
  font-weight: 560;
  letter-spacing: -0.045em;
}

h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.018em; }

.button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 38px;
  padding: 0 21px; border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: 0.86rem; font-weight: 650;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}
.button svg, .text-link svg, .service-card a svg {
  width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover, .button-dark:focus-visible { background: var(--accent); border-color: var(--accent); }
.button-light { background: transparent; }
.button-light:hover, .button-light:focus-visible { background: var(--white); }

.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-height);
  border-bottom: 1px solid rgba(17, 18, 15, 0.14); background: rgba(246, 244, 238, 0.9);
  backdrop-filter: blur(16px);
}
.nav-wrap {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 1.48rem; font-weight: 390; letter-spacing: -0.05em; }
.brand span { font-weight: 690; }

.main-nav { display: flex; align-items: center; gap: 38px; }
.main-nav a { position: relative; padding-block: 30px 27px; font-size: 0.85rem; }
.main-nav a::after {
  position: absolute; right: 0; bottom: 20px; left: 0; height: 1px; content: "";
  background: var(--accent); transform: scaleX(0); transform-origin: center;
  transition: transform 180ms ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

.section-shell { border-bottom: 1px solid var(--line); }
.hero { overflow: hidden; }
.hero-grid { min-height: 690px; display: grid; grid-template-columns: 1.03fr 0.97fr; }

.hero-copy {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center;
  padding: 80px 70px 80px 0;
}
.hero-copy::after {
  position: absolute; z-index: -1; right: -170px; bottom: -180px; width: 420px; aspect-ratio: 1;
  border-radius: 50%; content: ""; background: var(--accent-soft); opacity: 0.65;
}
.hero-intro {
  max-width: 650px; margin-bottom: 36px; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.2rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  position: relative; min-height: 690px; overflow: hidden; background: #ede8dc;
}
.hero-visual::after {
  position: absolute; inset: auto 12% 8% auto; width: 145px; height: 145px; content: "";
  border-radius: 50%; background: rgba(255, 255, 255, 0.28); mix-blend-mode: screen; pointer-events: none;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.services { padding: 110px 0 0; background: #fbfaf6; }
.section-heading, .projects-head {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: end; gap: 70px; padding-bottom: 54px;
}
.section-heading > p, .projects-head > p { margin-bottom: 7px; color: var(--muted); }

.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.service-card {
  min-height: 355px; display: flex; flex-direction: column; padding: 37px 30px 30px;
  border-right: 1px solid var(--line); transition: background-color 180ms ease;
}
.service-card:hover { background: var(--white); }
.service-card:first-child { border-left: 1px solid var(--line); }
.service-number {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.service-card h3 { margin-bottom: 13px; }
.service-card p { margin-bottom: 28px; color: var(--muted); font-size: 0.9rem; }
.service-card a {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px;
  border-top: 1px solid var(--line); font-size: 0.8rem; font-weight: 650;
}

.process { padding: 64px 0; border-bottom: 1px solid var(--line); background: #fbfaf6; }
.process-grid { display: grid; grid-template-columns: 0.72fr 2.28fr; gap: 55px; }
.process-heading h2 { font-size: 1.5rem; letter-spacing: -0.03em; }
.process-list {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none;
}
.process-list li {
  display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 2px 28px 2px 0; border-right: 1px solid var(--line);
}
.process-list li + li { padding-left: 30px; }
.process-list li:last-child { border-right: 0; }
.process-list span { color: var(--accent); font-family: Georgia, serif; font-size: 1.75rem; }
.process-list h3 { margin: 3px 0 10px; }
.process-list p { margin: 0; color: var(--muted); font-size: 0.82rem; }

.projects { padding: 110px 0; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card {
  position: relative; min-height: 410px; overflow: hidden; border-radius: var(--radius); background: #24241f;
}
.project-card-wide { min-height: 500px; }
.project-card img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.75,.15,1);
}
.project-card::after {
  position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 25%, rgba(10, 10, 8, 0.84) 100%);
}
.project-card:hover img { transform: scale(1.035); }
.project-overlay {
  position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 36px; color: var(--white);
}
.project-overlay h3 { margin-bottom: 10px; font-size: clamp(1.7rem, 2.4vw, 2.7rem); }
.project-overlay p { max-width: 540px; margin: 0; color: rgba(255, 255, 255, 0.75); }

.about { padding: 118px 0; background: var(--ink); color: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 0.78fr 1.3fr 0.82fr; align-items: center; gap: 70px;
}
.about-panel {
  position: relative; min-height: 320px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 20% 20%, rgba(191, 195, 152, 0.18), transparent 34%),
              linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
}
.panel-card {
  position: absolute; inset: 38px 48px 92px 38px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04);
}
.panel-line { position: absolute; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); }
.panel-line-one { right: 38px; bottom: 50px; width: 160px; }
.panel-line-two { right: 38px; bottom: 76px; width: 108px; background: rgba(191, 195, 152, 0.52); }
.panel-dot { position: absolute; left: 52px; bottom: 42px; width: 84px; height: 84px; border-radius: 50%; background: rgba(191, 195, 152, 0.22); }

.about-copy h2 { margin-bottom: 35px; }
.about-copy > p { color: rgba(255, 255, 255, 0.66); }
.text-link {
  display: inline-flex; align-items: center; gap: 24px; margin-top: 20px; padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55); font-weight: 650;
}
.about-note {
  padding: 32px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.035);
}
.about-note > p {
  color: #bfc398; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.about-note ul { margin: 0; padding: 0; list-style: none; }
.about-note li {
  padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.11); color: rgba(255, 255, 255, 0.77);
}
.about-note li:last-child { border-bottom: 0; }

.contact { padding: 118px 0; background: var(--accent-soft); }
.contact-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 95px; }
.contact-copy h2 { margin-bottom: 30px; }
.contact-copy > p { max-width: 500px; color: var(--muted); }
.contact-mail {
  display: inline-block; margin-top: 25px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-weight: 650;
}
.contact-form {
  padding: 42px; border: 1px solid rgba(17, 18, 15, 0.14); background: rgba(255, 255, 255, 0.58);
}
.contact-form label { display: block; margin-bottom: 24px; }
.contact-form label > span {
  display: block; margin-bottom: 9px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
input, textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(17, 18, 15, 0.42); border-radius: 0; outline: none;
  background: transparent; color: var(--ink);
}
input { height: 44px; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.form-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px;
}
.form-bottom p { max-width: 330px; margin: 0; color: var(--muted); font-size: 0.75rem; }
.form-status { min-height: 24px; margin: 18px 0 0; font-size: 0.84rem; }

.site-footer { padding: 42px 0; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 0.8fr 1.3fr auto; align-items: center; gap: 35px; }
.footer-grid > p { margin: 0; color: rgba(255, 255, 255, 0.58); font-size: 0.82rem; }
.footer-links { display: flex; gap: 25px; font-size: 0.8rem; }
.copyright {
  grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.reveal {
  opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.75,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: 620px; padding-right: 10%; }
  .hero-visual { min-height: 580px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2) { border-right: 1px solid var(--line); }
  .service-card:nth-child(3) { border-left: 1px solid var(--line); }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-list { margin-top: 20px; }
  .contact-grid { gap: 60px; }
}

@media (max-width: 760px) {
  :root { --header-height: 70px; }
  .container { width: min(calc(100% - 30px), var(--container)); }
  .nav-toggle {
    position: relative; z-index: 102; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px;
    border: 0; background: transparent;
  }
  .nav-toggle span:not(.sr-only) {
    width: 25px; height: 1px; display: block; background: currentColor; transition: transform 180ms ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 0; z-index: 101; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 5px; padding: 25px; background: var(--paper); visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav a { width: 100%; padding: 12px 0; font-size: 2rem; letter-spacing: -0.04em; }
  .main-nav a::after { bottom: 6px; }

  .hero-grid, .hero-copy, .hero-visual { min-height: auto; }
  .hero-copy { padding: 95px 0 72px; }
  h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .hero-copy::after { right: -210px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { justify-content: space-between; }
  .hero-visual { min-height: 440px; margin-inline: -15px; }

  .services, .projects, .about, .contact { padding: 82px 0; }
  .section-heading, .projects-head { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card {
    min-height: 315px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .service-card:nth-child(n) { border-left: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
  .service-number {
    margin-bottom: 38px;
  }

  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li + li {
    padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .process-list li:last-child { border-bottom: 0; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card, .project-card-wide { min-height: 420px; }
  .project-overlay { padding: 27px; }

  .about-grid { gap: 45px; }
  .about-panel { min-height: 240px; }

  .field-row, .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 29px 22px; }
  .form-bottom { align-items: stretch; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}


/* Formulario directo */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-status-success {
  color: #405126;
}

.form-status-error {
  color: #8b2e24;
}

.form-status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
