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

:root {
  --azul-cobalto: #042a92;
  --azul-electrico: #0772f3;
  --morado-brillante: #ad12f4;
  --azul-noche: #02072b;
  --azul-profundo: #03155f;
  --blanco: #ffffff;
  --azul-suave: #d8ecff;
  --gris-suave: #c8d5eb;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--azul-noche);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--blanco);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  background: var(--azul-noche);
}

body::before {
  position: fixed;
  inset: -52px;
  z-index: -2;
  content: "";
  background-image: url("../assets/perfil.png");
  background-position: center 32%;
  background-size: cover;
  filter: blur(34px) saturate(1.15) brightness(0.32);
  transform: scale(1.12);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 14%, rgb(7 114 243 / 0.32), transparent 28%),
    radial-gradient(circle at 88% 70%, rgb(173 18 244 / 0.28), transparent 30%),
    linear-gradient(180deg, rgb(2 7 43 / 0.55), rgb(2 7 43 / 0.92));
}

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, #052072 0%, var(--azul-noche) 45%, #050b38 100%);
  border: 1px solid rgb(7 114 243 / 0.55);
  border-radius: 42px;
  box-shadow:
    0 30px 64px rgb(0 0 0 / 0.58),
    0 0 32px rgb(7 114 243 / 0.18),
    inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.hero {
  position: relative;
  height: clamp(400px, 75vw, 500px);
  overflow: visible;
}

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

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgb(2 7 43 / 0) 45%,
    rgb(4 42 146 / 0.48) 70%,
    var(--azul-noche) 96%,
    var(--azul-noche) 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(--blanco);
  cursor: pointer;
  background: linear-gradient(145deg, rgb(4 42 146 / 0.94), rgb(2 7 43 / 0.96));
  border: 1px solid var(--azul-electrico);
  border-radius: 50%;
  box-shadow:
    0 8px 18px rgb(0 0 0 / 0.42),
    0 0 20px rgb(173 18 244 / 0.32),
    inset 0 1px 0 rgb(255 255 255 / 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.share-button:hover {
  border-color: var(--morado-brillante);
  box-shadow:
    0 10px 22px rgb(0 0 0 / 0.46),
    0 0 26px rgb(173 18 244 / 0.5),
    inset 0 1px 0 rgb(255 255 255 / 0.22);
  transform: translateY(-2px);
}

.share-button:focus-visible,
.service-card:focus-visible,
.contact-button:focus-visible {
  outline: 3px solid var(--blanco);
  outline-offset: 3px;
}

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

.brand-logo {
  position: absolute;
  left: 50%;
  bottom: -20px;
  z-index: 3;
  width: clamp(122px, 24vw, 156px);
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--blanco);
  border: 2px solid var(--azul-electrico);
  border-radius: 50%;
  box-shadow:
    0 12px 30px rgb(0 0 0 / 0.48),
    0 0 24px rgb(173 18 244 / 0.38);
  transform: translateX(-50%);
}

.identity {
  position: relative;
  margin-top: -1px;
  padding: 44px 24px 30px;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--azul-noche) 0%,
    rgb(2 7 43 / 0.95) 44%,
    rgb(2 7 43 / 0) 100%
  );
}

