:root {
  --bg: #e7ecf1;
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #0a3a66;
  --muted: #4f73b7;
  --accent: #0a3a66;
  --accent-dark: #4f73b7;
  --accent-light: #63b2e4;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --soft-blue: #b9daf2;
  --pale-blue: #e1eff8;
  --mist: #f0f6fa;
  --shadow: 0 18px 40px rgba(10, 58, 102, 0.12);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(240, 246, 250, 0.88), rgba(231, 236, 241, 0.88)),
    url("assets/images/optimized/bg-768.jpg") center top / cover no-repeat;
}

@supports (background-image: image-set(url("assets/images/optimized/bg-768.jpg") type("image/jpeg") 1x)) {
  body {
    background-image:
      linear-gradient(rgba(240, 246, 250, 0.88), rgba(231, 236, 241, 0.88)),
      image-set(url("assets/images/optimized/bg-768.jpg") type("image/jpeg") 1x);
  }
}

@media (min-width: 881px) {
  body {
    background-image:
      linear-gradient(rgba(240, 246, 250, 0.88), rgba(231, 236, 241, 0.88)),
      url("assets/images/optimized/bg-1280.jpg");
  }

  .story-grid {
    grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
    gap: 1.1rem;
  }
}

@supports (background-image: image-set(url("assets/images/optimized/bg-1280.jpg") type("image/jpeg") 1x)) {
  @media (min-width: 881px) {
    body {
      background-image:
        linear-gradient(rgba(240, 246, 250, 0.88), rgba(231, 236, 241, 0.88)),
        image-set(url("assets/images/optimized/bg-1280.jpg") type("image/jpeg") 1x);
    }
  }
}

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

a {
  color: inherit;
}

.page-shell {
  padding: 1rem 0 2rem;
}

.container {
  width: min(100% - 2rem, 960px);
  margin: 0 auto;
}

.panel,
.section-card {
  background: var(--paper);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.brand-kicker,
.contact-lockup p,
.form-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-kicker {
  color: var(--accent);
}

.brand-lockup h1,
.hero-badge p,
.lead-form h2,
.section-card h2,
.social-copy h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-lockup h1 {
  color: var(--accent);
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.contact-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
}

.contact-lockup a {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  text-decoration: none;
}

.contact-subline {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-subline a {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 1rem;
  letter-spacing: normal;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.95fr);
  overflow: hidden;
}

.hero-media {
  position: relative;
  min-height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center 18%;
}

.hero-media picture {
  display: block;
  height: 100%;
}

.hero-badge {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 4vw, 2rem);
  transform: translateY(-50%);
  width: clamp(10.5rem, 29vw, 14.5rem);
  aspect-ratio: 1;
  padding: 1.2rem;
  border-radius: 50%;
  background: rgba(10, 58, 102, 0.82);
  color: #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 18px 38px rgba(10, 58, 102, 0.22);
}

.hero-badge p {
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 0.92;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  padding: 1.4rem;
}

.lead-form h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 0.95;
  margin-bottom: 0;
}

.lead-form form {
  display: grid;
  gap: 0.7rem;
}

.lead-form input,
.lead-form select {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0.78rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--mist);
}

.lead-form button {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.1rem;
  margin-top: 0.35rem;
  background: var(--ink);
  color: #ffffff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.lead-form button:hover,
.lead-form button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.lead-form .whatsapp-cta {
  width: 100%;
  margin-top: 0.1rem;
  font-size: 1.1rem;
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.83rem;
  line-height: 1.5;
}

.form-note a {
  font-weight: 700;
}

.section-card {
  margin-top: 1.9rem;
  padding: 1.9rem;
}

.story.section-card {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.1rem 0.95rem;
}

.section-card h2 {
  margin-bottom: 1.2rem;
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.95;
}

.story h2 {
  margin-bottom: 0.7rem;
}

.story-grid {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.story-image {
  min-height: 0;
  align-self: start;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--mist);
}

.story-image img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  border: 5px solid var(--mist);
  box-shadow: 0 8px 18px rgba(10, 58, 102, 0.12);
}

.story-image picture,
.offers-visual picture {
  display: block;
  width: 100%;
}

.story-image picture {
  height: auto;
}

.story-copy {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  line-height: 1.5;
  font-size: 0.88rem;
}

.story-copy p {
  margin: 0;
}

.story-copy p + p {
  margin-top: 0.55rem;
}

.text-main {
  color: var(--accent);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  letter-spacing: 0.02em;
  line-height: 1.04;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.story-list-block {
  margin-top: 0.9rem;
}

.story-list-block h3 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.story-list-block ul {
  margin: 0;
  padding-left: 1.15rem;
}

.story-list-block li + li {
  margin-top: 0.25rem;
}

.story-price {
  margin-top: 0.95rem;
  color: var(--ink);
  font-weight: 700;
}

.gallery.section-card {
  padding: 1.35rem 1.45rem 1.55rem;
}

.gallery-header {
  max-width: 48rem;
  margin: 0 auto 1.15rem;
  text-align: center;
}

.gallery-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.gallery-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(13.5rem, 24%);
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 115, 183, 0.6) transparent;
}

.gallery-track::-webkit-scrollbar {
  height: 0.55rem;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: rgba(79, 115, 183, 0.55);
  border-radius: 999px;
}

