/* Tipografía */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Matangi&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap');


/* ─────────────────────────────
   VARIABLES DE DISEÑO GENERALES
───────────────────────────── */
:root {
  /* Colores base */
  --color-fondo: #ffffff;
  --color-texto: #111111;

  /* Colores secundarios */
  --color-principal: #6CA0DC;
  --color-principal-oscuro: #2F4F6F;

  /* Colores neutros */
  --color-gris-suave: #f9f9f9;
  --color-gris-texto: #666;
	--sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.1);

  /* Tipografías */
  --fuente-general: 'Matangi', sans-serif;
  --fuente-titulos: 'Space Grotesk', sans-serif;
  --fuente-secundaria: 'Inter', sans-serif;
  --fuente-menu: 'Comfortaa', sans-serif;
  --fuente-contenido: 'Roboto Condensed', sans-serif;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === CONFIGURACIÓN GLOBAL === */
html {
  scroll-behavior: smooth; /* desplazamiento suave entre anclas */
}
 /* Cuerpo del texto */
body {
   font-family: var(--fuente-general);
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
  font-size: 15px;
}
p, li, label, input, textarea {
  font-family: var(--fuente-general);
  font-weight: 300;
}

/* TÍTULOS GENERALES de secciones y proyectos */
h1, h2, h3 {
  font-family: var(--fuente-titulos);
  color: var(--color-texto);
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-weight: 500;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

h2 {
  font-size: 1.7rem;
  margin-top: 2.5rem;
}

h3 {
	font-weight: 450;
  font-size: 20px;
  margin-top: 0.4rem;
}

/* HEADER Y MENÚ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}
/* HEADER UNIFICADO (reemplaza tu header {} y borra .menu-scroll) */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;            /* top:0; left:0; right:0 */
	display: flex;
	align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;          /* tamaño “grande” al inicio */
  background-color: transparent; /* empieza transparente */
  backdrop-filter: none;
  box-shadow: none;
will-change: transform, opacity; /* mejora rendimiento animación */
  transform: translateY(-110%);  /* oculto al cargar */
  opacity: 0;
  z-index: 1000;
  transition:
    transform .35s ease,
    opacity .35s ease,
    background-color .3s ease,
    box-shadow .3s ease,
    padding .25s ease;
}
.site-header.reveal {
  transform: translateY(0);
  opacity: 1;
}
.site-header.compacto {
  padding: .75rem 2rem;                 /* se hace más fino */
  background-color: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Grupo de menú horizontal + selector de idioma */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;  /* espacio entre menú y selector de idioma */
  margin-left: auto; /* empuja todo a la derecha */
}
	
/* Ajustes menores que ya tienes, mantén tus estilos de logo/menú */
.logo {
  font-family: "Major Mono Display", monospace;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--color-texto);
	flex-shrink: 0;
}

