/* ══════════════════════════════════════════════
   1. VARIABLES (Design Tokens)
   ══════════════════════════════════════════════ */
:root {
  /* Colores de texto */
  --text:      #0a0a0c;
  --text-2:    #2b2b30;
  --mute:      #74747c;

  /* Fuente global */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}


/* ══════════════════════════════════════════════
   2. RESET
   ══════════════════════════════════════════════ */
*,
*::before,
*::after {
  border: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

html, body {
  height: 100%;
  max-width: 100vw;
  /* clip en lugar de hidden: permite que position:sticky funcione */
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: white;
  color: var(--text);
  font-weight: 400;
  line-height: 1.45;
  min-height: 100vh;
  position: relative;
}

h1, h2, h3, p, a {
  font-family: var(--font);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}


/* ══════════════════════════════════════════════
   3. EFECTO GRANO DE PAPEL (body::before)
   ══════════════════════════════════════════════ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      circle at 1px 1px,
      rgba(15, 15, 20, .045) 1px,
      transparent 1.4px
    ) 0 0 / 22px 22px;
  opacity: .6;
}


/* ══════════════════════════════════════════════
   4. PAGE WRAPPER
   ══════════════════════════════════════════════ */
.page {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px clamp(20px, 3vw, 40px) 60px;
  min-height: 100vh;
}


/* ══════════════════════════════════════════════
   5. HEADER (barra superior glassmorphism)
   ══════════════════════════════════════════════ */
.header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 8px 28px rgba(20, 40, 80, .08),
    0 1px 4px rgba(0, 0, 0, .04);
}

/* --- Logo / Botón idioma --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--text);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .15),
    inset 0 -2px 4px rgba(0, 0, 0, .4),
    0 4px 12px rgba(0, 0, 0, .18);
}

.logo-mark svg {
  width: 18px;
  height: 18px;
}

/* --- Navegación pills (links sociales) --- */
.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: background .25s, color .25s, transform .25s;
}

.nav-pill:hover {
  background: var(--text);
  color: #ffffff;
  transform: translateY(-1px);
}

/* --- Botón CTA (CV) --- */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 22px;
  background: white;
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 4px 14px rgba(0, 0, 0, .08);
  transition: transform .25s, box-shadow .3s;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 8px 20px rgba(0, 0, 0, .12);
}

.cta-text {
  font-size: 14.5px;
  font-weight: 500;
  padding-right: 4px;
}

.cta-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -3px 5px rgba(0, 0, 0, .4);
}

.cta-dot svg {
  width: 14px;
  height: 14px;
}


/* ══════════════════════════════════════════════
   6. LAYOUT DOS COLUMNAS
   ══════════════════════════════════════════════ */
.contenedor-dos-columnas {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Columna izquierda (sticky) --- */
.columna-fija {
  width: 50%;
  position: sticky;
  top: 150px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
}

.columna-fija h1 {
  font-size: 60px;
}

.columna-fija h2 {
  margin-left: 3px;
  margin-top: -20px;
  font-size: 20px;
}

/* --- Columna derecha (scroll) --- */
.columna-scroll {
  width: 50%;
  padding-top: 40px;
  padding-bottom: 100px;
}


/* ══════════════════════════════════════════════
   7. ÍNDICE DE NAVEGACIÓN (sidebar)
   ══════════════════════════════════════════════ */
.nav-indice ul {
  list-style: none;
  padding: 0;
  margin: 91px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Link con línea decorativa */
.nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  transition: all 0.2s ease-in-out;
}

/* Línea horizontal antes de cada link */
.nav-link::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background-color: #000000;
  margin-right: 1rem;
  transition: all 0.2s ease-in-out;
}

/* Hover / activo: la línea crece */
.nav-link:hover,
.nav-link.active {
  color: #000000;
  font-weight: bold;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 4rem;
  background-color: #000000;
}


/* ══════════════════════════════════════════════
   8. BLOQUE ABOUT
   ══════════════════════════════════════════════ */
.Bloque-About p {
  margin-left: 22px;
  margin-bottom: 20px;
  text-align: justify;
}

.Bloque-About h2{
  margin-top: 24px;
  margin-left: 22px;
}

.Bloque-About p{
  font-size: 15px;
}



/* ══════════════════════════════════════════════
   9. BLOQUES DE EXPERIENCIA
   ══════════════════════════════════════════════ */

