@font-face {
    font-family: 'Protest strike';
    src: url('Fuentes/ProtestStrike-Regular.ttf') format('truetype');
    font-weight: 100;
  }

 @font-face {
    font-family: 'Merriweather regular';
    src: url('Fuentes/Merriweather-Regular.ttf') format('truetype');
    font-weight: 100;
  }

  @font-face {
    font-family: 'SourceSansPro Semibold';
    src: url('Fuentes/SourceSansPro-Semibold.otf') format('truetype');
    font-weight: 100;
  }

  @font-face {
    font-family: 'SourceSansPro light';
    src: url('Fuentes/SourceSansPro-Light.otf') format('truetype');
    font-weight: 100;
  }

@font-face {
    font-family: 'Inter light';
    src: url('Fuentes/static/Inter_18pt-ExtraLight.ttf') format('truetype');
    font-weight: 100;
  }

  @font-face {
    font-family: 'Inter Regular';
    src: url('Fuentes/static/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 100;
  }

  
/*###### */

* {
  box-sizing: border-box;
}
/* --- HEADER FIJO --- */

.navbar { 
    position: fixed; 
    top: 0;
    width: 100%; 
    box-sizing: border-box; /* Incluye el padding dentro del ancho total */ 
    background-color: #000000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 120px; 
    z-index: 1000; 
    border-radius: 0; 
    transition: all 0.8s ease; 
   /*  border-bottom: 2px solid #ffffff; /* 👈 borde inferior blanco */
 }

.border-short {
    position: absolute;
    bottom: 0;
    left: 10%;       /* margen lateral */
    width: 80%;      /* ancho del borde */
    height: 1px;     /* grosor del borde */
    background-color: #ffffff;
}

.portada-divider {
  border: none;
  border-top: 1px solid #ccc; /* color gris suave */
  width: 100%;
  margin: 0px; /* espacio arriba y abajo */
  opacity: 0.6; /* un poco translúcida */
}

/* --- TITULOS --- */
.titulo h1 {
    font-family: 'Inter light','SourceSansPro light', 'Protest strike', Helvetica, serif;
    color: #9af9c6; /* usá negro o el color que quieras que contraste con tu fondo a8f155 */
    text-decoration: none;
    font-weight: 5;
    margin: 0;
    white-space: nowrap; /* evita que un nombre largo se parta en dos líneas */
    transition: color 0.3s ease;
}

.titulo h5 {
    margin: 0;
    font-family: 'Inter light','SourceSansPro light', 'Protest strike', Helvetica, serif;
    font-size: 0.9rem;
    color: #ffffff;
}

.navbar a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #9af9c6;
}

/* --- MENÚ --- */
.menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #9af9c6;
}

/* --- MARGEN PARA EL CONTENIDO --- */
main {
    margin-top: 110px;
}

/* --- PORTADA / HERO --- */

.portada-texto {
  padding: 30px 40px;
  margin-right: 400px; /* 🔹 Ajustá este valor según cuánto quieras moverlo */
}

.portada-texto h1 {
    font-size: 70px;
    margin-bottom: 10px;
    font-family: 'Inter Regular','SourceSansPro light', 'Protest strike', Helvetica, serif;
    text-align: left; /* ✅ esto sí alinea el texto */
    line-height: 1.6; /* 🔹 ajustá este valor: 1.2–1.6 según el efecto que quieras */
    color: #ffffff; /* terracota */
}

.portada-texto p {
    font-size: 1.2rem;
    color: #fff;
}

.portada {
  position: relative;
  height: 100vh; 
  background: url('Imagenes/Visual/portada_portfolio.png') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden; /* asegura que el overlay no se salga */
}

/* Capa oscura encima de la imagen */
.portada::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Para que el texto quede encima del overlay */
.portada * {
  position: relative;
  z-index: 2;
}

.portada-divider {
  border: none;
  border-top: 1px solid #ccc; /* color gris suave */
  width: 100%;
  margin: 0px; /* espacio arriba y abajo */
  opacity: 0.6; /* un poco translúcida */
}

/* --- TRANSICIÓN AL HACER SCROLL --- */


/* --- NAVBAR cuando bajás (clase "scrolled") --- */
.navbar.scrolled {
    background-color: #fff;
    color: #9af9c6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar.scrolled a {
    color: #40ef90;
}



