/* ===== Hornero Labs — landing (navy + tierra, legibilidad primero) ===== */
:root {
  --bg: #faf8f2;
  --surface: #ffffff;
  --navy: #22305a;
  --navy-deep: #16223f;
  --ink: #1f2430;
  --muted: #52565f;
  --brown: #7c5a34;
  --sand: #e3cfa6;
  --line: #e3ded0;
  --display: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 34, 63, 0.05), 0 8px 28px rgba(22, 34, 63, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

em { font-style: italic; color: var(--brown); }

.eyebrow {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brown); margin-bottom: 1rem;
}

.section__title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.section__lead { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }

/* Accesibilidad */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 8px; text-decoration: none; font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 242, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav__logo img { border-radius: 50%; display: block; }
.nav__logo span { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.nav__logo b { font-weight: 500; color: var(--brown); }

.nav__links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav__links a {
  color: var(--ink); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--brown); }
.nav__cta {
  padding: 9px 20px; border: 1px solid var(--navy);
  border-radius: 999px; color: var(--navy) !important;
  transition: background 0.2s, color 0.2s !important;
}
.nav__cta:hover { background: var(--navy); color: #fff !important; }

/* Menú móvil (details/summary, sin JS) */
.nav__menu { display: none; position: relative; }
.nav__menu summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 8px;
}
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary:hover { background: rgba(34, 48, 90, 0.06); }
.nav__burger, .nav__burger::before, .nav__burger::after {
  display: block; width: 20px; height: 2px;
  background: var(--navy); border-radius: 2px; position: relative;
  content: ""; transition: transform 0.2s, opacity 0.2s;
}
.nav__burger::before { position: absolute; top: -6px; }
.nav__burger::after { position: absolute; top: 6px; }
.nav__menu[open] .nav__burger { background: transparent; }
.nav__menu[open] .nav__burger::before { transform: translateY(6px) rotate(45deg); }
.nav__menu[open] .nav__burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav__dropdown {
  position: absolute; right: 0; top: 52px; min-width: 220px;
  list-style: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; z-index: 60;
}
.nav__dropdown a {
  display: block; padding: 12px 14px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.nav__dropdown a:hover { background: var(--bg); color: var(--brown); }

/* ===== Hero ===== */
.hero { padding: 88px 0 72px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin-bottom: 1.25rem; }
.hero__lead {
  max-width: 52ch; font-size: 1.13rem;
  color: var(--muted); margin-bottom: 2rem;
}
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 2rem; }
.hero__proof {
  font-size: 0.92rem; color: var(--muted);
  border-left: 3px solid var(--sand); padding-left: 14px; max-width: 46ch;
}
.hero__proof strong { color: var(--ink); font-weight: 600; }

.hero__art { display: flex; justify-content: center; }
.hero__frame img {
  width: 100%; max-width: 420px;
  height: auto; display: block;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 8px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); }
.btn--ghost { color: var(--navy); border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--full { width: 100%; }

/* ===== Secciones ===== */
.section { padding: 96px 0; scroll-margin-top: 80px; }
.section__head { max-width: 720px; margin-bottom: 3.5rem; }

/* ===== Servicios ===== */
.servicios {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.servicio {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.servicio:hover {
  border-color: rgba(124, 90, 52, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.servicio__num {
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: 1rem; color: var(--brown); margin-bottom: 14px;
  display: inline-block; border-bottom: 2px solid var(--sand); padding-bottom: 4px;
}
.servicio h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.servicio p:not(.servicio__num) { color: var(--muted); font-size: 0.96rem; max-width: 56ch; }

/* ===== Trabajos realizados (carousels) ===== */
.caso { margin-bottom: 3.5rem; }
.caso:last-child { margin-bottom: 0; }
.caso__head { max-width: 720px; margin-bottom: 1.6rem; }
.caso__head h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.caso__head p { color: var(--muted); font-size: 1rem; }
.caso__head strong { color: var(--ink); font-weight: 600; }

.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 min(78%, 660px);
  scroll-snap-align: center;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.carousel__slide img {
  display: block; width: 100%;
  height: clamp(240px, 38vw, 400px);
  object-fit: cover; object-position: top;
  border-bottom: 1px solid var(--line);
}
/* Figuras altas (notebooks): se muestran completas */
.carousel__slide--contain img {
  object-fit: contain;
  background: var(--surface);
}
.carousel__slide figcaption {
  padding: 13px 18px 15px;
  font-size: 0.9rem; color: var(--muted);
}
.proyecto-titulo {
  display: block;
  font-family: var(--display); font-weight: 600;
  font-size: 1.08rem; color: var(--navy);
  margin-bottom: 3px;
}
.carousel__btn {
  position: absolute; top: 40%; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--navy); font-size: 1.6rem; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s;
}
.carousel__btn:hover { background: var(--navy); color: #fff; }
.carousel__btn--prev { left: -6px; }
.carousel__btn--next { right: -6px; }

/* ===== Quiénes somos ===== */
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.equipo {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.perfil {
  background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column; align-items: flex-start;
}
.perfil:hover {
  border-color: rgba(124, 90, 52, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.perfil__img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin-bottom: 18px; border: 2px solid var(--sand);
}
.perfil__avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--sand); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.perfil__name {
  font-family: var(--display); font-weight: 700;
  font-size: 1.35rem; color: var(--navy); margin-bottom: 4px;
}
.perfil__rol {
  font-family: var(--display); font-weight: 600;
  font-size: 1.15rem; color: var(--navy); margin-bottom: 12px;
  display: inline-block; border-bottom: 2px solid var(--sand); padding-bottom: 6px;
}
.perfil__desc { color: var(--muted); font-size: 0.96rem; }
.perfil__linkedin {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 16px;
  font-size: 0.88rem; font-weight: 600; color: var(--brown);
  text-decoration: none; transition: color 0.2s;
}
.perfil__linkedin:hover { color: var(--navy); }

/* ===== Contacto ===== */
.contacto { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
.contacto__mail { margin-top: 2.2rem; }
.contacto__mail-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.contacto__mail a {
  font-family: var(--display);
  font-size: 1.4rem; font-style: italic; font-weight: 600;
  color: var(--brown); text-decoration: none;
  border-bottom: 1px solid rgba(124, 90, 52, 0.4);
  padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
}
.contacto__mail a:hover { color: var(--navy); border-color: var(--navy); }

.form {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 34px 32px;
}
.form__honey { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__group { margin-bottom: 20px; }
.form label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--ink); margin-bottom: 7px;
}
.opcional { font-weight: 400; color: var(--muted); }
.form input, .form textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 0.96rem; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form input::placeholder, .form textarea::placeholder { color: #9a978a; }
.form input:focus, .form textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(34, 48, 90, 0.12);
}
.form textarea { resize: vertical; min-height: 120px; }
.form .btn--full { margin-top: 4px; }

/* ===== Footer ===== */
.footer { background: var(--navy-deep); color: rgba(250, 248, 242, 0.7); padding: 40px 0; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; font-size: 0.88rem;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { border-radius: 50%; }
.footer__brand span { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.footer__brand b { font-weight: 500; color: var(--sand); }
.footer__tag { font-size: 0.86rem; }
.footer__meta { display: flex; align-items: center; gap: 20px; }
.footer a { color: var(--sand); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ===== Animación de aparición ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__art { max-width: 460px; margin: 0 auto; }
  .contacto { grid-template-columns: 1fr; gap: 48px; }
  .equipo { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .servicios { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 26px 22px; }
}
@media (max-width: 480px) {
  .hero { padding: 44px 0 56px; }
  .hero__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}
