/* === VARIABLES === */
:root {
  color-scheme: light;
  --color-ink: #28231f;
  --color-muted: #6f655c;
  --color-soft: #8b8177;
  --color-paper: #fbfaf7;
  --color-cream: #f8f3ea;
  --color-sand: #e8dcc8;
  --color-card: #fffdf8;
  --color-line: rgba(91, 76, 62, 0.16);
  --color-terracotta: #b8664b;
  --color-terracotta-dark: #8c4937;
  --color-olive: #747b58;
  --color-navy: #25384f;
  --color-gold: #c5a46b;
  --shadow-soft: 0 18px 48px rgba(75, 58, 38, 0.08);
  --shadow-image: 0 18px 44px rgba(75, 58, 38, 0.12);
  --radius-card: 8px;
  --max-width: 1180px;
}

/* === BASE === */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#inicio,
#presentacion,
#sobre-nosotros,
#proyectos,
#materiales,
#comercios,
#contacto {
  scroll-margin-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.55rem, 4.3vw, 4.3rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--color-navy);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--color-terracotta-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section,
.hero-section,
.intro-section,
.final-cta,
.site-footer {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: clamp(3.6rem, 7vw, 6.4rem) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 1.06rem;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1rem 0;
  background: rgba(251, 247, 239, 0.88);
  border-bottom: 1px solid rgba(91, 76, 62, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
.final-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(184, 102, 75, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff4df, #e7c99a);
  color: var(--color-terracotta-dark);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.nav-links {
  gap: 1rem;
}

.nav-links a,
.header-action {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.93rem;
}

.nav-links a[aria-current="page"],
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-ink);
}

.header-action {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(184, 102, 75, 0.28);
  border-radius: 999px;
  background: #fffaf2;
  color: var(--color-terracotta-dark);
  font-weight: 800;
}

/* === HERO === */
.hero-section {
  position: relative;
  display: flex;
  width: min(100% - 1.5rem, 1440px);
  min-height: calc(100vh - 90px);
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.35rem, 1vw, 0.75rem) 0 clamp(2.4rem, 3.8vw, 3.2rem);
}

.hero-main-figure {
  position: relative;
  isolation: isolate;
  width: min(90vw, 1360px);
  margin: 0;
}

.hero-main-figure::before {
  content: "";
  position: absolute;
  inset: clamp(0.6rem, 1.6vw, 1.5rem);
  z-index: -1;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 54%, rgba(248, 243, 234, 0.5), rgba(251, 250, 247, 0) 70%);
  filter: blur(26px);
}

.hero-main-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    linear-gradient(90deg, var(--color-paper) 0%, rgba(251, 250, 247, 0) 8%, rgba(251, 250, 247, 0) 92%, var(--color-paper) 100%),
    linear-gradient(180deg, var(--color-paper) 0%, rgba(251, 250, 247, 0) 9%, rgba(251, 250, 247, 0) 90%, var(--color-paper) 100%);
  opacity: 0.26;
  pointer-events: none;
}

.hero-main-figure img {
  width: 100%;
  max-height: min(76vh, calc(100vh - 9.6rem));
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(60, 45, 30, 0.06);
}

.hero-message {
  padding-top: clamp(3.2rem, 6vw, 5.4rem);
}

.hero-message-copy {
  max-width: 830px;
  margin: 0 auto;
  text-align: center;
}

.hero-message h1 {
  max-width: 16ch;
  margin: 0 auto;
}

.hero-lead {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
}

.hero-message .hero-lead {
  margin-right: auto;
  margin-left: auto;
}

.hero-value-line {
  max-width: 48rem;
  margin: 1.2rem auto 0;
  color: var(--color-terracotta-dark);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 800;
}

.hero-actions,
.final-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero-message .hero-actions {
  justify-content: center;
}

.audience-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.audience-paths a {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(184, 102, 75, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 26px rgba(60, 45, 30, 0.035);
  color: var(--color-navy);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.audience-paths a:hover,
.audience-paths a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(184, 102, 75, 0.42);
  background: rgba(255, 253, 248, 0.86);
}

.audience-paths a::after {
  content: "→";
  margin-left: 0.45rem;
  color: var(--color-terracotta-dark);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.86rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible,
.featured-grid article:hover,
.project-card:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--color-terracotta);
  color: #fffdf8;
  box-shadow: 0 12px 30px rgba(184, 102, 75, 0.2);
}