.menu-horizontal { 
	display: flex; 
	flex-wrap: wrap; 
	justify-content: center; 
	gap: 0; 
	list-style: none; 
	 margin-left: auto;
}
.menu-horizontal a {
  font-family: var(--fuente-menu);
  font-size: 15px;
  color: #333;
  text-decoration: none;
  font-weight: 400;
  padding: .75rem 1rem;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.menu-horizontal a:hover {
  color: var(--color-principal);
  text-decoration: line-through;
}

/* ──────────────────────────────── */
/* Selector de idioma               */
/* ──────────────────────────────── */
.language-switcher {
	padding: 0.2rem 0.4rem;
	font-family: var(--fuente-menu);
  font-size: 15px;
  color: #333; 
  z-index: 999;
	
}

.language-switcher ul {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-switcher a {
  text-decoration: none;
  color: var(--color-texto-principal);
  font-weight: 300;
  transition: color 0.3s;
}

.language-switcher a.active {
  color: var(--color-principal);
}

.language-switcher a:hover {
  color: var(--color-principal);
	text-decoration: line-through;
}


/* HERO MINIMALISTA pagina inicio */
.hero-min {
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--color-fondo);
  color: var(--color-texto);
}

.hero-min h1 {
  font-family: 'Major Mono Display', monospace;
  font-size: 4.5rem;
  margin-bottom: 4rem;
}
.marca {
  /* tipografía grande, espaciada, estética “texto como imagen” */
  font-family: "Major Mono Display", monospace; /* puedes probar también var(--fuente-titulos) */
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 6.2rem);
}
.tagline {
  font-family: var(--fuente-contenido);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-gris-texto);
  letter-spacing: .06em;
  margin-top: .25rem;
}
.hero-links {
  display: flex;
  gap: clamp(.75rem, 3vw, 2.25rem);
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.hero-links a {
  font-family: var(--fuente-menu);
  text-decoration: none;
  color: var(--color-texto);
  font-weight: 500;
  letter-spacing: .05em;
  border-bottom: 1px solid transparent;
  padding-bottom: .15rem;
  transition: border-color .2s ease, color .2s ease, transform .15s ease;
}
.hero-links a:hover {
  color: var(--color-principal);
	text-decoration: line-through;
  transform: translateY(-1px);
}

/* un poco más de aire bajo el header fijo cuando aparece */
.hero-min { padding-top: clamp(3rem, 8vh, 6rem); }


/* subtitulo pagina inicio header */
.subtitulo{
font-family: var(--fuente-contenido);
  text-decoration: none;
  color: var(--color-texto);
  font-weight: 500;
	font-size: 17px;
  letter-spacing: .20rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease, transform .15s ease;
}

/* ===== PROYECTOS DESTACADOS (HOME) ===== */
.featured-projects {
  text-align: center;
  padding: 1rem 2rem;
}

.featured-projects h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
/* ====== GRID DESTACADOS 3x2  ====== */
/* (Home) miniaturas con redondeo minimo - Opción B */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1280px;
  /*margin: 2.25rem auto; */
  align-items: stretch;
  padding-inline: 1rem;
}

/* ──────────────────────────────────────────────── */
/* HOME – GRID DESTACADOS (project-item) */
/* ──────────────────────────────────────────────── */

/* Contenedor del item en Home */
.projects-grid .project-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0.20rem; /* mínimo redondeo en Home */
  box-shadow: var(--sombra-suave);
  background-color: #fff;
  transition: transform .28s ease, box-shadow .28s ease;
  text-decoration: none;
  color: inherit;
}

/* Imagen (se recorta con el contenedor) */
.projects-grid .project-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  vertical-align: middle;
  transition: transform .45s ease;
  border-radius: 0; /* sin redondeo extra */
}

/* Hover contenedor */
.projects-grid .project-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* Hover imagen */
.projects-grid .project-item:hover img {
  transform: scale(1.03);
}

/* Overlay (texto al pasar el ratón) */
.projects-grid .project-item .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .5rem;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.58) 100%);
  transform: translateY(100%);
  transition: transform .28s ease, opacity .28s ease;
  opacity: 0;
  pointer-events: none;
}

/* Mostrar overlay en hover/focus */
.projects-grid .project-item:hover .overlay,
.projects-grid .project-item:focus-within .overlay {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ──────────────────────────────────────────────── */
/* FIN HOME – GRID DESTACADOS (project-item) */
/* ──────────────────────────────────────────────── */


/* ====== Departamentos (vídeos) - bordes más redondeados ====== */
/* Aplica a las miniaturas en las otras páginas (sonido/camara/direccion) */
.video-container,
.video-thumbnail,
.grid-proyectos .proyecto .video-thumbnail {
  border-radius: 0.32rem; /* redondeo medio para páginas de departamento */
  overflow: hidden;
}

.video-container img,
.video-thumbnail img,
.grid-proyectos .proyecto img {
  border-radius: 0.32rem;
}




/* HERO */
/* Sección de portada y subtítulo (hero principal y hero-sub en subpáginas) */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 3rem;
}

.hero-sub {
  min-height: 50vh;
  padding: 6rem 2rem 3rem;
  background-color: var(--color-fondo);
  text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-sub h1 {
  font-family: var(--fuente-titulos);
  font-size: 2.5rem;
  font-weight: 500;
   color: var(--color-texto);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-sub p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
 color: var(--color-gris-texto);
  font-family: var(--fuente-contenido);
  line-height: 1.7;
  text-align: center;
  text-justify: inter-word;
	position: relative;
	 z-index: 1;
}
.hero-sub.sonido::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imagenes/foto-sonido.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.85);
  opacity: 0.25;
  z-index: 0;
}
.hero-sub.sonido::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-sub.sonido {
	 min-height: 80vh;
  position: relative;
  z-index: 1;
}

