@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  /* Paleta extraída de assets/bg.png (Portada.png) */
  --bg-50: #f7efef;
  --bg-100: #ead5d5;
  --bg-200: #d7c4c4;

  --card-bg: #fefbfa;
  --card-bg-soft: #f6e9e8;

  --rose-300: #e0b8b4;
  --rose-400: #cb9591;
  --rose-500: #9e7471;
  --rose-700: #6a4d4b;
  --rose-800: #503836;

  --white: #ffffff;
  --muted: #8c716f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg-100);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--rose-800);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, var(--bg-50) 0%, var(--bg-100) 55%, var(--bg-200) 100%);
}

body::before {
  position: fixed;
  inset: -48px;
  z-index: -2;
  content: "";
  background-image: url("../assets/bg.png");
  background-position: center;
  background-size: cover;
  filter: blur(45px) saturate(1.05) brightness(1.1);
  transform: scale(1.15);
  opacity: 0.6;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 16%, rgb(255 255 255 / 0.5), transparent 30%),
    radial-gradient(circle at 88% 68%, rgb(203 149 145 / 0.18), transparent 30%),
    linear-gradient(180deg, rgb(255 255 255 / 0.35), rgb(255 250 248 / 0.55));
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  padding: 32px 18px;
}

.bio-card {
  width: min(100%, 650px);
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, var(--card-bg) 0%, var(--card-bg-soft) 100%);
  border: 1px solid rgb(203 149 145 / 0.4);
  border-radius: 42px;
  box-shadow:
    0 30px 60px rgb(154 100 95 / 0.22),
    0 8px 18px rgb(80 56 54 / 0.14),
    inset 0 0 0 1px rgb(255 255 255 / 0.5);
}

.hero {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: visible;
  background: var(--bg-100);
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgb(254 251 250 / 0) 0%,
    rgb(254 251 250 / 0) 74%,
    rgb(254 251 250 / 0.7) 90%,
    var(--card-bg) 100%
  );
}