/*##### */




header {
    font-family: 'SourceSansPro light';
    font-weight: 250;
    color: #fff;
    padding: 20px;
    text-align: center;
    width: 80%; 
    margin: 0 auto; 
    border-radius: 20px;
/*    border: 2px solid #ffffff; */
}


h1 {
    margin: 10;
    font-weight: 50;
    font-family: 'SourceSansPro light', 'Protest strike', Helvetica, serif;
    display: inline-block;
    padding: 10px;
}

h3 {
    margin: 0;
    font-weight: 50;
    font-family: 'SourceSansPro Semibold', 'Protest strike', Helvetica, serif;
}

nav ul {
    display: flex;
    flex-wrap: wrap; /* permite que salten de línea si no entran */
    justify-content: center; /* centra los elementos */
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
    overflow-x: auto; /* por si querés scroll lateral en pantallas chicas */
    scroll-behavior: smooth;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-family: 'Inter light','SourceSansPro light', 'Protest strike', Helvetica, serif;
    color: #000; /* usá negro o el color que quieras que contraste con tu fondo */
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap; /* evita que un nombre largo se parta en dos líneas */
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #0077cc;
    text-decoration: underline;
}


body {

    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('Imagenes/Visual/fondo_portfolio_canvas.png') center/cover no-repeat;
    /*background-image: url('imagen_fondo.jpeg'); */
    background-size: cover; /* Ajusta el tamaño de la imagen para cubrir todo el fondo */
    background-position: center top; /* Centra la imagen en el fondo */
    background-attachment: fixed;

    font-family: 'SourceSansPro Semibold', 'Protest strike', Helvetica, serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    margin-top: 30px;

}

main {
    font-size: 20px;
    font-family: 'SourceSansPro Semibold', 'Protest strike', Helvetica, serif;
    margin: 10px auto 90px; /* margen arriba, margen horizontal, margen abajo a8f155 */
    text-align: center;
    padding: 1px;
    color: #40ef90;
    width: 85%;
}

.about {
    font-size: 20px;
    font-family: 'SourceSansPro Semibold', 'Protest strike', Helvetica, serif;
    margin: 0; /* margen arriba, margen horizontal, margen abajo */
    width: 100%;
    text-align: left;
    padding: 30px;
    background: linear-gradient(rgb(252, 252, 252), rgb(255, 255, 255)); /* más opaco */
    color: #40ef90;
    border: 0px solid #bbbbbb;
}

.about h2 {
    position: relative;
    display: inline-block;
    font-size: 32px;
    font-family: 'SourceSansPro Semibold', 'Protest strike', Helvetica, serif;
    color: #000000;
    z-index: 1;
}

.about h2::before {
    content: "";
    position: absolute;
    top: 15%; /* altura del trazo sobre el texto */
    left: 0;
    width: 100%;
    height: 70%; /* grosor del trazo */
    background: rgba(0, 255, 119, 0.8);
    transform: rotate(-1deg);
    z-index: -1;
}

.about p {
    font-size: 17px;
    font-family: 'SourceSansPro light', 'Protest strike', Helvetica, serif;
    text-align: justify;
    padding-right: 10px;
    padding-left: 10px;
    color: #353535;
}


/* SUBSEGMENTO DOCENCIA */

.docencia {
  padding: 30px 0;
}

.docencia h4 {
  font-size: 24px;
  color: #000000;
  margin-bottom: 25px;
  font-family: 'SourceSansPro Semibold', Helvetica, serif;
}

/* contenedor de los items */
.docencia-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.uni-container {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid #bbb;
  border-radius: 12px;
  padding: 10px 15px;
  transition: transform 0.2s ease, background 0.3s ease;
  max-width: 450px;
  flex: 1 1 320px;
}

.uni-container:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.6);
}

.uni-logo {
  width: 180px;
  height: auto;
  border-radius: 8px;
}

.uni-texto h3 {
  font-size: 16px;
  color: #000;
  margin: 0;
}

.uni-texto p {
  font-size: 14px;
  color: #333;
  margin: 2px 0 0 0;
  padding-right: 0px;
  padding-left: 0px;
}

/* INSTITUCIONES CON LAS QUE TRABAJÉ */

.workwith {
  padding: 0px 0;
  margin-right: 0px;
  margin-left: 0px;
}

