    .portfolio-item {
      perspective: 1000px;
      height: 300px;
      margin-bottom: 20px;
      position: relative;
    }

    .flip-card-container {
      width: 100%;
      height: 100%;
      position: relative;
    }

    .flip-card {
      width: 100%;
      height: 100%;
      transform-style: preserve-3d;
      transition: transform 0.8s ease-in-out;
      position: relative;
    }

    .portfolio-item:hover .flip-card {
      transform: rotateY(180deg);
    }

    .flip-card-face {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      top: 0;
      left: 0;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 10px;
    }

    .flip-card-front {
      background: #fff;
      z-index: 2;
    }

    .flip-card-front img {
      max-width: 80px;
      margin-bottom: 10px;
    }

    .flip-card-back {
      background: #f0f8ff;
      transform: rotateY(180deg);
      z-index: 1;
    }

    .flip-card-back h4 {
      font-size: 16px;
      color: #2869c2;
      margin: 10px 0 5px;
    }

    .flip-card-back p {
      font-size: 13px;
      margin-bottom: 10px;
      color: #333;
    }

    .flip-card-back a {
      margin: 0 5px;
      font-size: 18px;
      color: #333;
    }



    .texto-contorno {
    color: white; /* Relleno blanco */
    -webkit-text-stroke: 1px #343a40; /* Contorno negro */
    font-size: 28px; /* Ajusta tamaño según necesites */
    font-weight: bold;
    }

    #header {
    background: rgba(255, 255, 255, 0.2); /* blanco translúcido */
    backdrop-filter: blur(10px); /* desenfoque */
    -webkit-backdrop-filter: blur(10px); /* soporte Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* línea sutil */
    z-index: 100000;
    }

    .logo {
    width: 100%;
    height: 100%;
    }

    /* Hace que la imagen sea responsiva */
    .img-responsive {
    width: 35%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen para cubrir todo el contenedor */
    }


    /* Estilos para la sección hero con fondo animado */
    #hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* o el alto exacto de tu header */
    }

    #header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    /* VIDEO DE FONDO */
    #hero > video {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    }

    #hero .background-wrapper {
    position: fixed; /* importante para salir del flujo del container */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    }

    #hero .background-wrapper video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;

    }

    /* Imagen de fondo */
    #hero .background-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    }

    /* Estilos para el contenido */
    #hero .container {
    position: relative;
    z-index: 1;
    }

    /* Asegura que la imagen dentro de hero sea responsiva */
    .hero-img img {
    width: 100%;
    height: auto;
    }

    .portfolio-content {
    border-radius: 16px;
    overflow: hidden;
  
    }

    .portfolio-content img {
    
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    } 

    .service-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 40px; /* espacio para la fecha */
    border-radius: 12px; /* suaviza bordes */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    }

    .news-date {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 14px;
    font-weight: 500;
    background-color: #fff;
    padding: 4px 10px;
    border-left: 3px solid #ffa500;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
    color: #333;
    }

    .news-date i {
    color: #ffa500;
    margin-right: 6px;
    }

    .visor-card {
    width: 380px;
    flex-shrink: 0;
    }

    .visor-inner {
    height: 100%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    }

    .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* Oscuridad */
    z-index: -1;
    }

  .montserrat-class {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    margin-top: 20px;
  }

  body.mobile-nav-active .navmenu {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95); /* Fondo oscuro */
  z-index: 9999 !important;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-y: auto;
}