/* ── Variables ────────────────────────────────────────────────── */
:root {
  /* Landing page tokens */
  --surface-base: #fdfdfc;
  --ink-40:       #f6f5f3;
  --ink-600:      #6b6863;
  --ink-800:      #383530;
  --ink-900:      #180f26;
  --border:       #edecea;
  --sage-500:     #7a9e6e;

  /* Ficha page tokens (kept) */
  --cream:        #F7F3ED;
  --cream-dark:   #EDE7DC;
  --green:        #3D5C38;
  --green-light:  #6B8F63;
  --green-muted:  #A8BFA4;
  --gold:         #B8844A;
  --gold-light:   #D4A96A;
  --text:         #2A2520;
  --text-mid:     #5A5047;
  --text-light:   #8A7E74;
  --white:        #FEFCF9;
  --shadow-sm:    0 2px 8px rgba(42,37,32,0.08);
  --shadow-md:    0 8px 32px rgba(42,37,32,0.12);
  --shadow-lg:    0 20px 60px rgba(42,37,32,0.16);
  --radius:       16px;
  --radius-sm:    8px;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FDFDFC;
  color: var(--ink-800);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════════ */

/* ── Subtitle ─────────────────────────────────────────────────── */
/* ── Site Nav ─────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  padding: 0 32px;
  height: 52px;
}

.site-nav--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav--hidden {
  transform: translateY(-100%);
}

.nav-col {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-right { justify-content: flex-end; }

.nav-center {
  flex: 1;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-600);
  line-height: 1.7;
}

.nav-center a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

.nav-center a:hover { opacity: 0.65; }

.nav-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink-800);
  border-radius: 10px;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-menu-btn:hover { background: var(--ink-40); }

.nav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink-800);
  border-radius: 10px;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-icon-btn:hover { background: var(--ink-40); }

.sound-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink-600);
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sound-btn:hover { background: var(--ink-40); color: var(--ink-800); }
.sound-btn.sound-active { color: var(--ink-800); }

/* Toggle icons based on state */
.sound-btn .sound-icon-on   { display: none; }
.sound-btn .sound-icon-muted { display: block; }
.sound-btn.sound-active .sound-icon-on    { display: block; }
.sound-btn.sound-active .sound-icon-muted { display: none; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero-wrapper {
  padding: 0 32px 32px;
}

.hero-card {
  position: relative;
  width: 100%;
  height: 677px;
  border-radius: 32px 32px 82px 82px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 56px 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

.hero-title {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 700;
  font-size: clamp(56px, 9vw, 128px);
  color: white;
  line-height: 0.85;
  letter-spacing: -0.06em;
  flex-shrink: 0;
}

.hero-panel {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.56);
  border-radius: 20px;
  padding: 32px;
  max-width: 680px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-800);
  line-height: 1.56;
}

.hero-stats {
  display: flex;
  gap: 40px;
  align-items: flex-end;
}

.hero-stat {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex: 1;
}

.stat-num {
  font-family: 'Averia Serif Libre', serif;
  font-style: italic;
  font-size: 28px;
  color: #000;
  line-height: 1;
  flex-shrink: 0;
}

.stat-label-wrap {
  padding-bottom: 2px;
}

.stat-label {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 400;
  font-size: 14px;
  color: #000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Gallery Wrapper (controls + grid) ───────────────────────── */
.gallery-wrapper {
  padding: 0 100px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Controls ─────────────────────────────────────────────────── */
.controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 200;
  background: transparent;
  padding-top: 20px;
  padding-bottom: 8px;
  margin-top: -20px;
  isolation: isolate;
}
/* Progressive blur overlay — behind controls content, full-width */
.controls::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  bottom: -48px;
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  background: linear-gradient(
    to bottom,
    rgba(253, 253, 252, 0.92) 0%,
    rgba(253, 253, 252, 0.88) 50%,
    rgba(253, 253, 252, 0) 100%
  );
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 52%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
.controls-view-btns {
  display: flex;
  gap: 4px;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.controls-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-40);
  border-radius: 12px;
  padding: 8px 12px;
  width: 328px;
  flex-shrink: 0;
}

.search-icon {
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-800);
  outline: none;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--ink-800);
  opacity: 0.5;
}

.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.view-btns {
  display: flex;
  gap: 4px;
  align-items: center;
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--ink-800);
  cursor: pointer;
  transition: background var(--transition);
}

.view-btn svg {
  stroke-width: 1.5;
}

.view-btn.active {
  background: var(--ink-40);
}

.view-btn.active svg {
  stroke-width: 2;
}

.view-btn:hover:not(.active) {
  background: var(--ink-40);
  opacity: 0.7;
}

/* ── Flor prev/next nav ──────────────────────────────────────── */
.flor-nav-btns {
  display: flex;
  gap: 2px;
  align-items: center;
}

