/* ==========================================================================
   Martín García . studio — estilos compartidos
   ========================================================================== */

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

:root {
  --bg-dark: #0b0b0c;
  --bg-panel: #141416;
  --teal: #17b8c4;
  --teal-dark: #0e8f99;
  --text-light: #f5f5f5;
  --text-muted: #cfcfcf;
  --font: 'Poppins', 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fondo con textura oscura, similar al de la referencia */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 30%, rgba(60, 60, 65, 0.35), transparent 45%),
    radial-gradient(circle at 70% 75%, rgba(40, 40, 45, 0.3), transparent 50%),
    linear-gradient(160deg, #131315 0%, #0a0a0b 55%, #060607 100%);
  overflow: hidden;
}

.page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.border-frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
}

/* ---------- Contenedor principal ---------- */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4vw;
  padding: 4vh 5vw;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- Columna de la foto ---------- */

.photo-col {
  position: relative;
  flex: 0 0 auto;
  width: min(38vw, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-col::before {
  content: '';
  position: absolute;
  width: 62%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 184, 196, 0.55) 0%, rgba(23, 184, 196, 0.15) 60%, transparent 75%);
  filter: blur(2px);
  left: 8%;
  top: 12%;
  z-index: 0;
}

.photo-col img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

/* ---------- Columna de contenido ---------- */

.content-col {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}

.logo {
  display: block;
  width: min(30vw, 2160px);
  height: auto;
}

.tagline {
  font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--text-light);
}

/* ---------- Botones ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 2em;
  border-radius: 999px;
  background: var(--teal);
  color: #06282b;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(23, 184, 196, 0.15);
}

.btn:hover,
.btn:focus-visible {
  background: #22d0dd;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 184, 196, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  box-shadow: none;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: rgba(23, 184, 196, 0.12);
  color: #fff;
}

.btn.is-active {
  box-shadow: inset 0 0 0 2px #fff;
}

.btn.ghost.is-active {
  background: rgba(23, 184, 196, 0.18);
}

/* ---------- Redes sociales ---------- */

.socials {
  display: flex;
  gap: 1.1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #111;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: #111;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--teal);
  transform: translateY(-3px);
}

.social-link:hover svg,
.social-link:focus-visible svg {
  fill: #06282b;
}

.social-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---------- Texto "Sobre mí" ---------- */

.about-text {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.about-text p {
  font-weight: 300;
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
  line-height: 1.75;
  color: var(--text-muted);
  text-align: justify;
}

/* ---------- Logo EMG ---------- */

.footer-logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 2vh 5vw 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.footer-logo img {
  height: clamp(50px, 6vw, 70px);
  width: auto;
  opacity: 0.95;
}

/* ==========================================================================
   Sobre mí — foto fija, solo el bloque de texto se desplaza (desktop)
   ========================================================================== */

.about-page {
  height: 100vh;
  overflow: hidden;
}

.about-page .hero {
  height: 100%;
  align-items: center;
  padding-top: 5vh;
  padding-bottom: 5vh;
}

.about-page .photo-col {
  align-self: center;
}

.about-page .content-col {
  height: 100%;
  max-height: calc(100vh - 10vh);
  gap: 0;
}

.content-fixed {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  padding-bottom: clamp(1.2rem, 2.5vw, 2.2rem);
}

.content-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
}

.content-scroll::-webkit-scrollbar {
  width: 6px;
}

.content-scroll::-webkit-scrollbar-thumb {
  background: var(--teal-dark);
  border-radius: 999px;
}

.content-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.content-scroll .footer-logo {
  justify-content: flex-end;
  padding: 3vh 0 0.5vh;
  max-width: none;
}

@media (max-width: 900px) {
  .about-page {
    height: auto;
    overflow: visible;
  }

  .about-page .hero {
    height: auto;
    padding-top: 5vh;
    padding-bottom: 0;
  }

  .about-page .content-col {
    height: auto;
    max-height: none;
  }

  .content-fixed {
    align-items: center;
    padding-bottom: 1.5rem;
  }

  .content-scroll {
    overflow-y: visible;
    padding-right: 0;
  }

  .content-scroll .footer-logo {
    justify-content: center;
    padding: 2vh 0 4vh;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 5vh;
    gap: 2rem;
  }

  .content-col {
    align-items: center;
  }

  .logo {
    width: min(60vw, 300px);
    margin: 0 auto;
  }

  .tagline {
    justify-content: center;
    text-align: center;
  }

  .actions,
  .socials {
    justify-content: center;
  }

  .photo-col {
    width: min(70vw, 340px);
  }

  .about-text p {
    text-align: left;
  }

  .footer-logo {
    justify-content: center;
    padding-bottom: 4vh;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4vh 6vw;
  }

  .logo {
    width: min(75vw, 260px);
  }

  .btn {
    padding: 0.7em 1.6em;
    font-size: 0.92rem;
  }

  .social-link {
    width: 48px;
    height: 48px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }
}
