:root{
  --bg: #F6F8FB;
  --surface: #ffffff;
  --text: #111111;
  --muted: #333333;
  --border: rgba(17,17,17,.14);
  --border2: rgba(17,17,17,.22);


  --btn: #111111;
  --btnHover: #0b0b0b;
  --radius: 18px;


  --max: 1180px;
}


*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  font-weight: 400;
}


.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}


.site-header .container{
  max-width: 100%;
  padding-left: 56px;
  padding-right: 110px;
}


.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,248,251,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  text-decoration:none;
  color: var(--text);
  display:flex;
  flex-direction: row;     
  align-items: baseline;   
  gap: 16px;             
}


.brand__name{
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 19px;
}

.brand__role{
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
}

.nav{
  display:flex;
  gap: 28px;         
  flex-wrap: wrap;
  justify-content: flex-end;
}


.nav a{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(17,17,17,.25);
  padding-bottom: 1px;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover{
  border-bottom-color: rgba(17,17,17,.75);
}


h1,h2,h3{
  margin:0;
  color: var(--text);
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
}

h1{ font-weight: 600; }
h2{ font-weight: 600; }
h3{ font-weight: 600; }

p{
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 400;
}


.section{
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}

.section-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 38px;
}

.section-title h2{
  font-size: 42px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}

.section-title span{
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}


.hero{
  padding: 86px 0 96px;
  border-bottom: none; 
}

.hero-grid{
  display:grid;
  grid-template-columns: 520px 1fr;
  gap: 78px;
  align-items:center;
}

.hero-copy{
  max-width: 56ch;
}

.hero-copy p{
  text-align: justify;
  text-justify: inter-word;
}

.avatar{
  width: 500px;
  height: 500px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 52px rgba(17,17,17,.12);
}

.hero h1{
  font-size: 60px;
  line-height: 1.02;
  margin-bottom: 22px;
  font-weight: 600;
}


@media (min-width: 900px){
  .hero h1{ white-space: nowrap; }
}