.flor-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--ink-600);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.flor-nav-btn:hover {
  background: var(--ink-40);
  color: var(--ink-800);
}

.flor-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.filter-open-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-800);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.filter-open-btn:hover {
  border-color: var(--green);
  color: var(--green);
}
.filter-open-btn.has-filter {
  border-color: var(--green);
  color: var(--green);
  background: rgba(122, 158, 110, 0.08);
}

/* ── Filter Modal ─────────────────────────────────────────────── */
.filter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 11, 7, 0.68);
  backdrop-filter: blur(14px) saturate(0.85);
  -webkit-backdrop-filter: blur(14px) saturate(0.85);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, backdrop-filter 0.28s ease;
}
.filter-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.filter-modal-panel {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: scale(0.93);
  transition: transform 0.32s cubic-bezier(0.34, 1.15, 0.64, 1);
}
.filter-modal-overlay.open .filter-modal-panel {
  transform: scale(1);
}
.filter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.filter-modal-title {
  font-family: 'Averia Serif Libre', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-800);
}
.filter-modal-close {
  background: var(--ink-40);
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--ink-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.filter-modal-close:hover { background: var(--border); color: var(--ink-800); }

.filter-modal-body .filter-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px 8px 12px;
  border: 1.5px solid rgba(56, 53, 48, 0.18);
  border-radius: 100px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-600);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.filter-btn[data-all] {
  padding: 8px 16px;
}

.filter-btn:hover {
  border-color: var(--ink-600);
  color: var(--ink-800);
}

.filter-btn.active {
  background: var(--ink-800);
  border-color: var(--ink-800);
  color: #fff;
}

/* ── Buscador por síntoma ────────────────────────────────────── */
.ss-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 11, 7, 0.55);
  backdrop-filter: blur(10px) saturate(0.85);
  -webkit-backdrop-filter: blur(10px) saturate(0.85);
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s 0.22s;
}
.ss-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.22s ease, visibility 0s 0s;
}
.ss-panel {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform 0.25s cubic-bezier(0.34, 1.1, 0.64, 1);
}
.ss-overlay.open .ss-panel { transform: translateY(0); }

.ss-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-400, #aaa);
}
.ss-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink-800);
  background: transparent;
}
.ss-input::placeholder { color: var(--ink-400, #b0a99e); }
.ss-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-400, #aaa);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.ss-close:hover { background: var(--ink-40); color: var(--ink-800); }

.ss-results {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  max-height: 420px;
  overflow-y: auto;
}
.ss-result { border-bottom: 1px solid var(--border); }
.ss-result:last-child { border-bottom: none; }
.ss-result-link {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  transition: background 0.15s;
}
.ss-result-link:hover { background: var(--cream); }
.ss-result-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.ss-result-nombre {
  font-family: 'Averia Serif Libre', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-800);
}
.ss-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid;
  border-radius: 100px;
  padding: 2px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
}
.ss-result-snippet {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.5;
  margin: 0;
}
.ss-result-snippet strong { color: var(--ink-800); font-weight: 600; }
.ss-more {
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-400, #aaa);
}
.ss-empty {
  padding: 16px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-600);
}

/* ── Active filter chips ─────────────────────────────────────── */
.active-filters {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 12px;
  border-radius: 100px;
  background: var(--ink-800);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
}

.active-filter-chip-remove {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
  line-height: 1;
}
.active-filter-chip-remove:hover { color: #fff; }

.results-count {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-600);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Gallery Grid ─────────────────────────────────────────────── */
.gallery-section {
  /* padding comes from gallery-wrapper */
}

.flowers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

/* ── List view ────────────────────────────────────────────────── */
.flowers-list {
  display: flex;
  flex-direction: column;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition), padding var(--transition);
  cursor: pointer;
  border-radius: 0;
}

.list-item:hover { background: #FDFDFC; }

.list-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  transition: width 0.55s cubic-bezier(0.25,0.46,0.45,0.94),
              height 0.55s cubic-bezier(0.25,0.46,0.45,0.94),
              border-radius 0.55s ease;
}

.list-item:hover .list-thumb {
  width: 160px;
  height: 130px;
  border-radius: 14px;
}

.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}

.list-item:hover .list-thumb img {
  transform: scale(1.03);
}

.list-info {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.list-nombre {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-800);
  flex-shrink: 0;
}

.list-cientifico {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-600);
}

.list-nombre-es {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-600);
}

.list-chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.list-numero {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(56, 53, 48, 0.18);
  border-radius: 100px;
  padding: 4px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-600);
  white-space: nowrap;
}

.list-grupo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(56, 53, 48, 0.18);
  border-radius: 100px;
  padding: 4px 12px 4px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-600);
}

/* ── Card ─────────────────────────────────────────────────────── */
.flower-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px 12px 0;
  height: 346px;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeIn 0.4s ease both;
}

.flower-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

.card-image-wrap {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-40);
  position: relative;
  min-height: 0;
  margin-bottom: 10px;
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.5s ease;
}