.workwith h4 {
  font-size: 24px;
  color: #000000;
  margin-bottom: 25px;
  font-family: 'SourceSansPro Semibold', Helvetica, serif;
}

/* contenedor de logos */
.logos-container {
  display: flex;
  margin-right: 0px;
  margin-left: 0px;
  flex-wrap: wrap;           /* permite varias filas si son muchos */
  gap: 25px;
  justify-content: flex-start;
  align-items: center;
}

/* cada logo individual */
.logo-item {
  width: 160px;
  height: auto;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-item:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* SEGMENTO CONTACTO */

.bottom-section {
  display: flex;
  justify-content: flex-start; /* los deja alineados a la izquierda */
  align-items: flex-start;      /* o center si querés centrarlos verticalmente */
  gap: 120px;                    /* 🔹 acá definís la separación entre Contacto y Curriculum */
  padding: 0 60px;
  margin-top: 40px;
}

.bottom-section h4 {
  font-size: 20px;
  color: #4b4b4b;
  margin-bottom: 25px;
  font-family: 'SourceSansPro Semibold', Helvetica, serif;
}

#contactoCV {
  display: flex;
  gap: 15px;
}


.contact img {
    width: 50px;
    height: 50px;
}


#CV img.cv-icon {
  width: 50px;
  max-width: 100%;     /* ✔ evita que se pase del contenedor */
  height: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-block; /* ✔ ayuda a que respete el espacio */
}

#CV img.cv-icon:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.section-divider {
  border: none;
  border-top: 1px solid #ccc; /* color gris suave */
  width: 100%;
  margin: 40px 0; /* espacio arriba y abajo */
  opacity: 0.6; /* un poco translúcida */
}
/* SEGMENTO TRABAJOS */

.works {
    font-size: 25px;
    font-family: 'Inter Regular','SourceSansPro Semibold', 'Protest strike', Helvetica, serif;
    margin: 20px auto 90px;
    padding: 30px;
    text-align: left;
    color: #40ef90;
 /*   border: 2px solid #bbbbbb; */
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1));
    letter-spacing: 0.8px; /* 👈 ajustá este valor a gusto */
}

.works p {
    font-size: 16px;
    font-family: 'Inter light','SourceSansPro light', 'Protest strike', Helvetica, serif;
    text-align: justify;
    color: #ffffff;
}

/* Estilo para la "etiqueta" tema */
.tema {
  display: inline-flex;        /* se ajusta EXACTO al contenido */
  align-items: center;         /* centra el texto verticalmente */
  width: max-content;          /* evita que crezca más de lo necesario */
  
  font-family: 'Inter light','SourceSansPro light','Protest strike',Helvetica,serif;
  background: #40ef90;
  color: black;

  padding: 4px 10px;           /* un poquito más pequeño para que el pill sea más compacto */
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  line-height: 1;

  margin: 6px 0 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  letter-spacing: 0.2px;
}

/* Pequeño efecto hover opcional */
.tema:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Responsivo: reducir tamaño en pantallas muy pequeñas */
@media (max-width: 420px) {
  .tema {
    padding: 4px 10px;
    font-size: 13px;
  }
}

/* --- CARRUSEL --- */
.contenedorTrabajos {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.contenedorTrabajos::-webkit-scrollbar {
    height: 8px;
}

.contenedorTrabajos::-webkit-scrollbar-thumb {
    background-color: #40ef90;
    border-radius: 4px;
}

/* --- TARJETA --- */
/* --- TARJETA --- */
.trabajo {
    flex: 1;
    min-width: 250px; /* Para que NO se achiquen demasiado */
    background-color: #fff;
    border: 2px solid #bbbbbb;
    border-radius: 10px;
    padding: 20px;
    color: #40ef90;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.trabajo:hover {
    transform: translateY(-5px);
}

/* --- IMAGEN --- */
.trabajo img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
    display: block;
    transition: transform 0.3s ease;
}

/* --- CAPA OSCURA --- */
.trabajo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.4s ease;
    z-index: 1;
}

.trabajo:hover::before {
    background: rgba(0,0,0,0.85);
}

/* --- DESCRIPCIÓN (aparece centrada) --- */
.trabajo .descripcion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 80%;
    text-align: center;
    color: #9af9c6;
    font-size: 15px;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 2;
}

