/*===header de idiomas====*/

.language-switcher{
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 9999;
  font-size:14px;
  font-weight:600;
  letter-spacing:1px;
}


/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
@keyframes heroZoomBg {
  to {
    transform: scale(1);
  }
}

@keyframes heroBlurBg {
  to {
    filter: blur(3px);
  }
}


html,body{
    width:100%;
    height:100%;
    background:#000;
    font-family:'Poppins', sans-serif;
}


/* HERO */

.hero{
    position:relative;
    width:100%;
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;

    background:url('assets/imagenes/Cara7.jpg') center/cover no-repeat;

    z-index:0;

    /* estado inicial */
    transform: scale(1.08);
    filter: blur(0);

    animation:
      heroZoomBg 2.8s ease-out forwards,
      heroBlurBg 1.2s ease forwards;

    animation-delay:
      0s,
      3s;

    will-change: transform, filter;
}



/* OVERLAY (no bloquea mouse) */
.overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.22);
    pointer-events:none;
    z-index:1;
}

.hero-content{
    position:relative;
    z-index:10;
    text-align:center;
    color:white;
}


/* NOMBRE */
.name{
    font-family:sans-serif, serif;
    font-size:5.2rem;
    font-weight:200;
    letter-spacing:14px;
    margin-bottom:0;
    line-height: 1;
    opacity:0;
    animation:fadeIn 2.3s ease forwards;
    animation-delay:.2s;
    margin-top: 30px;
}

/* FIRMA */

.signature {
    margin-top: 30px;
    margin-bottom: 10px;
    width: 120px;       /* ajusta según tu firma */
    max-width: 80%;
    opacity:0;
    animation:fadeIn 5.3s ease forwards;
    animation-delay: 2s;
}

/* SELECTORES */
.selectors{
    margin-top:30px;
    display:flex;
    gap:35px;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
}

/* LINKS o doblaje, musica, tecnologia (solo animación) */
.selector{
    color:rgb(246, 226, 195);
    text-decoration:none;
    font-size:2.0rem;
    letter-spacing:.8px;
    opacity:0;
    display:inline-block;
    cursor:pointer;

    animation:fadeIn 1.2s ease forwards;
    animation-delay:var(--delay);
}

/* TEXTO INTERNO (hover real) */
.selector-label{
    display:inline-block;
    transform:scale(1);
    transition:transform .30s ease, opacity .30s ease;
}

/* HOVER */
.selector:hover .selector-label{
    transform:scale(1.18) translateY(-3px);
    opacity:1;
}

/* DIVISOR ENTRE PALABRAS| */
.divider{
    color:rgb(246, 226, 195);
    font-size:1.1rem;
    opacity:0;
    animation:fadeIn 1.2s ease forwards;
    animation-delay:var(--delay);
}

