/* servicios.css — Estilos propios de la página de Servicios (hero, tarjetas, modales, galería) */

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

    .hero video,
    .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.45); /* capa oscura sobre el video o imagen */
      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;
    }

    /* ======= TARJETAS DE SERVICIOS ======= */
    .contenido {
      max-width: 1100px;
      margin: 0 auto 80px;
      padding: 60px 20px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 25px;
    }

    .card {
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      padding: 30px;
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      height: 250px; /* cuadrado */
      display: flex;
      flex-direction: column;
      justify-content: center;
      cursor: pointer;
    }

    .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .card h2 {
      color: #003366;
      margin-bottom: 12px;
    }

    .card p {
      color: #555;
    }

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

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

    .close-btn {
      position: absolute;
      top: 15px;
      right: 20px;
      font-size: 30px;
      cursor: pointer;
      color: #333;
      z-index: 2001;
    }

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

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

    .modal p {
      color: #555;
      line-height: 1.6;
      margin-bottom: 15px;
    }

    /* Galería de imágenes */
    .galeria {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 15px;
      margin-top: 20px;
    }

    .galeria img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      border-radius: 8px;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .galeria img:hover {
      transform: scale(1.05);
    }

    /* ======= RESPONSIVE ======= */
    @media (max-width: 768px) {
      /* Menú móvil */
      .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;
      }

      nav ul li {
        margin: 20px 0;
      }

      nav ul li a {
        font-size: 1.2em;
      }

      header.scrolled ul {
        background: rgba(255, 255, 255, 0.95);
      }

      header.scrolled ul li a {
        color: #333;
      }

      .menu-toggle {
        position: absolute;
        left: 25px;
      }

      .logo {
        margin-left: 40px;
      }

      /* Hero responsive */
      .hero {
        height: 60vh;
      }
      
      .hero h1 {
        font-size: 2.2em;
      }
      
      .hero p {
        font-size: 1em;
      }

      /* Tarjetas responsive */
      .contenido {
        padding: 40px 15px;
        grid-template-columns: 1fr;
      }
      
      .card {
        height: auto;
        min-height: 200px;
        padding: 20px;
      }

      /* Modales responsive */
      .modal-content {
        padding: 20px 15px;
      }
      
      .modal-image {
        max-height: 250px;
      }
      
      .close-btn {
        top: 10px;
        right: 15px;
        font-size: 25px;
      }

      /* Galería responsive */
      .galeria {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
      }
      
      .galeria img {
        height: 120px;
      }
    }

    @media (max-width: 480px) {
      .hero h1 {
        font-size: 1.8em;
      }
      
      .hero p {
        font-size: 0.9em;
      }
      
      .card h2 {
        font-size: 1.3em;
      }
      
      .galeria {
        grid-template-columns: 1fr;
      }
    }
