:root {
  /* Paleta */
  --black: #0f0f10;
  --gold: #c8a96a;
  --pink: #e8b4b8;
  --nude: #f4e1d2;
  --ivory: #faf6f0;

  /* UI */
  --ink: rgba(15, 15, 16, 0.92);
  --muted: rgba(15, 15, 16, 0.62);
  --panel: rgba(250, 246, 240, 0.82);
  --panel2: rgba(255, 255, 255, 0.7);
  --stroke: rgba(15, 15, 16, 0.12);
  --shadow: 0 16px 50px rgba(15, 15, 16, 0.18);
  --shadow2: 0 10px 25px rgba(15, 15, 16, 0.1);
  --radius: 22px;

  --max: 980px; /* vertical-friendly */
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      1200px 700px at 20% 0%,
      rgba(232, 180, 184, 0.28),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 85% 10%,
      rgba(200, 169, 106, 0.22),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 70% 85%,
      rgba(244, 225, 210, 0.35),
      transparent 55%
    ),
    var(--ivory);
  overflow-x: hidden;
}

.heroHeader {
  width: 100%;
  position: relative;
}

.heroBanner {
  width: 100%;
  display: block;
}

/* barra de botones */
.heroNav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

/* LADOS con movimiento (decorativos) */
.side-rails::before,
.side-rails::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(14px, 2.8vw, 34px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  filter: blur(0.2px);
  background: linear-gradient(
    180deg,
    rgba(200, 169, 106, 0.95),
    rgba(232, 180, 184, 0.9),
    rgba(244, 225, 210, 0.9),
    rgba(200, 169, 106, 0.92)
  );
  background-size: 100% 220%;
  animation: railFlow 10s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(15, 15, 16, 0.06) inset;
}

.side-rails::before {
  left: 0;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

.side-rails::after {
  right: 0;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

@keyframes railFlow {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Contenedor vertical */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 18px 80px;
}

/* Top card */
.topCard {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),
    rgba(250, 246, 240, 0.75)
  );
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px;
  background:
    radial-gradient(
      900px 300px at 0% 0%,
      rgba(232, 180, 184, 0.2),
      transparent 55%
    ),
    radial-gradient(
      700px 260px at 90% 0%,
      rgba(200, 169, 106, 0.2),
      transparent 55%
    ),
    rgba(250, 246, 240, 0.3);
  border-bottom: 1px solid rgba(15, 15, 16, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}

.brand h1 {
  font-family: "Playfair Display", serif;
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--black);
  line-height: 1.1;
}

.brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chip {
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 16, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(15, 15, 16, 0.82);
  text-decoration: none;
  transition:
    transform 0.12s ease,
    background 0.12s ease;
  white-space: nowrap;
}

.chip:hover {
  transform: translateY(-1px);
  background: rgba(244, 225, 210, 0.65);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  padding: 18px;
}

.heroLeft {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 15, 16, 0.1);
  box-shadow: var(--shadow2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(244, 225, 210, 0.7);
  border: 1px solid rgba(15, 15, 16, 0.1);
  color: rgba(15, 15, 16, 0.82);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.22);
}

.headline {
  margin: 14px 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 40px;
  line-height: 1.05;
  color: var(--black);
  letter-spacing: -0.02em;
}

.headline em {
  font-style: normal;
  color: rgba(15, 15, 16, 0.82);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(200, 169, 106, 0.65);
}

.subhead {
  margin-top: 20px;
  margin-bottom: 16px;
  font-size: 15px;
  color: rgba(15, 15, 16, 0.72);
  max-width: 66ch;
  line-height: 1.8;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
  width: 100%;
  justify-content: center;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.85);
  border: 1px solid rgba(15, 15, 16, 0.1);
  font-size: 13px;
  color: rgba(15, 15, 16, 0.78);
}

.pill b {
  color: rgba(15, 15, 16, 0.88);
}

