* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Poppins", sans-serif;
    }

    body {
      background-color: #0b0b0b;
      color: #e0e0e0;
      overflow-x: hidden;
    }

    header {
      background: #111;
      padding: 20px 60px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #222;
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    @media (max-width: 768px) {
      header {
        padding: 15px 20px;
      }
    }

    @media (max-width: 480px) {
      header {
        padding: 10px 15px;
      }
    }

     h1 {
      color: #00bcd4;
      font-size: 1.8rem;
      letter-spacing: 1px;
    }

    .logo #logoM2lab{
      position: relative;
      height: 50px;
      width: 100px;
    }

    #logoM2lab{
      position: absolute;
      background: #b92a2a;
      width: 1rem;
      height: 2rem;
    }

    #vacumed{
      height: 35px;
      width: 80px;
    }

    nav a {
      color: #ccc;
      margin-left: 25px;
      text-decoration: none;
      transition: color 0.3s;
    }

    nav a:hover {
      color: #00bcd4;
    }

    section {
      padding: 60px 10%;
    }

    @media (max-width: 768px) {
      section {
        padding: 40px 5%;
      }
    }

    @media (max-width: 480px) {
      section {
        padding: 30px 2%;
      }
    }

    /* SOBRE NOSOTROS */
    #sobre {
      background: url('images/pexels-kindelmedia-8325939.jpg') no-repeat center center/cover;
      position: relative;
      color: #fff;
    }

    #sobre::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0, 0, 0, 0.7);
    }

    #sobre .contenido {
      position: relative;
      max-width: 800px;
      margin: auto;
      text-align: center;
      z-index: 1;
    }

    #sobre h2 {
      color: #00bcd4;
      font-size: 2.2rem;
      margin-bottom: 20px;
    }

    #sobre p {
      color: #ddd;
      font-size: 1.1rem;
    }

    #link{
      color:#acacd2
    }

    /* POR QUÉ NOSOTROS */
    #porque {
      text-align: center;
    }

    #porque h2 {
      color: #00bcd4;
      margin-bottom: 40px;
      font-size: 2rem;
    }

    .razones {
      display: flex;
      flex-wrap: wrap;
      gap: 40px;
      justify-content: center;
    }

    .razon {
      background: #111;
      border-radius: 12px;
      padding: 30px;
      width: 260px;
      transition: transform 0.3s;
      box-shadow: 0 0 10px rgba(0,0,0,0.6);
    }

    .razon:hover {
      transform: translateY(-5px);
    }

    .razon i {
      font-size: 2.2rem;
      color: #00bcd4;
      margin-bottom: 15px;
    }

    /* GALERÍA */
    #galeria {
      padding: 20px 0;
      display: flex;
      justify-content: center;
    }

    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 30px;
      width: 90%;
      max-width: 900px;
      justify-content: center;
      align-items: center;
    }

    .tube-image {
      width: 100%;
      max-width: 180px;
      height: auto;
      aspect-ratio: 1 / 1.4;
      border-radius: 10px;
      transition: transform 0.3s ease;
      cursor: zoom-in;
      justify-self: center;
      display: block;
      margin: 0 auto;
    }

    .tube-image:hover {
      transform: scale(1.05);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 10px;
      transform-origin: center center;
      overflow-x: auto;
      display: block;
      white-space: nowrap;
      max-width: 100%;
    }

    th, td {
      padding: 10px;
      text-align: center;
      border-bottom: 1px solid #374151;
      min-width: 70px;
    }

    th {
      background-color: #312e81;
      color: #c7d2fe;
    }

    td {
      background-color: #1f2937;
    }

    .modal-content h2 {
      margin-top: 0;
      color: #00bcd4;
      text-align: center;
    }

    /* Modal styles */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: rgba(0, 0, 0, 0.8);
      -webkit-backdrop-filter: blur(3px);
      backdrop-filter: blur(3px);
      justify-content: center;
      align-items: center;
      z-index: 1000;
      padding: 10px;
    }

    .modal-content {
      background: #1e1e2f;
      color: #f1f5f9;
      padding: 25px;
      border-radius: 15px;
      width: 95%;
      max-width: 900px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
      animation: fadeIn 0.3s ease;
      touch-action: none;
    }

    @keyframes fadeIn {
      from { transform: scale(0.9); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    .zoom-area {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 30px;
      transform-origin: center center;
    }

    .zoom-area img {
      width: 200px;
      max-width: 100%;
      height: auto;
      border-radius: 10px;
      background: #2a2a3d;
      padding: 10px;
    }

    .close-btn {
      background: #00bcd4;
      color: white;
      border: none;
      border-radius: 8px;
      padding: 10px 16px;
      margin-top: 15px;
      cursor: pointer;
      display: block;
      margin-left: auto;
      margin-right: auto;
      transition: background 0.3s ease;
    }

    .close-btn:hover {
      background: #6d28d9;
    }

    /* Responsive enhancements for gallery and modal */
    @media (max-width: 900px) {
      #galeria {
        flex-direction: column;
        gap: 15px;
        align-items: center;
      }

      .tube-image {
        width: 180px;
      }

      table {
        font-size: 0.9rem;
        margin-left: auto;
        margin-right: auto;
      }

      th, td {
        padding: 8px 5px;
        min-width: 60px;
      }

      .zoom-area {
        gap: 20px;
      }

      .zoom-area img {
        width: 150px;
      }
    }

    @media (max-width: 768px) {
      #galeria {
        padding: 10px 0;
      }

      .tube-image {
        width: 150px;
      }

      table {
        font-size: 0.8rem;
      }

      th, td {
        padding: 6px 4px;
        min-width: 50px;
      }

      .modal-overlay {
        height: 100vh;
        padding: 5px;
        margin-left: auto;
        margin-right: auto;
      }

      .modal-content {
        width: 95%;
        padding: 15px;
        max-height: 95vh;
        border-radius: 10px;
      }

      .zoom-area {
        flex-direction: column;
        gap: 15px;
      }

      .zoom-area img {
        width: 200px;
      }

      table {
        min-width: 100%;
        overflow-x: auto;
      }

      th, td {
        padding: 4px 2px;
        min-width: 40px;
        font-size: 0.75rem;
      }

      .close-btn {
        padding: 12px;
        font-size: 1rem;
      }
    }

    @media (max-width: 480px) {
      .tube-image {
        width: 120px;
        flex-direction: row;
      }

      table {
        font-size: 0.7rem;
      }

      th, td {
        padding: 3px 1px;
        min-width: 35px;
      }

      .modal-content {
        padding: 10px;
        border-radius: 5px;
        margin-left: auto;
        margin-right: auto;
      }

      .zoom-area img {
        width: 150px;
      }
    }

    /* FORMULARIO DE CONTACTO */
    #contacto {
      background: #111;
      text-align: center;
      padding: 60px 10%;
    }

    #contacto h2 {
      color: #00bcd4;
      margin-bottom: 20px;
      font-size: 2rem;
    }

    form {
      max-width: 600px;
      margin: auto;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    input, textarea {
      padding: 12px;
      border: none;
      border-radius: 8px;
      background: #222;
      color: #eee;
      font-size: 1rem;
    }

    button {
      background: #00bcd4;
      color: #fff;
      border: none;
      padding: 12px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.3s;
    }

    button:hover {
      background: #0097a7;
    }

    /* BOTÓN FLOTANTE */
    .contact-float {
      position: fixed;
      bottom: 25px;
      right: 25px;
      background-color: #00bcd4;
      color: white;
      border-radius: 50px;
      padding: 15px 22px;
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      box-shadow: 0 2px 10px rgba(0,0,0,0.4);
      transition: transform 0.3s, background 0.3s;
      z-index: 100;
    }

    .contact-float:hover {
      transform: scale(1.1);
      background-color: #0097a7;
    }

    footer {
      background: #111;
      text-align: center;
      padding: 20px;
      color: #666;
      font-size: 0.9rem;
      border-top: 1px solid #222;
    }

