/* ==========================================================================
   VDN Brands — components.css
   Piezas compartidas por todas las páginas: encabezado, menú, botones,
   etiquetas, tarjetas, llamados a la acción y pie de página.
   ========================================================================== */

/* ---------- Encabezado ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--ink);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--paper);
  text-decoration: none;
}

.brand__mark {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.brand__word {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 27px;
  line-height: 1;
}

.brand__dot {
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Navegación principal ---------- */
.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #121214;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav__link:hover {
  background: rgba(245, 243, 238, 0.08);
}

.main-nav__link[aria-current="page"],
.main-nav__toggle.is-current {
  color: var(--accent);
}

.main-nav__toggle {
  padding-right: 14px;
}

.main-nav__chevron {
  display: inline-flex;
  transition: transform 0.3s ease;
}

/* Submenú de Nosotros */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: -8px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-snap), visibility 0s linear 0.3s;
}

.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-snap), visibility 0s;
}

.has-dropdown.is-open .main-nav__chevron {
  transform: rotate(180deg);
}

/* Si el navegador no ejecuta JavaScript, el submenú abre con el mouse o el teclado */
@media (scripting: none) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
}

.dropdown__list {
  width: 360px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--paper);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown__item:hover {
  background: rgba(245, 243, 238, 0.06);
}

.dropdown__num {
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.dropdown__item[aria-current="page"] .dropdown__num {
  color: var(--accent);
}

.dropdown__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown__title {
  font-size: 16px;
  font-weight: 600;
}

.dropdown__desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- Acciones del encabezado y menú móvil ---------- */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle,
.mobile-menu__close {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
}

.menu-toggle {
  display: none;
}

@media (max-width: 960px) {
  .main-nav,
  .site-header__actions .site-header__cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  background: var(--ink);
  animation: fade-up 0.35s ease both;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-block: 18px 32px;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav__link {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--paper);
  text-decoration: none;
}

.mobile-nav__label {
  margin-top: 8px;
}

.mobile-nav__sub {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 12px 16px;
  border-left: 1px solid rgba(245, 243, 238, 0.15);
}

.mobile-nav__sublink {
  font-size: 20px;
  color: var(--paper);
  text-decoration: none;
}

.mobile-nav__link[aria-current="page"],
.mobile-nav__sublink[aria-current="page"] {
  color: var(--accent);
}

.mobile-menu__cta {
  margin-top: auto;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-snap), box-shadow 0.3s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  padding: 0 8px 0 24px;
  background: var(--accent);
  color: var(--ink);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 255, 63, 0.22);
}

.btn__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  transition: transform 0.4s var(--ease-snap);
}

.btn:hover .btn__icon {
  transform: rotate(45deg);
}

.btn--ghost {
  border-color: rgba(245, 243, 238, 0.25);
  color: var(--paper);
  font-weight: 500;
}

.btn--ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--outline-dark {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline-dark:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--sm {
  min-height: 48px;
  gap: 12px;
  font-size: 15px;
}

.btn--sm.btn--primary {
  padding: 0 6px 0 20px;
}

.btn--sm .btn__icon {
  width: 36px;
  height: 36px;
}

.btn--md {
  min-height: 52px;
  padding: 0 24px;
  font-size: 15px;
}

.btn--lg {
  min-height: 60px;
  font-size: 17px;
}

.btn--lg.btn--primary {
  padding: 0 8px 0 28px;
}

.btn--lg .btn__icon {
  width: 46px;
  height: 46px;
}

.btn--block {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Chips y etiquetas ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.chip:hover,
.chip[aria-current="page"] {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.chip--lg {
  min-height: 52px;
  padding: 0 22px;
  font-size: 16px;
}

.chip__num {
  font-family: var(--font-mono);
  font-size: 12px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid rgba(245, 243, 238, 0.2);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-2);
}

.tag--filled {
  border-color: transparent;
  background: var(--ink-4);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

/* ---------- Ruta de navegación ---------- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumb [aria-current="page"] {
  color: var(--paper);
}

/* ---------- Cabecera de página y de sección ---------- */
.page-hero {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 44px);
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(56px, 6vw, 96px);
}

.indent {
  padding-left: 10%;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.section-head__titles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-head__text {
  max-width: 420px;
}

/* ---------- Enlaces con flecha ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow--underline {
  border-bottom: 1px solid rgba(245, 243, 238, 0.3);
}

.link-arrow--accent {
  color: var(--accent);
}

.link-arrow--accent:hover {
  color: var(--paper);
}

.link-arrow svg {
  transition: transform 0.4s var(--ease-snap);
}

.link-arrow:hover svg {
  transform: rotate(45deg);
}

/* ---------- Tarjetas ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
}

.lift {
  transition: transform 0.45s var(--ease-out), border-color 0.3s ease, background-color 0.3s ease;
}

.lift:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 255, 63, 0.55);
}

.icon-circle {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

/* Barrido lima al pasar el mouse (filas y enlaces grandes) */
.sweep {
  position: relative;
  isolation: isolate;
  transition: color 0.35s ease;
}

.sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease-in-out);
}

.sweep:hover,
.sweep:hover .sweep__muted {
  color: var(--ink);
}

.sweep:hover::before {
  transform: scaleY(1);
}

.sweep .sweep__icon {
  transition: transform 0.4s var(--ease-snap);
}

.sweep:hover .sweep__icon {
  transform: rotate(45deg);
}

/* ---------- Imágenes de ejemplo (reemplazar por fotos reales) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ink-3);
}

.media__art {
  position: absolute;
  inset: 0;
  transition: transform 1s var(--ease-out);
}

.media__label {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 11, 12, 0.75);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.media__label--bottom {
  top: auto;
  bottom: 18px;
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Tarjetas de proyecto ---------- */
.work-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--paper);
  text-decoration: none;
}