.flower-card:hover .card-image {
  transform: scale(1.04);
}

.card-info {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.card-nombre {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 700;
  font-size: 24px;
  color: #404040;
  line-height: 1;
}

.card-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-numero-badge {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(56, 53, 48, 0.18);
  padding: 5px 12px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-600);
  white-space: nowrap;
}

.card-grupo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(56, 53, 48, 0.18);
  padding: 5px 12px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-600);
  width: fit-content;
}

.grupo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--sage-500);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  /* edge-to-edge: cancela el padding lateral del card */
  margin: 0 -12px;
  width: calc(100% + 24px);
  border-radius: 0 0 22px 22px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
              padding 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity 0.3s ease 0.06s,
              background var(--transition);
}

.flower-card:hover .card-cta {
  max-height: 54px;
  padding: 10px 0 14px;
  opacity: 1;
}

.card-cta:hover {
  background: transparent;
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--ink-600);
}

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.2rem; color: var(--ink-800); margin-bottom: 0.5rem; font-family: 'Inter', sans-serif; }
.empty-state p { font-size: 14px; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background: #FDFDFC;
}

.footer-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 100% at -5% 115%,
    #FF9E02 0%,
    rgba(255, 175, 60, 0.5) 32%,
    rgba(255, 220, 150, 0.18) 58%,
    transparent 76%
  );
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding: 0 100px 56px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.footer-disclaimer {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-label-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.footer-divider {
  width: 174px;
  height: 1px;
  background: rgba(24, 15, 38, 0.5);
  flex-shrink: 0;
}

.footer-disclaimer-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-900);
  opacity: 0.65;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 32px;
  align-items: center;
  opacity: 0.6;
  flex-wrap: wrap;
}

.footer-links span,
.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-900);
}

.footer-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-brand {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 400;
  font-size: 31px;
  color: var(--ink-900);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Cinematic View ──────────────────────────────────────────── */

/* When cinematic is active, collapse wrapper padding so panels go edge-to-edge */
.gallery-wrapper[data-view="cinematic"] {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.gallery-wrapper[data-view="cinematic"] .controls {
  padding: 32px 100px 0;
}

.cinematic-gallery {
  width: 100%;
}

.cinematic-panel {
  height: 91vh;
  height: 91svh;
  min-height: 520px;
  display: grid;
  grid-template-columns: 54fr 46fr;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Subtle separator between panels */
.cinematic-panel + .cinematic-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 100px; right: 100px;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}

/* ── Aura (left column) ───────────────────────────── */
.cin-aura-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.cin-aura-link {
  display: block;
  cursor: pointer;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  width: min(520px, 84%);
  aspect-ratio: 1 / 1;
  max-height: 68svh;
  box-shadow: 6px 10px 32px rgba(0,0,0,0.07);
}

.cin-aura-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  display: block;
}

/* CSS gradient orb for flowers without a concept image */
.cin-aura-orb {
  width: min(520px, 82%);
  height: min(520px, 68svh);
  border-radius: 50%;
  background: radial-gradient(
    circle at 45% 42%,
    var(--orb-color) 0%,
    transparent 68%
  );
  filter: blur(32px);
  opacity: 0.55;
}

/* ── Info panel (right column) ───────────────────── */
.cin-info-panel {
  padding: 48px 100px 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cin-numero {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cin-nombre {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 700;
  font-size: clamp(44px, 5.5vw, 80px);
  color: #2a2520;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.cin-nombre-es {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-600);
  margin-top: -6px;
}

.cin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(56, 53, 48, 0.18);
  padding: 5px 16px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-600);
  width: fit-content;
  margin-top: 4px;
}

.cin-perfil {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--ink-800);
  line-height: 1.65;
  max-width: 420px;
  margin-top: 8px;
}

.cin-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-500);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  height: 48px;
  border-radius: 24px;
  padding: 0 36px;
  width: fit-content;
  text-decoration: none;
  transition: background var(--transition);
  margin-top: 8px;
}

.cin-cta:hover { background: #6b8f61; }

/* ── Cinematic scroll indicator ──────────────────────────────── */
.cin-scroll-indicator {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.cin-line-wrap {
  display: flex;
  align-items: center;
  padding: 3px 0;
  position: relative;
  cursor: pointer;
  pointer-events: auto;
}

.cin-line-wrap:hover .cin-scroll-line {
  background: var(--green) !important;
  width: 18px !important;
  opacity: 1 !important;
}

.cin-line-tooltip {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-800);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 11px;
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.13);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 160;
}

.cin-line-tooltip.visible {
  opacity: 1;
}

.cin-scroll-indicator.visible {
  opacity: 1;
}

.cin-scroll-line {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  /* width & opacity set dynamically by JS (gaussian lens effect) */
  transition: width 0.38s cubic-bezier(0.4,0,0.2,1),
              opacity 0.38s ease,
              background 0.38s ease;
}

