:root {
  --rojo: #af2121;
  --azul-medio: #001f54;
  --negro:#000000;
  --blanco: #ffffff;
  --gris-claro: #f4f6f8;
  --dorado:#ffd700;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }

  body {
    background: linear-gradient(135deg, #001f54, #002e7a, #d62828);
    color: white;
    overflow-x: hidden;
  }
  /*BOTON QUE SE DESPLIEGA EN MOVIL*/
  .menu-toggle {
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    display: none;
  }
  header {
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 31, 84, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:5px 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  .imgLogo{
    cursor: pointer;
    width: 85px;
  }
  .nav-letf{
    display: flex;
    align-items: center;
    gap: 12px; /* distancia entre logo y título */
  }
  header h1 {
    font-size: 2rem;
    color: #ffd700; /* dorado */
    letter-spacing: 1px;
  }
  .titulo-header{
    margin: 0;
    display: flex;
    flex-direction: column; /* Alinea uno sobre otro */
    gap: 0px;
  }
  .titulo-header p{
    
    font-size: 27px;
  }
 
  nav a {
    margin-left: 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
  }

  nav a:hover {
    color: #ffd700;
  }
  /* HERO SLIDER  empieza el contenido de la pagina*/
 .hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  height: calc(100vh - 70px); /* ajusta a la altura real del navbar */
  touch-action: pan-y; /* MUY IMPORTANTE PARA EL DESLIZ EN MOVIL*/
 }
.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}
.slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 150%;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.slide-content h2 {
  font-size: 35px;
  color: #ffd700;
} 
.slide-content {
  margin-top: 160px;
} 
    /* CONTROLS */
 .controls {
    inset: 0;  
    position: absolute;
    top: 65%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding:20px;
    z-index: 2;
 }
  .controls button {
    pointer-events: auto;   /* vuelve clickeable el botón */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    margin: 0 12px;
  }
.controls button:hover {
    background: rgba(0,0,0,0.8);
} 
    /* DOTS */
   .dots {
      position: absolute;
      bottom: 20px;
      width: 100%;
      display: flex;
      justify-content: center;
      gap: 8px;
      z-index: 2;
   }
    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #fff;
      opacity: 0.5;
      cursor: pointer;
    }
    .dot.active {
      opacity: 1;
      background: #ffd400;
    }
    .que-es{
      
      margin-top: 70px;
    }
    .que-es p{
      padding-top: 10px;
      width: 600px;
    }
    .que-porque{
      width: 100%;
      height: 500px;
      margin-top: 20px;
      display: flex;
      background-image:linear-gradient(
        rgba(0.6,0.6,0.6,0.95),rgba(0,0.8,0.8,0.6)), url("/imagenes/Poligrafo-solo.jpg");
      background-repeat: no-repeat;
      background-size: cover;
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
      position: relative;
      z-index: 1;
      flex-wrap: wrap;       /* Si no caben (en móvil), uno baja debajo del otro */
      justify-content: space-around; /* Deja espacio uniforme entre ellos */
      align-items: flex-start; /* Los alinea por la parte de arriba */
      gap: 20px;             /* Espacio de separación */
      padding: 60px;
    }

  section {
    padding: 20px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
    scroll-margin-top: 90px;
  }
  section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .agendar {
    margin-top: 25px;
    background-color: #d62828;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  .quienes-somos{
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 50px 0;
    border-top: 2px solid rgba(255,255,255,0.3);
  }
  .titulo-cono{
    background-image: linear-gradient(
      rgba(0,0,0,0.6)), url("/imagenes/corporate-workers-brainstorming-together.jpg");
      background-repeat: no-repeat;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
  }
  .quienes-somos h3{
    color: #ffd700;
    margin-bottom: 30px;
    font-size: 3rem;
  }
  .imgCono{
    width: 350px;
    margin-bottom: 40px;
    box-shadow:0px 2px 8px 6px rgba(5,5,5,5);
    border-radius: 100%;
    cursor: pointer;
    transition: 1s;
  }
  .imgCono:hover{
    transform: scale(1.1);
    transition: 1s;
  }
  .intro{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;             
  }
  .intro-box {
    padding: 60px;
  }
  .intro-box h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .intro-box p {
    font-size: 1rem;
    line-height: 1.7;
  }
  .intro-box.light {
    background: var(--blanco);
    color: var(--azul-medio);
    transition: background-color 0.5s ease, transform 0.3s ease;
  }
  .intro-box.light:hover {
    background: var(--dorado);
    transition: background-color 0.5s ease, transform 0.3s ease;
  }
  .intro-box.dark {
    background: var(--rojo);
    color: var(--azul-medio);
    transition: background-color 0.5s ease, transform 0.3s ease;
  }
  .intro-box.dark:hover {
    background: var(--dorado);
    color: var(--azul-medio);
    transition: background-color 0.5s ease, transform 0.3s ease;
  }
  .mv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
  }
  
  .mv-box {
    padding: 60px;
  }
  .mv-box h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .mv-box p {
    font-size: 1rem;
    line-height: 1.7;
  }
  .mv-box.light {
    background: var(--gris-claro);
    color: var(--azul-medio);
    transition: background-color 0.5s ease, transform 0.3s ease;
  }
  .mv-box.light:hover {
    background: var(--dorado);
    color: var(--azul-medio);
    transition: background-color 0.5s ease, transform 0.3s ease;
  }
  .mv-box.dark {
    background: var(--azul-medio);
    color: var(--blanco);
    transition: background-color 0.5s ease, transform 0.3s ease;
  }
  .mv-box.dark:hover {
    background: var(--dorado);
    color: var(--azul-medio);
    transition: background-color 0.5s ease, transform 0.3s ease;
  }
  /*PARA SECCION DE SERVICIOS*/
  .servicios {
    background-color: rgba(255,255,255,0.1);
    border-top: 2px solid rgba(255,255,255,0.3);
    border-bottom: 2px solid rgba(255,255,255,0.3);
  }
  .cont-serv{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 60px 5%;
  }
  .service-card {
    background: #001f54;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  }
  
  .service-img {
    height: 230px;
    overflow: hidden;
  }
  
  .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .service-content {
    padding: 30px;
    text-align: center;
  }
  
  .service-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  
  .service-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
  }
  
  .btn-service {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 26px;
    background: #ffffff;
    color: #0b2a3c;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
  }
  
  .btn-service:hover {
    background: #f5c400;
    color: #000;
  }
  /*AQUI LO QUE VA DENTRO DE SERVICIOS DE POLIGRAFIA*/
  .pruebas-poli{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    grid-auto-rows: minmax(100px, auto);
    padding: 60px 5%;

  }
  .banner{
    grid-column: 1/4;
    grid-row: 1;
    background: #001f54;
    border-radius: 18px;
    color: #fff;
    align-items: center;
    display: flex;
    align-items: center;      /* centra vertical */
    justify-content: center;  /* centra horizontal */
    height: 80px; /* o el alto que estés usando */
    font-size: 1.8rem;
  }

  /* CONTENEDOR PRINCIPAL PARA LINK DE SERVICIOS*/
