/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BLOQUEA SCROLL DEL BODY PARA EVITAR SALTOS */
html,
body {
  width: 100%;
  height: 100dvh;
  overflow: hidden; /* evita saltos */
}

body {
  position: relative;
  background-color: black;
}

/* FONDO FIJO COMPATIBLE CON IPHONE */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url(https://jac-romeo.com/wp-content/uploads/2026/03/fondo.webp);
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  z-index: -1;
}

/*  lOGO */

.logo-cuadro {
  width: min(200px, 100%);
  position: relative;
  margin: 0 auto 2rem auto;
  animation: logo ease 2s forwards;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.logo-cuadro::after,
.logo-cuadro::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 1px;
  background-image: conic-gradient(
    from var(--angle),
    white,
    gold,
    goldenrod,
    white,
    goldenrod,
    white
  );
  top: 50%;
  left: 50%;
  translate: -50% -51%;
  z-index: -1;
  border-radius: 30%;
  animation: 5s luz linear infinite;
}

.logo-cuadro::before {
  filter: blur(5px);
}

@keyframes luz {
  from {
    --angle: 0deg;
  }

  to {
    --angle: 360deg;
  }
}

.logo {
  width: 100%;
  aspect-ratio: 1/1;
  background: rgba(251, 249, 249, 0.908);
  border-radius: inherit;
  object-fit: cover;
  z-index: 1;
  filter: invert(0.8) sepia(2) brightness(0.8);
}

@keyframes logo {
  0% {
    transform: translateY(-100rem);
    filter: blur(100px);
  }

  30% {
    scale: 0.5;
  }

  40% {
    transform: translateY(0) scale(1) rotateY(180deg);
    mix-blend-mode: hard-light;

    border-radius: 10%;

    filter: drop-shadow(2px 2px 5px rgba(117, 99, 0, 0.418)) invert(0.1)
      sepia(1);
  }

  70% {
    background: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.119),
      rgba(255, 255, 255, 0.113),
      rgba(0, 0, 0, 0.255)
    );

    border-radius: 30%;
    border: solid 1px gray;
    filter: drop-shadow(2px 2px 15px white);
  }

  100% {
    background: linear-gradient(
      45deg,
      rgba(201, 210, 132, 0.352),
      rgba(221, 221, 216, 0.277),
      rgba(195, 190, 190, 0.255)
    );
    border-radius: 30%;
    filter: drop-shadow(2px 2px 15px rgba(218, 219, 205, 0.663));
  }
}

/* MAIN-Contenido */
main {
  width: min(1000px, 100%);
  height: 100%;
  display: grid;
  align-items: center;
  margin: auto;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
}

/* Columna Logo */
.col-izq {
  display: flex;
  flex-direction: column;
  align-items: center;

  p {
    font-family: "Fjalla One", sans-serif;
    color: goldenrod;
    font-size: clamp(2rem, 1.5vw + 1rem, 3rem);
    text-align: center;
    text-shadow: 1px -1px 0px white;
    animation: text ease 2s forwards;
  }
}

@keyframes text {
  0% {
    transform: translateX(-100rem);
  }

  50% {
    filter: blur(20px);
    scale: 0.1;
  }

  100% {
    transform: translateX(0);
    filter: blur(0) drop-shadow(2px 4px 30px goldenrod);
  }
}

/* Columna derecha: imagen */
.col-der {
  display: flex;
  justify-content: center;
}

/* IMAGEN-JACROMEO */
.img-jacromeo {
  width: min(350px, 100%);
  aspect-ratio: 7/11;
  object-fit: cover;
  display: block;
  margin: auto;
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(black, 90%, transparent);
  animation: image ease 1s forwards;
}

@keyframes image {
  from {
    transform: scale(0) translateX(30rem);
    filter: blur(50px);
  }

  to {
    transform: scale(1) translate(0);
  }
}

/* MENSAJE FIJO */
.mensaje {
  position: fixed;
  text-align: center;
  inset: auto 0 5rem;
  z-index: 2;
  padding: 0.5rem;
  border-top: #daa52079 1px solid;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  animation: mensaje ease 1.8s forwards;
  color: white;
  text-shadow: none;
  line-height: 1.2;
  font-size: clamp(1rem, 1vw + 1rem, 2rem);
}

@keyframes mensaje {
  from {
    transform: translateY(100rem);
  }

  to {
    transform: translateY(0);
  }
}

/* FOOTER */
footer {
  width: 100%;
  background: black;
  box-shadow: 1px -1px 5px white;
  display: flex;
  gap: 2rem;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  height: 80px;
  font-size: 1.2rem;
  color: goldenrod;
  position: fixed;
  inset: auto 0 0;
  z-index: 3;
}

i {
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transform: scale(1);
  transition: all ease 0.5s;
}

i:hover {
  filter: drop-shadow(0 0 15px currentColor) blur(15px);
  transform: scale(2);
}

.facebook {
  color: #1877f2;
  animation: socials ease 1s forwards;
}

.instagram {
  color: #e1306c;
  animation: socials ease 1.3s forwards;
}

.youtube {
  color: red;
  animation: socials ease 1.6s forwards;
}
@keyframes socials {
  from {
    transform: translateY(100rem);
  }
}

/* RESPONSIVE */
@media (max-width: 884px) {
  main {
    grid-template-columns: 1fr;
    padding-bottom: 10rem; /* mas espacio para el mensaje y footer*/
  }

  .img-jacromeo {
    width: min(450px, 100%);
    bottom: 0;
  }
}
