:root {
  --black: #0b0b0b;
  --gray: #666;
  --light: #f5f5f5;
  --border: #0b0b0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: white;
  color: var(--black);
}


/* 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;
}



main {
  padding: 150px 20px;
background-color: #435843;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #fff;
  padding: 70px;
 
}


.hero  {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap);
  align-items: center;

}

.hero img {
  width: 100%;
  max-width: 720px;
  border-radius: 18px;
  border: 4px solid var(--border);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.content {
    margin-top: 60px;
}



h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin: 10px 0 20px;
  font-weight: 900;
}


h2 {
  margin-top: 30px;
  font-size: 35px;
  font-weight: 800;
}

p {
  line-height: 1.7;
  font-size: 20px;
}


pre {
  background: #0d1b2a;
  color: #eaeaea;
  padding: 18px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
}

.links-box {
  margin-top: 30px;
  padding: 20px;
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: 18px;
}

.links-box h3 {
  margin-top: 0;
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--border);
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--black);
  color: white;
}

.btn.primary:hover {
  background: #222;
}

.btn.secondary {
  background: white;
  color: var(--black);
}

.btn.secondary:hover {
  background: var(--black);
  color: white;
}

.tech {
  margin-top: 45px;
}

.tech span {
  font-size: 14px;
  border: 2px solid #000;
  padding: 8px 20px;
  margin: 0px 5px;
  border-radius: 10px;
  background: #FDFBF7;

}


.footer-nav {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--black);
}

.footer-nav a:hover {
  text-decoration: underline;
}





.video-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
  margin-top: 0;
}

.video-panel.open {
  max-height: 900px; /* suficiente para el video */
  opacity: 1;
  transform: translateY(0);
  margin-top: 16px;
}

.video-wrap {
  border: 2px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.video-wrap video,
.video-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 0;
  display: block;
}



@media (max-width: 980px){

  .container{
    padding: 50px;
  }

  .hero{
    display: flex;
   flex-direction: column;
    gap: 28px;
  }

  .hero img{
    max-width: 100%;
    margin-top: 0;
    order: 1;
  }
  .hero-left{
    order: 2;
  }
}


@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 */
  }
}


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

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

  /* Built by Blanca se adapta progresivamente */
  .brand{
    font-size: clamp(22px, 4vw, 30px);
    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;
  }
}





/* =========================
   RESPONSIVE PROYECTO (MÓVIL)
   Estilo wireframe: mockup arriba + cards + botones full width + nav fija abajo
   ========================= */

@media (max-width: 700px) {

  /* 1) Espacio por la nav fija de arriba + nav fija de abajo */
  main {
    margin: 0;
    padding: 0;
  }

  .container{
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  /* 2) HERO: pasa a columna */
  .hero{
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
    margin: 0;
    order: 1;
  }

  /* Imagen mockup arriba */
  .hero img{
    width: 100vw;   
    max-width: 100vw;
    height: auto;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 15px;
    border-radius: 0;          /* quita bordes redondeados */
    order: 1;
  }

  /* Texto centrado */
  .hero-left{
    width: 100%;
    text-align: center;
    order: 2;
  }

  .title{
    font-size: clamp(36px, 9vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }

  .subtitle{
    font-size: clamp(14px, 4.2vw, 18px);
    line-height: 1.5;
    max-width: 38ch;
    margin: 0 auto;
  }

  /* Tecnologías centradas */
  .tech{
    margin-top: 18px;
  }

  .pills{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .pills span{
    border: 2px solid #000;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
  }

  /* 3) Contenido en "cards" para que no sea un bloque largo */
  .content{
    margin-top: 26px;
    order: 4;
  }

  .content h2{
    font-size: 22px;
    margin: 26px 0 12px;
  }

  .content p{
    background: #f8f6f1;     /* crema suave */
    border: 2px solid rgba(0,0,0,.10);
    border-radius: 18px;
    padding: 18px;
    line-height: 1.7;
    font-size: 14px;
  }



  /* 4) Caja de enlaces como card */
  .links-box{
    margin-top: 28px;
    background: #fff;
    border: 0px;
    border-radius: 18px;
    padding: 18px;
    order: 3;
  }

  /* Botones: columna + full width */
  .buttons{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }

  .btn{
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
  }
  .links-box h3{
    display: none;
  }

  /* 5) Footer nav: barra fija inferior (solo móvil) */
  .footer-nav{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 60;
    background: rgba(255,255,255,.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,.10);

    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 14px 10px;
  }

  .footer-nav a{
    text-decoration: none;
    color: #000;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* 6) NAV superior: compacta (si quieres) */
  .nav-inner{
    padding: 14px 14px;
  }

  .brand{
    font-size: 28px;
    line-height: 1;
  }

  .menu{
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .video-panel.open {
    order: 3;
  max-height: 900px; /* suficiente para el video */
  opacity: 1;
  transform: translateY(0);
  margin-top: 16px;
}
  
}