.share-button {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 4;
  width: 58px;
  height: 58px;
  padding: 14px;
  display: grid;
  place-items: center;
  color: var(--rose-700);
  cursor: pointer;
  background: radial-gradient(
    circle at 35% 30%,
    rgb(255 255 255 / 0.95) 0%,
    rgb(246 233 232 / 0.92) 72%,
    var(--card-bg) 100%
  );
  border: 1px solid var(--rose-400);
  border-radius: 50%;
  box-shadow:
    0 6px 14px rgb(80 56 54 / 0.22),
    0 0 14px rgb(203 149 145 / 0.2),
    inset 0 1px 0 rgb(255 255 255 / 0.6);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.share-button:hover {
  border-color: var(--rose-500);
  box-shadow:
    0 9px 20px rgb(80 56 54 / 0.28),
    0 0 20px rgb(203 149 145 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.7);
  transform: translateY(-2px);
}

.share-button:focus-visible {
  outline: 3px solid var(--rose-500);
  outline-offset: 4px;
}

.share-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.identity {
  position: relative;
  margin-top: -1px;
  padding: 22px 24px 8px;
  text-align: center;
  background: var(--card-bg);
}

.identity h1 {
  margin: 0;
  color: var(--rose-700);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 7vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.identity p {
  display: inline-block;
  margin: 12px 0 0;
  padding: 7px 18px;
  color: var(--rose-800);
  background: var(--card-bg-soft);
  border: 1px solid rgb(203 149 145 / 0.5);
  border-radius: 999px;
  font-size: clamp(0.78rem, 3vw, 0.94rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.service-section {
  position: relative;
  padding: 20px 28px 30px;
}

.service-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 168px;
  padding: 20px 14px 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(120deg, rgb(255 255 255 / 0.6) 0%, rgb(255 255 255 / 0.1) 22%, transparent 44%),
    linear-gradient(145deg, var(--white) 0%, var(--card-bg-soft) 100%);
  border: 1px solid var(--rose-400);
  border-radius: 20px;
  box-shadow:
    0 7px 16px rgb(154 100 95 / 0.14),
    inset 0 1px 0 rgb(255 255 255 / 0.7);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:not(.service-card-empty):hover {
  border-color: var(--rose-500);
  box-shadow:
    0 12px 26px rgb(154 100 95 / 0.28),
    0 0 0 1px rgb(203 149 145 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.85);
  transform: translateY(-3px);
}

.service-card:focus-visible {
  outline: 3px solid var(--rose-500);
  outline-offset: 3px;
}

.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  color: var(--rose-500);
  filter: drop-shadow(0 2px 2px rgb(154 100 95 / 0.2));
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card strong {
  color: var(--rose-700);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(0.98rem, 3.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.service-card > span:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(0.72rem, 2.8vw, 0.9rem);
  line-height: 1.25;
}

.service-card-empty {
  pointer-events: none;
  border-color: rgb(203 149 145 / 0.3);
}

.service-card-full {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 16px;
  min-height: 96px;
  justify-content: flex-start;
  text-align: left;
  padding: 18px 22px;
}

.service-card-full .service-icon {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.service-card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card-full .service-card-text strong {
  color: var(--rose-700);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(0.98rem, 3.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.service-card-full .service-card-text > span:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(0.72rem, 2.8vw, 0.9rem);
  line-height: 1.25;
}

@media (max-width: 380px) {
  .service-card-full {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .service-card-full .service-icon {
    margin-bottom: 8px;
  }

  .service-card-text {
    align-items: center;
  }
}

.contact-grid {
  padding: 0 28px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.contact-button {
  min-height: 70px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--rose-700);
  text-align: center;
  background:
    linear-gradient(120deg, rgb(255 255 255 / 0.6) 0%, transparent 42%),
    linear-gradient(145deg, var(--white), var(--card-bg-soft));
  border: 1px solid var(--rose-400);
  border-radius: 18px;
  box-shadow:
    0 7px 16px rgb(154 100 95 / 0.12),
    inset 0 1px 0 rgb(255 255 255 / 0.7);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(0.88rem, 3.2vw, 1.02rem);
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-button:hover {
  border-color: var(--rose-500);
  box-shadow:
    0 10px 22px rgb(154 100 95 / 0.25),
    inset 0 1px 0 rgb(255 255 255 / 0.85);
  transform: translateY(-2px);
}

.contact-button:focus-visible {
  outline: 3px solid var(--rose-500);
  outline-offset: 3px;
}

.contact-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  color: var(--rose-500);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  margin: 0 28px 28px;
  padding: 18px 16px;
  color: var(--muted);
  text-align: center;
  background: var(--card-bg-soft);
  border: 1px solid rgb(203 149 145 / 0.35);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6);
}

.site-footer p {
  margin: 0;
  font-size: clamp(0.68rem, 2.5vw, 0.8rem);
  line-height: 1.55;
}

.site-footer a {
  color: var(--rose-700);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--rose-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  color: var(--white);
  pointer-events: none;
  background: rgb(106 77 75 / 0.96);
  border: 1px solid var(--rose-400);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgb(80 56 54 / 0.35);
  font-size: 0.84rem;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.notice-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.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;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow:
    0 8px 20px rgb(80 56 54 / 0.3),
    0 0 0 1px rgb(255 255 255 / 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover {
  box-shadow:
    0 10px 24px rgb(80 56 54 / 0.35),
    0 0 18px rgb(37 211 102 / 0.55);
  transform: translateY(-3px) scale(1.05);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--rose-500);
  outline-offset: 4px;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-float-ring {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.55;
  animation: whatsapp-pulse 2.2s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@media (max-width: 540px) {
  .site-shell {
    padding: 0;
  }

  .bio-card {
    border: 0;
    border-radius: 0;
  }

  .identity {
    padding: 20px 16px 6px;
  }

  .service-section {
    padding: 18px 14px 24px;
  }

  .share-button {
    top: 18px;
    right: 16px;
    width: 52px;
    height: 52px;
    padding: 13px;
  }

  .service-grid {
    gap: 11px;
  }

  .service-card {
    min-height: 150px;
    padding: 17px 9px 14px;
    border-radius: 17px;
  }

  .service-icon {
    width: 47px;
    height: 47px;
  }

  .contact-grid {
    padding: 0 14px 16px;
    gap: 11px;
  }

  .contact-button {
    min-height: 64px;
    padding: 12px 10px;
    gap: 9px;
    border-radius: 16px;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
  }

  .site-footer {
    margin: 0 14px 18px;
    padding: 16px 12px;
    border-radius: 16px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 350px) {
  .service-card {
    min-height: 142px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .whatsapp-float-ring {
    animation: none;
    display: none;
  }
}