.hero-sub.camara::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imagenes/foto-camara.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.85);
  opacity: 0.32;
  z-index: -2;
}
.hero-sub.camara::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero-sub.camara {
	 min-height: 80vh;
  position: relative;
  z-index: 0;
}
/* ===================================== */
/* HERO SUB - DIRECCIÓN                  */
/* Mantiene la coherencia visual con SONIDO fondo imagen */
/* ===================================== */

.hero-sub.direccion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imagenes/foto-direccion.jpg"); /* ← cambia el nombre si tu archivo difiere */
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.85);
  opacity: 0.25;
  z-index: 0;
}

.hero-sub.direccion::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-sub.direccion {
  min-height: 80vh;
  position: relative;
  z-index: 1;
}


/* Fondo para la sección de contacto (hero) */
.hero-sub.contacto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imagenes/fondo-contacto.jpg"); 
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.9);
  opacity: 0.25;
  z-index: 0;
}

.hero-sub.contacto::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  z-index: 1;
  pointer-events: none;
}


/* Estilo principal del bloque hero de contacto */
.hero-sub.contacto {
  position: relative;
  z-index: 1;
	width: 100%;

  /* ✅ Añadido para forzar el formato panorámico como en el resto de secciones */
  min-height: 60vh;

  /* ✅ Añadido para centrar verticalmente el contenido */
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* ✅ Añadido para alinear visualmente el contenido y mantener coherencia */
  padding: 4rem 2rem;
  text-align: center;
}

/* Hero sobre mí - consistencia con otros heroes */
.hero-sub.sobre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imagenes/foto-sobre mi.jpeg");
	 background-size: cover;
	background-position: center; 
  filter: grayscale(100%) brightness(0.85); /* Igual que los otros heroes */
  opacity: 0.32;                      /* Igual que camara */
  z-index: 0;
}

.hero-sub.sobre::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-sub.sobre {
  min-height: 120vh; 
  position: relative;
  z-index: 1;
  display: flex;
	width: 100%;
  flex-direction: column;
  justify-content: center;
   padding: 6rem 2rem 3rem; 
  text-align: center;
}

/* Fotos de hero y sub-hero */
.foto-rol {
  max-width: 220px;
  margin: 1rem auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}
.foto-rol img {
  width: 100%;
  display: block;
}





/*Desplegable videos subpaginas*/

/* Contenedor principal de los proyectos por categoría */
.contenido-proyectos {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

/* Encabezado de cada categoría como "Dirección de fotografía" */
.categoria-proyecto {
  margin-bottom: 4rem;
  padding-inline: 1rem;
}
.categoria-proyecto + .categoria-proyecto {
  border-top: 1px solid var(--color-principal);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* Estructura de rejilla para proyectos individuales */
.grid-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  gap: 2rem;
  padding-inline: 0.1rem;
  margin-top: 0.3rem;
}

/* Cada proyecto individual */
.proyecto {
  background-color: transparent;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
/* Deja margen arriba cuando navegamos con #ancla para que no lo tape el header */
  scroll-margin-top: clamp(72px, 12vh, 140px);

  /* Efecto de entrada (fade-in) */
  opacity: 0;
  transform: translateY(20px);

  /* Unificamos todas las transiciones */
  transition: 
    opacity 0.8s ease-out,
    transform 0.8s ease-out,
    box-shadow 0.3s ease,
    padding-bottom 0.4s ease;
}
.proyecto:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.proyecto.visible {
  opacity: 1;
  transform: translateY(0);
}
.proyecto.expandido {
  padding-bottom: 2rem; /* da más espacio al expandirse */
}
.proyecto video,
.video-embed iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
}

/* ───────────────────────────────────── */
/* EFECTO VISUAL AL EXPANDIR UN PROYECTO */
/* Sombra + Borde sutil mejorados        */
/* ───────────────────────────────────── */