.ctaRow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
  max-width: 600px;
  margin: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 15, 16, 0.14);
  background: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 12px;
  color: rgba(15, 15, 16, 0.88);
  text-decoration: none;
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
  box-shadow: 0 10px 18px rgba(15, 15, 16, 0.1);
}

.ctaRow .btn {
  flex: 1;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.99);
}

.btnPrimary {
  background: linear-gradient(
    135deg,
    rgba(200, 169, 106, 0.95),
    rgba(232, 180, 184, 0.9)
  );
  border-color: rgba(15, 15, 16, 0.1);
  color: rgba(15, 15, 16, 0.92);
}

/* Hero right: photo + mini cards */
.heroRight {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.heroVisual {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 15, 16, 0.12);
  overflow: hidden;
  box-shadow: var(--shadow2);
  min-height: 360px;
  position: relative;
}

.heroImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.86);
  border: 1px solid rgba(15, 15, 16, 0.12);
  color: rgba(15, 15, 16, 0.85);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.miniGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.miniCard {
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 15, 16, 0.1);
  box-shadow: 0 12px 20px rgba(15, 15, 16, 0.08);
}

.miniCard small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.miniCard b {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(15, 15, 16, 0.88);
}

/* Sections */
section {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 15, 16, 0.1);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.secHead {
  padding: 16px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  background:
    radial-gradient(
      900px 280px at 0% 0%,
      rgba(244, 225, 210, 0.55),
      transparent 55%
    ),
    radial-gradient(
      700px 260px at 100% 0%,
      rgba(232, 180, 184, 0.35),
      transparent 55%
    ),
    rgba(250, 246, 240, 0.28);
  border-bottom: 1px solid rgba(15, 15, 16, 0.08);
}

.secHead h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--black);
}

.secHead p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.secBody {
  padding: 16px 18px 18px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.miniHighlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.miniPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 225, 210, 0.9);
  border: 1px solid rgba(15, 15, 16, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(15, 15, 16, 0.82);
}

/* Listas elegantes */
.niceList {
  padding-left: 18px;
  margin: 24px 0 24px;
}

.niceList li {
  margin-bottom: 8px;
  color: rgba(15, 15, 16, 0.74);
  font-size: 14px;
  line-height: 1.7;
}

.card {
  background: rgba(250, 246, 240, 0.78);
  border: 1px solid rgba(15, 15, 16, 0.1);
  border-radius: 18px;
  padding: 20px;
  height: 100%;
}

.card h3 {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  line-height: 1.2;
  color: var(--black);
  font-weight: 600;
}

.card h4 {
  margin: 38px 0px 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.card p {
  margin: 0 0 14px;
  color: rgba(15, 15, 16, 0.74);
  font-size: 14px;
  line-height: 1.75;
}

.bioCard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bioLead {
  font-size: 15px;
  line-height: 1.8;
}

.bioBlock + .bioBlock {
  margin-top: 10px;
}

/* Services items */
.serviceCard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.serviceTitle {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.serviceList {
  margin: 0;
  padding-left: 18px;
}

.serviceList li {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(15, 15, 16, 0.75);
}

.card .serviceNote {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(15, 15, 16, 0.55);
  font-style: italic;
}

/* Gallery items */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.tile {
  grid-column: span 4;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 16, 0.12);
  background: rgba(15, 15, 16, 0.06);
  position: relative;
  min-height: 170px;
  box-shadow: 0 10px 20px rgba(15, 15, 16, 0.1);
}

.tile.big {
  grid-column: span 8;
  min-height: 260px;
}

.tile .cap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.86);
  border: 1px solid rgba(15, 15, 16, 0.1);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 15, 16, 0.8);
  backdrop-filter: blur(10px);
}

.img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

/* Video embed */
.videoWrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 16, 0.12);
  background: rgba(15, 15, 16, 0.04);
  box-shadow: 0 10px 20px rgba(15, 15, 16, 0.1);
}

.videoWrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

/* Social */
.socialRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.social {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 15, 16, 0.12);
  text-decoration: none;
  color: rgba(15, 15, 16, 0.86);
  box-shadow: 0 10px 18px rgba(15, 15, 16, 0.08);
}

