:root {
  --ink: #1a1a1a;
  --muted: #5d5d5d;
  --paper: #ffffff;
  --mist: #f3f3f3;
  --line: #d7d7d7;
  --accent: #79dce6;
  --content: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { transform: none; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2.8rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2.1rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
h4 { font-size: 1.6rem; }
p { margin: 0 0 1.15em; }
.eyebrow {
  margin-bottom: 22px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.button:hover, .button:focus-visible { background: transparent; color: var(--ink); }
.button-light { border-color: #fff; background: #fff; color: var(--ink); }
.button-light:hover, .button-light:focus-visible { background: transparent; color: #fff; }

/* Header */
.site-header { position: relative; z-index: 100; background: #fff; }
.header-inner { display: flex; min-height: 142px; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-block; flex: 0 0 auto; }
.brand img { width: 280px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 26px; }
.desktop-nav > a:not(.button) {
  display: none;
  font-family: "Poppins", Arial, sans-serif;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.desktop-nav > a:not(.button):hover,
.desktop-nav > a:not(.button):focus-visible,
.desktop-nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: var(--ink); color: #fff; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }
.mobile-panel { display: none; }

/* Home: original Wayback composition */
.hero { background: var(--mist); }
.hero-grid { display: grid; height: 600px; grid-template-columns: 2fr 1fr; align-items: start; padding-top: 104px; }
.hero-copy { padding-right: 200px; padding-bottom: 55px; }
.hero-copy h1 { margin-bottom: 48px; }
.hero-copy p { text-align: justify; }
.stats { display: flex; flex-wrap: wrap; gap: 20px 38px; padding: 4px 0 20px; margin: 0; list-style: none; }
.stats li { position: relative; padding-left: 22px; font-weight: 700; }
.stats li::before { position: absolute; left: 0; content: "\2713"; font-weight: 700; }
.hero-portrait { position: relative; z-index: 2; margin-bottom: -120px; }
.hero-portrait img { width: 100%; min-height: 510px; object-fit: cover; object-position: 50% 35%; transform: scaleX(-1); }

.profile-band {
  position: relative;
  min-height: 545px;
  overflow: hidden;
  background: #303030 url("../images/project-tienda-lanas.png") center/cover no-repeat;
}
.profile-band::before { position: absolute; inset: 0; content: ""; background: rgba(0, 0, 0, .55); transition: opacity .3s; }
.profile-band:hover::before { opacity: .38; }
.profile-grid { position: relative; min-height: 545px; display: flex; align-items: flex-start; justify-content: flex-end; }
.profile-card { width: 33.333%; margin-top: 0; margin-bottom: 24%; padding: 40px 64px 40px 40px; background: var(--ink); color: #fff; }
.profile-card h3 { text-transform: capitalize; }
.linkedin-mark { display: inline-flex; margin-top: 8px; color: #fff; font-family: Arial, sans-serif; font-size: 3.3rem; font-weight: 700; line-height: 1; text-decoration: none; }
.linkedin-mark:hover, .linkedin-mark:focus-visible { color: #aaa; }

.services { padding: 120px 0; }
.services-heading { display: grid; grid-template-columns: 2fr 1fr; margin-bottom: 40px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 24px; }
.service { padding-right: 50px; }
.service .number { margin-bottom: 18px; font-family: "Poppins", Arial, sans-serif; font-size: .8rem; font-weight: 600; letter-spacing: .18em; }
.service h3 { font-size: 1.6rem; }

.projects { padding: 120px 0 0; background: var(--mist); }
.projects-grid { display: grid; grid-template-columns: 1fr 2fr; align-items: start; }
.projects-intro { padding-right: 40px; }
.projects-intro p { text-align: justify; }
.project-slider { position: relative; min-width: 0; margin-bottom: -80px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.slides { position: relative; overflow: hidden; }
.slide { display: none; margin: 0; }
.slide.is-active { display: block; }
.slide img { width: 100%; aspect-ratio: 700 / 400; object-fit: cover; }
.slider-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 60px;
  padding: 0;
  border: 0;
  transform: translateY(-50%);
  background: rgba(255,255,255,.88);
  color: var(--ink);
  cursor: pointer;
  font-size: 2rem;
}
.slider-button:hover, .slider-button:focus-visible { background: #fff; }
.slider-prev { left: 0; }
.slider-next { right: 0; }
.slider-dots { position: absolute; right: 0; bottom: -28px; left: 0; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #999; cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--ink); }

/* Inner pages */
.page-hero { padding: 88px 0 94px; background: var(--mist); }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { max-width: 820px; margin-bottom: 22px; }
.page-hero p { max-width: 720px; color: #454545; font-size: 1.08rem; }
.content-section { padding: 90px 0; }
.content-section.alt { background: var(--mist); }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.content-grid.narrow-left { grid-template-columns: .7fr 1.3fr; }
.portrait-card { background: var(--mist); }
.portrait-card img { width: 100%; max-height: 650px; object-fit: cover; object-position: center top; }
.portrait-card figcaption { padding: 24px; font-weight: 600; }
.feature-list { display: grid; gap: 26px; padding: 0; margin: 30px 0 0; list-style: none; }
.feature-list li { padding-top: 20px; border-top: 1px solid var(--line); }
.feature-list strong { display: block; margin-bottom: 4px; font-family: "Poppins", Arial, sans-serif; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font-family: "Poppins", Arial, sans-serif; font-size: 1.15rem; font-weight: 600; }
.faq-question::after { content: "+"; font-size: 1.5rem; font-weight: 400; }
.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-answer { padding: 0 54px 22px 0; }
.contact-card { padding: 42px; background: var(--ink); color: #fff; }
.contact-card a { text-underline-offset: 4px; }
.contact-lines { padding: 0; margin: 28px 0 0; list-style: none; }
.contact-lines li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.28); }
.legal-copy { max-width: 850px; }
.legal-copy h2 { margin-top: 1.5em; font-size: 1.65rem; }
.legal-copy h3 { margin-top: 1.4em; font-size: 1.2rem; }
.legal-copy ul { padding-left: 1.2rem; }
.legal-copy a { text-underline-offset: 3px; }

/* Footer */
.site-footer { padding-top: 140px; background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-bottom: 62px; }
.footer-grid h2 { font-size: 2.15rem; }
.footer-grid h3 { font-size: 1.45rem; }
.footer-email { font-size: 1.08rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; margin: 22px 0 0; list-style: none; }
.footer-links a { text-underline-offset: 4px; }
.footer-bottom { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.45); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Cookie notice */
.cookie-bar { position: fixed; z-index: 900; right: 0; bottom: 0; left: 0; padding: 16px 20px; border-top: 1px solid #bbb; background: #fff; box-shadow: 0 -4px 24px rgba(0,0,0,.1); }
.cookie-bar[hidden] { display: none; }
.cookie-inner { width: min(100%, 1200px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cookie-inner p { margin: 0; font-size: .88rem; }
.cookie-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.cookie-actions a { white-space: nowrap; text-underline-offset: 3px; }
.cookie-actions button { min-height: 38px; padding: 8px 16px; border: 0; background: #61a229; color: #fff; cursor: pointer; }

@media (max-width: 1024px) {
  .desktop-nav { gap: 16px; }
  .hero-grid { height: auto; grid-template-columns: 1fr 1fr; padding: 80px 0 0 40px; }
  .hero-copy { padding-right: 48px; }
  .hero-portrait { margin-bottom: 0; }
  .profile-grid { padding-left: 40px; }
  .profile-card { width: 50%; margin-bottom: 24%; }
  .services, .content-section { padding: 80px 40px; }
  .projects { padding: 80px 40px; }
  .project-slider { margin-bottom: 0; }
  .site-footer { padding-top: 80px; }
}

@media (max-width: 768px) {
  .container { width: min(calc(100% - 36px), var(--content)); }
  .header-inner { min-height: 80px; }
  .brand img { width: 144px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .mobile-panel {
    position: fixed;
    z-index: 120;
    inset: 0 0 0 auto;
    width: min(340px, 88vw);
    display: block;
    padding: 28px;
    transform: translateX(105%);
    background: #fff;
    box-shadow: -20px 0 50px rgba(0,0,0,.2);
    transition: transform .25s ease;
  }
  .mobile-panel.is-open { transform: none; }
  .mobile-close { display: block; margin-left: auto; padding: 8px 10px; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
  .mobile-nav { display: grid; gap: 3px; margin-top: 32px; }
  .mobile-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); font-family: "Poppins", Arial, sans-serif; font-weight: 600; text-decoration: none; }
  .hero-grid { display: block; padding: 64px 24px 0; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { margin-bottom: 34px; }
  .hero-copy p { text-align: left; }
  .hero-portrait { margin-top: 26px; }
  .hero-portrait img { min-height: 0; }
  .profile-band, .profile-grid { min-height: 520px; }
  .profile-grid { align-items: flex-start; padding: 0 24px 320px; }
  .profile-card { width: 100%; margin: 0; padding: 38px 28px; }
  .services, .projects, .content-section { padding: 64px 24px; }
  .services-heading, .services-grid, .projects-grid, .content-grid, .content-grid.narrow-left { grid-template-columns: 1fr; }
  .services-grid { gap: 34px; }
  .service { padding: 0 30px 30px 0; border-bottom: 1px solid var(--line); }
  .projects-intro { padding: 0 0 34px; }
  .project-slider { margin: 0; }
  .page-hero { padding: 64px 0 68px; }
  .content-grid { gap: 42px; }
  .contact-card { padding: 30px 24px; }
  .site-footer { padding-top: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 22px 0; }
  .cookie-inner { align-items: stretch; flex-direction: column; gap: 12px; }
  .cookie-actions { justify-content: flex-end; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.35rem; }
  h2 { font-size: 2rem; }
  .stats { display: grid; gap: 13px; }
  .cookie-actions { align-items: stretch; flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
