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

:root {
  --border: #706a5f;
  --bg: #fff;
  --muted: #444;
  --radius: 18px;
  --shadow: 0 16px 30px rgba(0, 0, 0, .12);
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: #000;
}


/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg);
  z-index: 50;
  background: rgba(211, 210, 210, 0.6);
  /* semi transparente */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}


.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 900;
  font-size: 40px;
  letter-spacing: -0.02em;
}

.menu {
  display: flex;
  gap: 40px;
}

.menu a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

.menu a:hover {
  text-decoration: underline;
}



/* PAGE */
.page {
  padding-top: 90px;
  /* deja sitio para nav */
  min-height: 100vh;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
}

.header {
  padding: 60px 0 45px;
}

.title {
  font-size: 86px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 30px;
}

.subtitle {
  font-size: 22px;
  color: var(--muted);
  max-width: 850px;
}

#empty {
  display: none !important;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 80px;
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.project-card {
  display: block;
  text-decoration: none;
  background: #F6F2EA;
  /* crema muy sutil */
  color: #111111;
  /* negro suave */
  border: 3px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  opacity: 0;
  transform: translateY(14px);

  opacity: 1;
  transform: translateY(0);

  background-color: #F6F2EA;
  background-image: radial-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 6px 6px;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-image {
  height: 210px;
  width: 100%;
  background: #f3f3f3;
  border-bottom: 3px solid var(--border);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 26px;
}

/* badge día */
.badge {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* título */
.card-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}

/* tech tags */
.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tech span {
  font-size: 14px;
  border: 2px solid #000;
  padding: 6px 10px;
  border-radius: 10px;
  background: #FDFBF7;

}

.tech span:hover {
  background: #F6F2EA;
}

/* Ver proyecto */
.view {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.view svg {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;

}

.project-card:hover .view svg {
  transform: translateX(5px);
}





@media (max-width: 450px) {

  .nav-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
  }

  .brand {
    font-size: 30px;
    line-height: 1;
    text-align: center;
  }

  .menu {
    gap: 18px;
    flex-wrap: wrap;
    /* por si no cabe */
    justify-content: center;
  }

  .menu a {
    font-size: 14px;
  }

  /* Ajusta el espacio arriba del contenido porque la nav será más alta */
  .page {
    padding-top: 140px;
    /* antes 90px */
  }
  .title{
    text-align: center;   /* 👈 importante */
    font-size: clamp(40px, 8vw, 60px);
  }
   .subtitle{
    text-align: center;   /* 👈 importante */
    font-size: clamp(12px, 8vw, 20px);
  }
    .header {
    padding: 5px 0 50px;
  }

}


@media (max-width: 700px) and (min-width: 450px) {

 .title{
  /* En 700px ~86px, en 450px ~56px (aprox) */
  font-size: clamp(56px, 12vw, 86px);
  line-height: 1;
}
  .header {
    padding: 10px 0 50px;
  }

  .nav-inner {
    padding: 14px 18px;
  }

  /* Built by Blanca se adapta progresivamente */
  .brand {
    font-size: clamp(22px, 4vw, 50px);
    line-height: 1;
  }

  /* Menú más compacto */
  .menu {
    gap: 20px;
    /* antes 40px */
  }

  .menu a {
    font-size: 15px;
  }

  /* Ajustamos espacio superior del hero */
  .page {
    padding-top: 100px;
  }
}






/* FOOTER */

.site-footer{
  background: #2e2e2e;
  color: #bbb;
  padding: 30px 22px 30px;
  margin-top: 120px;
  font-size: 14px;
}

.footer-container{
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 30px;
}

.footer-brand{
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.footer-location,
.footer-update{
  margin-bottom: 6px;
  color: #888;
}

.footer-right{
  display: flex;
  align-items: flex-start;
}

.footer-link{
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: opacity .2s ease;
}

.footer-link:hover{
  opacity: .7;
}

/* bottom line */
.footer-bottom{
  max-width: 1280px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 700px){
  .footer-container{
    flex-direction: column;
  }

  .footer-bottom{
    flex-direction: column;
    gap: 8px;
  }
}