.proyecto {
  border: 2px solid transparent;
  border-radius: 8px;
  transition:
    border-color 0.4s ease,
    box-shadow 0.3s ease-in-out;
}

.proyecto.expandido {
  /* Borde azul con opacidad baja (40%) */
  border-color: rgba(108, 160, 220, 0.4); /* usa tu color principal #6CA0DC con alpha */

  /* Sombra más marcada */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* --- Estilo del texto visible antes de expandir --- */
.descripcion.visible {
  font-size: 17px; /* o el tamaño que quieras, por ejemplo 1.2rem */
  font-weight: 400;  /* un poco más grueso tipo subtítulo */
  text-align: left;  /* mantiene alineado con el resto */
  margin-bottom: 0.5em; /* separa ligeramente del botón */
}


/* ─────────────────────────────────────────────── */
/* DESCRIPCIÓN COMPLETA – Transición elegante */
/* ─────────────────────────────────────────────── */
.descripcion-completa {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease-in-out;
  margin-top: 0.5rem;
  color: var(--color-gris-texto);
  font-size: 16px;
  line-height: 1.4;
	text-align: justify;
  text-justify: inter-word; /* mejora la distribución de espacios */
  font-family: var(--fuente-secundaria);
	font-weight: 150;
  will-change: max-height, opacity;
}

/* Cuando el proyecto está expandido */
.proyecto.expandido .descripcion-completa {
  max-height: 800px; /* Puedes ajustar si lo necesitas */
  opacity: 1;
}

/* Fade-out más elegante al cerrar */
.descripcion-completa.cerrando {
  opacity: 0;
  transition:
    max-height 0.5s ease-in,
    opacity 0.4s ease-out;
}

.toggle-descripcion {
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  background-color: transparent;
   border: 2px solid var(--color-principal);
  color: var(--color-principal);  
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--fuente-secundaria);
  cursor: pointer;
	display: inline-flex;
  align-items: center;
  gap: 0.4rem;
 transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.toggle-descripcion:hover {
    border: 2px var(--color-principal-oscuro);
    background-color: var(--color-principal-oscuro);
    color: white;
}
.toggle-descripcion.activo {
  background-color: var(--color-principal);
  color: white;
}
.toggle-descripcion .icono {
  display: inline-block;
  font-weight: bold;
  transition: transform 0.5s ease;
	font-size: 1.2rem;
}

/* Microinteracción (rotación) cuando está expandido */
.proyecto.expandido .toggle-descripcion .icono {
  transform: rotate(180deg);
}
/* ────────────────────────────────────────
   Proyectos sin video
──────────────────────────────────────── */
/* Imagen fija temporal para proyectos sin video */
.imagen-fija {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
	aspect-ratio: 16 / 9;
}


/* ────────────────────────────────────────
   Reproductores de video incrustados (YouTube/Vimeo)
──────────────────────────────────────── */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;                  /* Mantiene proporción 16:9 */
  overflow: hidden;
  border-radius: 12px;
  background-color: #000;                /* Color base por si no carga el vídeo */
  margin-bottom: 1rem;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* FADE IN cuando aparecen los videos */
iframe.fade-in {
  opacity: 0;
  transition: opacity 0.5s ease;
}

iframe.fade-in.mostrar {
  opacity: 1;
}
/* ────────────────────────────────────────
   SECCIÓN: SOBRE MÍ
──────────────────────────────────────── */
.contenido-sobre {
  padding: 0;
  max-width: none;
  margin: 0 auto;
	text-align: justify;
}
.contenido-sobre img {
  display: block;        /* elimina espacio blanco debajo de la imagen */
  width: 100%;           /* ocupa todo el ancho disponible */
  height: auto;          /* mantiene proporción */
}


.contenido-sobre .bio {
  max-width: 1000px;     /* vuelve a tener el ancho cómodo */
  padding: 4rem 2rem;    /* mantenemos los márgenes internos para el texto */
  margin: 0 auto;        /* centramos el bloque de texto */
  text-align: justify;   /* mantenemos el justificado si lo quieres */
}

/* Título dentro del bloque de biografía */
.bio-texto h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  color: var(--color-texto);
  font-family: var(--fuente-titulos);
}