.cin-scroll-line.active {
  background: var(--green);
}

@media (max-width: 640px) {
  .cin-scroll-indicator { left: 10px; gap: 3px; }
  .cin-scroll-line       { height: 1.5px; }
}

/* ── Grupos letter navigator ─────────────────────────────────── */
.grupos-letter-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.grupos-letter-nav.visible {
  opacity: 1;
  pointer-events: auto;
}
.gln-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: 'Averia Serif Libre', serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(56, 53, 48, 0.28);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.gln-letter:hover {
  color: var(--ink-800);
  background: rgba(56, 53, 48, 0.07);
}
.gln-letter.active {
  color: var(--green);
  background: rgba(61, 92, 56, 0.09);
}
@media (max-width: 900px) {
  .grupos-letter-nav { display: none; }
}

/* ── Responsive adjustments ──────────────────────── */
@media (max-width: 1200px) {
  .gallery-wrapper[data-view="cinematic"] .controls { padding: 24px 40px 0; }
  .cin-info-panel { padding-right: 40px; }
}

@media (max-width: 900px) {
  .gallery-wrapper[data-view="cinematic"] .controls { padding: 20px 24px 0; }

  .cinematic-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 48px 24px 56px;
  }

  .cin-aura-wrap {
    height: 36svh;
    width: 100%;
    flex-shrink: 0;
  }

  .cin-aura-img {
    width: auto;
    height: 100%;
    max-width: 90vw;
  }

  .cin-raw-img .cin-aura-img {
    width: min(260px, 65vw);
    height: min(260px, 30svh);
  }

  .cin-info-panel {
    padding: 0 28px;
    gap: 12px;
    width: 100%;
  }

  .cin-nombre { font-size: 38px; }
  .cin-perfil { font-size: 16px; max-width: 100%; }
}

@media (max-width: 640px) {
  .gallery-wrapper[data-view="cinematic"] .controls { padding: 16px 16px 0; }
  .cin-nombre { font-size: 30px; }
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flower-card:nth-child(1)  { animation-delay: 0.04s; }
.flower-card:nth-child(2)  { animation-delay: 0.08s; }
.flower-card:nth-child(3)  { animation-delay: 0.12s; }
.flower-card:nth-child(4)  { animation-delay: 0.16s; }
.flower-card:nth-child(5)  { animation-delay: 0.20s; }
.flower-card:nth-child(6)  { animation-delay: 0.24s; }

/* ══════════════════════════════════════════════════════════════
   FICHA PAGE  (flor.html)
══════════════════════════════════════════════════════════════ */

/* ── Hero section ─────────────────────────────────────────────── */
.flor-hero-section {
  padding: 0 100px 56px;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  background: #FDFDFC;
}

.flor-hero-grid {
  display: flex;
  align-items: center;
  gap: 56px;
  flex: 1;
  padding-top: 32px;
}

.flor-hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.flor-header-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flor-nombre {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 700;
  font-size: 56px;
  color: #404040;
  line-height: 1;
}

.flor-subnames {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 16px;
  line-height: 1.4;
}

.flor-cientifico {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  color: #404040;
}

.flor-nombre-es {
  font-family: 'Inter', sans-serif;
  color: var(--sage-500);
}

.flor-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.flor-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(56, 53, 48, 0.18);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-600);
  background: transparent;
  white-space: nowrap;
}

.flor-hero-image-wrap {
  width: 420px;
  height: 500px;
  flex-shrink: 0;
  border-radius: 32px;
  box-shadow: 0 2px 32px rgba(104, 104, 104, 0.12);
  background: var(--ink-40);
  perspective: 1000px;
  cursor: pointer;
}

.flor-flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 32px;
}

.flor-hero-image-wrap:hover .flor-flip-card:not(.no-flip),
.flor-flip-card.flipped {
  transform: rotateY(180deg);
}

.flor-flip-front,
.flor-flip-back {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flor-flip-back {
  transform: rotateY(180deg);
}

.flor-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flor-hero-img-back {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flor-hero-right {
  flex: 1;
  min-width: 0;
}

.flor-emocion-intro {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #404040;
  line-height: 1.56;
}

/* ── Flor action bar ──────────────────────────────────────────── */
.flor-action-bar {
  display: flex;
  align-items: center;
  padding: 16px 32px;
  gap: 16px;
  position: sticky;
  top: 52px;
  z-index: 50;
  margin-top: 52px;
  background: rgba(253, 253, 252, 0.88);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav--hidden ~ .flor-action-bar {
  top: 0;
}

.flor-bar-col {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.flor-bar-right { justify-content: flex-end; }

.flor-bar-center {
  flex: 1;
  text-align: center;
  overflow: hidden;
}

.flor-bar-nombre {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 700;
  font-size: 22px;
  color: #404040;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  display: block;
}

.flor-action-bar.nombre-visible .flor-bar-nombre {
  opacity: 1;
  transform: translateY(0);
}

.flor-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ink-40);
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #151411;
  cursor: pointer;
  transition: background var(--transition);
}

.flor-back-btn:hover { background: var(--border); }

.flor-ficha-btn {
  background: var(--ink-40);
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-800);
  cursor: pointer;
  transition: background var(--transition);
}

.flor-ficha-btn:hover { background: var(--border); }

/* ── Content section ──────────────────────────────────────────── */
.flor-content-section {
  padding: 56px 100px 128px;
  display: flex;
  flex-direction: column;
  gap: 108px;
}

.flor-descripcion-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
}

