/* index.css — Estilos propios de la página de inicio (hero, secciones, valores, clientes, modales) */

/* ===== HERO ===== */
    #inicio {
      position: relative;
      height: 100vh;
      overflow: hidden;
    }

    #inicio video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -2;
    }

    #inicio::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.45);
      z-index: -1;
    }

    .hero-content {
      position: relative;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: white;
      text-align: center;
      padding: 0 20px;
    }

    .hero-content h1 {
      font-family: 'Montserrat', sans-serif;
      font-size: 3.2em;
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .hero-content p {
      font-size: 1.3em;
      max-width: 750px;
      color: white;
      margin-bottom: 40px;
      font-weight: 300;
      line-height: 1.8;
    }

    /* ===== BOTONES HERO ===== */
    .hero-buttons {
      display: flex;
      gap: 25px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .btn-brochure, .btn-cotizacion {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: white;
      padding: 16px 32px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 600;
      font-family: 'Montserrat', sans-serif;
      transition: all 0.4s ease;
      backdrop-filter: blur(10px);
      border: 2px solid rgba(255, 255, 255, 0.3);
      position: relative;
      overflow: hidden;
      letter-spacing: 0.8px;
      background: rgba(255, 255, 255, 0.15);
      min-width: 220px;
      font-size: 0.95em;
      text-transform: uppercase;
    }

    .btn-brochure::before, .btn-cotizacion::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.6s ease;
    }

    .btn-brochure:hover, .btn-cotizacion:hover {
      background: rgba(255, 255, 255, 0.25);
      transform: translateY(-5px);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
      border-color: rgba(255, 255, 255, 0.5);
    }

    .btn-brochure:hover::before, .btn-cotizacion:hover::before {
      left: 100%;
    }

    /* ===== SECCIONES ===== */
    section {
      padding: 90px 20px;
      text-align: center;
    }

    section h2 {
      color: #003366;
      font-size: 2.5em;
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    section > p {
      color: #555;
      max-width: 800px;
      margin: 0 auto 50px;
      font-size: 1.1em;
      line-height: 1.8;
    }

    /* ===== SOBRE NOSOTROS ===== */
    .sobre-nosotros {
      background: #f9f9f9;
    }

    .sobre-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 35px;
      max-width: 1200px;
      margin: 0 auto 50px;
    }

    /* ESTILOS UNIFICADOS PARA TODOS LOS CUADROS */
    .sobre-card, .mision, .vision, .valor, .cliente-card {
      background: white;
      padding: 35px 30px;
      border-radius: 12px;
      box-shadow: 0 8px 25px rgba(0,0,0,0.1);
      text-align: left;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative;
      overflow: hidden;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    /* TÍTULOS UNIFICADOS - TODOS IGUALES */
    .sobre-card h3, .mision h3, .vision h3, .valor h3, .cliente-card h3 {
      color: #003366;
      margin-bottom: 20px;
      font-size: 1.4em;
      font-family: 'Montserrat', sans-serif;
      position: relative;
      padding-left: 15px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .sobre-card h3::before, .mision h3::before, .vision h3::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 4px;
      height: 100%;
      background: #0077cc;
    }

    /* TEXTO JUSTIFICADO Y UNIFICADO */
    .sobre-card p, .mision p, .vision p, .valor p, .cliente-card p {
      color: #555;
      line-height: 1.7;
      margin: 0;
      text-align: justify;
      flex-grow: 1;
      font-size: 1em;
      text-justify: inter-word;
      hyphens: auto;
    }

    .sobre-card:hover, .mision:hover, .vision:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

    .mision-vision {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 35px;
      max-width: 1200px;
      margin: 50px auto 0;
    }

    /* ===== VALORES ===== */
    .valores {
      background: white;
    }

    .valores-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .valor {
      border-top: 5px solid #003366;
      cursor: pointer;
      text-align: center;
    }

    .valor:hover {
      transform: translateY(-8px);
      box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

    .valor .icono {
      width: 80px;
      height: 80px;
      margin: 0 auto 20px;
      background: #003366;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      color: white;
      font-size: 2.2em;
    }

    .valor h3 {
      text-align: center;
      padding-left: 0;
    }

    .valor h3::before {
      display: none;
    }

    .valor p {
      text-align: center;
      font-size: 0.95em;
    }

    /* ===== CLIENTES SATISFECHOS ===== */
    .clientes {
      background: #f9f9f9;
    }

    .clientes-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 35px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .cliente-card {
      cursor: pointer;
      text-align: center;
    }

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

    .cliente-imagen {
      width: 130px;
      height: 130px;
      border-radius: 50%;
      margin: 0 auto 20px;
      background: #e0e0e0;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border: 5px solid #003366;
    }

    .cliente-imagen img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .cliente-imagen .placeholder {
      font-size: 3em;
      color: #003366;
    }

    .cliente-card h3 {
      text-align: center;
      padding-left: 0;
    }

    .cliente-card h3::before {
      display: none;
    }

    .cliente-card p {
      text-align: center;
      font-style: italic;
      margin-bottom: 20px;
      line-height: 1.7;
      font-size: 1em;
    }

    .cliente-proyecto {
      color: #0077cc;
      font-weight: 600;
      font-size: 0.95em;
      font-family: 'Montserrat', sans-serif;
      text-align: center;
      margin-top: auto;
    }

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

    .modal-content {
      background: white;
      padding: 45px;
      border-radius: 15px;
      max-width: 800px;
      width: 90%;
      text-align: center;
      position: relative;
      animation: modalAppear 0.3s ease;
      max-height: 90vh;
      overflow-y: auto;
    }

    @keyframes modalAppear {
      from {
        opacity: 0;
        transform: scale(0.8);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .close-modal {
      position: absolute;
      top: 20px;
      right: 25px;
      font-size: 2.2em;
      cursor: pointer;
      color: #666;
      transition: color 0.3s;
      font-family: 'Montserrat', sans-serif;
    }

    .close-modal:hover {
      color: #003366;
    }

    .modal-imagen {
      width: 180px;
      height: 180px;
      border-radius: 50%;
      margin: 0 auto 25px;
      background: #e0e0e0;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border: 5px solid #003366;
    }

    .modal-imagen img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .modal-imagen .placeholder {
      font-size: 4em;
      color: #003366;
    }

    .modal h3 {
      color: #003366;
      margin-bottom: 20px;
      font-size: 1.6em;
      font-family: 'Montserrat', sans-serif;
    }

    .modal p {
      color: #555;
      margin-bottom: 20px;
      line-height: 1.8;
      font-size: 1.05em;
      text-align: justify;
      text-justify: inter-word;
    }

    .modal-proyecto {
      color: #0077cc;
      font-weight: 600;
      margin-bottom: 25px;
      font-family: 'Montserrat', sans-serif;
      font-size: 1em;
    }

    /* Modal de Valores */
    .valor-modal-icono {
      width: 100px;
      height: 100px;
      margin: 0 auto 25px;
      background: #003366;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      color: white;
      font-size: 2.8em;
    }

    .valor-descripcion-detallada {
      background: #f8f9fa;
      padding: 25px;
      border-radius: 12px;
      margin: 25px 0;
      text-align: left;
      border-left: 5px solid #0077cc;
    }

    .valor-descripcion-detallada h4 {
      color: #003366;
      margin-bottom: 15px;
      font-size: 1.3em;
      font-family: 'Montserrat', sans-serif;
    }

    .valor-descripcion-detallada ul {
      list-style: none;
      text-align: left;
      display: block;
    }

    .valor-descripcion-detallada li {
      margin-bottom: 10px;
      padding-left: 25px;
      position: relative;
      line-height: 1.6;
      text-align: left;
    }

    .valor-descripcion-detallada li:before {
      content: "✓";
      color: #0077cc;
      font-weight: bold;
      font-family: 'Montserrat', sans-serif;
      position: absolute;
      left: 0;
      font-size: 1.2em;
    }

    /* Galería de Imágenes */
    .galeria {
      margin: 30px 0;
    }

    .galeria h4 {
      color: #003366;
      margin-bottom: 20px;
      font-size: 1.3em;
      font-family: 'Montserrat', sans-serif;
      text-align: left;
    }

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

    .galeria-imagen {
      width: 100%;
      height: 130px;
      border-radius: 10px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .galeria-imagen:hover {
      transform: scale(1.08);
    }

    .galeria-imagen img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .imagen-placeholder {
      width: 100%;
      height: 100%;
      background: #e0e0e0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
      font-size: 0.9em;
      text-align: center;
      padding: 15px;
      flex-direction: column;
      font-family: 'Open Sans', sans-serif;
    }

    .imagen-placeholder small {
      font-size: 0.8em;
      margin-top: 5px;
      opacity: 0.7;
    }

    /* ======= RESPONSIVE ======= */
    @media (max-width: 992px) {
      .sobre-grid, .mision-vision, .valores-grid, .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @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.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        gap: 35px;
        transition: left 0.3s ease;
      }

      nav ul.show {
        left: 0;
      }

      nav ul li {
        margin: 15px 0;
      }

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

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

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

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

      .logo {
        margin-left: 40px;
      }

      .hero-content h1 {
        font-size: 2.5em;
      }

      .hero-content p {
        font-size: 1.1em;
        padding: 0 15px;
      }

      .hero-buttons {
        flex-direction: column;
        align-items: center;
      }

      .btn-brochure, .btn-cotizacion {
        padding: 15px 30px;
        font-size: 0.95em;
        min-width: 240px;
      }

      section {
        padding: 70px 15px;
      }

      section h2 {
        font-size: 2em;
      }

      .sobre-grid, .mision-vision, .valores-grid, .clientes-grid {
        grid-template-columns: 1fr;
      }

      .sobre-card, .mision, .vision, .valor, .cliente-card {
        padding: 30px 25px;
      }

      .modal-content {
        padding: 35px 25px;
        max-width: 95%;
      }

      .modal-imagen {
        width: 160px;
        height: 160px;
      }

      .valor-modal-icono {
        width: 90px;
        height: 90px;
        font-size: 2.5em;
      }

      .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      }

      .galeria-imagen {
        height: 120px;
      }
    }

    @media (max-width: 480px) {
      .hero-content h1 {
        font-size: 2em;
      }

      .hero-content p {
        font-size: 1em;
      }

      section {
        padding: 60px 15px;
      }

      section h2 {
        font-size: 1.8em;
      }

      .btn-brochure, .btn-cotizacion {
        min-width: 260px;
        padding: 14px 28px;
      }

      .sobre-card, .mision, .vision, .valor, .cliente-card {
        padding: 25px 20px;
      }

      /* Ajuste de texto justificado en móviles */
      .sobre-card p, .mision p, .vision p, .valor p, .cliente-card p,
      .modal p {
        text-align: left;
        hyphens: auto;
      }

      .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .footer-resumen h3 {
        font-size: 1.5em;
      }

      .footer-resumen > p {
        font-size: 0.95em;
      }

      .info-item span {
        font-size: 0.9em;
      }

      .redes-links {
        gap: 20px;
      }

      .redes-links a {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
      }
    }