.social span {
  color: var(--muted);
  font-size: 12px;
}

.social b {
  font-size: 13px;
}

.arrow {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(200, 169, 106, 0.35),
    rgba(232, 180, 184, 0.28)
  );
  border: 1px solid rgba(15, 15, 16, 0.1);
}

/* Footer */
footer {
  margin-top: 16px;
  padding: 14px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* Logos (SVG sizing) */
.logoMark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 18px;
  background: rgba(250, 246, 240, 0.85);
  border: 1px solid rgba(15, 15, 16, 0.1);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 16px rgba(15, 15, 16, 0.1);
  overflow: hidden;
}

.logoMark svg {
  width: 52px;
  height: 52px;
  display: block;
}

/* ===== Portafolio unificado ===== */
.pfChips {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.pfChip {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.pfThumb {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(15, 15, 16, 0.18);
  box-shadow: 0 12px 20px rgba(15, 15, 16, 0.12);
  position: relative;
  overflow: hidden;
}

.pfThumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.14));
}

.pfLabel {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 15, 16, 0.7);
}

.pfChip.is-active {
  transform: translateY(-2px) scale(1.08);
}

.pfChip.is-active .pfThumb {
  width: 98px;
  height: 98px;
  border-color: rgba(200, 169, 106, 0.85);
  box-shadow: 0 18px 34px rgba(15, 15, 16, 0.18);
}

.pfChip.is-active .pfLabel {
  color: rgba(15, 15, 16, 0.88);
}

.pfPanels {
  margin-top: 8px;
}

.pfPanel {
  animation: pfFade 0.18s ease;
}

@keyframes pfFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pfIntro {
  text-align: center;
  margin-bottom: 14px;
}

.pfIntro h3 {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--black);
}

.pfIntro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.pfCollageWrap {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 16, 0.1);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 26px rgba(15, 15, 16, 0.1);
}

.pfCollageImage {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 640px) {
  .pfThumb {
    width: 72px;
    height: 72px;
  }

  .pfChip.is-active .pfThumb {
    width: 88px;
    height: 88px;
  }

  .pfIntro h3 {
    font-size: 20px;
  }
}

.socialGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.socialCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  text-align: center;
  padding: 24px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 15, 16, 0.12);
  box-shadow: 0 10px 18px rgba(15, 15, 16, 0.08);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  color: rgba(15, 15, 16, 0.88);
}

.socialCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(15, 15, 16, 0.12);
}

.socialIconWrap {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(250, 246, 240, 0.9);
  border: 1px solid rgba(15, 15, 16, 0.1);
}

.socialIcon {
  width: 30px;
  height: 30px;
  color: var(--black);
}

.socialText strong {
  display: block;
  font-size: 15px;
  color: var(--black);
  margin-bottom: 4px;
}

.socialText span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.qrSection {
  margin-top: 22px;
  text-align: center;
  padding: 22px 18px 10px;
}

.qrSection h3 {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--black);
}

.qrSection p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.qrImage {
  width: 220px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  background: white;
  padding: 10px;
  border: 1px solid rgba(15, 15, 16, 0.1);
  box-shadow: 0 10px 20px rgba(15, 15, 16, 0.1);
}

@media (max-width: 980px) {
  .socialGrid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .miniGrid {
    grid-template-columns: 1fr 1fr;
  }

  .grid2 {
    grid-template-columns: 1fr;
  }

  .grid3 {
    grid-template-columns: 1fr;
  }

  .headline {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .miniGrid {
    grid-template-columns: 1fr;
  }

  .tile {
    grid-column: span 12;
  }

  .tile.big {
    grid-column: span 12;
  }
}

/* Print/PDF */
@media print {
  .side-rails::before,
  .side-rails::after {
    animation: none !important;
  }

  .chip {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .topCard,
  section {
    box-shadow: none !important;
  }

  .btn {
    box-shadow: none !important;
  }

  a {
    text-decoration: none;
  }
}

.page-break {
  page-break-before: always;
}