.trabajo:hover .descripcion {
    transform: translate(-50%, -50%);
    opacity: 1;
}


/* --- FLECHA/LINK --- */
.trabajo .link-flecha {
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 1.8rem;
    color: #40ef90;
    text-decoration: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.trabajo:hover .link-flecha {
    transform: translateY(0);
    opacity: 1;
}

/* --- TEXTOS NORMALES (ocultos al hover) --- */
.trabajo h2 {
    font-size: 20px;
    font-family: 'Inter Regular','SourceSansPro light', 'Protest strike', Helvetica, serif;
    color: rgb(70, 70, 70);/* Aplicar la fuente Source Sans Pro al título */
    margin-top: 0; /* Eliminar el margen superior del título */

}

.trabajo h4 {
    font-size: 20px;
    font-family: 'SourceSansPro Semibold', 'Protest strike', Helvetica, serif;
    color: rgb(109, 109, 109);/* Aplicar la fuente Source Sans Pro al título */
    margin-top: 0; /* Eliminar el margen superior del título */

}

.trabajo h2 a, .trabajo h4 a {
    text-decoration: none;
    color: #40ef90;
}

.trabajo:hover h2,
.trabajo:hover h4,
.trabajo:hover img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* SEGMENTO DIVULGACION */


.divulgacion {
    font-size: 25px;
    font-family: 'Inter Regular','SourceSansPro Semibold', 'Protest strike', Helvetica, serif;
    margin: 20px auto 90px;
    padding: 30px;
    text-align: left;
    color: #40ef90;
    border: 2px solid #bbbbbb; 
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1));
    letter-spacing: 0.8px; /* 👈 ajustá este valor a gusto */
}

.divulgacion p {
    font-size: 16px;
    font-family: 'Inter light','SourceSansPro light', 'Protest strike', Helvetica, serif;
    text-align: justify;
    color: #ffffff;
}



/* Contenedor general */
.contenedorPrincipalDivulgacion {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
}

/* Títulos */
.bloqueDivulgacion h4 {
  font-size: 20px;
  font-family: 'Inter light','SourceSansPro light', 'Protest strike', Helvetica, serif;
  color: #40ef90;
  margin-bottom: 10px;
}

/* Newsletter = 2/3 */
.bloqueNewsletter {
  flex: 0 0 100%;
}

/* Otras notas = 1/3 */
.bloqueNotas {
  flex: 0 0 33%;
}



/* Contenedores internos de cada bloque */
.contenedorNewsletter,
.contenedorOtrasNotas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.contenedorNewsletter > *,
.contenedorOtrasNotas > * {
    flex: 0 0 calc((100% - 40px) / 3); /* 3 por fila considerando el gap */
}

/* 🔥 CLAVE: Misma regla para que las 3 tarjetas tengan el mismo ancho */
.newsletter-item,
.nota-item {
  flex: 1 1 calc(50% - 10px);  /* siempre 2 columnas teóricas */
}

.nota-item {
  max-width: 320px;
}
/* Pero en el bloque de la derecha queremos que solo haya 1 */
.contenedorOtrasNotas .nota-item {
  flex: 1 1 100%;
}

/* Estilo compartido de tarjeta */
.newsletter-item,
.nota-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

/* Contenedor de trabajos: scroll horizontal */
.contenedorTrabajos {
    display: flex;           /* alineación horizontal */
    overflow-x: auto;        /* permite scroll horizontal */
    gap: 20px;               /* espacio entre trabajos */
    padding: 20px 10px;
    scroll-behavior: smooth; 
    -webkit-overflow-scrolling: touch; /* scroll suave en móviles */
}

/* Ocultar scroll si querés */
.contenedorTrabajos::-webkit-scrollbar {
    height: 8px;
}

.contenedorTrabajos::-webkit-scrollbar-thumb {
    background-color: #40ef90; 
    border-radius: 4px;
}


.newsletter-item img {
  width: 100%;     /* ocupa todo el ancho del contenedor */
  height: auto;    /* mantiene proporción original */
  display: block;
}

/* Overlay (la flecha que aparece encima al pasar el mouse) */
.newsletter-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7,59,73,0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.newsletter-item:hover .overlay {
  opacity: 1;
}

/* Flecha */
.link-flecha {
  color: white;
  font-size: 2rem;
  text-decoration: none;
}