.bio-texto p {
  font-size: 1.05rem;
  color: #444;
  margin: 1rem 0;
  line-height: 1.7;
	letter-spacing: 0.15rem;
	font-weight: lighter;
	text-align: justify;
 font-family: var(--fuente-secundaria);
	
}

/* ─────────────────────────────────────────────
   Estilo para listas de logros en la sección BIO
───────────────────────────────────────────── */
.bio-texto ul {
  list-style: none;                  /* Quitamos viñetas por defecto */
  padding-left: 0;                    /* Eliminamos sangría lateral */
  margin: 2rem 0;                      /* Separación superior e inferior */
}

.bio-texto ul li {
  position: relative;                 /* Para colocar viñeta personalizada */
  padding-left: 2rem;                  /* Espacio para el icono a la izquierda */
  margin-bottom: 1rem;                 /* Espaciado entre ítems */
  font-size: 1.05rem;                  /* Igual que el párrafo para consistencia */
  line-height: 1.6;
  color: var(--color-gris-texto);      /* Color neutro para armonizar */
  font-family: var(--fuente-secundaria);  /* Mantener misma fuente que el cuerpo */
  border-left: 2px solid var(--color-principal); /* Línea azul minimalista */
}

/* Viñeta personalizada: pequeño círculo azul */
.bio-texto ul li::before {
  content: "•";                          /* Punto como viñeta */
  position: absolute;
  left: 0.6rem;                           /* Ajuste de posición horizontal */
  top: 0;                                 /* Centrado vertical */
  font-size: 1.2rem;
  color: var(--color-principal);          /* Azul principal */
  font-weight: bold;
}

/* Opcional: destacar palabras clave en negrita */
.bio-texto ul li strong {
  color: var(--color-texto);
  font-weight: 600;
}

/* ────────────────────────────────────────
   MINIATURAS PERSONALIZADAS DE VIDEOS
   Estilo para thumbnails con botón de play
──────────────────────────────────────── */

.video-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  background-color: #000;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.video-thumbnail:hover {
  transform: scale(1.01);
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
	
}
.video-thumbnail:hover img {
  transform: scale(1.02); 
}

.video-thumbnail .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
   transition: all 0.15s ease-in-out;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
	
}

.video-thumbnail:hover .play-button {
  background-color: rgba(0, 0, 0, 0.75);
	transform: translate(-50%, -50%) scale(1.15);
}

.video-thumbnail .play-button::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 22px solid white;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.video-thumbnail:focus .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: rgba(0, 0, 0, 0.8);
}

.video-thumbnail.sin-video {
  outline: 2px dashed red;
  cursor: not-allowed;
  opacity: 0.5;
}
/* ────── Fade out para el iframe ────── */
.video-container iframe.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease-in;
}


/* ────────────────────────────────────────
   SECCIÓN: FORMULARIO DE CONTACTO
──────────────────────────────────────── */
/* Página de contacto: formulario y redes */
.contenido-contacto {
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}
.formulario-contacto {
  background-color: #fff;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
  max-width: 600px;
  margin: 0 auto;
	opacity: 0;
	transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.formulario-contacto form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.formulario-contacto label {
  font-weight: 600;
  color: var(--color-texto);
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 0.75rem;
  border:  1.5px solid var(--color-principal);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
	background-color: #fdfdfd; /* ✨ Aporta claridad */
	  width: 100%; /* asegura que no haya desfases en Safari o Firefox */
  transition: all 0.25s ease-in-out; /* transición más fluida para hover/focus */
}
.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  outline: none;
  border-color: var(--color-principal-oscuro);
  background-color: #f9f9f9;
  box-shadow: 0 0 8px rgba(108, 160, 220, 0.4); /* sombra azul clara */
}

.boton-enviar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: var(--fuente-general);
  font-weight: 600;
  letter-spacing: 0.5px;
  background-color: var(--color-principal);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.25s ease-in-out; /* suaviza hover y click */
}

