/* ==========================================================================
   Portafolio — réplica del diseño Carrd
   Paleta, tipografía y breakpoints tomados del sitio original.
   ========================================================================== */

/* ---------- Tokens de diseño ---------- */
:root {
  --bg: #F09084;
  --accent: #9B2877;
  --text: #FFFFFF;
  --hover: #FF8CA8;
  --line: rgba(255, 255, 255, 0.169);
  --grad-from: #A464A1;
  --grad-to: #3B5DAD;

  --width: 48rem;
  --padding-h: 2rem;
  --padding-v: 2.5rem;
  --spacing: 1.5rem;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
blockquote,
hr {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Base ---------- */
html {
  font-size: 18pt;
}

body {
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
  word-wrap: break-word;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
  line-height: 1;
}

a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.25s ease;
}

strong {
  font-weight: bolder;
}

/* ---------- Estructura ---------- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.site-main {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  transition: opacity 1s ease-in-out;
}

body.is-loading .site-main {
  opacity: 0;
}

.inner {
  width: 100%;
  max-width: var(--width);
  padding: var(--padding-v) var(--padding-h);
  position: relative;
}

/* Espaciado vertical entre bloques de una sección */
section > * + * {
  margin-top: var(--spacing);
}

/* ---------- Navegación entre secciones ---------- */
.site-main > .inner > section {
  transition: opacity 0.375s ease-in-out;
}

.site-main > .inner > section.inactive {
  display: none;
}

/* ---------- Imagen de perfil ---------- */
.profile-image {
  line-height: 0;
  text-align: center;
}

.profile-image img {
  display: inline-block;
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 100%;
}

/* ---------- Títulos ---------- */
.name {
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Verdana', sans-serif;
  letter-spacing: 0.325rem;
  width: calc(100% + 0.325rem);
  font-size: 2.125em;
  line-height: 1.375;
  font-weight: 700;
}

.section-title {
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.325rem;
  width: calc(100% + 0.325rem);
  font-size: 1.5em;
  line-height: 1.375;
  font-weight: 400;
}

.font-verdana {
  font-family: 'Verdana', sans-serif;
}

.font-quicksand {
  font-family: 'Quicksand', sans-serif;
}

/* ---------- Texto ---------- */
.text {
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
  font-size: 1em;
  line-height: 1.625;
  font-weight: 400;
}

/* ---------- Columnas (Original / Traducción) ---------- */
.columns .wrapper {
  width: 100%;
  max-width: 100%;
}

.columns-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  --gutters: 2rem;
}

.columns-inner > * {
  flex: 0 0 auto;
  width: calc(50% + (var(--gutters) / 2));
  padding-left: var(--gutters);
}

.columns-inner > *:first-child {
  margin-left: calc(var(--gutters) * -1);
}

.columns-inner > * > * + * {
  margin-top: var(--spacing);
}

/* ---------- Íconos sociales ---------- */
.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.5em;
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
}

.icons > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
}

.icons svg {
  width: 100%;
  height: 100%;
  fill: var(--accent);
  transition: fill 0.25s ease;
}

.icons > li > a:hover svg {
  fill: var(--hover);
}

/* ---------- Separador ---------- */
.divider {
  border: 0;
  min-height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0.5rem 0;
}

.divider::before {
  content: '';
  width: 7rem;
  height: 1px;
  background-color: var(--line);
}

/* ---------- Botones de navegación ---------- */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.nav-buttons > li > a {
  display: inline-block;
  min-width: 8.125rem;
  height: 2.625rem;
  line-height: calc(2.625rem - 2px);
  padding: 0 0.5rem;
  padding-left: calc(0.225rem + 0.5rem);
  vertical-align: middle;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  font-family: 'Quicksand', sans-serif;
  letter-spacing: 0.225rem;
  font-size: 0.625em;
  font-weight: 400;
  border-radius: 0.375rem;
  color: var(--text);
  border: solid 1px var(--line);
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.nav-buttons > li > a:hover,
.nav-buttons > li > a.active {
  border-color: var(--hover);
  color: var(--hover);
}

/* ---------- Créditos ---------- */
.site-footer {
  margin-top: 0;
}

.credits {
  display: block;
  margin-top: 1.5rem;
}

.credits span {
  position: relative;
  display: inline-block;
  border-radius: 24px;
  background-color: rgba(80, 80, 80, 0.5);
  color: rgba(224, 224, 224, 0.75);
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.credits span a {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.5em 0.375em;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.credits span::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background-image: linear-gradient(30deg, var(--grad-from) 15%, var(--grad-to) 85%);
  box-shadow: 0 0.25em 1.25em 0 rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.credits span:hover::after {
  opacity: 1;
  transform: scale(1.1) translateY(-0.05rem);
}

.credits span:hover a {
  color: #ffffff;
  transform: scale(1.1) translateY(-0.05rem);
}

/* ==========================================================================
   Responsive — misma escala tipográfica que el original
   ========================================================================== */
@media (max-width: 1680px) {
  html {
    font-size: 13pt;
  }
}

@media (max-width: 1280px) {
  html {
    font-size: 13pt;
  }
}

@media (max-width: 980px) {
  html {
    font-size: 11pt;
  }
}

@media (max-width: 736px) {
  html {
    font-size: 11pt;
  }

  .columns-inner {
    flex-direction: column;
    --gutters: 2rem;
  }

  .columns-inner > * {
    width: 100%;
    padding: calc(var(--gutters) * 0.5) 0;
  }

  .columns-inner > *:first-child {
    margin-left: 0;
    padding-top: 0;
  }

  .columns-inner > *:last-child {
    padding-bottom: 0;
  }

  .icons {
    margin-top: 1.6875rem;
    margin-bottom: 1.6875rem;
  }

  .nav-buttons {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing: 1.3125rem;
  }
}

@media (max-width: 360px) {
  :root {
    --padding-h: 1.5rem;
    --padding-v: 1.875rem;
    --spacing: 1.125rem;
  }

  .icons {
    gap: 1.125rem;
  }

  .nav-buttons {
    gap: 0.75rem;
  }

  .columns-inner {
    --gutters: 1.5rem;
  }
}
