/* ==========================================================================
   RESET BÁSICO Y CONFIGURACIÓN GENERAL
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* OCULTA EL CURSOR ESTÁNDAR DEL NAVEGADOR EN TODA LA WEB */
body, 
a, 
button, 
.gallery-container {
  cursor: none !important;
}

body {
  background-color: #ffffff;
  color: #2b2b2b;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 17px;
  text-align: left;
  line-height: 1.25;
  padding: 30px 40px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* EVITA CUALQUIER DESPLAZAMIENTO HORIZONTAL EN MÓVIL */
}

/* ==========================================================================
   CURSOR PERSONALIZADO: ASTERISCO HELVÉTICA (BLANCO + EXCLUSIÓN)
   ========================================================================== */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  font-family: Arial, "Liberation Sans", sans-serif;
  font-size: 90px;
  font-weight: 400;
  color: #ffffff; 
  transform: translate(-50%, -28%); 
  line-height: 1;
  user-select: none;
  mix-blend-mode: exclusion;
}

/* ==========================================================================
   1. NAV / HEADER FIJO MULTICOLUMNA
   ========================================================================== */
.fixed-nav {
  position: fixed;
  top: 15px;
  left: 0;
  width: 100vw;
  padding: 0 40px;
  z-index: 100;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: normal;
  line-height: 1.2;
  
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.nav-block {
  pointer-events: auto;
}

/* --- BLOQUE IZQUIERDA: ROJO (#ff0000) --- */
.nav-left {
  text-align: left;
  color: #ff0000;
}

.nav-left .contact {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}

.nav-left .name,
.nav-left .email,
.nav-left .phone {
  font-size: 15px;
  font-weight: 400;
}

.nav-left a {
  color: #ff0000;
  text-decoration: none;
}

.nav-left a:hover {
  text-decoration: underline;
}

/* --- BLOQUE CENTRO: VERDE (#3b9b66) --- */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.nav-link {
  color: #3b9b66;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  text-decoration: underline;
  opacity: 0.7;
}

/* --- BLOQUE DERECHA: AZUL (#0a02fc) --- */
.nav-right {
  text-align: right;
  color: #0a02fc;
}

.info-title {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 2px;
  color: #0a02fc;
}

.info-item {
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  color: #0a02fc;
}

.phone {
  font-style: italic;
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL
   ========================================================================== */
.main-content {
  margin-top: 150px;
  margin-bottom: 120px; /* Margen para dejar respirar el contenido sobre el footer */
  max-width: 980px;
  padding-left: 0; 
  width: 100%;
}

/* ==========================================================================
   2. HERO / TIPOGRAFÍA CENTRADA EN PANTALLA (CENTRADO ÓPTICO ABSOLUTO)
   ========================================================================== */
.hero-section {
  margin-bottom: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Fuerza el ancho al 100% de la ventana de lado a lado */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Ampliamos un pelín la caja para dar aire */
  height: 380px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}


.typographic-hero {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* TEXTO GIGANTE CON CAMBIO DE COLOR */
.kinetic-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 250px;
  font-weight: normal;
  font-style: italic;
  letter-spacing: -0.02em;
  animation: colorCycle 6s infinite alternate ease-in-out;
}

/* Animación de colores vivos */
@keyframes colorCycle {
  0% {
    fill: #0a02fc;
    stroke: transparent;
  }
  33% {
    fill: #3b9b66;
  }
  66% {
    fill: #ff0000;
  }
  100% {
    fill: #111111;
  }
}

/* ==========================================================================
   3. BIOGRAFÍA Y CONTENIDO
   ========================================================================== */
.bio-section {
  margin-bottom: 80px;
  max-width: 790px;
}

.bio-es, .bio-en {
  margin-bottom: 2.2rem;
}

.bio-es p, .bio-en p {
  margin-bottom: 0.8rem;
  color: #333333;
  line-height: 1.25;
  text-wrap: pretty;
}

/* ==========================================================================
   4. SECCIÓN MY WORKS
   ========================================================================== */
.works-section {
  margin-top: 60px;
  max-width: 790px;
}

.section-title {
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 40px;
  color: #222;
}

.work-item {
  margin-bottom: 100px;
}

.work-description {
  width: 100%;
  margin-bottom: 35px;
  color: #333;
  line-height: 1.25;
  text-wrap: pretty;
}

/* ==========================================================================
   5. GALERÍA CLIQUEABLE
   ========================================================================== */
.gallery-container {
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
}

.gallery-slide {
  width: auto;
  position: relative;
  line-height: 0;
}

.gallery-img {
  display: none;
  width: 100%;
  max-width: 550px;
  height: auto;
}

.gallery-img.active {
  display: block;
}

.gallery-footer {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  color: #444;
  font-style: italic;
  font-family: Georgia, "Times New Roman", Times, serif;
  margin-top: 15px;
  width: 100%;
  position: relative;
}

.index-num {
  position: absolute;
  left: 16vw; 
  transform: translateX(550px);
  white-space: nowrap;
}

/* ==========================================================================
   6. NAV / FOOTER FIJO INFERIOR MULTICOLUMNA (AZUL, VERDE Y ROJO)
   ========================================================================== */
.fixed-footer {
  position: fixed;
  bottom: 15px;
  left: 0;
  width: 100vw;
  padding: 0 40px;
  z-index: 100;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: normal;
  line-height: 1.2;
  
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.footer-block {
  pointer-events: auto;
}

/* --- BLOQUE IZQUIERDA: AZUL (#0a02fc) --- */
.footer-left {
  text-align: left;
  color: #0a02fc;
}

.footer-left .footer-item {
  font-size: 15px;
  font-weight: 400;
  color: #0a02fc;
}

/* --- BLOQUE CENTRO: VERDE (#3b9b66) --- */
.footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.footer-link {
  color: #3b9b66;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  transition: opacity 0.2s ease;
}

.footer-subtext {
  color: #3b9b66;
  font-size: 15px;
  font-style: italic;
  margin-top: 4px;
}

.footer-link:hover {
  text-decoration: underline;
  opacity: 0.7;
}

.footer-separator {
  color: #3b9b66;
  font-size: 15px;
}

/* --- BLOQUE DERECHA: ROJO (#ff0000) --- */
.footer-right {
  text-align: right;
  color: #ff0000;
}

.footer-right .footer-item {
  font-size: 15px;
  font-weight: 400;
  color: #ff0000;
}

/* ==========================================================================
   RESPONSIVE MÓVIL Y PANTALLAS ESTRECHAS (CORREGIDO Y CENTRADO ABSOLUTO)
   ========================================================================== */
@media (max-width: 850px) {
  body {
    padding: 20px;
  }
  
  /* Cabecera ordenada en vertical sin solapamientos */
  .fixed-nav {
    position: relative;
    top: 0;
    left: 0;
    padding: 0;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
  }

  .nav-center {
    position: static;
    transform: none;
    text-align: left;
  }

  .nav-left, .nav-center, .nav-right {
    text-align: left;
  }

  /* Ajuste de contenedor principal */
  .main-content {
    margin-top: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
  }

  /* REAJUSTE Y CENTRADO DEL HERO EN MÓVIL */
  .hero-section {
    width: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-media {
    width: 100%;
    max-width: 100%;
    height: 180px; /* Reducimos altura de caja */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .typographic-hero {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto; /* Obliga al SVG a estar centrado */
  }

  /* TAMAÑO DE TEXTO ADAPTADO AL ANCHO MÓVIL */
  .kinetic-text {
    font-size: 110px; /* Escala perfecta para no salirse del borde derecho */
  }

  .index-num {
    position: static;
    transform: none;
  }

  /* Footer inferior adaptado a vertical en móvil */
  .fixed-footer {
    position: relative;
    bottom: 0;
    left: 0;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 50px;
    width: 100%;
  }

  .footer-center {
    position: static;
    transform: none;
    text-align: left;
  }

  .footer-left, .footer-center, .footer-right {
    text-align: left;
  }
}