.section-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.section-label-text {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--sage-500);
}

/* ── Info button ──────────────────────────────────────────────── */
.desc-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--sage-500);
  border-radius: 50%;
  transition: color 0.2s, opacity 0.2s;
  line-height: 0;
}
.desc-info-btn:hover,
.desc-info-btn.active {
  opacity: 0.7;
}

/* ── Descripción tooltip ──────────────────────────────────────── */
.desc-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 200;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px 28px;
  width: min(660px, 90vw);
  animation: tooltipIn 0.22s cubic-bezier(0.34, 1.1, 0.64, 1);
}
.desc-tooltip.open {
  display: block;
}
.desc-tooltip-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-700, #4a4238);
  margin: 0;
}
@keyframes tooltipIn {
  from { opacity: 0; transform: scale(0.97) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.flor-descripcion-large {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 300;
  font-size: 42px;
  line-height: 1.32;
  max-width: 860px;
}

/* ── Scroll text reveal ──────────────────────────────────────── */
/* Variables: initial-opacity · duration */
.desc-word {
  display: inline;
  color: rgba(57, 50, 42, 0.15);   /* initial-opacity: 0.15 */
  transition: color 0.2s ease;     /* duration per word */
}
.desc-word.visible {
  color: var(--ink-800);
}

/* DEFECTO / VIRTUD */
.flor-dv-grid {
  display: flex;
  gap: 56px;
  padding: 160px 0;
  align-items: flex-start;
}

.flor-defecto-col,
.flor-virtud-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.dv-title {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 700;
  font-size: 46px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  line-height: 1;
  padding-bottom: 4px;
  border-bottom: 1px solid;
}

.dv-defecto { color: #e48280; border-color: #e48280; }
.dv-virtud  { color: var(--sage-500); border-color: var(--sage-500); }

.dv-text {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--ink-800);
  line-height: 1.56;
}

/* Indicaciones panel */
.flor-indicaciones-panel {
  background: #f5f3f0;
  border-radius: 28px;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 0;
}

.indicaciones-panel-title {
  width: 100%;
}

.indicaciones-panel-title h3 {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--sage-500);
  line-height: 1.25;
}

.flor-indicaciones-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 56px;
  padding: 0;
}

.flor-indicaciones-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-700);
  line-height: 1.5;
}

.flor-indicaciones-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* La planta */
.flor-planta-block {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 0;
}

.planta-text-col {
  width: 680px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.planta-heading {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--sage-500);
  line-height: 1.32;
}

.planta-desc {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--ink-800);
  line-height: 1.56;
}

.planta-image-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.planta-img {
  width: 460px;
  max-width: 100%;
  height: 420px;
  object-fit: contain;
  padding: 24px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  cursor: zoom-in;
}

/* ── Planta lightbox ────────────────────────────────────────── */
.planta-lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(20, 16, 10, 0.6);
  backdrop-filter: blur(12px) saturate(0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.planta-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.planta-lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  transform: scale(0.94);
  transition: transform 0.32s cubic-bezier(0.34, 1.15, 0.64, 1);
}
.planta-lightbox.open .planta-lightbox-img {
  transform: scale(1);
}
.planta-lightbox-close {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: none;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease;
}
.planta-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Historia section ─────────────────────────────────────────── */
.flor-historia-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 56px 100px;
  overflow: hidden;
  isolation: isolate;
  background: #f5f0e8;
}

.flor-historia-section::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: url('../images/image-back-history.png') center / cover no-repeat;
  filter: blur(2px);
  opacity: 0.55;
  z-index: -1;
}

.historia-bg { display: none; }

.historia-card {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 33px;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.historia-heading {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--sage-500);
  line-height: 1.32;
}

.historia-text {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #5a5047;
  line-height: 1.56;
}

/* ── Combinaciones section ────────────────────────────────────── */
.flor-combinaciones-section {
  padding: 80px 100px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.combinaciones-heading {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--sage-500);
  text-align: center;
}

.combinaciones-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.comb-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
  cursor: pointer;
  flex: 0 1 280px;
}

.comb-card:hover .comb-image {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.comb-card:hover .comb-image img {
  transform: scale(1.04);
}

.comb-image {
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink-40);
  box-shadow: none;
  transition: box-shadow 0.4s ease;
}