/* Título y subtítulo */
.newsletter-item h2 {
  margin: 10px 0;
  font-size: 20px;
  font-family: 'Inter Regular','SourceSansPro light', 'Protest strike', Helvetica, serif;
  text-align: left; /* 👈 alineación a la izquierda */
  margin-left: 10px; /* opcional: pequeño margen interno */
  color: #073b49;
}

.newsletter-item h4 {
  color: #555;
  font-size: 20px;
  font-family: 'Inter light','SourceSansPro light', 'Protest strike';
  text-align: left; /* 👈 alineación a la izquierda */
  margin-left: 10px; /* opcional: pequeño margen interno */
  font-weight: normal;
}


.footer {
  width: 100%;
  text-align: center;
  padding: 15px 0;
  background-color: #666; /* fondo claro */
  border-top: 1px solid rgb(161, 161, 161); /* línea separadora superior */
  font-size: 13px;
  color: #f5f5f5;
  margin-top: 0; /* espacio desde el contenido anterior */
}

.footer p {
  margin: 0;
  font-family: 'SourceSansPro Light', Helvetica, sans-serif;
}


.ver-todo {
  text-align: right;
  margin-top: 15px;
}

.btn-ver-todo {
  display: inline-block;
  font-family: 'Inter light','SourceSansPro light', 'Protest strike';
  background-color: black;
  color: #40ef90;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.btn-ver-todo:hover {
  background-color: #2ecc71;
  color: black;
  transform: translateY(-2px);
}


/* ############ A PARTIR DE ACÁ VAN LAS PAGS AUXILIARES ######  */

/* === Sección general === */
.seccionCompleta {
  max-width: 1100px;
  margin: 60px auto;
}

.seccionCompleta h1 {
  color: #40ef90;
  font-family: 'Inter Regular','SourceSansPro light', 'Protest strike', Helvetica, serif;
  margin-bottom: 10px;
  font-size: 42px;
}

.seccionCompleta .intro {
  color: #f1f1f1;
  font-family: 'Inter light','SourceSansPro light', 'Protest strike', Helvetica, serif;
  font-size: 18px;
  margin-bottom: 40px;
}

