/* --- Variables --- */
:root {
  --bg-page: #0d0d0f;
  --sidebar-top: #1a1816;
  --sidebar-bottom: #0a0a0b;
  --bronze: #c9a227;
  --bronze-mid: #b8922a;
  --bronze-dark: #8a6f1f;
  --bronze-muted: rgba(201, 162, 39, 0.85);
  --text-sidebar: #f5f5f4;
  --text-muted-sidebar: rgba(245, 245, 244, 0.72);
  --content-text: #3f3f3a;
  --content-muted: #5c5c56;
  --pill-bg: #f5f0e6;
  --pill-border: #e8dfd0;
  --card-border: #e5e5e0;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-card: 28px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-sidebar);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-corner {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 800;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  background: rgba(13, 13, 15, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.lang-corner--desktop {
  display: none;
}

.lang-flag {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  padding: 0;
}

.lang-flag:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.12);
}

.lang-flag--active {
  box-shadow: 0 0 0 2px var(--bronze);
  background: rgba(201, 162, 39, 0.22);
}

.lang-flag__emoji {
  font-size: 1.2rem;
  line-height: 1;
  pointer-events: none;
}

.lang-flag--grow {
  width: 2.65rem;
  height: 2.65rem;
}

.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 850;
  height: 3.25rem;
  padding: 0 0.65rem 0 0.75rem;
  align-items: center;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(13, 13, 15, 0.94) 0%, rgba(13, 13, 15, 0.78) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-topbar__fill {
  flex: 1;
}

.mobile-topbar__toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-sidebar);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mobile-topbar__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-topbar__burger {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.mobile-drawer[hidden] {
  display: none !important;
}

.mobile-drawer:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 900;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.55);
  backdrop-filter: blur(4px);
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(18rem, 88vw);
  height: 100%;
  background: linear-gradient(180deg, var(--sidebar-top) 0%, var(--sidebar-bottom) 100%);
  color: var(--text-sidebar);
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  animation: mobileDrawerIn 0.22s ease-out;
}

@keyframes mobileDrawerIn {
  from {
    transform: translateX(100%);
    opacity: 0.85;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.mobile-drawer__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze-muted);
}

.mobile-drawer__close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.mobile-drawer__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mobile-drawer__action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.1);
  color: var(--bronze);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mobile-drawer__action:hover {
  background: rgba(201, 162, 39, 0.18);
}

.mobile-drawer__section {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-muted);
  margin-bottom: 0.65rem;
}

.mobile-drawer__langs {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  .lang-corner--desktop {
    display: flex;
  }
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
}

/* --- Tarjeta principal --- */
.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 3px solid #fff;
}

.sidebar {
  background: linear-gradient(180deg, var(--sidebar-top) 0%, var(--sidebar-bottom) 100%);
  padding: 2rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.profile {
  text-align: center;
}

.profile-photo-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.25rem;
}

.profile-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.35) 0%, transparent 70%);
  filter: blur(6px);
}

.profile-photo {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(201, 162, 39, 0.45);
  display: block;
}

.profile-name {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
}

.profile-role {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-muted);
  line-height: 1.5;
}

.role-sep,
.role-dot {
  color: var(--bronze);
  opacity: 0.9;
}

.profile-tagline {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-sidebar);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1508;
  text-decoration: none;
  background: linear-gradient(90deg, #e8c547 0%, #c9a227 45%, #a67c1a 100%);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(201, 162, 39, 0.45);
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta--outline {
  background: transparent;
  color: var(--bronze);
  border: 2px solid rgba(201, 162, 39, 0.65);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
}

.btn-cta--outline:hover {
  background: rgba(201, 162, 39, 0.12);
  color: #f5e6a8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.section-lead {
  margin: -0.35rem 0 1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--content-muted);
}

.link-like {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: #2563eb;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-like:hover {
  color: #1d4ed8;
}

/* --- Modal contacto --- */
.contact-modal[hidden] {
  display: none !important;
}

.contact-modal:not([hidden]) {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(6px);
}

.contact-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  color: var(--content-text);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid var(--card-border);
}

.contact-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1c1c18;
}

.contact-modal__subtitle {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--content-muted);
}

.contact-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.contact-modal__close:hover {
  background: #e5e7eb;
}

.contact-modal__alert {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.contact-modal__alert[data-kind="ok"] {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.contact-modal__alert[data-kind="err"] {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.contact-modal__step[hidden] {
  display: none !important;
}

.contact-modal__choice-btns {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.contact-choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.contact-choice-btn:hover {
  transform: translateY(-1px);
}

.contact-choice-btn--ghost {
  background: #fafaf8;
  color: #1c1c18;
  border-color: #e5e5e0;
}

.contact-choice-btn--ghost:hover {
  background: #f3f4f6;
  border-color: #d6d3d1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.contact-choice-btn--gold {
  color: #1a1508;
  border: none;
  background: linear-gradient(90deg, #e8c547 0%, #c9a227 45%, #a67c1a 100%);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
}

.contact-choice-btn--gold:hover {
  box-shadow: 0 6px 22px rgba(201, 162, 39, 0.45);
}

.contact-modal__form-lead {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--content-muted);
}

.contact-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a4238;
}

.contact-field__label .req {
  color: #b45309;
}

.contact-field__label .opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--content-muted);
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.875rem;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: #fafaf8;
  color: #1c1c18;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.contact-textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.contact-submit {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: #1a1508;
  background: linear-gradient(90deg, #e8c547 0%, #c9a227 45%, #a67c1a 100%);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.contact-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.sidebar-heading {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-align: left;
}

.service-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--bronze);
  font-size: 1rem;
}