.button-secondary,
.button-subtle {
  border-color: var(--color-line);
  background: #fffdf8;
  color: var(--color-navy);
}

.button-large {
  min-height: 3.45rem;
  padding-inline: 1.45rem;
  font-size: 1.03rem;
}

.feature-image,
.split-image {
  margin: 0;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--color-soft);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.scroll-cue span:last-child {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  color: var(--color-terracotta-dark);
}

.feature-image img,
.split-image img,
.project-card img {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

/* === PROJECTS === */
.intro-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.6rem, 5vw, 4.2rem) 0;
}

.intro-section p:not(.eyebrow),
.materials-section p,
.material-item p,
.value-grid p,
.featured-grid p,
.process-grid p,
.audience-grid p,
.faq-list p,
.final-cta p,
.page-lead,
.project-card p,
.content-panel p {
  color: var(--color-muted);
}

.intro-content {
  display: grid;
  gap: 1.35rem;
}

.intro-description {
  max-width: 36rem;
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
}

.intro-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 0.4rem;
}

.intro-highlights article {
  padding-top: 1rem;
  border-top: 1px solid rgba(184, 102, 75, 0.22);
}

.intro-highlights h3 {
  color: var(--color-navy);
  font-size: 1.04rem;
}

.intro-highlights p {
  margin-top: 0.45rem;
}

.intro-visual {
  position: relative;
  aspect-ratio: 966 / 1024;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow-image);
}

.intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.value-grid,
.materials-grid,
.featured-grid,
.process-grid,
.audience-grid,
.project-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.materials-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-grid article,
.process-grid li,
.audience-grid article,
.content-panel,
.contact-card,
.faq-list details {
  border: 1px solid rgba(91, 76, 62, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.54);
}

.value-grid article,
.process-grid li,
.audience-grid article,
.content-panel,
.contact-card {
  padding: 1.35rem;
}

.value-grid article,
.audience-grid article {
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 1px solid rgba(184, 102, 75, 0.22);
  border-radius: 0;
  background: transparent;
}

.value-grid span,
.process-grid span {
  display: inline-flex;
  margin-bottom: 1.1rem;
  color: var(--color-terracotta-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.materials-section {
  position: relative;
}

.materials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.35rem;
  align-items: stretch;
}

.material-item {
  display: grid;
  flex: 1 1 15rem;
  max-width: 17.5rem;
  gap: 0.78rem;
  align-content: start;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(120, 90, 60, 0.07);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 12px 36px rgba(60, 45, 30, 0.035);
}

.material-item h3 {
  font-size: 1rem;
}

.material-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-navy);
  font-weight: 850;
}

.material-icon {
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-gold));
  box-shadow: 0 0 0 0.28rem rgba(184, 102, 75, 0.08);
}

.material-item-wide {
  flex-basis: min(100%, 31rem);
  max-width: 34rem;
}

.materials-note {
  width: fit-content;
  max-width: 100%;
  margin-top: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-terracotta-dark);
  font-weight: 800;
}

.featured-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: clamp(1.2rem, 2.6vw, 2rem);
  align-items: start;
}

.featured-grid article,
.project-card {
  grid-column: span 2;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.featured-grid article:nth-child(4) {
  grid-column: 2 / span 2;
}

.featured-grid article:nth-child(5) {
  grid-column: 4 / span 2;
}

.featured-grid img,
.project-card img {
  aspect-ratio: 5 / 4;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 10px;
  background: #f7efe2;
  box-shadow: var(--shadow-image);
}

.featured-grid img.featured-image-contain {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 48%;
}

.featured-grid img.featured-image-lampara {
  object-position: center;
}

.featured-grid img.featured-image-negocios {
  object-fit: cover;
  object-position: center;
}

.featured-grid img.featured-image-luna {
  object-fit: cover;
  object-position: center 42%;
}

.featured-grid article > div,
.project-card > div {
  padding: 1rem 0 0;
}

.featured-points {
  display: grid;
  gap: 0.42rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.featured-points li {
  position: relative;
  padding-left: 1rem;
}

.featured-points li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--color-terracotta);
  content: "";
}

.card-kicker {
  margin: 0 0 0.45rem;
  color: var(--color-terracotta-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-action {
  margin-top: 1.4rem;
}

.business-section {
  position: relative;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.business-grid article {
  padding-top: 1.05rem;
  border-top: 1px solid rgba(184, 102, 75, 0.22);
}

.business-grid span {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--color-terracotta-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.business-grid h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}

.business-grid p {
  margin-top: 0.7rem;
  color: var(--color-muted);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 1.12rem;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 102, 75, 0.28), transparent);
}

.process-grid li {
  position: relative;
  padding: 0 1.2rem 0 0;
  border: 0;
  background: transparent;
}

.process-grid span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 999px;
  background: var(--color-cream);
  box-shadow: inset 0 0 0 1px rgba(184, 102, 75, 0.24);
}