.comb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.comb-nombre {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 400;
  font-size: 26px;
  color: #2a1a1d;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.comb-razon {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #645757;
  line-height: 1.56;
}
/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .gallery-wrapper          { padding: 0 40px 48px; }
  .footer-inner             { padding: 0 40px 48px; }
  .search-wrap              { width: 280px; }

  /* ficha */
  .flor-hero-section        { padding: 0 56px 48px; }
  .flor-action-bar          { padding: 12px 56px; }
  .flor-content-section     { padding: 48px 56px 80px; gap: 80px; }
  .flor-historia-section    { padding: 48px 56px; }
  .flor-combinaciones-section { padding: 56px 56px 80px; }
  .flor-hero-image-wrap     { width: 340px; height: 400px; }
  .flor-descripcion-large   { font-size: 34px; }
}

@media (max-width: 900px) {
  .hero-card {
    height: auto;
    min-height: 420px;
    padding: 40px 32px;
    border-radius: 24px 24px 56px 56px;
  }
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .hero-title  { font-size: clamp(48px, 10vw, 80px); letter-spacing: -0.04em; }
  .hero-panel  { max-width: 100%; }
  .hero-stats  { gap: 24px; }

  .gallery-wrapper { padding: 0 24px 40px; }
  .footer-inner    { padding: 0 24px 40px; }

  /* ficha */
  .flor-hero-section        { padding: 0 24px 40px; }
  .flor-action-bar          { padding: 12px 20px; }
  .flor-bar-col             { width: 110px; }
  .flor-hero-grid           { flex-direction: column; gap: 32px; align-items: flex-start; }
  .flor-hero-image-wrap     { width: 100%; height: 320px; }
  .flor-content-section     { padding: 40px 24px 64px; gap: 48px; }
  .flor-dv-grid             { flex-direction: column; gap: 32px; }
  .flor-indicaciones-panel  { padding: 32px 28px; gap: 28px; }
  .flor-indicaciones-list   { grid-template-columns: 1fr; }
  .indicaciones-panel-title h3 { font-size: 26px; }
  .flor-planta-block        { flex-direction: column; gap: 32px; }
  .planta-text-col          { width: 100%; }
  .planta-img               { width: 100%; height: 280px; }
  .flor-historia-section    { padding: 40px 24px; }
  .flor-combinaciones-section { padding: 40px 24px 64px; }
}

@media (max-width: 640px) {
  .site-nav            { padding: 0 12px; }
  .nav-col             { width: 100px; }
  .nav-center          { font-size: 12px; }

  .hero-wrapper { padding: 0 12px 20px; }
  .hero-card    { padding: 28px 20px; border-radius: 20px 20px 40px 40px; min-height: 360px; }
  .hero-title   { font-size: 52px; }
  .hero-desc    { font-size: 15px; }
  .hero-panel   { padding: 20px; }

  .gallery-wrapper     { padding: 0 16px 32px; gap: 20px; }
  .controls-row        { flex-wrap: wrap; gap: 8px; }
  .search-wrap         { flex: 0 0 100%; width: 100%; }
  .controls-meta       { flex: 0 0 100%; flex-shrink: 0; justify-content: space-between; }
  .flowers-grid        { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

  .footer-inner        { padding: 0 16px 32px; gap: 32px; }
  .footer-disclaimer-text { font-size: 13px; }
  .footer-bottom       { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links        { gap: 12px; }

  /* ficha */
  .flor-nombre              { font-size: 40px; }
  .flor-descripcion-large   { font-size: 28px; }
  .dv-title                 { font-size: 32px; }
  .flor-bar-col             { width: 80px; }
  .combinaciones-grid       { grid-template-columns: 1fr; }
  .rr-components-grid       { grid-template-columns: 1fr; }
  .rr-presentations-grid    { grid-template-columns: 1fr 1fr; }
  .about-phases             { grid-template-columns: 1fr; }
  .about-hero-card          { padding: 40px 32px; }
  .about-body               { padding: 40px 24px; }
  .legal-hero               { padding: 32px 24px 20px; }
  .legal-body               { padding: 32px 24px 64px; }
}

/* ══════════════════════════════════════════════════════════════
   FLOATING MENU
══════════════════════════════════════════════════════════════ */

.site-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 6, 2, 0);
  pointer-events: none;
  transition: background 0.35s ease;
}
.site-menu-overlay.open {
  background: rgba(10, 6, 2, 0.35);
  pointer-events: all;
}

