/* HERO */
.inicio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 100px 60px 60px;
  min-height: 90vh;
  background: linear-gradient(135deg, #8cb7ef 0%, #b3d4f5 40%, #f7f6f9 100%);
  overflow: hidden;
  position: relative;
}

.inicio::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(140, 183, 239, 0.25) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.inicio_contenido {
  max-width: 500px;
  opacity: 0;
  animation: fadeSlideLeft 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
}

.linea {
  width: 4px;
  height: 0;
  background: var(--azul_oscuro);
  position: absolute;
  margin-left: -10px;
  border-radius: 2px;
  animation: lineGrow 0.6s ease 0.15s forwards;
}

.nombre {
  font-size: clamp(32px, 4.5vw, 55px);
  font-weight: 700;
  margin-bottom: 10px;
  margin-left: 30px;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease 0.45s forwards;
  background: linear-gradient(90deg, var(--negro) 0%, var(--azul_oscuro) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profesion {
  font-weight: 300;
  font-size: clamp(16px, 2vw, 28px);
  line-height: 1.4;
  margin-bottom: 25px;
  margin-left: 30px;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease 0.6s forwards;
}
.redes {
  margin-left: 30px;
  transition: transform 0.3s;
}

.redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  color: white;
  text-decoration: none;
  opacity: 0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.redes a:hover {
  transform: translateY(-4px) scale(1.1);
  transform: scale(1.1);
}
.redes a:nth-child(1) {
  animation: iconsIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s forwards;
}
.redes a:nth-child(2) {
  animation: iconsIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.88s forwards;
}
.redes a:nth-child(3) {
  animation: iconsIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.01s forwards;
}

.btn-github {
  background-color: #000000;
}

.btn-linkedin {
  background-color: #3b82f6;
}

.btn-gmail {
  background-color: #f87171;
}
.inicio_ilustracion img {
  width: 450px;
}

/* ─── IMAGEN ─── */
.inicio_ilustracion {
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-wrapper {
  position: relative;
  display: inline-block;
  opacity: 0;
  animation: imgReveal 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s forwards;
}

.img-wrapper::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px dashed rgba(63, 97, 142, 0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.inicio_ilustracion img {
  width: clamp(300px, 35vw, 540px);
  display: block;
  filter: drop-shadow(0 20px 40px rgba(63, 97, 142, 0.25));
  transition: filter 0.3s ease;
}

/* ─── FRASE ─── */
.frase {
  grid-column: 2;
  margin-top: 20px;
  color: #555;
  font-size: clamp(16px, 1.8vw, 26px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fraseSlide 0.7s ease 1.1s forwards;
  margin-top: -2rem;
}

.comilla {
  font-size: clamp(50px, 7vw, 80px);
  color: var(--oliva);
  line-height: 0.8;
}
.comilla-u {
  font-size: clamp(50px, 7vw, 80px);
  color: var(--oliva);
  display: block;
  position: relative;
  transform: rotate(180deg);
  line-height: 0.8;
}

/* ─── KEYFRAMES ─── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes lineGrow {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: 150px;
    opacity: 1;
  }
}
@keyframes imgReveal {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(30px) rotate(-3deg);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  80% {
    transform: scale(1.03) translateY(-6px) rotate(0.5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
    filter: blur(0);
  }
}
@keyframes floatBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 0px 0px rgba(140, 183, 239, 0);
  }
  50% {
    box-shadow: 0 0 40px 12px rgba(140, 183, 239, 0.35);
  }
}
@keyframes fraseSlide {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes iconsIn {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-15deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── RESPONSIVO ─── */
@media (max-width: 900px) {
  .inicio {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 90px 32px 48px;
    text-align: center;
    min-height: auto;
  }
  .inicio_contenido {
    max-width: 100%;
    margin: 0 auto;
  }
  .linea {
    display: none;
  }
  .nombre,
  .profesion,
  .redes {
    margin-left: 0;
  }
  .redes {
    display: flex;
    justify-content: center;
  }
  .inicio_ilustracion {
    grid-row: 1;
    margin-bottom: 32px;
  }
  .inicio_ilustracion img {
    width: clamp(180px, 55vw, 320px);
  }
  .frase {
    grid-column: 1;
    text-align: center;
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .inicio {
    padding: 80px 20px 40px;
  }
}
