  :root { --footer-h: 64px; }

    /* Fuente personalizada */
    @font-face {
      font-family: 'Edos';
      src: url('../fonts/edosz.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
    }

    
    html, body {
      height: 100%;
      margin: 0;
      font-family: Edos, system-ui, sans-serif;
      color: black;
    }

  body {
    background: url('../img/fondo.jpg') no-repeat center center;
    background-size: cover;
      }
  @media (max-width: 768px) {
      body {
        background: url('../img/fondo_movil.png') no-repeat center center;
        background-size: cover;
        width: 100%;
          height: 100vh; /* ocupa todo el alto de la ventana */
    margin: 0; /* eliminar márgenes por defecto */
      }
    }


    /* Fondo */
    .bg {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover; /* cubre siempre sin deformar */
      object-position: center;
    }

    /* Contenedor principal */
    .wrap {
      position: relative;
      min-height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start; /* logo arriba */
      padding: 20px 20px var(--footer-h);
      box-sizing: border-box;
    }

    /* Logo */
    .logo {
      max-width: 40vw;  /* más chico */
      max-height: 40vh; /* más chico */
      display: block;
      margin-bottom: 10px; 
      filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
    }

  /* Cards: siempre en línea */
  .cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap; /* no hacer wrap */
    overflow-x: auto; /* scroll horizontal si no entran */
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .card {
    flex: 0 0 auto; /* no se encoge ni crece */
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 20px;
    width: 200px; /* tamaño fijo */
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
    transition: transform 0.2s ease;
  }

  .card:hover {
    transform: scale(1.05);
  }

    /* About / presentación */
    .about {
      max-width: 600px;
      text-align: center;
      margin-bottom: 10px;
      padding: 0 10px;
      font-family: "Borel";
    }

    .about h2 {
      font-size: 24px;
      margin-bottom: 3px;
      font-weight: bold;
    }

    .about p {
      font-size: 16px;
      line-height: 1;
    }

    /* Footer fijo */
    footer {
      position: fixed;
      left: 0; right: 0; bottom: 0;
      height: var(--footer-h);
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,.7);
      backdrop-filter: blur(4px);
      font-size: 14px;
      color: white;
      text-align: center;
    }

    .contacto {
      position: fixed;
      bottom: 100px;
      right: 20px;
      
      
    }

    .contacto img {
      width: 50px;
      height: 50px;
    }

    @media (max-width: 768px) {
      .logo { max-width: 50vw; max-height: 18vh; }
      .card { min-width: 120px; padding: 15px; font-size: 15px; }
      .about p { font-size: 16px; }
    }

    @media (max-width: 480px) {
      .logo { max-width: 70vw; max-height: 15vh; margin-bottom: 15px; }
      .card { min-width: 100px; font-size: 14px; padding: 12px; }
      .about h2 { font-size: 20px; }
      .about p { font-size: 14px; }
    }

    .rect {
    width: 300px;
    height: 100px;
    background: #fff;
    border-radius: 500%;
    opacity: 0;
    transform: translateX(-300px);
    animation: slideIn 1s forwards;
  }

  /* Animaciones escalonadas */
  .rect:nth-child(1) { animation-delay: 0s; }
  .rect:nth-child(2) { animation-delay: 0.3s; }
  .rect:nth-child(3) { animation-delay: 0.6s; }

  @keyframes slideIn {
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  @media (max-width: 768px) {
  .solo-pc {
    display: none;
  }
}