.hero .subtitle{
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

.cta{
  display:flex;
  flex-wrap:wrap;
  gap: 24px;
  margin-top: 26px;
  margin-bottom: 26px; 
}

.hero-links{
  margin: 0;
  display: flex;       
  gap: 10px;           
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 14px;
}
.hero-links a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.hero-links a:visited{
  color: var(--text);
}

.hero-links a:hover{
  opacity: .75;
}
.hero-copy .hero-links a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.hero-copy .hero-links a:visited{
  color: var(--text);
}

.hero-copy .hero-links a:hover{
  opacity: .75;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration:none;
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
}

.btn:hover{ background: rgba(17,17,17,.06); }

.btn--primary{
  background: var(--btn);
  border-color: var(--btn);
  color:#fff;
  font-weight: 700;
}

.btn--primary:hover{
  background: var(--btnHover);
  border-color: var(--btnHover);
}


.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card{
  grid-column: span 6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.60);
  padding: 16px;
  text-decoration:none;
  color: var(--text);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.card:hover{
  transform: translateY(-2px);
  border-color: var(--border2);
  background: rgba(255,255,255,.78);
}

.card .kicker{
  margin: 0 0 6px;
  font-size: 25px;
  color: var(--muted);
  opacity: .85;
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
}

.card .title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.card .desc{
  margin: 0;
  color: var(--muted);
  font-weight: 400;


  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


.personal{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.personal .box{
  grid-column: span 6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.55);
  padding: 16px;
}

.personal .box h3{
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}

.personal .box p{
  margin:0;
  font-weight: 400;
}


.contact-line{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 16px;
  align-items:baseline;
}

.contact-line b{
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: var(--text);
}

.contact-line a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}


.site-footer{ padding: 18px 0; }

.footer-inner{
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}


@media (max-width: 780px){
   .brand{
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .brand__role{ font-size: 13px; }
  .nav a{ font-size: 13px; }

  .site-header .container{
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero{ padding: 46px 0 60px; }
  .hero-grid{ grid-template-columns: 1fr; gap: 22px; }
  .avatar{ width: 260px; height: 260px; }
  .hero h1{ font-size: 40px; }

  .card{ grid-column: span 12; }
  .personal .box{ grid-column: span 12; }
}
/* --- Projects (tabs + cards) --- */

.projects-tabs{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.tab{
  appearance:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor:pointer;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

.tab:hover{
  background: rgba(255,255,255,.75);
  border-color: var(--border2);
  transform: translateY(-1px);
}

.tab.is-active{
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}

.projects-list{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.project-card{
  grid-column: span 6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.60);
  padding: 18px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.project-card:hover{
  transform: translateY(-2px);
  border-color: var(--border2);
  background: rgba(255,255,255,.78);
}

.project-card__head .kicker{
  margin: 0 0 6px;
  font-size: 25px;
  color: var(--muted);
  opacity: .85;
  font-weight: 600;
}

.project-card__head .title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.project-card__head .desc{
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 16px;
}

.projects-featured{
  margin-bottom: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 780px){
  .project-card{ grid-column: span 12; }
}

/* =========================
   PROJECTS – más aire / menos apelotonado
   (pegar al FINAL del main.css)
========================= */

/* 1) Más ancho real en /projects/ sin afectar al resto */
.page{
  max-width: 1180px;            /* ancho cómodo para 2 columnas */
  margin: 0 auto;
  padding: 64px 0 80px;         /* más aire arriba/abajo */
}

/* Si tu <main> ya tiene .container, esto evita que quede estrecho */
main.container .page{
  padding-left: 20px;
  padding-right: 20px;
}

/* 2) Cabecera con más separación */
.page-head{
  padding-bottom: 32px;
  margin-bottom: 38px;
}

.page-title{
  margin-bottom: 12px;
}

.page-subtitle{
  margin-top: 0;
  line-height: 1.85;            /* menos “bloque compacto” */
}

/* 3) Filtros más separados y con más presencia */
.filters{
  gap: 12px;
  margin: 22px 0 32px;
}

.filter{
  padding: 10px 14px;
  font-size: 13px;
}

/* 4) Grid con más espacio entre tarjetas */
.projects-grid{
  gap: 38px;                    /* antes 18px: más aire */
}

/* 5) Tarjetas: más padding, más altura visual */
.project-card{
  padding: 22px 22px 20px;      /* antes ~18 */
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(17,17,17,.07);
}

/* 6) Tipografía dentro de la tarjeta: más jerarquía y lectura */
.project-title{
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.project-desc{
  line-height: 1.85;
  margin-bottom: 18px;
}

/* 7) Evitar que TODO se vea truncado: permite 2 líneas en desc si quieres */
.project-desc{
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* antes no estaba en cards, ahora mejor 2 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 8) Botones: un poco más separados */
.project-actions{
  gap: 14px;
  margin-top: 10px;
}

/* 9) En pantallas grandes, separa un poco más las dos columnas */
@media (min-width: 1100px){
  .projects-grid{
    column-gap: 28px;
    row-gap: 28px;
  }
}

/* 10) En móvil: más margen para que no se amontone */
@media (max-width: 780px){
  .page{
    padding: 44px 0 60px;
  }
  .project-card{
    padding: 18px 18px 16px;
  }
  .project-title{
    font-size: 20px;
  }
}
.projects.section{
  border-bottom: none;
  padding-top: 64px;
  padding-bottom: 90px;
}

.projects-header{
  max-width: 78ch;
  margin-bottom: 78px;
}

.projects-lede{
  margin-top: 64px;
  margin-bottom: 78px;
  max-width: 70ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.projects-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.projects-tabs .tab{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

.projects-tabs .tab:hover{
  transform: translateY(-1px);
  border-color: var(--border2);
  background: rgba(255,255,255,.75);
}

.projects-tabs .tab.is-active{
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.projects-grid{
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 46px;
}

/* Card */
.project-card{
  grid-column: span 6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.55);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(17,17,17,.06);
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.project-card:hover{
  transform: translateY(-2px);
  border-color: var(--border2);
  background: rgba(255,255,255,.70);
  box-shadow: 0 22px 56px rgba(17,17,17,.09);
}

/* Media (imagen arriba) */
.project-media{
  display: block;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.70);
  padding: 18px;
}

.project-media img{
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
}

/* Body */
.project-body{
  padding: 18px 18px 20px;
}

.project-kicker{
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  opacity: .9;
}

.project-title{
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.project-title a{
  color: var(--text);
  text-decoration: none;
}

.project-title a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-desc{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Tags */
.project-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.project-tags .tag{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

/* Actions */
.project-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Responsive */
@media (max-width: 900px){
  .project-card{ grid-column: span 12; }
  .project-media img{ height: 150px; }
}

@media (max-width: 780px){
  .projects.section{ padding-top: 44px; padding-bottom: 60px; }
  .projects-lede{ font-size: 15px; }
}
/* =========================
   Projects: cards cuadradas (sin tocar botones)
   ========================= */

.projects-page .project-card{
  border-radius: 0 !important;
}

/* Si tu card tiene “caja” interna (media/imagen), la cuadramos también */
.projects-page .project-card__media,
.projects-page .project-card__media img{
  border-radius: 0 !important;
}

/* Si en algún caso estás usando .card en projects, también lo cubrimos */
.projects-page .card{
  border-radius: 0 !important;
}
/* =========================
   PROJECTS (más aire y “landing”)
   ========================= */

.projects-page{
  /* más aire arriba (lo que marcaste en rojo) */
  padding-top: 70px;
}

.projects-page .section-title{
  /* separa claramente título/subtítulo/filtros */
  margin-bottom: 38px;
}

/* “PROYECTOS” más grande y más editorial */
.projects-page .section-title h2{
  font-size: 42px;         /* antes 14px */
  letter-spacing: .14em;   /* más “editorial” */
}

/* “SQL · Power BI · Python · R” más discreto y mejor alineado */
.projects-page .section-title span{
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
  white-space: nowrap;
  margin-top: 2px;
}

/* Subtítulo con más aire y legibilidad */
.projects-page p.subtitle{
  margin-top: 6px;
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.8;
  max-width: 68ch;
}

/* Tabs con más separación y mejor “respiración” */
.projects-page .projects-tabs{
  margin-top: 38px;
  margin-bottom: 38px;
  display: flex;
  gap: 54px;
  flex-wrap: wrap;
}

/* Grid de cards: más espacio entre tarjetas */
.projects-page .projects-list{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

/* Dos columnas en escritorio, una en móvil */
.projects-page .project-card{
  grid-column: span 6;
  padding: 26px;
  border-radius: 0; /* cuadradas (como pediste) */
}

/* Imagen más “banner” y limpia */
.projects-page .project-card__media{
  margin: -26px -26px 18px;   /* imagen a sangre dentro de la card */
  border-bottom: 1px solid var(--border);
}

.projects-page .project-card__media img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Mejor jerarquía textual */
.projects-page .project-card .kicker{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 10px;
}

.projects-page .project-card .title{
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.projects-page .project-card .desc{
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
  -webkit-line-clamp: 2; /* que no quede “apelotonado” */
}

/* Tags con aire */
.projects-page .project-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}

/* Acciones más separadas */
.projects-page .project-card__actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Responsive */
@media (max-width: 900px){
  .projects-page{
    padding-top: 44px;
  }
  .projects-page .project-card{
    grid-column: span 12;
  }
  .projects-page .project-card__media img{
    height: 170px;
  }
}
/* =========================================
   PROJECTS (más editorial) — estilo landing
   ========================================= */

.container--projects{
  max-width: 100%;
  padding-left: 56px;
  padding-right: 56px;
}

@media (max-width: 780px){
  .container--projects{
    padding-left: 20px;
    padding-right: 20px;
  }
}

.section--projects{
  padding-top: 58px;
  padding-bottom: 72px;
  border-bottom: none;
}

.section--projects .projects-hero{
  max-width: 1080px;
}

.section--projects .projects-hero__top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section--projects .projects-kicker{
  margin: 0;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}

.section--projects .projects-tech{
  margin: 0;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.section--projects .projects-lede{
  margin: 0 0 26px;
  max-width: 70ch;
  color: var(--muted);
}

.section--projects .projects-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
  margin-bottom: 34px;
}

.section--projects .tab{
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0; /* cuadrado */
  cursor: pointer;
}

.section--projects .tab:hover{
  border-color: var(--border2);
}

.section--projects .tab.is-active{
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.section--projects .projects-feed{
  max-width: 1080px;
  border-top: 1px solid var(--border);
}

.section--projects .project-row{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 42px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

.section--projects .project-row:nth-child(even){
  grid-template-columns: .8fr 1.2fr;
}

.section--projects .project-row:nth-child(even) .project-row__content{
  order: 2;
}

.section--projects .project-row:nth-child(even) .project-row__media{
  order: 1;
}

.section--projects .project-meta{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.section--projects .project-title{
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section--projects .project-desc{
  margin: 0 0 16px;
  max-width: 70ch;
  color: var(--muted);
}

.section--projects .project-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.section--projects .tag{
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 0; /* cuadrado */
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,.50);
}

.section--projects .project-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* Botones en projects: un poco más sobrios */
.section--projects .btn{
  border-radius: 999px; /* puedes cambiar a 0 si quieres también botones cuadrados */
}

.section--projects .project-row__media{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.section--projects .project-row__media img{
  width: 100%;
  max-width: 420px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 0; /* cuadrado */
  background: #fff;
}

/* Responsive */
@media (max-width: 980px){
  .section--projects .project-row,
  .section--projects .project-row:nth-child(even){
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section--projects .project-row__media{
    justify-content: flex-start;
  }

  .section--projects .project-row__content{
    order: 1 !important;
  }
  .section--projects .project-row__media{
    order: 2 !important;
  }

  .section--projects .project-title{
    font-size: 22px;
  }
}
/* Projects: ajustes finos de cabecera */
.section--projects .projects-kicker{
  font-size: 42px;
  letter-spacing: -0.02em; /* opcional: más editorial */
  text-transform: none;     /* opcional: si no quieres mayúsculas */
}

/* Haz que el contenedor de Projects use el mismo padding lateral que el header */
.container--projects{
  max-width: 100%;
  padding-left: 56px;
  padding-right: 56px;
} 
/* =========================================================
   PROJECTS: título 42px + tech alineado a la derecha
   (PEGAR AL FINAL DEL main.css)
   ========================================================= */

.projects-page .projects-title{
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  margin: 0;
}

.projects-page .section-title{
  width: 100%;
}

.projects-page .projects-tech{
  margin-left: auto;     /* empuja el texto a la derecha dentro del flex */
  text-align: right;
  white-space: nowrap;
}

/* Si quieres que en móvil se vea en 2 líneas y no “apretado” */
@media (max-width: 780px){
  .projects-page .section-title{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .projects-page .projects-tech{
    margin-left: 0;
    text-align: left;
    white-space: normal;
  }
}
/* HOTFIX: centrar el bloque (texto + tabs) en /projects/ */
.section.projects-page .projects-header{
  max-width: 70ch;            /* ajusta si lo quieres más ancho (p.ej. 78ch) */
  margin: 0 auto 22px;        /* esto lo centra */
}

/* Centrar la fila de botones */
.section.projects-page .projects-tabs{
  justify-content: center !important;
}

/* Asegura que los botones no “se repartan” ocupando todo el ancho */
.section.projects-page .projects-tabs .tab{
  flex: 0 0 auto;
}
.section.projects-page .projects-header{
  text-align: center;
}
/* FIX: NO centrar el título. Centrar solo texto + tabs */
.section.projects-page .projects-header{
  max-width: none !important;
  margin: 0 0 22px !important;
  text-align: left !important; /* por si se te coló un text-align:center */
}

/* Centra SOLO la frase */
.section.projects-page .projects-lede{
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Centra SOLO los botones */
.section.projects-page .projects-tabs{
  justify-content: center !important;
}

/* Evita que los botones se estiren */
.section.projects-page .projects-tabs .tab{
  flex: 0 0 auto;
}

.about-page{
  padding-top: 70px;
}

.about-page .section-title{
  margin-bottom: 38px;
}


.about-page .projects-title{
  font-size: 42px;
  letter-spacing: .14em; 
}
/* =========================
   ABOUT (editorial)
   Familia: vertical 2:3
   Hobby: horizontal 3:2
   ========================= */


/* Título principal "About" */
.about-page .section-title{
  margin-bottom: 38px;
}

.about-page .section-title h2{
  font-size: 42px;
  margin: 0;
}

/* Texto */
.about-page p{
  max-width: 170ch;
  line-height: 1.7;
}

/* Secciones personales */
.about-page .personal-section{
  margin-top: 34px;
}

.about-page .personal-section h2{
  font-size: 28px;
  margin: 0 0 10px 0;
}

/* Galerías */
.about-page .about-gallery{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

/* Base imagen */
.about-page .about-gallery img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0; /* esquinas cuadradas */
}

/* Familia: vertical 2:3 (más alto) */
.about-page .about-gallery.is-family img{
  aspect-ratio: 2 / 3;
}

/* Hobby: horizontal 3:2 */
.about-page .about-gallery.is-hobby img{
  aspect-ratio: 3 / 2;
}

/* Responsive */
@media (max-width: 760px){
  .about-page .about-gallery{
    grid-template-columns: 1fr;
  }
}
/* =========================
   ABOUT - layout editorial (2 columnas)
   ========================= */

.about-page{
  padding-top: 70px;
}

.about-page .section-title{
  margin-bottom: 38px;
}

.about-page .section-title h2{
  font-size: 42px;
  margin: 0;
}


/* Bloques personales */
.about-page .personal-block{
  margin-top: 98px;
}

.about-page .personal-block h2{
  font-size: 28px;
  margin: 0 0 70px 0;
}

/* 2 columnas: texto + fotos */
.about-page .personal-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto; /* texto flexible, fotos al ancho justo */
  column-gap: 56px;                           /* “aire” entre columnas */
  align-items: start;
}

.about-page .personal-photos{
  display: grid;
  grid-template-columns: repeat(2, auto); /* 2 fotos en horizontal */
  gap: 14px;                              /* espacio entre fotos */
  justify-content: end;                   /* bloque pegado a la derecha */
  align-items: start;
}


/* Regla base de imagen */
.about-page .personal-photos img{
  display: block;
  border-radius: 0;     /* esquinas cuadradas */
  object-fit: cover;    /* recorte limpio */
}

/* Familia: vertical 2:3, tamaño parecido al de Dalya */
.about-page .family-photos img{
  width: 210px;
  height: 315px;        /* 210 * (3/2) = 315 */
}

/* Hobby: horizontal 3:2 (más “apaisado”) */
.about-page .hobby-photos img{
  width: 280px;
  height: 187px;        /* 280 * (2/3) ≈ 186.7 */
}
.about-page p{
  text-align: justify;
  text-justify: inter-word;   /* mejor reparto entre palabras (cuando el navegador lo soporte) */
  hyphens: auto;              /* evita ríos de espacio si el navegador/idioma lo permite */
}
/* Texto más estrecho en secciones personales */
.about-page .personal-text p{
  max-width: 39ch;   /* más estrecho, editorial */
}

/* Responsive: en móvil apila y centra */
@media (max-width: 900px){
  .about-page .personal-grid{
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
  .about-page .personal-photos{
    justify-items: start; /* fotos alineadas con el texto */
  }
}
@media (max-width: 900px){
  .about-page .personal-photos{
    grid-template-columns: 1fr;  /* una debajo de otra en móvil */
    justify-content: start;
  }
}
@media (max-width: 780px){
  .section-title{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

    white-space: normal;
    overflow-wrap: normal;  /* NO rompe por letras */
    word-break: keep-all;   /* mantiene palabras enteras */
    hyphens: manual;        /* sin guionado automático */
    line-height: 1.15;
  }

  .section-title span{
    white-space: normal;
  }
}
/* =========================
   HOTFIX MOBILE OVERFLOW (Projects)
   ========================= */

/* Evita desbordes horizontales globales */
html, body { max-width: 100%; overflow-x: hidden; }

/* Clave para grids/flex: permitir encoger */
.container, main, .section, .projects-grid, .projects-list,
.project-card, .project-row, .project-row__content, .project-row__media {
  min-width: 0;
}

/* Asegura que las cards nunca superen el contenedor */
.project-card { max-width: 100%; width: 100%; }

/* Mobile: 1 columna real en cualquier grid de proyectos */
@media (max-width: 780px){
  .projects-grid,
  .projects-list{
    grid-template-columns: 1fr !important;
  }

  .project-card{
    grid-column: 1 / -1 !important; /* ocupa todo el ancho del grid */
  }

  /* Si hay padding lateral raro en projects */
  .container--projects{
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
