/* transkatherina static site — dark personal landing (responsive) */
:root {
  --bg: #1a1a1a;
  --bg-section: #323232;
  --bg-deep: #0e0e0e;
  --text: #f3eee8;
  --muted: #b7b0a8;
  --accent: #43cb83;
  --pin: #ff0202;
  --line: rgba(255, 255, 255, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 3.5rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(67, 203, 131, 0.08), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(255, 2, 2, 0.05), transparent 50%),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}
.wrap.narrow {
  width: min(100% - 2rem, 640px);
}

/* Top nav */
.topnav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--nav-h);
  padding:
    calc(0.65rem + var(--safe-top))
    max(0.9rem, var(--safe-right))
    0.65rem
    max(0.9rem, var(--safe-left));
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35) 70%, transparent);
  backdrop-filter: blur(6px);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  z-index: 2;
}

.topnav nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topnav nav a {
  opacity: 0.85;
  padding: 0.35rem 0;
}
.topnav nav a:hover {
  opacity: 1;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.audio-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  z-index: 2;
  touch-action: manipulation;
}
.audio-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(67, 203, 131, 0.35);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-media,
.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-video,
.hero-vimeo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.hero-vimeo {
  pointer-events: none;
  transform: scale(1.35);
  transform-origin: center center;
}

.carousel {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.carousel .slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease), transform 6s linear;
  pointer-events: none;
}

.carousel .slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
 * Galerías: imagen SIEMPRE completa (sin recorte).
 */
.gallery-carousel.carousel {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 60vh;
  aspect-ratio: 3 / 4;
  max-height: min(85vh, 820px);
  border-radius: 0;
  background: #000;
  overflow: hidden;
}

.gallery-carousel .slide {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0.5rem;
  opacity: 0;
  transform: none !important;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.gallery-carousel .slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.gallery-carousel .slide img,
.gallery-carousel.carousel .slide img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
}

.gallery-block + .gallery-block {
  border-top: 1px solid var(--line);
}

.gallery-block .section-head h2 {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
}

.empty-gallery {
  color: var(--muted);
  font-size: 0.95rem;
}

.galleries-anchor {
  scroll-margin-top: calc(var(--nav-h) + var(--safe-top) + 1rem);
}

.section {
  scroll-margin-top: calc(var(--nav-h) + var(--safe-top) + 0.5rem);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(120deg, rgba(8, 8, 8, 0.82) 10%, rgba(8, 8, 8, 0.25) 55%, rgba(8, 8, 8, 0.55)),
    linear-gradient(to top, rgba(8, 8, 8, 0.92), transparent 48%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding:
    clamp(4.5rem, 12vh, 8rem)
    max(1rem, var(--safe-right))
    calc(clamp(2.5rem, 7vh, 5rem) + var(--safe-bottom))
    max(1rem, var(--safe-left));
  max-width: 40rem;
  width: 100%;
  animation: rise 1.1s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: clamp(0.7rem, 2.5vw, 0.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.brand-hero {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11vw, 6.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.lede {
  margin: 1rem 0 1.6rem;
  font-size: clamp(1rem, 3.2vw, 1.15rem);
  color: var(--muted);
  max-width: 28rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  touch-action: manipulation;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--accent);
  color: #062416;
}
.btn-primary:hover {
  background: #5fd99a;
}
.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  border-color: #fff;
}
.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: clamp(2.75rem, 7vw, 6rem) 0;
  background: var(--bg-section);
  border-top: 1px solid var(--line);
}
.section.intro,
.section.trips,
.section.special {
  background: linear-gradient(180deg, #2a2a2a, #323232 40%, #2c2c2c);
}
.section.photos {
  background: var(--bg-deep);
}
.section.contact {
  background: #262626;
  padding-bottom: calc(clamp(2.75rem, 7vw, 6rem) + var(--safe-bottom));
}

.section-head {
  margin-bottom: 1.25rem;
}
.section-head h2,
.prose h2,
.contact h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
}
.section-head p,
.prose p,
.contact > .wrap > p {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
}
.prose .sub {
  margin-top: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent);
}
.prose .note,
.prose .legal {
  font-size: 0.9rem;
}
.prose .legal {
  opacity: 0.7;
}

