:root {
  --peach: #f4efe6;
  --peach-deep: #e6dccb;
  --coral: #b48a4a;
  --ink: #1d1b18;
  --muted: #6c5f4b;
  --white: #fff;
  --gold: #b48a4a;
  --gold-soft: #d8c39a;
  --shadow: 0 20px 45px rgba(20, 17, 12, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f6f1e7 0%, #efe5d4 55%, #e4d4ba 100%);
  color: var(--ink);
  font-family: "Trebuchet MS", Verdana, "Segoe UI", sans-serif;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem 3rem;
}

.profile-card {
  width: min(420px, 100%);
  background: var(--peach);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.hero {
  height: 210px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.06) 55%, rgba(0, 0, 0, 0) 100%),
    url("images/hendaye.jpg") center/cover no-repeat;
}

.profile-main {
  position: relative;
  padding: 0 1rem 2rem;
}

.profile-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: -125px;
}

.avatar-wrap {
  display: flex;
  align-items: center;
  width: 100%;
}

.photo {
  width: 60%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 5px solid #fbf7f1;
  box-shadow: 0 16px 28px rgba(27, 22, 16, 0.25);
}

.contact-icons {
  margin-left: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

.icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(27, 22, 16, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--ink);
}

.icon-btn.whatsapp svg {
  fill: #1b8a6b;
}

.icon-btn.instagram svg {
  fill: #a4496a;
}

.icon-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(27, 22, 16, 0.25);
}

.identity h1 {
  margin: 0.6rem 0 0.2rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.4px;
}

.role {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.actions button {
  border: none;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.actions .primary {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(27, 22, 16, 0.18);
  border: 1px solid rgba(180, 138, 74, 0.35);
}

.actions .ghost {
  background: transparent;
  border: 1px solid rgba(180, 138, 74, 0.55);
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin-top: 1.2rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(180, 138, 74, 0.35);
  border-bottom: 1px solid rgba(180, 138, 74, 0.35);
}

.stat-number {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.bio {
  margin-top: 1.2rem;
}

.bio h2 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.bio p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.bio-text {
  color: var(--ink);
}

.contact-form {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06rem;
}

.form-row input,
.form-row textarea {
  border: 1px solid rgba(180, 138, 74, 0.35);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(180, 138, 74, 0.8);
  box-shadow: 0 0 0 3px rgba(180, 138, 74, 0.2);
}

.captcha {
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 0.7rem;
}

.captcha-text {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.95rem;
}

.contact-form .primary {
  width: 100%;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .profile-card {
    width: 100%;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .captcha {
    grid-template-columns: 1fr;
  }
}