.service-title {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.service-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted-sidebar);
}

.quote-box {
  margin: 0;
  margin-top: auto;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.quote-mark {
  display: block;
  font-size: 1.5rem;
  color: var(--bronze);
  opacity: 0.55;
  margin-bottom: 0.35rem;
  line-height: 1;
}

.quote-box p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted-sidebar);
}

/* --- Columna derecha --- */
.content {
  padding: 2rem 2rem 2.25rem;
  color: var(--content-text);
  background: #fff;
}

.section {
  margin-bottom: 1.85rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a4238;
}

.section-title i {
  font-size: 0.95rem;
  color: var(--bronze-dark);
  opacity: 0.95;
}

.prose p {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--content-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4a4238;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 999px;
}

.skill-pill i {
  font-size: 0.85rem;
  color: var(--bronze-dark);
}

/* --- Proyecto --- */
.projects-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-card {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.15rem;
  background: #fafaf8;
}

.project-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.project-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #0a0a0a;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-head-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.project-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1c18;
}

.badge-dev {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-role {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: #f5f0e6;
  color: #5c4a32;
  border: 1px solid #e8dfd0;
  line-height: 1.25;
}

.project-desc {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--content-muted);
}

.project-features {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 0.75rem;
}

.project-features li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: #5c5c56;
}

.project-features i {
  width: 1rem;
  text-align: center;
  color: var(--bronze-dark);
  font-size: 0.8rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

.project-link i {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* --- Conecta --- */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0;
  border-radius: 10px;
  transition: opacity 0.15s ease;
}

.social-link:hover {
  opacity: 0.88;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.social-linkedin .social-icon {
  background: #0a66c2;
}

.social-ig .social-icon {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-web .social-icon {
  background: #374151;
}

.social-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.social-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1c1c18;
}

.social-url {
  font-size: 0.72rem;
  color: var(--content-muted);
  word-break: break-all;
}

.social-link--projects {
  cursor: default;
  align-items: center;
}

.social-projects-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}

.social-project-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: opacity 0.15s ease;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

.social-project-link .social-url {
  word-break: break-all;
}

.social-project-link:hover {
  opacity: 0.88;
}

.qr-panel {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.qr-panel__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #fafaf8;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4a4238;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.qr-panel__open:hover {
  background: #fff;
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.12);
}

.qr-panel__open i {
  color: var(--bronze-dark);
  font-size: 0.9rem;
}

.qr-inner {
  position: relative;
  padding: 0.85rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--card-border);
}

.qrcode-host {
  display: flex;
  justify-content: center;
  align-items: center;
}

.qrcode-host img {
  display: block;
  border-radius: 8px;
}

.qr-logo-overlay {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: #0a0a0a;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- Modal compartir QR --- */
.contact-modal__dialog--qr {
  max-width: 380px;
  text-align: center;
}

.contact-modal__dialog--qr .contact-modal__head {
  text-align: left;
}

.qr-share__body {
  padding: 0 0.15rem 0.35rem;
}

.qr-share__hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--content-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.qr-share__hint i {
  color: var(--bronze-dark);
}

.qr-share__frame {
  position: relative;
  display: inline-block;
  margin: 0 auto 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.qr-share__frame .qrcode-host img {
  border-radius: 10px;
}

.qr-share__logo {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: #0a0a0a;
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.qr-share__footer {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #8a8580;
}

.qr-share__footer span {
  color: #5c5c56;
  font-weight: 600;
  word-break: break-all;
}

/* --- Footer página --- */
.page-footer {
  margin-top: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245, 245, 244, 0.55);
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 0 0.5rem;
}

.page-footer i {
  color: var(--bronze-muted);
  opacity: 0.7;
}

.page-footer p {
  margin: 0;
  max-width: 28rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .mobile-topbar {
    display: flex;
  }

  .page {
    padding-top: 4.5rem;
  }

  .card {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 2rem 1.5rem;
  }

  .content {
    padding: 1.75rem 1.5rem 2rem;
  }

  .connect-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .qr-panel {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .qr-inner {
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .page {
    padding-top: 4.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 1rem;
  }

  .card {
    border-radius: 20px;
  }

  .project-features {
    grid-template-columns: 1fr;
  }

  .profile-name {
    font-size: 1.2rem;
  }
}