.gallery-slide {
  border: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(240, 246, 250, 0.96) 0%, rgba(225, 239, 248, 0.96) 100%);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 24px rgba(10, 58, 102, 0.08);
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.gallery-slide:hover,
.gallery-slide:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(10, 58, 102, 0.14);
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-slide span {
  display: block;
  padding: 0.85rem 0.9rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.gallery-nav,
.gallery-lightbox-actions button,
.gallery-lightbox-close {
  border: 0;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
}

.gallery-nav {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: 0 10px 20px rgba(10, 58, 102, 0.16);
  transition: transform 140ms ease, background 140ms ease;
}

.gallery-nav:hover,
.gallery-nav:focus-visible,
.gallery-lightbox-actions button:hover,
.gallery-lightbox-actions button:focus-visible,
.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.gallery-lightbox {
  width: min(92vw, 64rem);
  max-width: none;
  border: 0;
  padding: 0;
  background: transparent;
}

.gallery-lightbox::backdrop {
  background: rgba(10, 28, 51, 0.8);
}

.gallery-lightbox-inner {
  position: relative;
  padding: 1rem 1rem 1.2rem;
  background: #ffffff;
  box-shadow: 0 24px 44px rgba(10, 28, 51, 0.28);
}

.gallery-lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
}

.gallery-lightbox-inner img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: var(--mist);
}

#gallery-lightbox-caption {
  margin: 0.9rem 0 0;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.gallery-lightbox-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.gallery-lightbox-actions button {
  border-radius: 999px;
  padding: 0.8rem 1.05rem;
  font: inherit;
  font-weight: 700;
}

.offers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1.3rem;
}

.offers-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(10, 58, 102, 0.08);
}

.offers-visual img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.offer-cta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(99, 178, 228, 0.15) 0%, rgba(185, 218, 242, 0.35) 100%);
  box-shadow: 0 12px 24px rgba(10, 58, 102, 0.08);
}

.offer-cta h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.offer-cta-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.offer-cta form {
  display: grid;
  gap: 0.7rem;
}

.offer-cta input,
.offer-cta select,
.offer-cta textarea {
  width: 100%;
  border: 0;
  padding: 0.78rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  resize: vertical;
}

.offer-cta button,
.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.1rem;
  color: #ffffff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.offer-cta button {
  background: var(--ink);
}

.whatsapp-cta {
  background: var(--whatsapp);
}

.offer-cta button:hover,
.offer-cta button:focus-visible,
.whatsapp-cta:hover,
.whatsapp-cta:focus-visible {
  transform: translateY(-1px);
}

.offer-cta button:hover,
.offer-cta button:focus-visible {
  background: var(--accent-dark);
}

.whatsapp-cta:hover,
.whatsapp-cta:focus-visible {
  background: var(--whatsapp-dark);
}

.social-strip {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.9rem;
  padding: 1.4rem 1.6rem;
}

.social-kicker {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.social-copy h2 {
  font-size: 1.1rem;
  line-height: 1.05;
  margin-top: 0.55rem;
}

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

.social-link {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  text-decoration: none;
  text-align: center;
}

.social-icon {
  width: clamp(4.9rem, 10vw, 6.6rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-light);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(79, 115, 183, 0.22);
  transition: transform 140ms ease, background 140ms ease;
}

.social-link:hover .social-icon,
.social-link:focus-visible .social-icon {
  transform: translateY(-2px);
  background: var(--accent);
}

.social-icon svg {
  width: 45%;
  height: 45%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon svg .fill {
  fill: currentColor;
  stroke: none;
}

.social-path {
  display: block;
  max-width: 11ch;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  word-break: break-word;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    display: flex;
    flex-direction: column;
  }

  .hero-media img {
    min-height: 340px;
  }

  .hero-badge {
    position: static;
    transform: none;
    width: min(11rem, 52vw);
    margin: 0.85rem auto 0;
  }

  .lead-form {
    padding: 1.25rem;
  }

  .social-strip {
    grid-template-columns: 1fr;
  }

  .gallery-carousel {
    grid-template-columns: 1fr;
  }

  .gallery-track {
    grid-auto-columns: minmax(16rem, 68%);
    order: 1;
  }

  .gallery-nav {
    display: none;
  }

  .offers-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-lockup {
    text-align: left;
  }

  .section-card,
  .social-strip {
    padding: 1.3rem;
  }

  .story.section-card {
    padding: 0.85rem 0.95rem 1rem;
  }

  .story-grid {
    flex: initial;
    grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
  }

  .story-image {
    width: 100%;
    max-width: none;
  }

  .story-image img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .story-image picture {
    height: auto;
  }

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

@media (max-width: 460px) {
  .container {
    width: min(100% - 1rem, 960px);
  }

  .hero-badge {
    width: min(9rem, 58vw);
    padding: 0.8rem;
  }

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

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-image {
    width: 100%;
    max-width: none;
    padding: 1rem;
  }

  .story-image picture {
    width: min(100%, 16rem);
    margin: 0 auto;
  }

  .story-image img {
    height: auto;
    max-height: none;
  }

  .gallery.section-card {
    padding: 1.2rem 1rem 1.35rem;
  }

  .gallery-track {
    grid-auto-columns: minmax(14.5rem, 82%);
  }

  .gallery-slide span {
    padding: 0.8rem 0.75rem 0.9rem;
  }

  .gallery-lightbox-inner {
    padding: 0.75rem 0.75rem 1rem;
  }

  .social-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
}
