:root {
  --ink: #1d1f1e;
  --muted: #5a625f;
  --paper: #f7f8f6;
  --white: #ffffff;
  --line: #d9ded8;
  --green: #2f6f5e;
  --coral: #b94e48;
  --gold: #b08a2e;
  --shadow: 0 18px 44px rgba(29, 31, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

p,
li,
a,
button {
  font-size: 1rem;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.22rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: var(--white);
  background: rgba(29, 31, 30, 0.78);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 30px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--white);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a:focus {
  color: #d8c06b;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: 124px clamp(20px, 6vw, 84px) 72px;
  color: var(--white);
  background:
    linear-gradient(rgba(29, 31, 30, 0.72), rgba(29, 31, 30, 0.46)),
    url("FONDO PARA WEB SERVICOS.png") center/cover no-repeat;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-content h1 {
  max-width: 12ch;
  margin-bottom: 1.2rem;
}

.hero p:not(.eyebrow),
.hero-content p {
  max-width: 60ch;
  margin-top: 22px;
  font-size: 1.08rem;
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5f6663;
}

.hero .eyebrow {
  color: #b88a00;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  color: var(--white);
  background: var(--coral);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.68);
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
}

.button.primary:hover,
.button.secondary:hover {
  opacity: 0.95;
}

section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.section-inner {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.intro,
.services,
.model,
.sectors,
.contact {
  padding: clamp(64px, 8vw, 104px) 0;
}

.intro {
  background: var(--white);
}

.split,
.contact-layout,
.sectors-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.split p:last-child,
.contact-layout p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.section-heading p.eyebrow {
  margin-bottom: 0.75rem;
}

.section-heading h2,
.intro h2,
.contact h2 {
  max-width: 18ch;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.service-card,
.model-list article,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.model-list article:hover,
.contact-panel:hover,
.sector-grid article:hover {
  transform: translateY(-4px);
}

.service-card {
  min-height: 310px;
  padding: 28px;
}

.service-card.wide {
  grid-column: 1 / -1;
  min-height: 230px;
}

.service-card span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--coral);
  font-weight: 700;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.model {
  background: var(--white);
}

.model-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.model-list article {
  min-height: 220px;
  padding: 28px;
}

.model-list p {
  margin: 18px 0 0;
  color: var(--muted);
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.sector-grid article {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sector-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sector-grid h3 {
  padding: 18px 18px 0;
}

.sector-grid p {
  margin: 10px 18px 20px;
  color: var(--muted);
}

.contact {
  background: #e9eee8;
}

.contact-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.contact-panel p {
  margin: 0;
}

.contact-panel a:not(.button) {
  color: var(--green);
  font-weight: 700;
}

.button.full {
  width: 100%;
  margin-top: 10px;
}

.site-footer {
  padding: 28px 20px;
  color: var(--white);
  text-align: center;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--white);
}

.legal-page {
  background: var(--paper);
}

.legal-hero {
  padding: 92px 0 28px;
  color: var(--white);
  background: var(--ink);
}

.legal-content {
  padding: 34px 0 56px;
}

.legal-layout {
  max-width: 820px;
}

.legal-hero h1 {
  font-size: 2rem;
}

.legal-layout article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-layout h2 {
  margin-top: 22px;
  font-size: 1.08rem;
}

.legal-layout h2:first-child {
  margin-top: 0;
}

.legal-layout p,
.legal-layout li {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.48;
}

.legal-layout a {
  color: var(--green);
  font-weight: 700;
}

/* IMÁGENES POR PÁGINA */
.page-home .hero {
  background-image: url("FONDO PARA WEB SERVICOS.png");
}

.page-servicios .hero {
  background-image: url("assets/hero-servicios.jpg");
}

.page-metodo .hero {
  background-image: url("assets/hero-metodo.jpg");
}

.page-sectores .hero {
  background-image: url("assets/hero-sectores.jpg");
}

.page-contacto .hero {
  background-image: url("assets/hero-contacto.jpg");
}

/* OVERLAY AJUSTADO POR PÁGINA */
.page-servicios .hero-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.page-metodo .hero-overlay {
  background: rgba(0, 0, 0, 0.65);
}

.page-sectores .hero-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.page-contacto .hero-overlay {
  background: rgba(0, 0, 0, 0.55);
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .nav {
    justify-content: flex-start;
    gap: 8px 16px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 82svh;
    padding: 168px 20px 48px;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .split,
  .contact-layout,
  .sectors-layout,
  .service-grid,
  .model-list,
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card.wide,
  .model-list article {
    min-height: auto;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
.contact-panel .button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}
.contact-panel .button.secondary:hover,
.contact-panel .button.secondary:focus {
  background: #f2f4f1;
  opacity: 1;
}
