body {
  background: linear-gradient(
    to top left,
    rgba(22, 16, 50, 0.4) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% auto; /* se adapta al contenido */
  min-height: 100vh; /* garantiza cubrir la pantalla */
  margin: 0;
  padding: 0;
}
/* ====================== BARRA SUPERIOR cv ======================  */
.cv .top-bar {
    position: fixed;       /* fija en la parte superior */
    top: 0;
    left: 0;
    width: 100%;           /* ocupa todo el ancho */
    height: 24px;          /* alto de la barra */
    background-color: rgb(224, 255, 79); /* color lima */
    display: flex;
    align-items: center;   /* centra verticalmente */
    justify-content: flex-start; 
    padding-left: 20px;
    z-index: 2000;         /* por encima de todo */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /* Animación */
    animation: loadTopBarCV 2s forwards;  /* dura 2 segundos */

}

/* Texto dentro de la barra */
.cv .top-bar-text {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1rem;
    color: black;
    text-align: left;

}
/* Keyframes para animar la barra */
@keyframes loadTopBarCV {
    0% { width: 0%; }
    100% { width: 100%; }
}
/* ====================== FOTIKO ====================== */	

.cv .foto-superior {
    position: fixed;    
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.cv .foto-superior img {
    width: 150px;
    height: auto;
    border-radius: 50%;
    display: block;
}
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.foto-superior img {
  animation: flotar 4s ease-in-out infinite;
}

/* ====================== CONTENEDOR ====================== */
div.contenedor {
    max-width: 1100px;      /* ancho total cv */
    margin: 0 auto;
    padding-top: 150px;
}

/* ====================== TITULO ====================== */
	
div.titulo {
    position: relative; 
    padding-left: 20px
}
div.titulo h1 {
    color: black;
    font-family: "Archivo", sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    margin: 0;
    cursor: pointer;
    display: inline-block;
    transform-origin: center;
    transition: transform 0.3s;
}

/* Animación de rebote al hover */
div.titulo h1:hover {
    animation: bounce 1s ease forwards;
   

}
div.titulo h1 {
    transition: transform 0.3s;
}
@keyframes bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.5); }
    50%  { transform: scale(0.95); }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Texto pequeño bajo el nombre */
p.minitexto {
    color: black;
    font-family: "Playfair Display", serif;
    font-style: italic;  
    font-weight: 100;
    font-size: 0.8rem;
    margin: 11px 0 0 0;
}

/* ====================== ENLACES ====================== */
.enlace a {
    color: black;
    font-family: "Playfair Display", serif;
    font-style: italic;       /* cursiva */
    font-weight: 200;
    padding-left: 20px;
    margin: 3px 0 0 0;
    display: inline-block;    /* para que margin/padding funcionen */
    text-decoration: none;    /* quita subrayado predeterminado */
    transition: color 0.3s;
}

.enlace a:hover {
    color: rgb(224, 255, 79);
    text-decoration: underline;
}

/* ====================== TEXTOS ====================== */
p.texto {
    color: black;
    font-family: "Playfair Display", serif;
    font-weight: 200;
    padding-left: 20px;
    margin: 7px 0 20px 0;
}

p.trabajos {
    color: black;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    padding-left: 20px;
    font-size: 1.1rem;
    margin: 13px 0 0 0;
    text-decoration-line: underline;
    text-decoration-color: rgba(224, 255, 79);
}

p.fechas {
    color: black;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 200;
    padding-left: 20px;
    margin: 1px 0 17px 0;
}

/* ====================== TITULOS H2 ====================== */
h2 {
    color: black;
    font-family: "Archivo", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    padding-left: 20px;
    margin: 37px 0 12px 0;
}

/* ====================== COLUMNAS ====================== */
div.columnas {
    display: flex;
    justify-content: space-between;
    gap: 40px; /* separación entre columnas */
    padding-top: 14px;
}

div.columna-izquierda {
    flex: 65%;
}

div.columna-derecha {
    flex: 60%;
}

/* COLUMNAS RESPONSIVE */
@media (max-width: 475px) {
    div.columnas {
        flex-direction: column;
        gap: 20px;
    }
}

/* ====================== IDIOMAS ====================== */
.idioma {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    font-family: "Playfair Display", serif;
    font-weight: 200;
    margin-bottom: 6px;
}