.audience-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--color-terracotta-dark);
  font-weight: 800;
  text-decoration: none;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-hero {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.page-hero h1 {
  max-width: 13ch;
}

.page-lead {
  max-width: 760px;
  margin-top: 1.2rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

/* === TRUST === */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  padding: 0.55rem 0.82rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* === GALLERY === */
.visual-note {
  padding: 1rem;
  border: 1px dashed rgba(184, 102, 75, 0.35);
  border-radius: var(--radius-card);
  background: rgba(255, 250, 242, 0.75);
  color: var(--color-muted);
}

/* === FAQ === */
.faq-section {
  max-width: 920px;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  color: var(--color-ink);
  font-weight: 800;
}

.faq-list p {
  margin-top: 0.8rem;
}

/* === CONTACT === */
.final-cta {
  margin-bottom: 4rem;
  padding: clamp(3rem, 7vw, 5rem);
  border: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 253, 248, 0.9), transparent 20rem),
    linear-gradient(135deg, rgba(232, 220, 200, 0.56), rgba(255, 253, 248, 0.54));
  text-align: center;
  box-shadow: none;
}

.final-cta p {
  max-width: 720px;
  margin: 1rem auto 0;
  font-size: 1.08rem;
}

.final-actions {
  justify-content: center;
}

.contact-card h2,
.contact-card h3 {
  margin-bottom: 0.7rem;
}

/* === FOOTER === */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--color-terracotta-dark);
  font-weight: 800;
  text-decoration: none;
}

/* Floating contact action for the standalone prototype. */
.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 12;
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: var(--color-olive);
  color: #fffdf8;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(75, 58, 38, 0.22);
}

.whatsapp-icon {
  display: inline-grid;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.45rem;
  place-items: center;
}

.whatsapp-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

:focus-visible {
  outline: 3px solid rgba(184, 102, 75, 0.75);
  outline-offset: 3px;
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .intro-section {
    grid-template-columns: 1fr;
  }

  .intro-visual {
    width: min(100%, 44rem);
    margin-inline: auto;
  }

  .hero-section {
    min-height: calc(100vh - 90px);
  }

  .value-grid,
  .materials-grid,
  .business-grid,
  .process-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .featured-grid article,
  .featured-grid article:nth-child(4),
  .featured-grid article:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 1rem, var(--max-width));
    gap: 0.75rem;
  }

  .brand small {
    display: none;
  }

  .header-action {
    padding-inline: 0.75rem;
    font-size: 0.82rem;
  }

  .section,
  .hero-section,
  .intro-section,
  .final-cta,
  .site-footer,
  .page-hero {
    width: min(100% - 1rem, var(--max-width));
  }

  h1 {
    max-width: none;
    font-size: clamp(2.25rem, 10vw, 2.85rem);
  }

  .hero-section {
    min-height: calc(100vh - 4.5rem);
    padding: 0.45rem 0 3rem;
  }

  .hero-lead {
    margin-top: 0.85rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .hero-actions,
  .final-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-main-figure {
    width: 100%;
  }

  .hero-main-figure img {
    max-height: calc(100vh - 11.5rem);
    border-radius: 6px;
  }

  .hero-main-figure::before {
    border-radius: 12px;
  }

  .hero-main-figure::after {
    border-radius: 6px;
  }

  .scroll-cue {
    width: 100%;
    justify-content: center;
    padding-inline: 0.5rem;
    font-size: 0.8rem;
  }

  .value-grid,
  .materials-grid,
  .featured-grid,
  .process-grid,
  .business-grid,
  .audience-grid,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .audience-paths {
    align-items: center;
    flex-direction: column;
  }

  .intro-highlights {
    grid-template-columns: 1fr;
  }

  .intro-visual {
    width: 100%;
  }

  .materials-grid {
    flex-direction: column;
    gap: 0.95rem;
  }

  .material-item,
  .material-item-wide {
    width: 100%;
    max-width: none;
  }

  .process-grid::before {
    display: none;
  }

  .process-grid li {
    padding: 0;
  }

  .floating-whatsapp {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
