/* =========================================================
   Portafolio · Laura Nathalya Abril Velásquez
   Estructura y animaciones al estilo de benscott.dev,
   con paleta rosada y corazones.
   ========================================================= */

@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap);

:root {
  --bg: #1a141a;
  --bg-2: #241a24;
  --bg-3: #2e2130;
  --fg: #fdf7fa;
  --accent: #ff5c8a;
  --accent-2: #c084fc;
  --accent-soft: rgba(255, 92, 138, 0.15);
  --muted: rgba(253, 247, 250, 0.6);
  --line: rgba(253, 247, 250, 0.12);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
}
@media (max-width: 1500px) {
  html {
    font-size: 57.25%;
  }
}
@media (max-width: 1200px) {
  html {
    font-size: 50%;
  }
}
@media (max-width: 770px) {
  html {
    font-size: 43.75%;
  }
}
@media (max-width: 615px) {
  html {
    font-size: 40%;
  }
}
@media (max-width: 350px) {
  html {
    font-size: 35%;
  }
}

body {
  min-height: 100vh;
  color: var(--fg);
  font-family: Montserrat, sans-serif;
  background-color: var(--bg);
  overflow-x: hidden;
}

li {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  border: none;
  outline: none;
  background-color: transparent;
  color: inherit;
  font-family: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
html.is-locked {
  overflow: hidden;
}

/* ---------------------------------------------------------
   Animaciones
   --------------------------------------------------------- */
@keyframes moveInLeft {
  0% {
    opacity: 0;
    transform: translateX(-10rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes moveInRight {
  0% {
    opacity: 0;
    transform: translateX(10rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes moveInBottom {
  0% {
    opacity: 0;
    transform: translateY(4rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1rem);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes latido {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.18);
  }
  40% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.12);
  }
}
@keyframes flotar {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-1.2rem) rotate(-6deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* ---------------------------------------------------------
   Corazones decorativos
   --------------------------------------------------------- */
.heart {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: var(--accent);
  flex: none;
}
.heart--beat {
  animation: latido 2.4s ease-in-out infinite;
}
.heart--float {
  animation: flotar 5s ease-in-out infinite;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  height: 100vh;
  min-height: 60rem;
  width: 100%;
  z-index: 999;
}
.canvas {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg);
  overflow: hidden;
}
.connecting-hearts {
  height: 100%;
  width: 100%;
}
.heading {
  position: relative;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: normal;
  width: -moz-fit-content;
  width: fit-content;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  color: var(--fg);
  font-weight: 300;
  text-align: center;
  z-index: 999;
}
.heading__hi {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  font-family: Raleway, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  animation: fadeIn 1.6s;
}
.heading__hi .heart {
  width: 1.6rem;
  height: 1.6rem;
}
.heading__line-1,
.heading__line-2 {
  font-size: 6rem;
  background-color: rgba(26, 20, 26, 0.25);
  animation-duration: 1.4s;
  animation-timing-function: cubic-bezier(0.21, 1.11, 0.81, 0.99);
}
.heading__line-1 {
  animation-name: moveInLeft;
}
.heading__line-1 span {
  color: var(--accent);
  font-weight: 400;
}
.heading__line-2 {
  animation-name: moveInRight;
  font-size: 3.4rem;
  color: rgba(253, 247, 250, 0.88);
}
@media (max-width: 700px) {
  .heading__line-1 {
    font-size: 5rem;
  }
  .heading__line-2 {
    font-size: 2.8rem;
  }
}
.heading__meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.8rem;
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeIn 2s;
}
.heading__meta .heart {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--accent-2);
}
.heading-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.8rem;
  padding: 1.1rem 2.8rem;
  width: auto;
  min-height: 4.8rem;
  white-space: nowrap;
  background-color: rgba(26, 20, 26, 0.6);
  border: 2px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-size: 1.9rem;
  font-weight: 500;
  cursor: pointer;
  animation: moveInBottom 0.7s 1.2s;
  animation-fill-mode: backwards;
  animation-timing-function: cubic-bezier(0.21, 1.11, 0.81, 0.99);
}
@media (max-width: 1500px) {
  .heading-cta {
    width: auto;
  }
}
.heading-cta::before,
.heading-cta::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  border: 2px solid var(--accent);
  filter: blur(0);
  transform-origin: 50%;
  z-index: -1;
}
.heading-cta:hover {
  transform: translateY(-2px);
}
.heading-cta:hover::before,
.heading-cta:hover::after {
  border-color: transparent;
  filter: blur(2px);
  transform: scaleX(1.3) scaleY(2.2);
  transition: 800ms transform ease, 1900ms filter ease, 700ms border-color ease;
  pointer-events: none;
}
.heading-cta:hover::after {
  transition-delay: 150ms;
}
.heading__arrow {
  display: inline-block;
  height: 1.8rem;
  width: 1.8rem;
  margin-left: 1.2rem;
  fill: var(--accent);
  transition: all 0.3s;
}
.heading-cta:hover .heading__arrow {
  transform: translateY(4px);
}

/* ---------------------------------------------------------
   Navegación
   --------------------------------------------------------- */
.navigation-bar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 6rem;
  border-bottom: 1px solid rgba(255, 92, 138, 0.25);
  background-color: rgba(36, 26, 36, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}
@media (max-width: 700px) {
  .navigation-bar {
    justify-content: center;
  }
}
.navigation {
  display: flex;
  align-items: center;
  margin-right: 10rem;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 1px;
}
@media (max-width: 1200px) {
  .navigation {
    margin-right: 3rem;
  }
}
@media (max-width: 700px) {
  .navigation {
    margin-right: 0;
    font-size: 1.9rem;
  }
}
.navigation__item {
  transition: all 0.2s;
  cursor: pointer;
}
.navigation__item:not(:last-child) {
  margin-right: 3rem;
}
@media (max-width: 500px) {
  .navigation__item:not(:last-child) {
    margin-right: 1.8rem;
  }
}
.navigation__item:hover,
.navigation__item--active {
  color: var(--accent);
}

/* ---------------------------------------------------------
   Piezas comunes
   --------------------------------------------------------- */
.section-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 5.5rem;
  font-weight: 700;
  margin-top: 9rem;
  margin-bottom: 10rem;
  z-index: 99;
}
@media (max-width: 1200px) {
  .section-heading {
    margin-bottom: 8rem;
  }
}
@media (max-width: 1000px) {
  .section-heading {
    margin-top: 6rem;
  }
}
.section-heading::before {
  position: absolute;
  content: "";
  border-bottom: 8px solid var(--accent);
  width: 60%;
  left: 3.5rem;
  top: 6.3rem;
  z-index: -1;
}
@media (max-width: 770px) {
  .section-heading::before {
    border-bottom: 6px solid var(--accent);
  }
}
.section-heading .heart {
  width: 3.4rem;
  height: 3.4rem;
  fill: var(--accent-2);
}
.section-lead {
  max-width: 70rem;
  margin: -6rem auto 8rem;
  padding: 0 2rem;
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}