/* === Listado de publicaciones/divulgación === */
.contenedorListado {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* === Cada ítem === */
.itemListado {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 15px;
  gap: 25px;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease-in-out;
}

.itemListado:hover {
  transform: translateY(-3px);
}

/* Imagen */
.itemListado img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

/* Texto */
.itemTexto {
  flex: 1;
}

.itemTexto h2 {
  color: #fff;
  margin: 0 0 5px;
  font-size: 26px;
}

.itemTexto h4 {
  color: #aaa;
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: normal;
}

.itemTexto h5 {
  color: #40ef90;
  font-size: 14px;
  font-family: 'SourceSansPro Light', Helvetica, sans-serif;
  margin: 0 0 10px;
  font-weight: normal;
}

/* Flecha / enlace */
.itemLink {
  font-size: 28px;
  color: #40ef90;
  text-decoration: none;
  transition: transform 0.2s;
}

.itemLink:hover {
  transform: translateX(5px);
  color: #6fffa8;
}

/* === Botones de filtro en divulgación === */
.filtroDivulgacion {
  text-align: center;
  margin-bottom: 20px;
}

.boton-filtro {
  display: inline-block;
  font-family: 'Inter light', 'SourceSansPro light', 'Protest strike', Helvetica, serif;
  background: black;
  color: #40ef90;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  line-height: 1;
  margin: 6px 6px 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
}

/* Hover */
.boton-filtro:hover {
  background: #32d27b;
  color: rgb(251, 251, 251);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Estado activo */
.boton-filtro.activo {
  background: #40ef90; 
  color: black;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: scale(1.03);
}

/* En pantallas chicas */
@media (max-width: 600px) {
  .boton-filtro {
    font-size: 13px;
    padding: 6px 12px;
  }
}




/* === Botón Volver === */
.btn-volver {
  background: black;
  color: #9af9c6;
  font-family: 'Inter light','SourceSansPro light', 'Protest strike', Helvetica, serif;
  border: 2px solid #9af9c6;   /* 🔹 Borde verde */
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-volver:hover {
  background: #9af9c6;
  color: black;
  transform: translateY(-1px);
}

/* Responsivo  */


/* 📱 RESPONSIVE PORTADA / HERO */
@media (max-width: 1100px) {
  .portada-texto {
    margin-right: 0;
    padding: 20px 30px;
    text-align: center;
  }

  .portada-texto h1 {
    font-size: 80px;
    line-height: 1.3;
  }

  
  .seccionCompleta {
    padding: 0 20px;   /* 🔥 deja un margen suave en los costados */
    margin: 40px auto; /* un poco menos de margen vertical en móvil */
    max-width: 100%;   /* evita que quede forzado al ancho total */
    box-sizing: border-box;
  }
}

@media (max-width: 800px) {

}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

    body {
    background: 
      url('Imagenes/Visual/fondo_portfolio_canvas.png') center top / cover no-repeat;
    background-attachment: scroll; /* 🔥 necesario en mobile */
  }

  .portada {
    background-position: center top;
    background-size: cover;
  }



  .portada-texto h1 {
    font-size: 45px;
  }

  .navbar {
    width: 100%;
    max-width: 100vw;     /* 🔥 evita desbordes horizontales */
    overflow-x: hidden; 
    padding: 10px 10px;         /* ⬅️ antes 120px — demasiado grande para mobile */
    flex-direction: column;     /* ⬅️ título arriba, menú abajo */
    align-items: center;
    text-align: center;
    gap: 10px;                  /* espaciado suave */
  }

  .titulo h1 {
    font-size: 1.4rem;          /* ⬅️ baja el tamaño */
    white-space: normal;        /* ⬅️ permite salto de línea si es necesario */
  }

  .titulo h5 {
    font-size: 0.8rem;
  }

  .menu ul {
    gap: 10px;                  /* ⬅️ más chico */
    flex-wrap: nowrap;            /* ⬅️ si no entra en una línea, baja */
    justify-content: center;
  }

  .menu ul li a {
    font-size: 13px;        /* 🔥 texto más pequeño para que entren */
    white-space: nowrap;
  }

  
  main {
    width: 100%;        /* 🔥 más ancho en móvil */
    max-width: 100%;   /* 🔥 evita desbordes */
    padding: 10px;     /* 🔥 un pequeño padding interno */
    margin: 10px auto; /* centra y mantiene margen */
    box-sizing: border-box;
  }

  .contenedorTrabajos {
        flex-direction: column;   /* Se apilan */
        overflow-x: visible;      /* Quitar scroll horizontal */
  }

  .trabajo {
        min-width: 100%;          /* Ocupan todo el ancho */
  }
    
  /* Los dos bloques se apilan */
  .contenedorPrincipalDivulgacion {
    flex-direction: column;
    gap: 30px;
  }

  /* Newsletter ocupa todo el ancho */
  .bloqueNewsletter,
  .bloqueNotas {
    flex: 1 1 100%;
  }

  /* Todas las tarjetas = una por fila */
  .newsletter-item,
  .nota-item {
    flex: 1 1 100%;
  }
  
  .ver-todo {
    padding: 8px 16px; /* más chico */
    font-size: 13px;   /* baja el tamaño */
    border-radius: 8px;
  }

    .bottom-section {
    flex-direction: column;     /* Apilar contacto + CV */
    gap: 40px;                  /* Mucho más razonable */
    padding: 0 20px;            /* Ya no ocupa todo el ancho */
    margin-top: 20px;
    align-items: center;        /* Centrado */
    text-align: center;
  }


  .logo-item {
  width: 140px;
  height: auto;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}


  #contactoCV,
  #CV {
    justify-content: center;    /* Centra los íconos */
    flex-wrap: wrap;            /* Evita que se salgan */
    gap: 15px;
  }

  .contact img,
  #CV img.cv-icon {
    width: 40px;                /* Más proporcional para mobile */
    height: 40px;
  }

  .bottom-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
  }

    .seccionCompleta {
    padding: 0 20px;   /* 🔥 deja un margen suave en los costados */
    margin: 40px auto; /* un poco menos de margen vertical en móvil */
    max-width: 100%;   /* evita que quede forzado al ancho total */
    box-sizing: border-box;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .uni-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .uni-logo {
    margin-bottom: 10px;
  }
}


@media (max-width: 500px) {
  .portada-texto h1 {
    font-size: 42px;
    margin: 10px auto 40px;
    padding: 1px;
  }

  .portada {
    background-position: center top;
  }
}