.nivel-idioma {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bola {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 0.5px solid #333;
    background-color: #ddd;
    transition: transform 0.3s, background-color 0.3s, opacity 0.4s;
}

.bola.llena {
    background-color: #333;
}

/* Animación de iluminación de bolitas */
.nivel-idioma:hover .bola {
    animation: iluminar 0.5s forwards;
}
.nivel-idioma:hover .bola:nth-child(1) { animation-delay: 0s; }
.nivel-idioma:hover .bola:nth-child(2) { animation-delay: 0.1s; }
.nivel-idioma:hover .bola:nth-child(3) { animation-delay: 0.2s; }
.nivel-idioma:hover .bola:nth-child(4) { animation-delay: 0.3s; }
.nivel-idioma:hover .bola:nth-child(5) { animation-delay: 0.4s; }

/* Solo ilumina las 3 primeras bolas del inglés */
.nivel-idioma.ingles:hover .bola {
    animation: none;
}
.nivel-idioma.ingles:hover .bola:nth-child(-n+3) {
    animation: iluminar 0.5s forwards;
}
.nivel-idioma.ingles:hover .bola:nth-child(1) { animation-delay: 0s; }
.nivel-idioma.ingles:hover .bola:nth-child(2) { animation-delay: 0.1s; }
.nivel-idioma.ingles:hover .bola:nth-child(3) { animation-delay: 0.2s; }

/* Keyframes bolitas */
@keyframes iluminar {
    0%   { transform: scale(1); background-color: #333; opacity: 0.8; }
    50%  { transform: scale(1.3); background-color: #e0ff4f; opacity: 1; }
    100% { transform: scale(1); background-color: #333; opacity: 0.8; }
}
/* ====================== INTERESES ====================== */
.intereses-section {
    width: 100%;              /* ocupa todo el ancho del contenedor */
    margin: 60px 0 40px 0;
    padding: 0;
    text-align: left;          /* alinear texto a la izquierda */
    box-sizing: border-box;
}

.intereses-section h2 {
    color: black;
    font-family: "Archivo", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 20px 20px;    /* margen izquierdo igual que títulos de la columna */
}

.intereses-list p.texto {
    font-family: "Playfair Display", serif;
    font-weight: 200;
    font-size: 1rem;
    color: black;
    margin: 0 0 0 20px;       /* margen izquierdo igual que títulos */
    text-align: left;
}

/* Barra doble decorativa */
.barra-doble {
    width: 95%;               /* un poco más larga */
    margin: 0 auto 15px auto;
    height: 2px;
    background-color: black;
    position: relative;
}

.barra-doble::before {
    content: "";
    position: absolute;
    top: 6px;                 /* separación entre barras */
    left: 0;
    width: 100%;
    height: 1px;
    background-color: black;
}


/* Título */
.intereses-section h2 {
    color: black;
    font-family: "Archivo", sans-serif;
    font-style: italic;       /* cursiva */
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 0px 0;
    padding left: 20px;
    text-align: left;
}

/* Lista de intereses */
.intereses-list p.texto {
    font-family: "Playfair Display", serif;
    font-style: italic;       /* cursiva */
    font-weight: 200;
    font-size: 1rem;
    color: black;
    margin-top: 20px;
    text-align: center;
}
@media (max-width: 475px) {
    .intereses-section h2,
    .intereses-list p.texto {
        margin-left: 10px;     /* un poco de margen en móvil */
    }

    .barra-doble {
        width: 100%;           /* ocupar todo el ancho en móvil */
    }
}
/* Título con animación de corazones */
.likes {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: black;
    font-family: "Archivo", sans-serif; /* coincide con tu h2 */
    font-style: italic;
    font-weight: 500;
    font-size: 1.4rem;
}

/* Corazones al hacer hover */
.likes:hover::before {
    content: " ❤︎ ";
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    animation: floatHeart 1s ease-out forwards;
    font-size: 1.2rem;
}

@keyframes floatHeart {
    0%   { opacity: 0; transform: translate(-50%, 0) scale(0); }
    50%  { opacity: 1; transform: translate(-50%, -15px) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -40px) scale(0.8); }
}
/* ====================== BOTÓN VOLVER ARRIBA ====================== */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background-color: rgb(224, 255, 79);
  color: black;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: none;
  z-index: 3000;
}

#scrollTopBtn:hover {
  background-color: black;
  color: rgb(224, 255, 79);
  transform: scale(1.1);
}











/* ====================== PORTFOLIO ESTILO ====================== */



/* ====================== BARRA SUPERIOR ====================== */
.portfolio .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background-color: rgba(224, 255, 79);
    display: flex;
    justify-content: center; /* centrado horizontal */
    align-items: center;     /* centrado vertical */
    z-index: 2000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    
}

