/* Classic Emerald Neumorphism — Pin-up Chile */
:root {
  --bg: #003823;
  --panel: #008D48;
  --accent: #FFFF00;
  --text: #FFFFFF;
  --shadow-dark: rgba(0, 0, 0, 0.45);
  --shadow-light: rgba(0, 180, 96, 0.28);
  --radius: 22px;
  --header-h: 72px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 141, 72, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(0, 100, 55, 0.4), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sg-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #003823;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.sg-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Neumorphic surfaces */
.sg-panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow:
    10px 10px 22px var(--shadow-dark),
    -8px -8px 18px var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sg-panel--inset {
  box-shadow:
    inset 6px 6px 14px var(--shadow-dark),
    inset -4px -4px 12px var(--shadow-light);
}

.sg-container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.sg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(0, 56, 35, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 141, 72, 0.4);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.sg-header.is-scrolled {
  box-shadow:
    0 8px 24px var(--shadow-dark),
    0 1px 0 rgba(255, 255, 255, 0.05);
  background: rgba(0, 40, 26, 0.95);
}

.sg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sg-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.sg-logo img {
  height: 40px;
  width: auto;
}

.sg-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sg-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.92;
}

.sg-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.sg-burger {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: var(--panel);
  box-shadow:
    5px 5px 12px var(--shadow-dark),
    -4px -4px 10px var(--shadow-light);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.sg-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sg-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.sg-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.sg-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.sg-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.sg-btn:active {
  transform: translateY(1px);
}

.sg-btn--accent {
  background: var(--accent);
  color: #003823;
  box-shadow:
    6px 6px 14px var(--shadow-dark),
    -4px -4px 12px rgba(255, 255, 100, 0.2);
}

.sg-btn--accent:hover {
  color: #003823;
}

.sg-btn--ghost {
  background: var(--panel);
  color: var(--text);
  box-shadow:
    6px 6px 14px var(--shadow-dark),
    -4px -4px 12px var(--shadow-light);
}

.sg-btn--ghost:hover {
  color: var(--accent);
}

.sg-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Hero */
.sg-hero {
  padding: 3.5rem 0 2.5rem;
}

.sg-hero__card {
  padding: clamp(1.75rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.sg-hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 0, 0.12), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(0, 56, 35, 0.35), transparent 45%);
  pointer-events: none;
}

.sg-hero__card > * {
  position: relative;
  z-index: 1;
}

.sg-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.sg-hero p {
  margin: 0;
  max-width: 62ch;
  opacity: 0.95;
}

/* Sections */
.sg-section {
  padding: 2.25rem 0;
}

.sg-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  font-weight: 700;
}

.sg-section h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.sg-section p {
  margin: 0 0 1rem;
}

.sg-section p:last-child {
  margin-bottom: 0;
}

.sg-card {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.sg-stack {
  display: grid;
  gap: 1.25rem;
}

.sg-media {
  margin: 1.25rem 0 0;
  padding: 0;
}

.sg-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    8px 8px 18px var(--shadow-dark);
}

.sg-media figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
  font-style: italic;
}

/* Table */
.sg-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  margin: 1.25rem 0;
  box-shadow:
    inset 5px 5px 12px var(--shadow-dark),
    inset -3px -3px 10px var(--shadow-light);
  background: rgba(0, 56, 35, 0.35);
}

.sg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.sg-table th,
.sg-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sg-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 56, 35, 0.45);
}

.sg-table tr:last-child td {
  border-bottom: none;
}

.sg-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* Two-col layout for positioning / mobile */
.sg-split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .sg-split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .sg-split--reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .sg-split--reverse .sg-split__media {
    order: -1;
  }
}

/* FAQ */
.sg-faq {
  display: grid;
  gap: 0.85rem;
}

.sg-faq__item {
  border-radius: 18px;
  background: var(--panel);
  box-shadow:
    8px 8px 18px var(--shadow-dark),
    -5px -5px 14px var(--shadow-light);
  overflow: hidden;
}

.sg-faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.sg-faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 56, 35, 0.45);
  box-shadow:
    inset 2px 2px 5px var(--shadow-dark),
    inset -2px -2px 5px var(--shadow-light);
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.sg-faq__item.is-open .sg-faq__icon {
  transform: rotate(45deg);
}

.sg-faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.sg-faq__panel-inner {
  padding: 0 1.25rem 1.15rem;
}

.sg-faq__panel-inner p {
  margin: 0;
  opacity: 0.95;
}

/* Footer */
.sg-footer {
  padding: 2.5rem 0 6rem;
}

.sg-footer__card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.5rem;
}

.sg-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sg-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.sg-footer__nav a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  opacity: 0.9;
}

.sg-footer__nav a:hover {
  color: var(--accent);
}

.sg-footer__copy {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.8;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
}

/* Cookie notice */
.sg-cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  background: var(--panel);
  border-radius: 18px;
  box-shadow:
    10px 10px 28px var(--shadow-dark),
    -6px -6px 16px var(--shadow-light);
  display: none;
  gap: 0.85rem;
  align-items: flex-start;
}

.sg-cookie.is-visible {
  display: grid;
}

.sg-cookie p {
  margin: 0;
  font-size: 0.95rem;
}

.sg-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Scroll reveal */
.sg-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.sg-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile nav */
@media (max-width: 860px) {
  .sg-burger {
    display: inline-flex;
  }

  .sg-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(0, 40, 26, 0.98);
    border-bottom: 1px solid rgba(0, 141, 72, 0.45);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 16px 32px var(--shadow-dark);
  }

  .sg-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sg-nav a {
    padding: 0.9rem 1rem;
    border-radius: 12px;
  }

  .sg-nav a:hover {
    background: rgba(0, 141, 72, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sg-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sg-btn,
  .sg-faq__icon,
  .sg-nav {
    transition: none;
  }
}
