/* proyectos.css — Estilos propios de la página de Proyectos (hero, carrusel deslizante) */

/* ======= HERO ======= */
    .hero {
      position: relative;
      height: 80vh;
      display: flex;
      justify-content: center;
      align-items: center;
      color: white;
      text-align: center;
      overflow: hidden;
    }

    .hero img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
    }

    .hero::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.55);
      z-index: 0;
    }

    .hero-content {
      z-index: 1;
      max-width: 800px;
      padding: 20px;
    }

    .hero h1 {
      font-size: 3em;
      margin-bottom: 15px;
    }

    .hero p {
      font-size: 1.2em;
      color: #eee;
    }

    /* ======= CARRUSEL DESLIZANTE  ======= */
    .carousel-section {
      max-width: 1100px;
      margin: 0 auto;
      padding: 60px 20px;
    }

    .carousel-container {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
      margin: 0 auto;
    }

    /* Botones de flecha */
    .carousel-arrow {
      background: rgba(0, 51, 102, 0.85);
      backdrop-filter: blur(4px);
      border: none;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.25s ease;
      color: white;
      font-size: 1.6rem;
      z-index: 20;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .carousel-arrow:hover {
      background: #0077cc;
      transform: scale(1.05);
    }

    /* Slider principal */
    .slider-wrapper {
      width: 100%;
      max-width: 800px;
      overflow: hidden;
      position: relative;
    }

    .slider-track {
      display: flex;
      transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1);
    }

    /* Tarjetas: sin bordes redondeados, más grandes */
    .proyecto-card {
      flex: 0 0 100%;
      background: #fff;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
      overflow: hidden;
      cursor: pointer;
      border-radius: 0;          /* Bordes rectos */
      transition: box-shadow 0.3s;
    }

    .proyecto-card:hover {
      box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
    }

    .proyecto-card img {
      width: 100%;
      height: 320px;             /* Más grande */
      object-fit: cover;
      transition: transform 0.4s ease;
      display: block;
    }

    .proyecto-card:hover img {
      transform: scale(1.02);
    }

    .proyecto-info {
      padding: 28px 32px 36px;
    }

    .proyecto-info h3 {
      color: #003366;
      margin-bottom: 14px;
      font-size: 1.8em;
      font-weight: 600;
    }

    .proyecto-info p {
      color: #555;
      font-size: 1.05rem;
      line-height: 1.5;
    }

    /* Indicador de posición */
    .carousel-indicator {
      text-align: center;
      margin-top: 32px;
      font-size: 1.1rem;
      font-weight: 500;
      background: rgba(0, 51, 102, 0.1);
      display: inline-block;
      padding: 8px 24px;
      border-radius: 40px;
      color: #003366;
    }

    .indicator-wrapper {
      display: flex;
      justify-content: center;
      margin-top: 15px;
    }

    /* ======= MODALES ======= */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.85);
      justify-content: center;
      align-items: center;
      z-index: 2000;
      padding: 20px;
    }

    .modal-content {
      background: #fff;
      border-radius: 0;          
      width: 90%;
      max-width: 1000px;
      max-height: 90vh;
      overflow-y: auto;
      padding: 30px;
      position: relative;
    }

    .close-btn {
      position: absolute;
      top: 18px;
      right: 24px;
      font-size: 32px;
      cursor: pointer;
      color: #222;
      z-index: 2001;
      transition: 0.2s;
    }
    .close-btn:hover { color: #0077cc; }

    .modal-image {
      width: 100%;
      max-height: 400px;
      object-fit: cover;
      border-radius: 0;
      margin-bottom: 20px;
    }

    .modal h2 {
      color: #003366;
      margin-bottom: 15px;
    }

    .galeria {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 15px;
      margin-top: 20px;
    }

    .galeria img {
      width: 100%;
      height: 130px;
      object-fit: cover;
      border-radius: 0;
      cursor: pointer;
      transition: transform 0.2s;
    }
    .galeria img:hover { transform: scale(1.02); }

    /* ======= FOOTER ======= */
    /* ======= RESPONSIVE ======= */
    @media (max-width: 768px) {
      .menu-toggle {
        display: block;
      }
      nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        gap: 30px;
        transition: left 0.3s ease;
      }
      nav ul.show {
        left: 0;
      }
      header.scrolled ul {
        background: rgba(255, 255, 255, 0.96);
      }
      .menu-toggle {
        position: absolute;
        left: 20px;
      }
      .logo {
        margin-left: 45px;
      }
      .hero {
        height: 55vh;
      }
      .hero h1 { font-size: 2.1em; }
      .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
      }
      .proyecto-card img {
        height: 260px;
      }
      .proyecto-info {
        padding: 20px 24px;
      }
      .proyecto-info h3 {
        font-size: 1.5em;
      }
      .modal-content {
        padding: 20px;
      }
    }

    @media (max-width: 550px) {
      .carousel-arrow {
        width: 36px;
        height: 36px;
      }
      .proyecto-card img {
        height: 220px;
      }
      .proyecto-info h3 {
        font-size: 1.3em;
      }
    }
