:root {
  --bg: #f4efe6;
  --card: #ffffff;

  --primary: #111111;
  --primaryText: #ffffff;

  --text: #111111;
  --muted: #666666;

  --accent: #f59e0b;
  --accentSoft: #fff4d8;
  --accentDark: #7c4a00;

  --soft: #f7f2e8;
  --softHover: #eee4d1;

  --line: rgba(17, 17, 17, 0.12);
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.14);
  --focusRing: rgba(245, 158, 11, 0.45);

  --radiusCard: 2rem;
  --radiusBox: 1.2rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  background: var(--card);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
button {
  color: inherit;
  cursor: pointer;
}

a {
  text-decoration: none;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
}

/* MOBILE FULL SCREEN */
.page {
  width: 100%;
  min-height: 100dvh;
  background: var(--card);
}

.card {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
}

/* VISTA TIPO TELÉFONO EN ESCRITORIO */
@media (min-width: 768px) {
  body {
    background:
      radial-gradient(circle at top, rgba(245, 158, 11, 0.16), transparent 34rem),
      var(--bg);
  }

  .page {
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
      radial-gradient(circle at top, rgba(245, 158, 11, 0.16), transparent 34rem),
      var(--bg);
  }

  .card {
    max-width: 430px;
    min-height: auto;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--radiusCard);
    box-shadow: var(--shadow);
  }
}

/* COVER */
.cover {
  position: relative;
  height: 228px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--primary);
}

.cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--heroPositionMobile, center center);
}

.coverOverlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(17, 17, 17, 0.72), transparent 72%),
    radial-gradient(circle at 85% 18%, rgba(245, 158, 11, 0.35), transparent 38%);
}

.shareBtn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, background 0.18s ease;
}

.shareBtn:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.shareBtn svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* CONTENT */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
}

.profile {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: -3.4rem;
}

.avatar {
  display: grid;
  width: 5rem;
  height: 5rem;
  flex-shrink: 0;
  place-items: center;
  border: 4px solid var(--card);
  border-radius: 1.45rem;
  background: var(--primary);
  color: var(--primaryText);
  font-size: 1.12rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.profileInfo {
  min-width: 0;
}

.status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  background: var(--accentSoft);
  color: var(--accentDark);
  padding: 0.4rem 0.65rem;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.headline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.description {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 620;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* BOTONES */
.mainActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.btn,
.cta a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  font-size: 0.92rem;
  font-weight: 950;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

.btn:hover,
.cta a:hover,
.quickLink:hover,
.socialLink:hover {
  transform: translateY(-2px);
}

.btnPrimary {
  background: var(--accent);
  color: var(--text);
}

.btnSecondary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btnSecondary:hover {
  background: var(--primary);
  color: var(--primaryText);
}

/* QUICK LINKS */
.quickLinks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.quickLink {
  display: grid;
  gap: 0.42rem;
  place-items: center;
  min-height: 76px;
  border: 0;
  border-radius: 1.1rem;
  background: var(--soft);
  color: var(--text);
  padding: 0.7rem 0.45rem;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease;
}

.quickLink:hover {
  background: var(--softHover);
}

.quickIcon {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.85rem;
  background: var(--primary);
  color: var(--primaryText);
}

.quickIcon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.quickLink span:last-child {
  font-size: 0.72rem;
  font-weight: 900;
}

/* SOCIAL LINKS */
.socialSection {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.socialSection p {
  margin: 0;
  color: var(--accentDark);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.socialLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.socialLink {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease;
}

.socialLink:hover {
  background: var(--softHover);
}

.socialLink svg {
  width: 1rem;
  height: 1rem;
}

/* SECCIONES */
.sectionBlock {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}

.sectionHead p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sectionHead h2 {
  margin: 0.3rem 0 0;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.servicesList {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.serviceItem {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  padding: 0.68rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 850;
}

/* INFO */
.infoGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.infoItem {
  border-radius: var(--radiusBox);
  background: var(--soft);
  padding: 0.95rem;
}

.infoItem span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.infoItem strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.3;
}

/* CTA */
.cta {
  margin-top: 1.15rem;
  border-radius: 1.4rem;
  background: var(--primary);
  color: var(--primaryText);
  padding: 1.15rem;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cta h2 {
  margin: 0.35rem 0 0;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cta span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

.cta a {
  width: 100%;
  margin-top: 1rem;
  background: var(--accent);
  color: var(--text);
}

.footer {
  margin-top: auto;
  padding-top: 1rem;
  text-align: center;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ACCESSIBILITY */
a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--focusRing);
  outline-offset: 4px;
}

@media (max-width: 380px) {
  .mainActions {
    grid-template-columns: 1fr;
  }

  .quickLinks {
    grid-template-columns: 1fr;
  }

  .infoGrid {
    grid-template-columns: 1fr;
  }
}