:root {
  --black: #111111;
  --gold: #f4c400;
  --gold-dark: #b18a00;
  --paper: #ffffff;
  --soft: #f7f7f3;
  --text: #353535;
  --muted: #626262;
  --line: #e6e0cf;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Nunito Sans", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 12px max(28px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.brand img {
  width: 190px;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  color: #636684;
  font-size: 0.95rem;
  font-weight: 800;
}

.main-nav a {
  padding: 12px 0;
}

.main-nav a:hover,
.text-link:hover {
  color: var(--gold-dark);
}

.home-mutual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--gold-dark);
  border-radius: 4px;
  color: #141414;
  font-size: 0.92rem;
  font-weight: 900;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: 80px max(26px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.08)),
    radial-gradient(circle at 76% 28%, rgba(244, 196, 0, 0.34), transparent 18%),
    linear-gradient(135deg, #2d2b24, #a69563 52%, #f1eee1);
}

.hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(244, 196, 0, 0) 0 44%, rgba(244, 196, 0, 0.28) 44% 52%, rgba(244, 196, 0, 0) 52%),
    url("public/brand/logo-penarol-mutual-web.png");
  background-repeat: no-repeat;
  background-position: right 7% center, right 7% center;
  background-size: auto, min(560px, 46vw) auto;
  opacity: 0.18;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: Montserrat, sans-serif;
  font-size: clamp(2.8rem, 5.4vw, 5.6rem);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  color: #171717;
  font-family: Montserrat, sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.hero-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.18rem;
}

.hero-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 900;
}

.hero-link::after,
.text-link::after {
  content: "→";
}

.intro-section,
.services,
.contact {
  padding: 92px max(26px, calc((100vw - 1050px) / 2));
}

.intro-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 72px;
  align-items: center;
}

.intro-copy h2 span,
.services h2 span {
  color: var(--gold);
}

.intro-media {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.service-poster {
  width: min(420px, 100%);
  min-height: 360px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 42px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55)),
    linear-gradient(135deg, #f5d22a, #181818 48%, #f4c400);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.service-poster img {
  width: 280px;
  margin-bottom: 34px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.24));
}

.service-poster strong {
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 0.95;
}

.service-poster span {
  margin-top: 12px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.section-title {
  max-width: 720px;
  margin-bottom: 34px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-item {
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background 180ms ease, transform 180ms ease;
}

.service-item:hover {
  background: #fff8db;
  transform: translateY(-2px);
}

.service-item span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold-dark);
  font-family: Montserrat, sans-serif;
  font-weight: 900;
}

.service-item strong {
  display: block;
  margin-bottom: 10px;
  color: #151515;
  font-family: Montserrat, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
}

.service-item small {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.help-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 70px max(26px, calc((100vw - 1050px) / 2));
  background: #181818;
}

.help-strip h2,
.help-strip p {
  max-width: 760px;
  color: #fff;
}

.help-strip p {
  color: rgba(255, 255, 255, 0.74);
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 60px;
  background: var(--soft);
}

.page-hero {
  min-height: 360px;
  padding: 92px max(26px, calc((100vw - 1050px) / 2));
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.36)),
    linear-gradient(135deg, #171717, #8b7b41);
  color: #fff;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}

.content-section {
  padding: 92px max(26px, calc((100vw - 1050px) / 2));
}

.two-columns {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 70px;
}

.cards-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards-section article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.cards-section h2 {
  font-size: 1.35rem;
}

.page-services,
.page-contact {
  padding-top: 70px;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-actions a {
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  font-weight: 800;
}

.contact-actions span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  font-size: 0.82rem;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px max(26px, calc((100vw - 1050px) / 2));
  background: #111;
  color: rgba(255, 255, 255, 0.68);
}

.footer img {
  width: 180px;
  filter: brightness(1.08);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto auto;
    min-height: 70px;
    padding: 10px 16px;
  }

  .brand img {
    width: 170px;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 0;
    background: transparent;
  }

  .nav-toggle span {
    height: 2px;
    background: #4b5460;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding: 10px 0 0;
  }

  .main-nav.is-open a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .home-mutual {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 280px;
    padding: 58px 18px;
  }

  .hero::after {
    background-size: auto, 340px auto;
    background-position: right -60px center;
  }

  .intro-section,
  .contact,
  .help-strip,
  .two-columns,
  .cards-section {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .brand img {
    width: 158px;
  }

  h1 {
    font-size: clamp(1.95rem, 11vw, 2.85rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    line-height: 1.08;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .intro-section,
  .services,
  .contact,
  .content-section,
  .page-hero {
    padding: 64px 18px;
  }

  .intro-media {
    min-height: 330px;
  }

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

  .service-poster img {
    width: 230px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: 170px;
  }

  .help-strip {
    padding: 58px 18px;
  }

  .footer {
    display: grid;
  }
}

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