.boton-enviar:hover {
   background-color: var(--color-principal-oscuro); /* ya lo tenías */
  box-shadow: 0 4px 12px rgba(108, 160, 220, 0.4); /* añade micro-sombra */
  transform: translateY(-2px); /* efecto de “levantar” */
}

.boton-enviar:active {
  transform: scale(0.96);
	box-shadow: 0 2px 8px rgba(108, 160, 220, 0.3); /* suaviza la sombra al pulsar */
}

.boton-enviar svg {
  transition: transform 0.3s ease;
}

.boton-enviar:hover svg {
  transform: translateX(4px); /* desplazamiento suave al pasar el ratón */
}



/* ────────────────────────────────────────
   REDES SOCIALES EN CONTACTO
──────────────────────────────────────── */
/*ICONOS*/
.redes {
  text-align: center;
  margin-top: 3rem;
}

.iconos-redes {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.icono-red[src$="instagram.png"] {
  scale: 0.65; /* o prueba 1.2 si hace falta */
}

.icono-red {
  width: 55px;
  height: 55px;
	object-fit: contain;
	display: inline-block;
	vertical-align: middle;
  transition: transform 0.2s ease;
}


.icono-red:hover {
  transform: scale(1.2);
}

.info-contacto {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--color-gris-texto);
  text-align: center;
}
/* ────────────────────────────────────────
   PÁGINA DE AGRADECIMIENTO
──────────────────────────────────────── */

.hero-sub.gracias {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.botones-gracias {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.boton-volver {
  background-color: var(--color-principal);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--fuente-general);
  transition: background-color 0.2s ease;
}

.boton-volver:hover {
  background-color: var(--color-principal-oscuro);
}

/* ────────────────────────────────────────
   FOOTER
──────────────────────────────────────── */
footer.footer {
  text-align: center;
  font-size: 0.875rem;
   color: var(--color-gris-texto); 
  padding: 2rem;
  border-top: 1px solid #eaeaea;
  margin-top: 4rem;
}

/* ─────────────────────────────────────────────
   BOTÓN "VOLVER ARRIBA"
───────────────────────────────────────────── */
#btn-volver-arriba {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.5rem;
  font-size: 1.1rem;
  background-color: var(--color-principal);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  opacity: 0;
	outline: none;
  pointer-events: none;
	transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1000;
}

#btn-volver-arriba:hover {
  transform: scale(1.1);
  background-color: var(--color-principal-oscuro);
}

/* Mostrar el botón cuando tiene la clase activa */
#btn-volver-arriba.mostrar {
  opacity: 1;
	transform: translateY(0);
  pointer-events: auto;
}
#btn-volver-arriba svg {
  transition: transform 0.3s ease;
}

#btn-volver-arriba:hover svg {
  transform: translateY(-3px);
}

/* ────────────────────────────────────────────
   RESPONSIVE: Ajustes para pantallas ≤ 768px
────────────────────────────────────────────── */
@media screen and (max-width: 768px) {

  /* HEADER más compacto */
  header {
    padding: 1rem 1.5rem;
  }
  .menu-horizontal {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
  }
  .menu-horizontal a {
    font-size: 14px;
    padding: 0.5rem 0.75rem;
  }

	.language-switcher {
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.9);
}
.language-switcher ul {
  gap: 0.4rem;
}
header {
  flex-direction: column;
  align-items: center;
}
	.logo {
  font-size: 1.1rem;
}


  /* HERO-SUB: más compacto en móvil */
  .hero-sub {
    padding: 4rem 1rem 2.5rem;
    min-height: 60vh;
  }

  .hero-sub h1 {
    font-size: 1.8rem;
  }

  .hero-sub p {
    font-size: 1.1rem;
    line-height: 1.5;
    padding: 0;
  }

  /* TÍTULOS GENERALES */
  h1 {
    font-size: 2rem;
  }

  /* GRID DE PROYECTOS: solo 1 columna */
  .grid-proyectos {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-inline: 0;
  }

  /* MINIATURAS + VIDEOS: ancho completo */
  .video-thumbnail,
  .video-embed {
    max-width: 100%;
  }

  /* CARRUSEL: espaciado reducido */
  .carrusel {
    gap: 1rem;
    padding: 1rem 0.5rem;
  }

  .item-carrusel {
    width: 90%;
  }

  /* BOTÓN ver más: más compacto */
  .toggle-descripcion {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    gap: 0.3rem;
  }

  .toggle-descripcion .icono {
    font-size: 1.1rem;
  }

  .descripcion-completa {
    font-size: 0.95rem;
  }

  /* FORMULARIO: inputs y textarea más pequeños */
  .formulario-contacto input,
  .formulario-contacto textarea {
    font-size: 0.9rem;
  }

  .formulario-contacto {
    padding: 2rem 1.5rem;
  }

  .formulario-contacto button {
    width: 100%;
    font-size: 1rem;
  }

  /* SECCIONES GENERALES: padding lateral reducido */
  .contenido-proyectos,
  .contenido-sobre,
  .contenido-contacto {
    padding: 2rem 1rem;
  }
