:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef2f6;
  --text: #18202a;
  --muted: #647184;
  --line: #dde4ec;
  --accent: #256f74;
  --accent-dark: #174e52;
  --card-surface: #fff8ef;
  --card-border: #eaded6;
  --card-text: #45251f;
  --card-muted: #7b5d56;
  --card-accent: #a23b60;
  --card-accent-dark: #842b4c;
  --card-soft: #f7ebe3;
  --shadow: 0 14px 35px rgba(22, 31, 44, 0.08);
  --shadow-strong: 0 22px 60px rgba(22, 31, 44, 0.18);
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1180px;
  --feed: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.hero-nav-wrap {
  position: absolute;
  top: 18px;
  right: 24px;
  left: 24px;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.hero-logo-area {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 18px 24px 26px;
  background: transparent;
}

.hero-logo {
  position: relative;
  z-index: 4;
  width: min(120px, 25vw);
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(17, 24, 39, 0.12));
}

.hero-wave {
  position: relative;
  z-index: 2;
  height: clamp(42px, 7vw, 86px);
  margin-top: calc(clamp(42px, 7vw, 86px) * -1);
  background: #ffdf00;
  clip-path: ellipse(75% 80% at 50% 100%);
}

.hero-yellow {
  position: relative;
  isolation: isolate;
  margin-top: -1px;
  padding: clamp(6px, 1.2vw, 12px) 0 clamp(32px, 4vw, 60px);
  background: #ffdf00;
}

.hero-yellow::before,
.hero-yellow::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.hero-yellow::before {
  display: none;
  width: 86px;
  height: 86px;
  top: 18%;
  left: 9%;
}

.hero-yellow::after {
  display: none;
  width: 140px;
  height: 140px;
  right: 6%;
  bottom: 16%;
}

.hero-content {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #101418;
  font-size: clamp(1.03rem, 2.65vw, 1.7rem);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(22, 31, 44, 0.12);
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-content h1 {
  max-width: 1120px;
  margin-bottom: 12px;
  color: #111827;
  font-size: clamp(1.47rem, 4vw, 3.33rem);
  font-weight: 900;
  line-height: 1.12;
  text-shadow:
    0 2px 0 #ffffff,
    0 5px 0 rgba(0, 0, 0, 0.16);
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-content .lead {
  max-width: 720px;
  margin-bottom: 26px;
  color: #1d2835;
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
  line-height: 1.45;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav {
  justify-content: center;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #354252;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background 180ms ease;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 45px;
  min-width: 0;
  padding: 11px 31px;
  border-radius: 999px;
  background: linear-gradient(180deg, #24292f 0%, #14181d 100%);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  box-shadow: 0 16px 26px rgba(17, 24, 39, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero-cta::after {
  margin-left: 10px;
  color: #ffea00;
  content: "→";
  font-size: 1.29rem;
  line-height: 1;
}

.hero-cta:hover {
  background: linear-gradient(180deg, #1a2027 0%, #0f1317 100%);
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.28);
  transform: translateY(-2px);
}

.main-nav a:hover {
  border-color: rgba(37, 111, 116, 0.5);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.section {
  padding: 38px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading-narrow,
.profile-feed {
  width: min(100%, var(--feed));
  margin-right: auto;
  margin-left: auto;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.profile-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.profile-card,
.post-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-surface);
  color: var(--card-text);
  box-shadow: 0 16px 36px rgba(69, 37, 31, 0.08);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.profile-card {
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}

@media (hover: hover) {
  .profile-card:hover,
  .post-card:hover {
    border-color: rgba(162, 59, 96, 0.28);
    box-shadow: 0 18px 42px rgba(69, 37, 31, 0.13);
    transform: translateY(-4px);
  }
}

.profile-gallery {
  position: relative;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 12px 12px 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.modal-thumbs::-webkit-scrollbar {
  height: 8px;
}

.modal-thumbs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(162, 59, 96, 0.35);
}

.profile-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  position: relative;
  min-width: calc(100% / 3);
  height: 207px;
  flex: 0 0 calc(100% / 3);
  overflow: hidden;
  border-radius: 0;
  background: var(--card-soft);
  scroll-snap-align: start;
}

.gallery-item img,
.modal-main-image img,
.modal-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 120px;
  place-items: center;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(162, 59, 96, 0.08), rgba(194, 143, 128, 0.1)),
    var(--card-soft);
  color: var(--card-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.profile-body {
  position: absolute;
  left: 14px;
  right: auto;
  bottom: 12px;
  z-index: 3;
  display: grid;
  gap: 16px;
  max-width: min(52%, 220px);
  padding: 10px 12px;
  border: 1px solid rgba(234, 222, 214, 0.75);
  border-radius: 12px;
  background: rgba(255, 248, 239, 0.86);
  box-shadow: 0 10px 22px rgba(69, 37, 31, 0.14);
  pointer-events: none;
}

.profile-main {
  min-width: 0;
}

.profile-body h3 {
  margin-bottom: 4px;
  font-size: 0.92rem;
  line-height: 1.3;
}

.profile-subtitle {
  margin-bottom: 0;
  color: var(--card-muted);
  font-size: 0.98rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 0;
  padding: 0;
  color: var(--card-text);
  font-size: 0.92rem;
  line-height: 1.3;
  list-style: none;
}

.features li {
  display: flex;
  gap: 8px;
}

.features li::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--card-accent);
  content: "";
}

.button,
.read-more,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--card-accent), var(--card-accent-dark));
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button {
  width: 100%;
}

.button:hover,
.read-more:hover,
.contact-button:hover {
  background: linear-gradient(180deg, var(--card-accent-dark), #6f203e);
  box-shadow: 0 10px 24px rgba(162, 59, 96, 0.22);
  transform: translateY(-1px);
}

.posts-list {
  display: grid;
  gap: 18px;
}

.post-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  padding: 24px;
}

.post-content h2 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.2;
}