/* Hover en el contenedor: atenúa todos los bloques */
.contenedor-experiencia:hover .bloque {
  opacity: 0.5;
}

/* Estilo base del bloque */
.bloque {
  padding: 24px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    opacity .3s ease,
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.bloque h4{
  font-size: 15px;
}

.bloque p {
  text-align: justify;
  font-size: 14px;
}

/* El bloque con hover recupera visibilidad */
.contenedor-experiencia .bloque:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
}


/* ══════════════════════════════════════════════
   10. Proyectos (Swiper coverflow)
   ══════════════════════════════════════════════ */

/* --- Contenedor de la sección --- */
.team-section {
  width: 100%;
  padding: 60px 0 80px;
  background: rgba(255, 255, 255, 0.82);
  margin-top: 60px;
}

/* --- Swiper overrides --- */
.team-section .swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 60px;
}

.team-section .swiper-slide {
  background-position: center;
  background-size: cover;
  width: 400px;
  height: 500px;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
}

/* --- Tarjeta (team-box) --- */
.team-box {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Imágenes de fondo por tarjeta */
.team-box1  { background-image: url(GalleryCloud.webp); filter: blur(5px); }
.team-box2  { background-image: url(Mic-E-Mouse.webp);  }
.team-box3  { background-image: url(Ethernet.webp);  filter: blur(5px);}
.team-box4  { background-image: url(team-img-4.png);  }
.team-box5  { background-image: url(team-img-5.png);  }
.team-box6  { background-image: url(team-img-6.png);  }
.team-box7  { background-image: url(team-img-7.png);  }
.team-box8  { background-image: url(team-img-8.png);  }
.team-box9  { background-image: url(team-img-9.png);  }
.team-box10 { background-image: url(team-img-10.png); }

/* --- Overlay hover (team-name) --- */
.team-name {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: backdrop-filter .5s ease;
}

/* Pseudo-elemento que crece al hacer hover */
.team-name::before {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  margin-top: 40px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: width .5s ease, height .5s ease;
}

/* Imágenes del pseudo-elemento por tarjeta */
.team-box1  .team-name::before { background-image: url(team-img-1.png);  }
.team-box2  .team-name::before { background-image: url(team-img-2.png);  }
.team-box3  .team-name::before { background-image: url(team-img-3.png);  }
.team-box4  .team-name::before { background-image: url(team-img-4.png);  }
.team-box5  .team-name::before { background-image: url(team-img-5.png);  }
.team-box6  .team-name::before { background-image: url(team-img-6.png);  }
.team-box7  .team-name::before { background-image: url(team-img-7.png);  }
.team-box8  .team-name::before { background-image: url(team-img-8.png);  }
.team-box9  .team-name::before { background-image: url(team-img-9.png);  }
.team-box10 .team-name::before { background-image: url(team-img-10.png); }

/* Hover: el pseudo-elemento crece + blur */
.team-name:hover::before {
  width: 60%;
  height: 60%;
}
  

/* --- Contenido de la tarjeta (nombre + cargo + redes) --- */
.team-content {
  width: 100%;
  height: auto;
  margin-top: 350px;
  opacity: 0;
  text-align: center;
  transition: opacity .4s ease;
}

.team-name:hover .team-content {
  opacity: 1;
}

.team-content h2 {
  color: #fff;
  font-size: 20px;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: .5px;
  padding: 10px;
}

h2.texto-blanco{
  color:white;
}

h2.texto-negro{
  color:black
}

.team-content p {
  font-size: 13px;
  font-family: var(--font);
  color: rgba(255, 255, 255, .85);
  letter-spacing: .5px;
}

/* --- Iconos de redes sociales --- */
.team-content ion-icon {
  position: relative;
  font-size: 22px;
  padding: 9px;
  background: #fff;
  border-radius: 10px;
  margin: 8px 6px;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
}

.team-content ion-icon:hover {
  transform: translateY(-3px);
}

/* Colores por red social */
.logo-linkedin  { color: #2962ff; }
.logo-github    { color: #111111; }

/* Hover: invierte fondo/color */
.logo-linkedin:hover  { color: #fff; background: #2962ff; }
.logo-github:hover    { color: #fff; background: #111111; }
.logo-text:hover      {color: #fff; background: #000000;}

/* --- Paginación Swiper --- */
.team-section .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: background .3s;
}


/* ══════════════════════════════════════════════
   11. CAMBIO DE IDIOMA (ES / EN)
   ══════════════════════════════════════════════ */

/* Por defecto: el inglés está oculto */
.en {
  display: none !important;
}

/* Modo inglés activado: oculta ES, muestra EN */
body.modo-ingles .es {
  display: none !important;
}

body.modo-ingles .en {
  display: block !important;
}

/* Spans dentro de links: inline en vez de block */
body.modo-ingles span.en {
  display: inline !important;
}

/* Animación suave de aparición al cambiar */
@keyframes aparecerSuave {
  0%   { opacity: 0;   }
  50%  { opacity: 0.5; }
  100% { opacity: 1;   }
}

.es, .en {
  animation: aparecerSuave 1s ease-in-out forwards;
}

/* --- Animación del botón de idioma --- */
.caja-animada {
  position: relative;
  min-width: 85px;
  height: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.texto-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transition: transform 0.4s ease, opacity 0.4s ease;
  white-space: nowrap;
}

/* Estado por defecto (español visible) */
.btn-es {
  transform: translate(0, -50%);
  opacity: 1;
}

.btn-en {
  transform: translate(100%, -50%);
  opacity: 0;
}

/* Estado inglés: el texto se desliza */
body.modo-ingles .btn-es {
  transform: translate(-100%, -50%);
  opacity: 0;
}

body.modo-ingles .btn-en {
  transform: translate(0, -50%);
  opacity: 1;
}


/* ══════════════════════════════════════════════
   12. RESPONSIVE
   ══════════════════════════════════════════════ */

/* ---- Touch devices: fix sticky hover on experience cards ---- */
@media (hover: none) and (pointer: coarse) {
  .contenedor-experiencia:hover .bloque {
    opacity: 1;
  }
  .contenedor-experiencia .bloque:hover {
    opacity: 1;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  /* Tap feedback for touch */
  .bloque:active {
    background: rgba(10, 10, 12, 0.03);
    border-color: rgba(10, 10, 12, 0.06);
    transition-duration: 0.05s;
  }
  .nav-link:active {
    transform: scale(0.96);
  }
}

/* ---- Large tablets (≤ 1100px) ---- */
@media (max-width: 1100px) {
  .nav-pill {
    padding: 8px 14px;
    font-size: 13.5px;
  }

  .columna-fija h1 {
    font-size: 50px;
  }
}

/* ---- Tablets / Large phones (≤ 900px) ---- */
@media (max-width: 900px) {

  /* --- Header: wrap to 2 rows, keep social links visible --- */
  .header {
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 12px 16px;
    gap: 8px;
  }

  .nav-pills {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(10, 10, 12, 0.06);
  }

  .nav-pill {
    font-size: 12.5px;
    padding: 7px 14px;
    border-radius: 12px;
  }

  /* --- Page --- */
  .page {
    padding: 16px 16px 40px;
  }

  /* --- Layout: stack columns --- */
  .contenedor-dos-columnas {
    flex-direction: column;
    padding: 0 16px;
    gap: 0;
  }

  /* --- Hero column: center & scale --- */
  .columna-fija {
    width: 100%;
    position: relative;
    top: auto;
    height: auto;
    text-align: center;
    padding-top: 44px;
    padding-bottom: 8px;
  }

  .columna-fija h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  .columna-fija h2 {
    margin-left: 0;
    margin-top: -8px;
    font-size: 16px;
    color: var(--mute);
  }

  /* --- Nav index → horizontal pills --- */
  .nav-indice ul {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    margin-bottom: 8px;
  }

  .nav-link {
    padding: 10px 24px;
    background: rgba(10, 10, 12, 0.04);
    border: 1px solid rgba(10, 10, 12, 0.08);
    border-radius: 999px;
    font-size: 0.7rem;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
  }

  .nav-link::before {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
  }

  /* --- Scroll column --- */
  .columna-scroll {
    width: 100%;
    padding-top: 24px;
    padding-bottom: 60px;
  }

  /* --- About block --- */
  .Bloque-About h2 {
    margin-left: 0;
    text-align: left;
    font-size: 22px;
  }

  .Bloque-About p {
    margin-left: 0;
    font-size: 15px;
    line-height: 1.65;
  }

  /* --- Experience blocks: left accent border --- */
  .contenedor-experiencia {
    margin-bottom: 4px;
  }

  .bloque {
    padding: 20px;
    border-left: 3px solid rgba(10, 10, 12, 0.08);
    border-radius: 0 12px 12px 0;
  }

  /* --- Swiper / Projects --- */
  .team-section {
    padding: 40px 0 60px;
    margin-top: 2px;
  }

  .team-section .swiper-slide {
    width: 300px;
    height: 400px;
  }

  .team-content {
    margin-top: 260px;
  }
}

.Proximamente {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  text-align: center;
  width: 300%; /* Evita que se corte o desborde si el texto es ancho */
  z-index: 10; /* Asegura que quede por encima del icono blanco */
  color: #fff;
}

/* ---- Phones (≤ 640px) ---- */
@media (max-width: 640px) {

  .page {
    padding: 10px 10px 28px;
  }

  /* --- Header: more compact --- */
  .header {
    padding: 10px 12px;
    border-radius: 18px;
    gap: 6px;
  }

  .nav-pills {
    gap: 2px;
    padding-top: 6px;
  }

  .nav-pill {
    font-size: 11.5px;
    padding: 6px 11px;
    border-radius: 10px;
  }

  .logo .logo-text {
    display: none;
  }

  /* --- Layout --- */
  .contenedor-dos-columnas {
    padding: 0 8px;
  }

  .columna-fija {
    padding-top: 32px;
  }

  .columna-fija h1 {
    font-size: 34px;
  }

  .columna-fija h2 {
    font-size: 14px;
    margin-top: -4px;
  }

  /* --- Nav index pills smaller --- */
  .nav-indice ul {
    gap: 8px;
    margin-top: 22px;
  }

  .nav-link {
    padding: 9px 18px;
    font-size: 0.65rem;
  }

  /* --- Content --- */
  .columna-scroll {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .Bloque-About h2 {
    font-size: 20px;
  }

  .Bloque-About p {
    font-size: 14px;
    line-height: 1.6;
  }

  .bloque {
    padding: 16px;
  }

  .bloque h3 {
    font-size: 16px;
  }

  .bloque h4 {
    font-size: 13px;
  }

  .bloque p {
    font-size: 13px;
    line-height: 1.55;
  }

  /* --- Swiper --- */
  .team-section {
    margin-top: 24px;
    padding: 32px 0 48px;
  }

  .team-section .swiper-slide {
    width: 260px;
    height: 340px;
  }

  .team-content {
    margin-top: 210px;
  }

  .team-content h2 {
    font-size: 17px;
    padding: 8px;
  }
}

/* ---- Small phones (≤ 420px) ---- */
@media (max-width: 420px) {

  .cta-text {
    display: none;
  }

  .header-cta {
    padding: 5px;
  }

  .cta-dot {
    width: 34px;
    height: 34px;
  }

  .columna-fija h1 {
    font-size: 30px;
  }

  .columna-fija h2 {
    font-size: 13px;
  }

  .nav-link {
    padding: 8px 14px;
    font-size: 0.6rem;
  }

  .nav-pill {
    font-size: 11px;
    padding: 5px 9px;
  }

  .Bloque-About p {
    font-size: 13.5px;
  }

  .bloque h3 {
    font-size: 15px;
  }

  .bloque h4 {
    font-size: 12.5px;
  }

  /* --- Swiper smaller --- */
  .team-section .swiper-slide {
    width: 220px;
    height: 290px;
  }

  .team-content {
    margin-top: 170px;
  }

  .team-content h2 {
    font-size: 15px;
  }
}

/* ---- Very small phones (≤ 360px) ---- */
@media (max-width: 360px) {

  .page {
    padding: 8px 6px 24px;
  }

  .header {
    padding: 8px;
    border-radius: 14px;
  }

  /* Hide social pills on tiny screens to save space */
  .nav-pills {
    display: none;
  }

  .header {
    flex-wrap: nowrap;
  }

  .columna-fija h1 {
    font-size: 26px;
  }

  .columna-fija h2 {
    font-size: 12px;
  }

  .nav-indice ul {
    gap: 6px;
    margin-top: 18px;
  }

  .nav-link {
    padding: 7px 12px;
    font-size: 0.55rem;
  }

  .team-section .swiper-slide {
    width: 200px;
    height: 260px;
  }

  .team-content {
    margin-top: 145px;
  }

  .team-content h2 {
    font-size: 14px;
  }
}

  .Titulo-proyectos{
    text-align: center;
    width: 200px;
  }