.site-menu-panel {
  position: absolute;
  top: 16px;
  left: 16px;
  bottom: 16px;
  width: 580px;
  max-width: calc(100vw - 32px);
  border-radius: 28px;
  background: linear-gradient(148deg, #F8CC5A 0%, #F3A84E 38%, #E87B4A 68%, #F5B860 100%);
  display: flex;
  flex-direction: column;
  padding: 24px 48px 56px;
  overflow: hidden;
  /* clip-path parte de un círculo de radio 0 en el origen del botón */
  clip-path: circle(0% at var(--ox, 28px) var(--oy, 28px));
  transition: clip-path 0.62s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: clip-path;
}
.site-menu-overlay.open .site-menu-panel {
  clip-path: circle(160% at var(--ox, 28px) var(--oy, 28px));
}

.menu-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.menu-close-btn:hover { background: rgba(255, 255, 255, 0.42); }

.menu-nav {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.menu-nav:hover .menu-nav-item {
  opacity: 0.38;
}
.menu-nav-item {
  font-family: 'Averia Serif Libre', serif;
  font-size: clamp(30px, 4.2vw, 42px);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
  opacity: 1;
  transition: opacity 0.18s ease;
  display: block;
  padding: 4px 0;
}
.menu-nav-item:hover,
.menu-nav-item.active {
  opacity: 1 !important;
}

@media (max-width: 640px) {
  .site-menu-panel { padding: 20px 24px 40px; }
  .menu-nav-item   { font-size: clamp(20px, 5.5vw, 26px); }
}

/* ══════════════════════════════════════════════════════════════
   GRUPOS PAGE
══════════════════════════════════════════════════════════════ */

.grupos-hero {
  padding: 100px 32px 24px;
  max-width: 900px;
}

.grupos-hero h1 {
  font-family: 'Averia Serif Libre', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.1;
  margin-bottom: 12px;
}

.grupos-hero p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--ink-600);
  max-width: 580px;
  line-height: 1.65;
}

.grupos-body {
  padding: 0 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.grupo-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.grupo-meta {}

.grupo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(56, 53, 48, 0.18);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-600);
  margin-bottom: 16px;
}

.grupo-nombre {
  font-family: 'Averia Serif Libre', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 10px;
  line-height: 1.2;
}

.grupo-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.65;
}

.grupo-count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-600);
  margin-top: 12px;
  opacity: 0.7;
}

.grupo-flores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.grupo-flor-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.grupo-flor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.grupo-flor-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.grupo-flor-info {
  padding: 10px 12px 12px;
}

.grupo-flor-nombre {
  font-family: 'Averia Serif Libre', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.2;
  margin-bottom: 3px;
}

.grupo-flor-keyword {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--ink-600);
}

@media (max-width: 900px) {
  .grupo-section { grid-template-columns: 1fr; gap: 24px; }
  .grupos-hero   { padding: 72px 24px 16px; }
  .grupos-body   { padding: 0 24px 60px; }
}

/* ══════════════════════════════════════════════════════════════
   GLOSARIO PAGE
══════════════════════════════════════════════════════════════ */

.glosario-hero {
  padding: 100px 32px 24px;
}

.glosario-hero h1 {
  font-family: 'Averia Serif Libre', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.1;
  margin-bottom: 12px;
}

.glosario-hero p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--ink-600);
  max-width: 560px;
  line-height: 1.65;
}

.glosario-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 32px 80px;
}

.glosario-letra {
  font-family: 'Averia Serif Libre', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--sage-500);
  opacity: 0.4;
  padding: 32px 0 8px;
  border-top: 2px solid var(--border);
  margin-top: 32px;
  line-height: 1;
}

.glosario-letra:first-child { border-top: none; margin-top: 0; }

.termino-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.termino-nombre {
  font-family: 'Averia Serif Libre', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 6px;
}

.termino-tipo {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-500);
  margin-bottom: 8px;
}

.termino-def {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.7;
}

.termino-see {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--sage-500);
  margin-top: 8px;
  font-style: italic;
}

@media (max-width: 640px) {
  .glosario-hero { padding: 72px 24px 16px; }
  .glosario-body { padding: 8px 24px 60px; }
}

/* ══════════════════════════════════════════════════════════════
   RESCUE REMEDY PAGE
══════════════════════════════════════════════════════════════ */

.rr-hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #dde9d7 0%, #b8d4ae 45%, #8ab88a 100%);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.rr-hero-monogram {
  font-family: 'Averia Serif Libre', serif;
  font-size: 80px;
  font-weight: 700;
  color: rgba(61, 92, 56, 0.25);
  letter-spacing: -3px;
  line-height: 1;
  user-select: none;
}

.rr-hero-sub-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(61, 92, 56, 0.45);
}

.rr-formula-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.rr-formula-header {
  margin-bottom: 36px;
}

.rr-formula-header h2 {
  font-family: 'Averia Serif Libre', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 8px;
}

.rr-formula-header p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink-600);
  max-width: 520px;
  line-height: 1.6;
}

.rr-components-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.rr-component-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.rr-component-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.rr-component-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.rr-component-info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rr-component-role {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--sage-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.rr-component-nombre {
  font-family: 'Averia Serif Libre', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.2;
}

.rr-component-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-600);
  line-height: 1.45;
  margin-top: 5px;
}

