* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body, html {
      font-family: 'Segoe UI', sans-serif;
      scroll-behavior: smooth;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    /* ---- HEADER ---- */
    header {
      background-color: rgba(0, 0, 0, 0.7);
      color: #fff;
      padding: 15px 0;
      position: fixed;
      width: 100%;
      top: 0;
      z-index: 999;
    }

    .container {
      width: 90%;
      max-width: 1200px;
      margin: auto;
    }

    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      font-size: 1.8em;
      font-weight: bold;
    }

    nav ul {
      list-style: none;
      display: flex;
    }

    nav ul li {
      margin-left: 20px;
    }

    nav ul li a {
      color: white;
      font-weight: 500;
      padding: 6px 10px;
      border-radius: 4px;
      transition: background 0.3s;
    }

    nav ul li a:hover {
      background-color: #ffffff22;
    }

    .menu-toggle {
      display: none;
      font-size: 1.8em;
      cursor: pointer;
    }

    /* ---- SECTIONS ---- */
    section {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      text-align: center;
      padding: 60px 20px;
      background-size: cover;
      background-position: center;
      position: relative;
    }

    section::before {
      content: "";
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1;
    }

    section .content {
      position: relative;
      z-index: 2;
      max-width: 800px;
    }

    section h1, section h2 {
      font-size: 2.5em;
      margin-bottom: 15px;
    }

    section p {
      font-size: 1.2em;
      color: #ddd;
    }

    /* ---- INDIVIDUAL BACKGROUNDS ---- */
    #inicio {
      background-image: url('https://planner5d.com/blog/content/images/2024/02/cocinas.rusticas.9.jpg');
    }

    #secos {
      background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT5PPFLOnNyWbI4dFibinEWPc4u0mU94AcHiA&s');
    }

    #panceta-crocante {
      background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSP40xuIzAcpYPI70tMqjaqyKgsQ780TdzuMA&s');
    }

    #contacto {
      background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSZ_GcHhyAMCOd8Yfxvl8HzxAro-yePmb-ssg&s');
    }

    #proyectosGeneral{
      background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR5wgcwIdsn2osRqC8kiek6CyAdIms5tUVY6w&s');
    }

    /* ---- FOOTER ---- */
    footer {
      background-color: #111;
      color: #aaa;
      text-align: center;
      padding: 20px;
      font-size: 0.9em;
    }

    /* ---- RESPONSIVE ---- */
    @media (max-width: 768px) {
      nav ul {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 60px;
        right: 20px;
        border-radius: 6px;
        padding: 10px;
      }

      nav ul.active {
        display: flex;
      }

      .menu-toggle {
        display: block;
        color: white;
      }
    }
     /* ---- PROYECTOS: paneles con iconos ---- */
    #proyectos .content {
      max-width: 1000px;
      display: flex;
      gap: 30px;
      flex-wrap: wrap;
      justify-content: center;
    }

     .proyecto-panel {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 30px 25px;
      flex: 1 1 280px;
      max-width: 300px;
      box-shadow: 0 8px 16px rgba(0,0,0,0.3);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }


    .proyecto-panel:hover {
      transform: translateY(-8px);
      box-shadow: 0 16px 30px rgba(0,0,0,0.5);
      background: rgba(255, 255, 255, 0.15);
    }

    .proyecto-icon {
      font-size: 3.5em;
      margin-bottom: 15px;
      color: #00bfff;
    }

    .proyecto-title {
      font-size: 1.5em;
      margin-bottom: 12px;
      color: #fff;
    }

    .proyecto-desc {
      font-size: 1em;
      color: #ccc;
      line-height: 1.4;
    }
 .proyecto-img {
      max-width: 100%;   /* Que nunca sobrepase el ancho del panel */
    max-height: 150px; /* Ajusta esta altura a tu gusto */
    object-fit: contain;  /* Mantiene proporciones */
    display: block;
    margin: 0 auto;    /* Centrar horizontal */
    }
    