/* Borde degradado reutilizable (tarjetas) */
.grad-card {
  position: relative;
  border: solid 1.5px transparent;
  border-radius: 12px;
  background-image: linear-gradient(var(--bg), var(--bg)),
    radial-gradient(circle at top left, var(--accent-2), var(--accent));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Botón con subrayado que se expande (estilo de la referencia) */
.link-fill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: -moz-fit-content;
  width: fit-content;
  padding: 1rem 1.2rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s;
}
.link-fill::after {
  position: absolute;
  content: "";
  height: 2px;
  width: 100%;
  left: 0;
  bottom: 1px;
  background-color: var(--accent);
  transform-origin: bottom;
  transition: all 0.25s;
  z-index: -1;
}
.link-fill:hover {
  color: var(--bg);
}
.link-fill:hover::after {
  height: 100%;
}
.link-fill .heart {
  width: 1.4rem;
  height: 1.4rem;
  transition: fill 0.25s;
}
.link-fill:hover .heart {
  fill: var(--bg);
}
.link-fill--lila::after {
  background-color: var(--accent-2);
}

/* ---------------------------------------------------------
   Sobre mí
   --------------------------------------------------------- */
.about {
  width: 1300px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 1500px) {
  .about {
    width: 1100px;
  }
}
@media (max-width: 1200px) {
  .about {
    width: auto;
    padding: 0 3rem;
  }
}
.about__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6rem;
  width: 100%;
}
@media (max-width: 1300px) {
  .about__content {
    flex-direction: column;
    align-items: center;
    gap: 8rem;
  }
}
.profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 500;
  left: -300px;
  opacity: 0;
  transition: all 1.1s;
}
@media (max-width: 1301px) {
  .profile {
    left: 0;
    opacity: 1;
  }
}
.profile__fade-in {
  opacity: 1;
  transform: translateX(300px);
}
@media (max-width: 1300px) {
  .profile__fade-in {
    transform: translateX(0);
  }
}
.profile__picture {
  position: relative;
  width: 30rem;
  height: 36rem;
  margin-bottom: 4rem;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(70% 60% at 50% 20%, rgba(255, 92, 138, 0.35), transparent 70%), var(--bg-2);
  border: solid 1.5px transparent;
  background-image: linear-gradient(var(--bg-2), var(--bg-2)),
    radial-gradient(circle at top left, var(--accent-2), var(--accent));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transform: rotate(-2deg);
  box-shadow: 0 25px 60px -25px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.profile__picture:hover {
  transform: rotate(0deg) scale(1.02);
}
.profile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.08);
}
.profile__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Raleway, sans-serif;
  font-size: 9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 92, 138, 0.55);
}
.profile__badge {
  position: absolute;
  right: -1.4rem;
  bottom: -1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 25px -10px rgba(255, 92, 138, 0.9);
  z-index: 3;
}
.profile__badge .heart {
  width: 2.6rem;
  height: 2.6rem;
  fill: #fff;
}
.profile__name {
  font-family: Raleway, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
}
.profile__role {
  margin-top: 0.6rem;
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}
.about__text {
  max-width: 58rem;
}
.about__blurb {
  font-size: 1.8rem;
  line-height: 1.85;
  color: rgba(253, 247, 250, 0.82);
}
.about__blurb:not(:last-child) {
  margin-bottom: 2.4rem;
}
.about__blurb strong {
  color: var(--accent);
  font-weight: 600;
}
.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 3rem;
}
.about__fact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.4rem;
  color: rgba(253, 247, 250, 0.8);
  transition: all 0.2s;
}
.about__fact:hover {
  border-color: var(--accent);
  color: var(--fg);
}
.about__fact .heart {
  width: 1.2rem;
  height: 1.2rem;
}