.rr-presentations-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.rr-presentations-section h2 {
  font-family: 'Averia Serif Libre', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 8px;
}

.rr-presentations-section > p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink-600);
  margin-bottom: 32px;
}

.rr-presentations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.rr-pres-card {
  background: var(--ink-40);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rr-pres-icon { font-size: 26px; }

.rr-pres-nombre {
  font-family: 'Averia Serif Libre', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-800);
}

.rr-pres-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════════════════════ */

.about-hero {
  padding: 52px 32px 32px;
}

.about-hero-card {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 56px 64px;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24,15,38,0.7) 0%, rgba(24,15,38,0.2) 60%, transparent 100%);
}

.about-hero-content {
  position: relative;
  z-index: 1;
}

.about-hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}

.about-hero-title {
  font-family: 'Averia Serif Libre', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.about-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.65;
}

.about-body {
  max-width: 840px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.about-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.about-section:first-child { border-top: none; padding-top: 0; }

.about-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-500);
  margin-bottom: 18px;
  display: block;
}

.about-section h2 {
  font-family: 'Averia Serif Libre', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-section p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--ink-600);
  line-height: 1.75;
  margin-bottom: 16px;
}

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

.about-phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-phase-card {
  background: var(--ink-40);
  border-radius: 20px;
  padding: 28px;
}

.about-phase-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-500);
  background: #e4eedf;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.about-phase-card h3 {
  font-family: 'Averia Serif Libre', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 8px;
}

.about-phase-card p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.6;
  margin-bottom: 0;
}

.fuentes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.fuente-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--ink-40);
  border-radius: 16px;
}

.fuente-num {
  font-family: 'Averia Serif Libre', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--sage-500);
  flex-shrink: 0;
  min-width: 28px;
  line-height: 1.2;
}

.fuente-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: 4px;
}

.fuente-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.5;
}

.fuente-url {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--sage-500);
  display: inline-block;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES
══════════════════════════════════════════════════════════════ */

.legal-hero {
  padding: 48px 32px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-hero h1 {
  font-family: 'Averia Serif Libre', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.15;
  margin-bottom: 10px;
}

.legal-hero p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink-600);
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.legal-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.legal-section:first-child { border-top: none; padding-top: 0; }

.legal-section h2 {
  font-family: 'Averia Serif Libre', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 14px;
}

.legal-section p,
.legal-section li {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-section ul { padding-left: 20px; }

.legal-section a {
  color: var(--sage-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Ficha Rápida — Tarjeta flotante ────────────────────────── */
.fr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, 0.28);
  backdrop-filter: blur(10px) saturate(0.85);
  -webkit-backdrop-filter: blur(10px) saturate(0.85);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px 24px;
  box-sizing: border-box;
}
.fr-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.fr-panel {
  position: relative;
  width: 460px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 12px 32px rgba(0,0,0,0.14),
    0 32px 64px rgba(0,0,0,0.1);
  overflow-y: auto;
  z-index: 401;
  display: flex;
  flex-direction: column;
  transform: translateX(32px) translateY(-8px);
  opacity: 0;
  transition:
    transform 0.36s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity   0.28s ease;
  scroll-behavior: smooth;
}
.fr-overlay.open .fr-panel {
  transform: translateX(0) translateY(0);
  opacity: 1;
}
.fr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 1;
}
.fr-header-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text);
  text-transform: uppercase;
}
.fr-header-icon { font-size: 14px; }

.fr-close-btn {
  background: rgba(0,0,0,0.05);
  border: none;
  cursor: pointer;
  color: var(--text-mid);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
  flex-shrink: 0;
}
.fr-close-btn:hover { background: rgba(0,0,0,0.1); }

.fr-body { padding: 0 24px 36px; flex: 1; }

.fr-divider {
  height: 1px;
  background: rgba(0,0,0,0.07);
  margin: 0;
}
.fr-section { padding: 20px 0; }
.fr-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  padding: 20px 0;
}
.fr-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--sage-500);
  text-transform: uppercase;
  margin-bottom: 7px;
}
.fr-value-large {
  font-family: 'Averia Serif Libre', serif;
  font-size: 27px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin: 0;
}
.fr-value-large.fr-defecto {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.65;
}
.fr-value {
  font-family: 'Averia Serif Libre', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.fr-perfil-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}
.fr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}
.fr-chip {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--ink-600);
  background: transparent;
  border: 1px solid rgba(56, 53, 48, 0.18);
  border-radius: 100px;
  padding: 4px 13px;
  line-height: 1.4;
}
.fr-dosif-box {
  background: var(--cream);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 4px;
}
.fr-dosif-text {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 640px) {
  .fr-overlay { padding: 0; align-items: flex-end; }
  .fr-panel {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(40px);
  }
  .fr-overlay.open .fr-panel { transform: translateY(0); }
  .fr-header { border-radius: 20px 20px 0 0; }
  .fr-body { padding: 0 20px 32px; }
}