.portfolio .top-bar-text {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1rem;
    color: black;

}

/* ====================== CONTENEDOR ====================== */
.portfolio .portfolio-container {
    padding-top: 70px; 
    text-align: left;
}


/* ====================== GRID PORTFOLIO ====================== */
.portfolio .grid-portfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* siempre 2 columnas */
  gap: 50px 40px;                        /* espacio entre elementos */
  padding: 150px 80px 60px 80px;
  max-width: 1400px;                     /* centrado y control de ancho */
  margin: 0 auto;
  box-sizing: border-box;
}

.portfolio .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.portfolio .item:hover {
  transform: scale(1.03);
}

/* ===== Imágenes del grid con efecto blur ===== */
.portfolio .item img {
  width: 100%;
  aspect-ratio: 3 / 2; /* rectángulo horizontal */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;

  
  filter: blur(0.7px) brightness(0.9);
  transition: filter 0.6s ease, transform 0.3s ease;
}

.portfolio .item:hover img {
  /* cuando hover: se enfoca y se ilumina un poco */
  filter: blur(0) brightness(1);
  transform: scale(1.02);
}

.portfolio .item span {
  margin-top: 7px;
  font-size: 1.2rem;
  font-weight: 200;
  color: #111;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-style: italic
}

/* ====================== RESPONSIVE ====================== */
/* --- PANTALLAS GRANDES: desde 1280px --- */
@media (min-width: 1280px) {
  .portfolio .grid-portfolio {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas amplias */
    gap: 50px 40px;
    padding: 80px 60px; /* más espacio lateral */
  }
}

/* --- MÓVILES: hasta 475px --- */
@media (max-width: 475px) {
  .portfolio .grid-portfolio {
    grid-template-columns: 1fr; /* una sola columna */
    gap: 25px;
    padding: 20px; /* menos espacio lateral, igual que CV */
  }
}
/* ====================== HERO DE PORTFOLIO ====================== */
.portfolio .portfolio-hero {
  color: #000;
  font-family: "Archivo", sans-serif;
  max-width: 1400px;
  margin: 0 auto 40px auto;;
  padding: 60px 80px 0 80px; /* ← mismo padding lateral que el grid */
  box-sizing: border-box;
  text-align: left; /* asegura alineación a la izquierda */
}

/* ===== Texto principal (h1) ===== */
.portfolio .portfolio-hero h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 2.8rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: #000;
  max-width: 700px;
}

.portfolio .portfolio-hero h1 .fino {
  font-family: "Archivo", sans-serif;
  font-size: 2.4rem;
  font-weight: 400; /* más fino */
  color: #000; 
  line-height: 1;
}

.portfolio .portfolio-hero h1 .cursiva {
  font-family: "Archivo", sans-serif;
  font-size: 2.8rem;
  font-style: italic;
  font-weight: 600;
  color: #000; 
  line-height: 1;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .portfolio .portfolio-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 30px 0 30px;
  }

  .portfolio .intro-text h1 {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 40px;
  }

  .portfolio .hero-nav {
    flex-direction: row;
    gap: 20px;
  }
}
/* ====================== FOOTER PORTFOLIO ====================== */
.portfolio .portfolio-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 100px auto 40px auto; /* ↑ espacio para que quede justo al final */
  padding: 0 80px;
  box-sizing: border-box;
  background: transparent;
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
}

/* === Enlaces del footer (cv y estrella comparten estilo) === */
.portfolio .footer-link,
.portfolio .footer-star {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
  animation: floatElement 3s ease-in-out infinite;
}

/* Hover verde lima */
.portfolio .footer-link:hover,
.portfolio .footer-star:hover {
  color: rgb(224, 255, 79); /* verde lima */
  transform: translateY(-3px);
}

/* Animación flotante sutil */
@keyframes floatElement {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}