.split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.aside-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}
.aside-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.6rem);
}
.place {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}
.place-detail {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.place-detail strong {
  color: var(--text);
  font-weight: 500;
}
.place.upcoming {
  margin-top: 0.85rem;
  margin-bottom: 1.2rem;
}
.place.upcoming .dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(67, 203, 131, 0.15);
}
.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--pin);
  box-shadow: 0 0 0 4px rgba(255, 2, 2, 0.15);
  flex-shrink: 0;
}
.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  max-width: 100%;
}
.media-frame img {
  width: 100%;
  height: auto;
  max-height: min(420px, 70vw);
  object-fit: cover;
}
.media-frame.round img {
  border-radius: 1rem;
}
.media-frame.circle {
  width: min(240px, 68vw);
  margin-inline: auto;
  border-radius: 50%;
}
.media-frame.circle img {
  height: min(240px, 68vw);
  border-radius: 50%;
  object-fit: cover;
}

.trip-list,
.check-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem;
}
.aside-card .trip-list {
  margin-top: 0.5rem;
}
.trip-list li,
.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.trip-meta {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.aside-card #viajes,
#viajes {
  scroll-margin-top: calc(var(--nav-h) + var(--safe-top) + 0.5rem);
}
.pin {
  color: var(--pin);
  flex-shrink: 0;
}
.check-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
.check-list li.emphasis {
  color: var(--text);
  font-weight: 500;
}

.special-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.center {
  text-align: left;
}
.tagline {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-style: italic;
  color: var(--text);
}

/* Photos legacy */
.photo-stage {
  position: relative;
  height: min(72vh, 680px);
  border: 1px solid var(--line);
  background: #000;
}
.photo-stage .slide img {
  object-fit: contain;
  object-position: center;
}

.nav-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-btn.prev {
  left: 0.4rem;
}
.nav-btn.next {
  right: 0.4rem;
}
.nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.thumb {
  padding: 0;
  border: 1px solid transparent;
  background: #111;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.thumb:hover img,
.thumb.is-active img {
  opacity: 1;
}
.thumb.is-active {
  border-color: var(--accent);
}

/* Contact */
.ask {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: var(--text) !important;
}
.contact-list a {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  min-height: 3rem;
}
.contact-list .ico {
  min-width: 4.8rem;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.contact-list a span:last-child {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.contact-list a:hover {
  color: var(--accent);
}

.site-footer {
  padding: 1.5rem 0 calc(2rem + var(--safe-bottom));
  background: #0a0a0a;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

/* —— Tablet+ —— */
@media (min-width: 760px) {
  .wrap {
    width: min(100% - 2.5rem, var(--max));
  }
}

@media (min-width: 800px) {
  .special-grid {
    grid-template-columns: 280px 1fr;
  }
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
  .split.reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .split.reverse .prose {
    order: 2;
  }
  .split.reverse .media-frame {
    order: 1;
  }
  .gallery-carousel.carousel {
    aspect-ratio: 16 / 10;
    min-height: min(62vh, 680px);
    max-height: min(78vh, 760px);
  }
  .media-frame img {
    height: min(520px, 70vw);
  }
  .media-frame.circle {
    width: min(280px, 70vw);
  }
  .media-frame.circle img {
    height: min(280px, 70vw);
  }
  .nav-btn.prev {
    left: 0.75rem;
  }
  .nav-btn.next {
    right: 0.75rem;
  }
}

/* —— Mobile nav panel —— */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topnav nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.35rem;
    padding:
      calc(4.5rem + var(--safe-top))
      max(1.5rem, var(--safe-right))
      calc(2rem + var(--safe-bottom))
      max(1.5rem, var(--safe-left));
    background: rgba(8, 8, 8, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), visibility 0.25s;
  }

  .topnav.is-open nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .topnav nav a {
    font-size: 1.35rem;
    letter-spacing: 0.1em;
    padding: 0.95rem 0.5rem;
    border-bottom: 1px solid var(--line);
    opacity: 1;
  }

  body.nav-open {
    overflow: hidden;
  }

  .cta-row .btn {
    flex: 1 1 10rem;
  }

  .gallery-carousel.carousel {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    aspect-ratio: 3 / 4;
    min-height: 58vh;
    max-height: 80vh;
  }

  .gallery-block .wrap > .section-head {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .brand-hero {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }
  .hero-copy {
    padding-bottom: calc(2rem + var(--safe-bottom));
  }
  .contact-list a {
    flex-direction: column;
    gap: 0.25rem;
  }
  .contact-list .ico {
    min-width: 0;
  }
  .nav-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  .aside-card .btn {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding-inline: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-copy,
  .carousel .slide {
    animation: none !important;
    transition: none !important;
  }
}