.work-card .media {
  aspect-ratio: 4 / 3;
}

.work-card--tall .media {
  aspect-ratio: 4 / 5;
}

.work-card:hover .media__art {
  transform: scale(1.05);
}

.work-card__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.work-card__titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-card__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.work-card__meta {
  font-size: 15px;
  color: var(--muted);
}

.work-card__tags {
  justify-content: flex-end;
  gap: 6px;
}

.work-card__view {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

.work-card:hover .work-card__view,
.work-card:focus-visible .work-card__view {
  opacity: 1;
  transform: none;
}

/* ---------- Llamado a la acción ---------- */
.cta-band {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: clamp(36px, 6vw, 88px);
  border-radius: var(--radius-xl);
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
}

.cta-band .eyebrow {
  color: var(--ink);
}

.cta-band__title {
  font-size: clamp(44px, 8vw, 132px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.cta-band__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-band__text {
  max-width: 480px;
  font-size: 20px;
  line-height: 1.5;
}

.cta-band__icon {
  flex-shrink: 0;
  width: clamp(72px, 7vw, 104px);
  height: clamp(72px, 7vw, 104px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  transition: transform 0.4s var(--ease-snap);
}

.cta-band:hover .cta-band__icon {
  transform: rotate(45deg);
}

/* Variante en una fila */
.cta-band--row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: clamp(36px, 5vw, 72px);
}

.cta-band__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 780px;
}

.cta-band--row .cta-band__title {
  font-size: clamp(36px, 5.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.cta-band--row .cta-band__text {
  font-size: 19px;
}

/* ---------- Enlace a la siguiente página ---------- */
.next-link {
  display: block;
  color: var(--paper);
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.next-link__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: clamp(48px, 6vw, 88px);
}

.next-link__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.next-link__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s ease;
}

.next-link__title {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.next-link__icon {
  width: clamp(64px, 6vw, 96px);
  height: clamp(64px, 6vw, 96px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

/* ---------- Pie de página ---------- */
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 48px 32px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer__col > .eyebrow {
  margin-bottom: 6px;
}

.site-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__cta:hover {
  color: var(--accent);
}

.site-footer__cta svg {
  color: var(--accent);
  transition: transform 0.4s var(--ease-snap);
}

.site-footer__cta:hover svg {
  transform: rotate(45deg);
}

.site-footer__lead {
  max-width: 300px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.site-footer__link {
  color: var(--paper);
  font-size: 17px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__link:hover {
  color: var(--accent);
}

.site-footer__text {
  font-size: 17px;
}

.site-footer__social {
  margin-top: 10px;
}

.site-footer__wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.04em;
  padding-bottom: 0.06em;
  overflow: hidden;
  font-size: clamp(64px, 19vw, 290px);
  line-height: 0.78;
  white-space: nowrap;
}

.site-footer__wordmark-bold {
  font-weight: 800;
  letter-spacing: -0.07em;
}

.site-footer__wordmark-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s ease;
}

.to-top:hover {
  color: var(--accent);
}

/* ---------- Punto de estado ---------- */
.status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Texto con contorno ---------- */
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
}