.featured-projects {
    padding: 2rem 1rem;
  }
  .featured-projects h2 {
    font-size: 1.5rem;
  }
}
/* ────────────────────────────────────────────
   EXTRA SMALL DEVICES: Móviles muy pequeños
────────────────────────────────────────────── */
@media screen and (max-width: 480px) {

  /* Imagen de fondo en móviles: ajusta el encuadre */
  .hero-sub.sonido::before,
  .hero-sub.direccion::before {
    background-position: top center;
  }
.hero-sub.sobre {
    min-height: 90vh;
    padding: 4rem 1.5rem 2rem;
  }
	.hero-sub.sobre::before {
  background-position: center top; /* ✅ Centra mejor en pantallas muy estrechas */
}
  /* Miniaturas: se adaptan a ancho completo */
  .video-thumbnail {
    max-width: 100%;
    height: auto;
  }

  /* Botón Ver más: icono más grande y legible */
  .toggle-descripcion {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
  }

  .toggle-descripcion .icono {
    font-size: 1.2rem;
    margin-right: 0.4rem;
  }

  .descripcion-completa {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Padding lateral reducido en bloques de proyectos */
  .contenido-proyectos {
    padding: 2rem 1rem;
  }

  /* Categorías de proyectos: menos margen horizontal */
  .categoria-proyecto {
    padding-inline: 0.5rem;
  }

  /* FORMULARIO */
  .formulario-contacto {
    padding: 1.5rem 1rem;
  }

  .formulario-contacto label {
    font-size: 0.9rem;
  }

  .formulario-contacto input,
  .formulario-contacto textarea {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  .formulario-contacto button {
    padding: 0.75rem;
  }

  /* ICONOS Y CONTACTO */
  .iconos-redes {
    gap: 1rem;
  }

  .info-contacto p {
    font-size: 0.9rem;
  }

  /* BOTÓN VOLVER ARRIBA */
  #btn-volver-arriba {
    padding: 0.4rem;
    bottom: 1rem;
    right: 1rem;
  }

  #btn-volver-arriba svg {
    width: 20px;
    height: 20px;
  }

  /* Footer con menos espacio y texto más pequeño */
  footer.footer {
    padding: 1rem;
    font-size: 0.8rem;
  }

  /* Más espacio entre proyectos */
  .proyecto {
    margin-bottom: 2rem;
  }
}

/* ================== RESPONSIVE MINIATURAS destacados pagina inicio ================== */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Móviles */
@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid .project-item {
    border-radius: 0.2rem;
  }
}

/* ─────────────────────────────── MENU RESPONSIVE HAMBURGUESA ─────────────────────────────── */

/* Ocultar botón hamburguesa por defecto */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-texto); /* usa tus variables si ya las tienes */
}

/* ─────────────────────────────────────────────
   MÓVIL
───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: block;
  }

  /* Estructura vertical */
  .header-right {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--color-fondo, #fff);
    position: absolute;
    top: 70px; /* ajusta según tu header */
    left: 0;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
    z-index: 1000;
  }

  /* Cuando esté activo */
  .header-right.active {
    display: flex;
  }

  .menu-horizontal {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .language-switcher ul {
    flex-direction: row;
    gap: 1rem;
  }
}