.identity h1 {
  margin: 0;
  color: var(--blanco);
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: clamp(2.35rem, 8vw, 3.7rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow:
    0 3px 8px rgb(0 0 0 / 0.5),
    0 0 18px rgb(7 114 243 / 0.3);
}

.identity p {
  margin: 12px 0 0;
  color: var(--azul-suave);
  font-size: clamp(0.92rem, 3.4vw, 1.18rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-section {
  padding: 0 28px 28px;
}

.service-grid,
.contact-grid,
.social-grid {
  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(125deg, rgb(255 255 255 / 0.13) 0%, transparent 38%),
    linear-gradient(145deg, rgb(4 42 146 / 0.96), rgb(2 7 43 / 0.98));
  border: 1px solid var(--azul-electrico);
  border-radius: 20px;
  box-shadow:
    0 8px 18px rgb(0 0 0 / 0.38),
    0 0 16px rgb(7 114 243 / 0.15),
    inset 0 1px 0 rgb(255 255 255 / 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card::after {
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 120px;
  height: 120px;
  content: "";
  background: radial-gradient(circle, rgb(173 18 244 / 0.26), transparent 68%);
  pointer-events: none;
}

.service-card:hover,
.contact-button:hover {
  border-color: var(--morado-brillante);
  box-shadow:
    0 12px 26px rgb(0 0 0 / 0.46),
    0 0 18px rgb(255 255 255 / 0.2),
    0 0 28px rgb(173 18 244 / 0.24),
    inset 0 1px 0 rgb(255 255 255 / 0.25);
  transform: translateY(-3px);
}

.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  color: var(--azul-suave);
  filter: drop-shadow(0 0 7px rgb(7 114 243 / 0.55));
}

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

.service-card strong {
  position: relative;
  z-index: 1;
  color: var(--blanco);
  font-size: clamp(0.96rem, 3.5vw, 1.16rem);
  font-weight: 700;
  line-height: 1.22;
}

.service-card > span:last-child {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: var(--azul-suave);
  font-size: clamp(0.72rem, 2.8vw, 0.88rem);
  line-height: 1.25;
}

.contact-section {
  padding: 0 28px 24px;
}

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

.contact-button {
  min-width: 0;
  min-height: 74px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  color: var(--blanco);
  background:
    linear-gradient(125deg, rgb(255 255 255 / 0.1), transparent 42%),
    linear-gradient(145deg, rgb(4 42 146 / 0.9), rgb(2 7 43 / 0.98));
  border: 1px solid rgb(7 114 243 / 0.82);
  border-radius: 18px;
  box-shadow:
    0 7px 16px rgb(0 0 0 / 0.34),
    inset 0 1px 0 rgb(255 255 255 / 0.12);
  font-size: clamp(0.84rem, 3vw, 1rem);
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-wide {
  grid-column: 1 / -1;
}

.contact-icon {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  color: var(--azul-suave);
}

.contact-copy {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
}

.contact-copy strong {
  color: var(--blanco);
  font-size: 0.95em;
  line-height: 1.25;
}

.contact-copy small {
  margin-top: 3px;
  color: var(--gris-suave);
  font-size: 0.72em;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.social-section {
  padding: 0 28px 24px;
}

.social-section h2 {
  margin: 0 0 14px;
  color: var(--azul-suave);
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 600;
  text-align: center;
}

.social-grid {
  gap: 16px;
}

.social-button {
  justify-content: center;
  text-align: center;
}

.site-footer {
  margin: 0 28px 28px;
  padding: 18px 16px;
  color: var(--gris-suave);
  text-align: center;
  background: linear-gradient(180deg, rgb(4 42 146 / 0.42), rgb(2 7 43 / 0.92));
  border: 1px solid rgb(7 114 243 / 0.5);
  border-radius: 18px;
  box-shadow:
    0 7px 16px rgb(0 0 0 / 0.24),
    inset 0 1px 0 rgb(255 255 255 / 0.05);
}

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

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

.site-footer a:hover {
  color: var(--blanco);
  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(--blanco);
  pointer-events: none;
  background: rgb(2 7 43 / 0.97);
  border: 1px solid var(--azul-electrico);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.45);
  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;
}

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

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

  .hero {
    height: 400px;
  }

  .identity {
    padding: 40px 16px 25px;
  }

  .service-section,
  .contact-section,
  .social-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .service-section {
    padding-bottom: 23px;
  }

  .contact-section,
  .social-section {
    padding-bottom: 18px;
  }

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

  .service-grid,
  .contact-grid,
  .social-grid {
    gap: 11px;
  }

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

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

  .contact-button {
    min-height: 68px;
    padding: 11px 9px;
    gap: 8px;
    border-radius: 16px;
  }

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

  .contact-copy small {
    font-size: 0.66em;
  }

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

@media (max-width: 350px) {
  .hero {
    height: 380px;
  }

  .service-card {
    min-height: 144px;
  }
}

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