/* Skills */
.skills-wrap {
  width: 100%;
  margin-top: 10rem;
}
.skills-wrap__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  font-family: Raleway, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
}
.skills-wrap__title .heart {
  width: 1.4rem;
  height: 1.4rem;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.skills__item {
  opacity: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 100px;
  width: 160px;
  padding: 1rem;
  border: solid 1.5px transparent;
  border-radius: 10px;
  background-image: linear-gradient(var(--bg), var(--bg)),
    radial-gradient(circle at top left, var(--accent-2), var(--accent));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: transform 0.2s, opacity 1.2s;
  overflow: hidden;
}
@media (max-width: 1500px) {
  .skills__item {
    height: 90px;
    width: 145px;
  }
}
@media (max-width: 1300px) {
  .skills__item {
    opacity: 1;
  }
}
@media (max-width: 1000px) {
  .skills__item {
    height: 80px;
    width: 130px;
  }
}
@media (max-width: 600px) {
  .skills__item {
    height: 72px;
    width: 112px;
  }
}
.skills__item:hover {
  transform: translateY(-4px) scale(1.04);
}
.skills__item-fade-in {
  opacity: 1;
}
.skills__item img,
.skills__item .heart {
  height: 38px;
  width: auto;
  transition: all 0.2s;
}
@media (max-width: 600px) {
  .skills__item img,
  .skills__item .heart {
    height: 30px;
  }
}
.skills__item .heart {
  width: 38px;
  fill: var(--accent);
}
.skills__item-name {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
  transition: all 0.2s;
}
@media (max-width: 1200px) {
  .skills__item-name {
    font-size: 1.4rem;
  }
}

/* ---------------------------------------------------------
   Experiencia
   --------------------------------------------------------- */
.experience {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
}
.timeline {
  position: relative;
  width: 100%;
  max-width: 108rem;
  margin-bottom: 6rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.1rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}
@media (max-width: 700px) {
  .timeline::before {
    left: 0.8rem;
  }
}
.tl-item {
  position: relative;
  padding-left: 6rem;
  padding-bottom: 6rem;
}
@media (max-width: 700px) {
  .tl-item {
    padding-left: 4rem;
  }
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-item__dot {
  position: absolute;
  left: 0;
  top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--bg);
}
.tl-item__dot .heart {
  width: 2.2rem;
  height: 2.2rem;
}
@media (max-width: 700px) {
  .tl-item__dot {
    width: 1.8rem;
    height: 1.8rem;
  }
  .tl-item__dot .heart {
    width: 1.7rem;
    height: 1.7rem;
  }
}
.tl-item__when {
  font-family: Raleway, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.tl-item__title {
  margin-top: 0.8rem;
  font-size: 2.6rem;
  font-weight: 600;
}
.tl-item__place {
  margin-top: 0.6rem;
  font-size: 1.6rem;
  color: var(--muted);
}
.tl-item__list {
  margin-top: 2rem;
  display: grid;
  gap: 1.2rem;
  max-width: 80rem;
}
.tl-item__list li {
  display: flex;
  gap: 1.2rem;
  font-size: 1.6rem;
  line-height: 1.7;
  color: rgba(253, 247, 250, 0.82);
}
.tl-item__list .heart {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.5rem;
  fill: var(--accent-2);
}
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.tl-tags li {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.3rem;
  color: rgba(253, 247, 250, 0.75);
}

/* ---------------------------------------------------------
   Proyectos
   --------------------------------------------------------- */
.projects {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.project {
  position: relative;
  display: flex;
  margin-bottom: 14rem;
  justify-content: flex-start;
}
@media (max-width: 560px) {
  .project {
    margin-bottom: 12rem;
  }
}
.project__image-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 62rem;
  width: 92rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff5c8a 0%, #c084fc 100%);
  transition: all 0.25s;
  cursor: pointer;
  overflow: hidden;
}
@media (max-width: 1100px) {
  .project__image-container {
    height: 56rem;
    width: 82rem;
  }
}
@media (max-width: 900px) {
  .project__image-container {
    height: 50rem;
    width: 70rem;
  }
}
@media (max-width: 700px) {
  .project__image-container {
    height: 44rem;
    width: 60rem;
  }
}
@media (max-width: 560px) {
  .project__image-container {
    height: 38rem;
    width: 50rem;
  }
}
@media (max-width: 440px) {
  .project__image-container {
    height: 30rem;
    width: 39rem;
  }
}
.project__image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.project__image-container:hover {
  transform: scale(0.97);
}
.project__image-image {
  position: relative;
  width: 78%;
  z-index: 2;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}
.project__image-image img {
  width: 100%;
  border-radius: 4px;
}
.project__count {
  position: absolute;
  right: 2rem;
  bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: rgba(26, 20, 26, 0.55);
  backdrop-filter: blur(4px);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  z-index: 3;
}
.project__count .heart {
  width: 1.3rem;
  height: 1.3rem;
  fill: #fff;
}
.project__info {
  position: relative;
  top: 8rem;
  height: -moz-fit-content;
  height: fit-content;
  max-width: 46rem;
  padding: 2rem;
  border-radius: 8px;
  background-color: rgba(26, 20, 26, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10;
}
@media (max-width: 560px) {
  .project__info {
    top: 4rem;
  }
}
.project__year {
  font-family: Raleway, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.project__title {
  position: relative;
  margin-top: 0.8rem;
  font-size: 3.5rem;
  line-height: 1.1;
  z-index: 66;
}
@media (max-width: 900px) {
  .project__title {
    font-size: 3rem;
  }
}
@media (max-width: 550px) {
  .project__title {
    font-size: 2.5rem;
  }
}
.project__subtitle {
  margin-top: 0.6rem;
  font-size: 1.6rem;
  color: var(--accent-2);
  font-weight: 600;
}
.project__description {
  position: relative;
  margin-top: 2rem;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(253, 247, 250, 0.86);
}
.project__role {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 1.8rem;
  font-size: 1.5rem;
  line-height: 1.6;
  color: rgba(253, 247, 250, 0.7);
}
.project__role .heart {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.4rem;
}
.project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}
.project__stack li {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: rgba(253, 247, 250, 0.75);
}
.project__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.project-left {
  align-self: flex-start;
  margin-left: 18rem;
}
@media (max-width: 1700px) {
  .project-left {
    margin-left: 9rem;
  }
}
@media (max-width: 1500px) {
  .project-left {
    margin-left: 0;
  }
}
.project-left .project__info {
  left: -8rem;
  margin-right: -6rem;
}
@media (max-width: 440px) {
  .project-left .project__info {
    left: -10rem;
    margin-right: -8rem;
  }
}
.project-right {
  align-self: flex-end;
  margin-right: 18rem;
  flex-direction: row-reverse;
}
@media (max-width: 1700px) {
  .project-right {
    margin-right: 9rem;
  }
}
@media (max-width: 1500px) {
  .project-right {
    margin-right: 0;
  }
}
.project-right .project__info {
  right: -8rem;
  margin-left: -6rem;
}
@media (max-width: 440px) {
  .project-right .project__info {
    right: -10rem;
    margin-left: -8rem;
  }
}

/* ---------------------------------------------------------
   Certificados
   --------------------------------------------------------- */
.certs {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
}
.certs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
  gap: 2.4rem;
  width: 100%;
  max-width: 110rem;
}
.cert-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.6rem;
  border: solid 1.5px transparent;
  border-radius: 12px;
  background-image: linear-gradient(var(--bg-2), var(--bg-2)),
    radial-gradient(circle at top left, var(--accent-2), var(--accent));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: transform 0.3s;
}
.cert-card:hover {
  transform: translateY(-6px);
}
.cert-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: Raleway, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.cert-card__top .heart {
  width: 1.6rem;
  height: 1.6rem;
}
.cert-card__name {
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.3;
}
.cert-card__meta {
  font-size: 1.4rem;
  color: var(--muted);
}
.cert-card .link-fill {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------------------------------------------------------
   Insignias
   --------------------------------------------------------- */
.badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
}
.badges__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 2.4rem;
  width: 100%;
  max-width: 110rem;
}
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 2.8rem 1.8rem;
  text-align: center;
  border: solid 1.5px transparent;
  border-radius: 14px;
  background-image: linear-gradient(var(--bg-2), var(--bg-2)),
    radial-gradient(circle at top left, var(--accent-2), var(--accent));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: transform 0.35s;
}
.badge:hover {
  transform: translateY(-8px) scale(1.02);
}
.badge img {
  width: 11rem;
  height: 11rem;
  object-fit: contain;
}
.badge__name {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
}
.badge__meta {
  margin-top: auto;
  font-family: Raleway, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Contacto
   --------------------------------------------------------- */
.contact {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: min(92rem, 100%);
  padding: 0 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin-bottom: 10rem;
}
@media (max-width: 700px) {
  .contact {
    width: 100%;
  }
}
@media (max-width: 470px) {
  .contact {
    width: 100%;
  }
}
@media (max-width: 400px) {
  .contact {
    width: 100%;
  }
}
.contact .section-heading {
  margin-bottom: 6rem;
}
.contact__text {
  font-size: 1.8rem;
  line-height: 1.7;
  margin-bottom: 4rem;
  text-align: center;
  color: rgba(253, 247, 250, 0.82);
}
.contact__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.contact input,
.contact textarea {
  width: 100%;
  resize: none;
  border: none;
  color: inherit;
  background-color: var(--bg-2);
  font-size: 1.6rem;
  font-family: Montserrat, sans-serif;
  border-left: 2px solid transparent;
  border-radius: 0;
  margin-bottom: 6px;
  padding: 1rem;
}
.contact input {
  height: 4rem;
}
.contact textarea {
  height: 12rem;
}
.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-left: 2px solid var(--accent);
}
.contact input::placeholder,
.contact textarea::placeholder {
  color: rgba(253, 247, 250, 0.55);
  opacity: 1;
}
.input-error {
  border-left: 2px solid var(--accent) !important;
}
.contact__form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  margin-top: 1.5rem;
  min-height: 5rem;
}
.form-error {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--accent);
}
.contact__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  width: 100%;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .contact__links {
    grid-template-columns: 1fr;
  }
}
.contact__btn {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 2rem 2.2rem;
  border: solid 1.5px transparent;
  border-radius: 14px;
  background-image: linear-gradient(var(--bg-2), var(--bg-2)),
    radial-gradient(circle at top left, var(--accent-2), var(--accent));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact__btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(255, 92, 138, 0.8);
}
.contact__btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.contact__btn-icon svg {
  width: 2.2rem;
  height: 2.2rem;
  fill: #fff;
}
.contact__btn-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.contact__btn-label {
  font-family: Raleway, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.contact__btn-value {
  font-size: 1.7rem;
  color: var(--fg);
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   Pie
   --------------------------------------------------------- */
.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  height: 180px;
  background-color: var(--bg-2);
}
.socials {
  display: flex;
  gap: 1.6rem;
}
.socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: all 0.2s;
}
.socials a:hover {
  transform: scale(1.12);
  border-color: var(--accent);
  background-color: var(--accent-soft);
}
.socials svg {
  width: 2rem;
  height: 2rem;
  fill: var(--fg);
}
.copyright {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--muted);
}
.copyright .heart {
  width: 1.2rem;
  height: 1.2rem;
}
.return-home {
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.return-home:hover {
  animation-name: bounce;
}
.return-home svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ---------------------------------------------------------
   Lightbox (galerías y certificados)
   --------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: rgba(15, 10, 15, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  max-width: 100%;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.lightbox__caption {
  font-size: 1.5rem;
  color: var(--muted);
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 2.4rem;
  right: 2.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.lightbox__close:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 2.4rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lightbox__nav:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}
.lightbox__nav--prev {
  left: 2rem;
}
.lightbox__nav--next {
  right: 2rem;
}

/* ---------------------------------------------------------
   Apariciones al hacer scroll
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(4rem);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--left {
  transform: translateX(-6rem);
}
.reveal--right {
  transform: translateX(6rem);
}
.reveal--left.is-visible,
.reveal--right.is-visible {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .profile,
  .skills__item {
    opacity: 1 !important;
    transform: none !important;
  }
}

.noscript {
  padding: 12rem 3rem;
  font-size: 1.8rem;
  text-align: center;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Proyectos: el pantallazo se alinea al lado opuesto del
   texto, para que el bloque de información no lo tape
   (igual que en la referencia).
   --------------------------------------------------------- */
.project-left .project__image-container {
  justify-content: flex-start;
}
.project-right .project__image-container {
  justify-content: flex-end;
}
.project__image-image {
  width: 70%;
}
.project-left .project__image-image {
  margin-left: 2.5rem;
}
.project-right .project__image-image {
  margin-right: 2.5rem;
}
/* La píldora del contador va del lado del pantallazo, nunca debajo del texto. */
.project-left .project__count {
  left: 2rem;
  right: auto;
}
.project-right .project__count {
  right: 2rem;
  left: auto;
}
.project__info {
  border: 1px solid rgba(253, 247, 250, 0.08);
}

/* ---------------------------------------------------------
   Ajustes para pantallas pequeñas
   --------------------------------------------------------- */
@media (max-width: 760px) {
  /* El menú se acomoda en dos filas en vez de salirse. */
  .navigation-bar {
    height: auto;
    min-height: 6rem;
    padding: 1.2rem 1.6rem;
  }
  .navigation {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-right: 0;
    font-size: 1.8rem;
  }
  .navigation__item:not(:last-child) {
    margin-right: 0;
  }

  /* Cada proyecto se apila: primero la imagen, luego el texto. */
  .project,
  .project-left,
  .project-right {
    flex-direction: column;
    align-items: center;
    align-self: center;
    width: 100%;
    margin: 0 0 9rem;
    padding: 0 2rem;
  }
  .project__image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    justify-content: center;
  }
  .project__image-image,
  .project-left .project__image-image,
  .project-right .project__image-image {
    width: 86%;
    margin: 0;
  }
  .project__info,
  .project-left .project__info,
  .project-right .project__info {
    position: relative;
    top: -3rem;
    left: 0;
    right: 0;
    max-width: none;
    width: 94%;
    margin: 0;
  }
  /* Arriba del panel: abajo quedaría tapada por la tarjeta de texto. */
  .project__count,
  .project-left .project__count,
  .project-right .project__count {
    top: 1.4rem;
    left: 1.4rem;
    right: auto;
    bottom: auto;
  }
}