/* ANIMACIÓN DE ENTRADA */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(22px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ANIMACIÓN DEL FONDO */
@keyframes heroZoom{
    0%{
        background-size:108%;
    }
    100%{
        background-size:100%;
    }
}

/* RESPONSIVE */
@media(max-width:900px){
    .name{font-size:3.6rem;}
}
@media(max-width:600px){
    .name{font-size:2.6rem;}
}

@keyframes signaturePop { 0% { 
    opacity: 0; 
    transform: scale(0.4); 
    filter: blur(6px); /* opcional: da un efecto más “mágico” */ } 60% { 
    opacity: 1; transform: scale(1.08); /* ligero overshoot para elegancia */ } 100% { 
    opacity: 1; 
    transform: scale(1); 
    filter: blur(0); } }

/* FIX */
.s1, .s2, .s3{
    display:inline-block !important;
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;

    display: flex;              /* 👈 clave */
    flex-direction: column;
    align-items: center;

    gap: 6px;                   /* 👈 controla TODO el espacio vertical */
    transform: translateY(-80px); /* 👈 sube el bloque completo */
}

/*.name, .signature, .selectors {
  border: 1px solid red; Solo para inspección visual */
 
/*.------- Imegen del Inicio pada Telefono ----- */

.home-bg-desktop {
  background-size: cover;
  background-position: center;
  position: fixed;
  inset: 0;
  z-index: 1;
  filter: blur(0);
  will-change: filter;
}


.home-bg-mobile {
  display: none;
}
@media (max-width: 768px) {

  .home-bg-desktop {
    display: none;
  }

  .home-bg-mobile {
    display: block;
    background-size: cover;
    background-position: center top;
    position: fixed;
    inset: 0;
    z-index: 1;
  }

}
@media (max-width: 768px) {

  .home-bg-desktop {
    display: none;
  }

  .home-bg-mobile {
    display: block;
    background-image: url("assets/imagenes/web/home-mobile.jpg");
    background-size: cover;
    background-position: center top;
    position: fixed;
    inset: 0;
    z-index: 1;
    animation: mobileBlur 1.2s ease forwards;
    animation-delay: 3s;   /* ⏱️ espera 3 segundos */

  }
}

/*.------- Texto del Inicio pada Telefono ----- */

/* ===========================
   HOME MOBILE – OVERRIDE TOTAL
=========================== */

@media screen and (max-width: 768px) {

  body #header {
    margin-top: -3rem !important;
  }

  body #header .content .inner {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  body #header h1 {
    font-size: 3.5rem !important;
    letter-spacing: 0.15rem !important;
  }

  body #header p {
    font-size: 0.65rem !important;
    line-height: 1.25 !important;
    margin-top: 0.4rem !important;
  }

  body #header nav ul li a {
    font-size: 0.6rem !important;
    height: 2rem !important;
    line-height: 2rem !important;
    padding: 0 0.7rem !important;
    letter-spacing: 0.12rem !important;
  }

}
@media (max-width: 768px) {

  /* SUBIMOS TODO EL BLOQUE */
  .hero-content {
    position: relative;
    top: -90px;          /* 👈 sube el contenido */
    padding: 0 16px;
  }

  /* NOMBRE */
  .hero-content .name {
    font-size: 1.1rem;   /* reducción fuerte */
    letter-spacing: 0.2rem;
    margin-bottom: 1.2rem;
  }

  /* SELECTORES (DOBLAJE | MÚSICA | TECNOLOGÍA) */
  .selectors {
    font-size: 0.65rem;
    gap: 10px;
  }

  .selector-label {
    font-size: 0.65rem;
    letter-spacing: 0.15rem;
  }

  .divider {
    font-size: 0.6rem;
    margin: 0 6px;
  }

}
/* ===========================
   HOME – MOBILE ONLY
   Column layout sin romper WEB
=========================== */
@media (max-width: 768px) {

  .selectors{
    flex-direction: column;   /* 👈 solo móvil */
    gap: 44px;
  }

  .selectors .divider{
    display: none;            /* 👈 ocultamos | solo móvil */
  }

  .selector-label{
    font-size: 1.45rem;
    letter-spacing: 0.15rem;
  }

}
@keyframes mobileBlur {
  from {
    filter: blur(0);
  }
  to {
    filter: blur(3px); /* ≈ 10% visual */
  }
}
/* ===========================
   HOME MOBILE – CENTRADO + TÍTULO GRANDE
=========================== */
@media (max-width: 768px) {

  /* Centrado vertical real */
  .hero {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Bloque de texto */
  .hero-content {
    position: relative;
    transform: translateY(0);   /* eliminamos empujes anteriores */
    margin-top: 0;
    padding: 0 20px;
    text-align: center;
  }

  /* TÍTULO PRINCIPAL */
  .hero-content .name {
    font-size: 2.1rem;          /* 👈 AJUSTA AQUÍ */
    letter-spacing: 0.35rem;
    margin-bottom: 1.6rem;
    line-height: 1.05;
  }

  /* Selectores */
  .selectors {
    flex-direction: column;
    gap: 38px;
  }

  .selectors .divider {
    display: none;
  }

  .selector-label {
    font-size: 1.05rem;
    letter-spacing: 0.2rem;
  }

}

/* ======== HEADER DE IDIOMAS ======== */

.language-switcher {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.language-switcher a {
  text-decoration: none;
  color:#ada582;
  opacity: 0.7;
  transition: 0.3s;
}

.language-switcher a:hover {
  opacity: 1;
}

.language-switcher span {
  margin: 0 6px;
  opacity: 0.4;
}

/* ======== ACCESIBILIDAD: respetar "reducir movimiento" ======== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}