.post-content p {
  margin-bottom: 18px;
  color: var(--card-muted);
}

.post-meta {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  gap: 8px;
  color: var(--card-muted);
  font-size: 0.92rem;
}

.meta-label {
  color: var(--card-accent);
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.page-button {
  min-width: 44px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: #354252;
  cursor: pointer;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.page-button:hover,
.page-button.is-active {
  border-color: var(--card-accent);
  background: var(--card-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  padding: 18px;
}

.profile-modal.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 38, 0.55);
}

.modal-panel {
  position: relative;
  width: min(100%, 860px);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--card-surface);
  color: var(--card-text);
  box-shadow: 0 22px 60px rgba(69, 37, 31, 0.2);
  outline: none;
}

.modal-close {
  position: sticky;
  top: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  margin: 14px 14px -56px auto;
  place-items: center;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.92);
  color: var(--card-text);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-content {
  padding: 18px;
}

.modal-main-image {
  height: clamp(310px, 62vw, 560px);
  overflow: hidden;
  border-radius: 18px;
  background: var(--card-soft);
}

.modal-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scroll-snap-type: x mandatory;
}

.modal-thumb {
  min-width: 92px;
  height: 110px;
  flex: 0 0 92px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--card-soft);
  cursor: pointer;
  scroll-snap-align: start;
}

.modal-thumb.is-active {
  border-color: var(--card-accent);
}

.modal-profile-head {
  margin: 20px 0 14px;
}

.modal-profile-head h2 {
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.12;
}

.modal-profile-head p {
  margin-bottom: 0;
  color: var(--card-muted);
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0;
}

.contact-button.whatsapp {
  background: linear-gradient(180deg, #7fa36f, #638c56);
  color: #ffffff;
}

.contact-button.whatsapp:hover {
  background: linear-gradient(180deg, #729763, #567c49);
  box-shadow: 0 10px 24px rgba(99, 140, 86, 0.26);
}

.contact-button.phone {
  background: linear-gradient(180deg, #8f5266, #74364e);
}

.contact-button.phone:hover {
  background: linear-gradient(180deg, #74364e, #5f283f);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 16px;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.85fr) 1fr;
  border-bottom: 1px solid var(--card-border);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-label,
.info-value {
  padding: 12px 14px;
}

.info-label {
  background: var(--card-soft);
  color: var(--card-accent);
  font-weight: 700;
}

.info-value {
  color: var(--card-text);
}

.description-block {
  margin-top: 22px;
}

.description-block h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.description-block p {
  margin-bottom: 0;
  color: var(--card-muted);
}

.site-footer {
  margin-top: 28px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-layout p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

@media (min-width: 700px) {
  .hero-content h1 {
    font-size: clamp(1.22rem, 3.33vw, 2.78rem);
  }

  .modal-main-image {
    height: min(72vh, 760px);
  }

  .modal-main-image img {
    object-fit: contain;
  }

  .gallery-item {
    min-width: calc(100% / 5);
    height: 252px;
    flex-basis: calc(100% / 5);
  }

  .profile-body {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

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

@media (max-width: 820px) {
  .header-layout,
  .footer-layout {
    flex-direction: column;
  }

  .header-layout,
  .footer-layout,
  .post-card {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .post-card {
    display: block;
  }

  .post-meta {
    min-width: 0;
    margin-top: 18px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero-nav-wrap {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    padding: 14px 12px 0;
    background: #ffffff;
  }

  .hero-logo-area {
    min-height: 0;
    padding: 14px 18px 0;
  }

  .hero-logo {
    width: min(100px, 27vw);
  }

  .hero-wave {
    height: 64px;
    margin-top: -64px;
  }

  .hero-yellow {
    padding-top: 8px;
    padding-bottom: 40px;
  }

  .hero-cta {
    min-height: 43px;
    max-width: 209px;
    padding: 11px 25px;
    font-size: 0.89rem;
  }

  .hero-content h1 {
    text-shadow:
      0 2px 0 #ffffff,
      0 5px 0 rgba(0, 0, 0, 0.14);
  }

  .section {
    padding: 28px 0;
  }

  .main-nav a {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.94rem;
  }

  .section-heading {
    display: block;
  }

  .profile-feed {
    gap: 18px;
  }

  .profile-gallery {
    gap: 0;
    padding: 10px 10px 4px;
  }

  .gallery-item {
    min-width: calc(100% / 3);
    height: 189px;
    flex-basis: calc(100% / 3);
  }

  .profile-body {
    left: 12px;
    right: auto;
    bottom: 10px;
    max-width: min(58%, 190px);
    padding: 9px 10px;
  }

  .post-card {
    padding: 20px;
  }

  .pagination {
    justify-content: flex-start;
  }

  .profile-modal {
    padding: 10px;
  }

  .modal-panel {
    max-height: 94vh;
    border-radius: 18px;
  }

  .modal-content {
    padding: 12px;
  }

  .modal-main-image {
    height: 360px;
  }

  .info-row {
    grid-template-columns: 104px 1fr;
  }

  .info-label,
  .info-value {
    padding: 10px 12px;
  }
}

@media (max-width: 920px) and (max-height: 560px) {
  .hero-logo-area {
    padding: 14px 18px 0;
  }

  .hero-wave {
    height: 64px;
    margin-top: -64px;
  }
}
