/* Base global */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #111;
  position: relative;
  color: white;
  overflow-x: hidden;
}

/* Fondo con fade in */
body {
  background-size: cover;
  background-position: center center;
  animation: fadeInBackground 1.5s ease forwards;
}

@keyframes fadeInBackground {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Overlay oscuro */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 0;
  animation: fadeInBackground 1.5s ease forwards;
}

/* Contenedor principal */
.content-wrapper {
  position: relative;
  z-index: 10;
  /* Para perfil.php se usaba height: 100vh; para about y gallery min-height 100vh, ajusta según necesidades */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}

/* Nombre grande - perfil */
.profile-name, 
.about-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  user-select: none;
}

.profile-name {
  font-size: 4.5rem;
  margin-bottom: 1rem;
}

.about-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Menú centrado, animado desde abajo */
nav.menu-links {
  position: static;          /* Quitar fixed */
  margin-top: 1rem;          /* Espacio desde el nombre */
  display: flex;
  justify-content: center;   /* Centrar horizontalmente */
  gap: 3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1rem;
  user-select: none;
  opacity: 1 !important;     /* Mostrar sin animación de aparecer */
  transform: none !important;
  animation: none !important;
  width: auto;
  background: none;          /* Sin fondo */
  padding: 0;
}
nav.menu-links .menu-name {
  display: none;             /* Oculta el nombre duplicado si está */
}
nav.menu-links a {
  color: white;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
nav.menu-links a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s;
  position: absolute;
  bottom: -6px;
  left: 0;
}
nav.menu-links a:hover::after {
  width: 100%;
}
nav.menu-links a:hover {
  color: #a78bfa;
}
@keyframes slideUpFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* GALERÍA */
/* Para galería: nombre izquierda y menú derecha en la misma línea */
.gallery-page nav.menu-links {
  display: flex;
  justify-content: space-between; /* Nombre a la izquierda, menú a la derecha */
  align-items: center;
  position: static; /* o relativo, según tu diseño */
  margin-top: 0; /* Ajusta si quieres espacio */
  padding: 1rem 3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1rem;
  user-select: none;
  background: none;
  width: 100%;
  box-sizing: border-box;
}

.gallery-page nav.menu-links .menu-name {
  display: block; /* Mostrar nombre */
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  user-select: none;
}

.gallery-page nav.menu-links .menu-items {
  display: flex;
  gap: 2rem;
}

.gallery-page nav.menu-links a {
  color: white;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.gallery-page nav.menu-links a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s;
  position: absolute;
  bottom: -6px;
  left: 0;
}

.gallery-page nav.menu-links a:hover::after {
  width: 100%;
}

.gallery-page nav.menu-links a:hover {
  color: #a78bfa;
}
.gallery-page h1 {
  color: white !important; /* Color blanco sólido */
  opacity: 1 !important; /* Forzar que no tenga transparencia */
}
.gallery-page nav.menu-links .menu-name {
  color: white !important;          /* Color blanco sólido */
  opacity: 1 !important;            /* Sin transparencia */
  font-weight: 700;
  user-select: none;
  font-size: 1.5rem;
  text-transform: uppercase;
  filter: none !important;          /* Elimina filtros si existieran */
}
.gallery-page nav.menu-links {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85); /* fondo opaco */
  z-index: 9999;
}

.gallery-page .main-container {
  padding-top: 60px; /* altura suficiente para que no quede debajo */
}


.main-container {
  padding-top: 6.5rem; /* espacio para menú fijo */
  max-width: 100%;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  min-height: 100vh;
}

h1 {
  text-align: center;
  font-size: 4rem !important;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

p.description {
  text-align: center;
  font-size: 1.25rem;
  max-width: 720px;
  margin: 0 auto 3rem;
  color: #ccc;
  line-height: 1.6;
  font-weight: 300;
  font-family: 'Montserrat', sans-serif;
}

/* Cuadrícula imágenes/videos locales */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.gallery-grid img,
.gallery-grid video {
  width: 100%;
  aspect-ratio: 4 / 5; /* Proporción vertical */
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.9);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
  background: black;
}
.gallery-grid img:hover,
.gallery-grid video:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255,255,255,0.5);
}

/* Swiper carrusel videos externos */
.swiper {
  width: 90vw !important;
  max-width: 1000px !important;
  height: 520px !important;
  margin: 2rem auto 3rem auto;
  border-radius: 16px;
  overflow: hidden;
  background: black;
}
.swiper-slide {
  background: #111;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
}
.swiper-slide iframe,
.swiper-slide video {
  width: 100% !important;
  height: 100% !important;
  border-radius: 16px;
  object-fit: contain;
}
.swiper-button-next,
.swiper-button-prev {
  color: white;
  filter: drop-shadow(0 0 3px black);
  font-size: 3rem;
  width: 3.5rem;
  height: 3.5rem;
}

/* Animación inicial para fade + slide */
.fade-slide-in {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-name: fadeSlideIn;
  animation-duration: 1s;
}
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Delay animaciones */
.fade-delay-1 { animation-delay: 0.3s; }
.fade-delay-2 { animation-delay: 0.6s; }
.fade-delay-3 { animation-delay: 0.9s; }

/* CONTACTO */

.container {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 5rem auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  background: rgba(20,20,20,0.8);
  padding: 3rem 4rem;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.9);
}

.left-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
}
.left-column img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(255,255,255,0.15);
}

.social-icons {
  display: flex;
  gap: 1.8rem;
  font-size: 1.8rem;
  color: white;
}
.social-icons a {
  transition: color 0.3s ease;
}
.social-icons a:hover {
  color: #a78bfa;
}

.right-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-weight: 900;
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
}

form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

form input, form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.8rem;
  border-radius: 0.5rem;
  border: none;
  background-color: #222;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  box-shadow: inset 0 0 5px rgba(255,255,255,0.1);
  transition: background-color 0.3s ease;
}
form input:focus, form textarea:focus {
  outline: none;
  background-color: #333;
}

button[type="submit"] {
  background-color: #8b5cf6;
  padding: 1rem 2rem;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: fit-content;
}
button[type="submit"]:hover {
  background-color: #7c3aed;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    margin: 2rem 1rem;
    padding: 2rem;
  }
  .left-column img {
    width: 100%;
    height: auto;
  }
  h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
}

/* Animación contacto: slide down right */
@keyframes slideDownRight {
  0% {
    opacity: 0;
    transform: translate(-50px, -50px);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}
.slide-down-right {
  animation-name: slideDownRight;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  opacity: 0; /* Inicial oculto */
  animation-delay: 1s; /* Retraso para esperar a que termine fadeIn de la foto */
}

/* Sobre mí */

.about-container {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 3rem 4rem;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
  color: #eee;
}

.medidas {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #ddd;
}

.medidas em {
  font-style: italic;
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #bbb;
}

.redes-sociales {
  margin-top: 3rem;
  display: flex;
  gap: 2.5rem;
  font-size: 2.2rem;
  color: white;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.redes-sociales a {
  transition: color 0.3s ease;
}

.redes-sociales a:hover {
  color: #a78bfa;
}
@media (max-width: 768px) {
  .responsive-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2.2rem !important;
    word-break: break-word;
    text-align: center;
  }
}