.dropdown {
  position: relative;
  display: inline-block;
}
/* MENÚ BASE */
.dropdown-menu,
.dropdown-submenu {
  position: absolute;
  top: 100%;           /* 🔑 se abre HACIA ABAJO */
  left: 0;
  background: #001f54;
  min-width: 260px;
  list-style: none;
  padding: 8px 0;
  border-radius: 8px;
  /* Oculto por defecto */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: all 0.25s ease;
  z-index: 999;
}
/* MOSTRAR MENÚS */
.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* ITEMS */
.dropdown-sub,
.dropdown-menu a {
  position: relative;
  padding: 12px 16px;
  color: white;
  cursor: pointer;
  white-space: nowrap;
}
/* LINKS */
.dropdown-menu a {
  display: block;
  text-decoration: none;
  color: white;
}
/*FIN DEL CODIGO PARA MENU DE SERVICIOS*/
/* Contenedor de Poligrafía */
.poligrafia-item {
  position: relative; /* referencia para el submenú */
}
/* Submenú */
.submenu-poligrafia {
  position: absolute;
  top: 0;           /* 🔑 se abre HACIA ABAJO */
  right: 100%;
  background: #001f54;
  min-width: 200px;
  list-style: none;
  padding: 8px 0;
  border-radius: 8px;

  /* Oculto por defecto */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: all 0.25s ease;
  z-index: 999; /* suficiente, pero no exagerado */
}
/* Mostrar al pasar el cursor por Poligrafía */
.poligrafia-item:hover .submenu-poligrafia {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Links internos */
.submenu-poligrafia a {
  display: block;
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}
/*fin de la nueva opccion*/
  footer {
    background-color: rgba(0,0,0,0.3);
    padding: 30px 10px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  /* Botón flotante WhatsApp */
  .whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 2000;
    text-decoration: none;
    transition: transform 0.3s;
  }
  .img-whatsapp{
    width: 40px;
    height: 40px;
  }
  .whatsapp:hover {
    transform: scale(1.1);
  }
 .horario{
  padding-top: 50px;
 }
  .mapa-cuadro{
    width:80%; 
    height:250px; 
    border:0; 
    border-radius: 20px;
  }
  .footer {
      display: flex;          /* Los pone en fila */
      flex-wrap: wrap;       /* Si no caben (en móvil), uno baja debajo del otro */
      justify-content: space-around; /* Deja espacio uniforme entre ellos */
      align-items: flex-start; /* Los alinea por la parte de arriba */
      gap: 20px;             /* Espacio de separación entre mapa y horario */
      padding: 40px 20px;
  }

  
  @media (min-width: 769px) {
    .menu-toggle {
      display: none;
    }
  
    .poligrafia-item:hover > .submenu-poligrafia {
      display: block;
    }
  }
  @media (max-width: 768px) {
    body {
      overflow-x: hidden;
    }
    .header {
      flex-direction: column;
      text-align: center;
      transition: padding 0.4s ease;
      padding: 20px 0;
    }
    .header.compact {
      padding: 10px 0;
      flex-direction: row;
    }
   
    .header.compact .titulo-logo {
      opacity: 0;
      transform: translateY(-20px);
      height: 0;
      margin: 0;
      overflow: hidden;
    }
  
    .nav-menu {
      position: relative;
      top: 100%;          /* 👈 JUSTO DEBAJO DEL HEADER */
      left: 0;            /* 👈 NO right */
      flex-direction: column;
    }
   .nav-menu.active {
      display: flex;
    }
    
    .header.compact .imgLogo {
      width: 100px;
    }
    nav{
      align-items: center;
      top: 70px;
    }
    nav a {
      display: inline-block;
      margin: 10px;
    }
    .nav-letf{
      flex-direction: column;
      gap: 8px; /* distancia entre logo y título */
    }
    .imgLogo{
      width: 80px;
    }
    .titulo-logo {
      margin: 10px 0;
      font-size: 1.1rem;
      color: #ffd700; /* dorado */
      letter-spacing: 1px;
      transition: opacity 0.35s ease, transform 0.35s ease;
    }
    .titulo-header p{
      font-size: 1.1rem;
    }
    .titulo-logo.hide {
      opacity: 0;
      transform: translateY(-15px);
      pointer-events: none;
    }
    .slide-content h2 {
      font-size: 1.5rem;
    }
    .imgCono{
      width: 250px;
    }
    .mapa-cuadro{
      width:300px; 
      height:250px; 
      border:0; 
      border-radius: 15px;
    }
     /* Botón hamburguesa */
    .menu-toggle {
      margin-top: 10px;
      display: block;
      width: 35px;
      height: 28px;
      background: none;
      border: none;
      cursor: pointer;
      position: relative;
      z-index: 1001;
      transition: margin 0.4s ease, transform 0.4s ease;
    }
    .menu-toggle span {
      position: absolute;
      left: 0;
      width: 100%;
      height: 3px;
      background: #fff;
      border-radius: 3px;
      transition: transform 0.4s ease, opacity 0.25s ease;
    }
    .menu-toggle span:nth-child(1) {
      top: 0;
    }
    
    .menu-toggle span:nth-child(2) {
      top: 12px;
    }
    
    .menu-toggle span:nth-child(3) {
      bottom: 0;
    }
    .menu-toggle.active span:nth-child(1) {
      transform: rotate(45deg);
      top: 12px;
    }
    
    .menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
      transform: rotate(-45deg);
      bottom: 12px;
    }
    .nav-menu {
      position: static;
      top: 70px; /* altura de tu navbar */
      left: 0;
      width: 100%;
      align-items: center;
  
      overflow: visible;
      max-height: 0;
  
      opacity: 0;
      transform: translateY(-10px);
  
      transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
  
      z-index: 999;
    }
    /* Menú visible */
    .nav-menu.open {
      max-height: 100vh;
      opacity: 1;
      transform: translateY(0);
    }
     /* Links cómodos para dedo */
    .nav-menu a {
      padding: 14px 0;
      display: block;
    }
    .dropdown-sub {
      display: none;
      position: static;
      margin-left: 15px;
    }
    .submenu-poligrafia{
      position: absolute;
      top: 0;           /* 🔑 se abre HACIA ABAJO */
      right: 80%;
    }
    /*flechas del movil*/
    .prev,
    .next {
      display: none;
    }
    .que-es{
      margin-top: 10px;
    }
    .que-porque{
      height: 100%;
      margin-top: 10px;
    }
    .que-es p{
      padding-top: 10px;
      width: 300px;
    }
    .intro{
      grid-template-columns: 1fr;       
    }
    .intro-box{
      padding: 40px 20px ;
    }
    .mv{
      grid-template-columns: 1fr;        
    }
    /*TRAJETAS DE SERVICIO*/
    .cont-serv{
      grid-template-columns: 1fr;
    }
    .service-img {
      height: 200px;
    }
    .pruebas-poli{
      grid-template-columns: 1fr; 
    }
    .banner{
      grid-column: 1/2;
      grid-row: 1;
      font-size: 1.3rem;
    }
  }