.navbar{
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background: var(--hero);
    width: 100%;
}
.brand-and-toggler{
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
}
/*VideoInter*/
/* Fondo difuminado */
    #introVideoContainer {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      backdrop-filter: blur(10px);
      background-color: rgba(0, 0, 0, 0.3);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    .videoBox {
      position: relative;
      max-width: 90%;
      max-height: 90%;
    }

    #introVideo {
      width: auto;
      height: 100%;
      max-height: 90vh;
      border-radius: 12px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
      display: block;
    }

    #mainContent {
      display: none;
    }
    /*fin video*/

.logo {
  width: 65px; /* ajusta el tamaño a lo que necesites */
  height: auto;
}

/* ===== LOGOS NAVBAR ===== */

.logo-wrapper{
  display: flex;
  align-items: center;
  gap: 12px;
}

.nfpa-navbar{
  width: 38px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.nfpa-navbar:hover{
  transform: scale(1.08);
}

.navbar-brand{
    text-transform: uppercase;
    font-family: var(--poppins);
    font-size: 1.7rem;
    font-weight: 700;
}
.navbar-toggler{
    border: none;
    font-size: 1.7rem;
    background: none;
    color: #fff;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}
.navbar-toggler:hover{
    opacity: 0.8;    
}
.navbar-collapse{
    height: 0;
    overflow: hidden;
    transition: var(--transition);    
}
.nav-item{
    text-align: center;
    padding: 0.6rem;
    position: relative;
}
.nav-item::after{
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}
.nav-item:hover::after{
    width: 100px;
}
.nav-link{
    text-transform: uppercase;
    font-size: 1.2rem;
    transition: var(--transition);
}
.nav-link:hover{
    color: var(--gold);
}
.nav-active .nav-link{
    color: var(--gold);
}

/***show nav class***/
.showNav{
    height: 385px;
}

/* #### HOME PAGE #### */
.home{
    padding: 5rem 0 2.5rem 0;
}
.home .row > div{
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--hero);
    border-radius: 10px;
    margin: 2rem 0;
}
.home .row-left{
    text-align: center;
}
.home .row-left h3{
    color: var(--gold);
    font-weight: 400;
    text-transform: uppercase;
}
.home .row-left h1{
    font-size: 2rem;
    font-family: var(--poppins);
    text-transform: capitalize;
    line-height: 1.2;
    font-weight: 900;
}
.home .row-left h1 span{
    color: var(--gold);
}
.home .row-left h2{
    text-transform: uppercase;
    font-family: var(--poppins);
    font-size: 1rem;
}
.home-pg-btn button{
    padding: 0.8rem;
    margin-right: 0.6rem;
    border: 1px solid #f7f7f7;
}
.home-pg-btn button:first-child{
    border-color: var(--gold);
}
.home-pg-btn button:last-child{
    background: transparent;
    color: #ffffff;
}
.home .img-container{
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
}
.home .img-border{
    background: var(--nero);
    width: 245px;
    height: 245px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* #### NOSOTROS PAGE #### */
.about{
    padding: 5rem 0 2.5rem 0;
}
.about .row-right{
    padding: 3rem 0;
}
.about .row-right p{
    margin: 1rem 0;
}
.about-content{
    margin: 1.5rem 0;
}
.about-content li{
    display: flex;
    margin: 0.6rem 0;
}
.about-content li span{
    flex: 1;
}
.about-content li span:first-child{
    color: #fff;
    font-weight: 600;
}
.about .row-right h3{
    color: var(--gold);
    font-size: 1.5rem;
}
.about .row-right h3 span{
    color: #fff;
    font-weight: 400;
}
/* Probando*/
  /*Prueba*/
  .acciones {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 20px;
  flex-wrap: wrap; /* Para que se acomode en móvil */
}

.carta {
  flex: 1;
  min-width: 250px;
  background-color: #252525;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carta .imagen {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carta .imagen h3 {
  color: white;
  font-size: 1.8rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  margin: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  width: 100%;
  text-align: center;
}

.carta p {
  padding: 20px;
  font-size: 15px;
  color: #ffffff;
}


/*Fin de About o Nosotros*/

/*INICIO SERVICIOS*/
/*texto titulo para servicios, proyectos y contacto */
.services{
    padding: 5rem 0 2.5rem 0;
}

/* ===== NFPA CARD ===== */

.servicio-incendios{
  position: relative;
  overflow: visible;
}

.nfpa-card{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: auto;
  cursor: pointer;
  z-index: 20;
  display: block;
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease;
}

.nfpa-card:hover{
  transform: scale(1.1);
}

/* ===== MODAL CERTIFICADO ===== */

.certificado-modal{
  display: none;

  position: fixed;
  z-index: 99999;

  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.75);

  backdrop-filter: blur(6px);

  justify-content: center;
  align-items: center;

  padding: 20px;
}

.certificado-modal.active{
  display: flex;
}

.certificado-img{
  max-width: 90%;
  max-height: 90%;

  border-radius: 12px;

  box-shadow: 0 0 20px rgba(255,215,0,0.4);

  animation: zoomCert 0.3s ease;
}

.cerrar-certificado{
  position: absolute;

  top: 20px;
  right: 35px;

  color: white;

  font-size: 3rem;

  cursor: pointer;

  transition: 0.3s;
}

.cerrar-certificado:hover{
  color: gold;
}

@keyframes zoomCert{
  from{
      transform: scale(0.8);
      opacity: 0;
  }

  to{
      transform: scale(1);
      opacity: 1;
  }
}

.services > .text{
    width: 70%;
    margin: 1.5rem auto;
    text-align: center;
}

.text-container {
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.text-container .gold {
  color: gold;
  font-weight: bold;
}

#servicios {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
}

#servicios h2 {
  font-size: 2.5rem;
  text-align: center;
  color: #0a3d62;
  margin-bottom: 20px;
}

#servicios > p {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.servicio {
  background-color: #252525;
  padding: 20px;
  border-left: 5px solid gold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  text-align: center;
}

.servicio:hover {
  transform: translateY(-3px);
}

.servicio i {
  font-size: 30px;
  color: gold;
}

.servicio h3 {
  margin-top: 10px;
  color: gold;
  font-size: 1.2rem;
}

.servicio p {
  margin: 10px 0 0 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  #servicios h2 {
    font-size: 2rem;
  }

  #servicios > p {
    font-size: 1rem;
  }

  .servicio {
    padding: 15px;
  }
}
/* #### PROJECTS PAGE #### */
.projects{
    padding: 5rem 0 2.5rem 0;
}
.projects > .text{
    width: 70%;
    margin: 1.5rem auto;
    text-align: center;
}
.projects .item{
    margin: 2rem 0;
    height: 320px;
    width: 100%;
    position: relative;
}

.projects .item .item-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}
.projects .item .item-overlay a{
    text-transform: capitalize;
    font-size: 1.25rem;
    font-weight: 400;
    font-family: var(--poppins);
}
.projects .item .item-overlay h3{
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 3px;
}
.projects .item:hover .item-overlay{
    opacity: 0.9;
}
/*Ajustes de Galeria*/
  .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  .projects .row .item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
    /* otros estilos que ya tengas */
  }
  .item {
    position: relative;
    width: calc(25% - 15px);
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
  }
  .item img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 180px;
    transition: transform 0.3s ease;
  }
  .item:hover img {
    transform: scale(1.05);
  }
  .item-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    width: 100%;
    color: white;
    padding: 10px;
    text-align: center;
  }
  .item-overlay h3 small {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    margin-top: 4px;
    text-transform: none;
  }
  .gold {
    color: gold;
  }

  /* Lightbox */
  .lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
  }
  .lightbox.active {
    display: flex;
  }
  .lightbox img {
  max-width: 90vw;    /* Máximo 90% del ancho viewport */
  max-height: 80vh;   /* Máximo 80% del alto viewport */
  object-fit: contain; /* Mantiene proporción sin recortar */
  border-radius: 8px;
  box-shadow: 0 0 15px gold;
  }
  .nav-button, .close-btn {
    position: absolute;
    background: none;
    border: none;
    font-size: 3rem;
    color: gold;
    cursor: pointer;
    user-select: none;
    padding: 0;
  }
  .nav-button:hover, .close-btn:hover {
    color: #ffd700;
  }
  .prev { left: 30px; top: 50%; transform: translateY(-50%); }
  .next { right: 30px; top: 50%; transform: translateY(-50%); }
  .close-btn { top: 20px; right: 30px; }
  
/* fin ajuste de galeria */



/* #### CONTACTO PAGE #### */
.contact{
    padding: 5rem 0 2.5rem 0;
}
.contact > .text{
    width: 70%;
    margin: 1.5rem auto;
    text-align: center;
}
.contact .row{
    margin: 1rem 0;
}
.contact .row > div{
    margin: 2.5rem 0;
    padding: 2rem 0;
}
.contact .col-left h2{
    text-transform: uppercase;
}
.contact .contact-info{
    margin: 1rem 0;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}
.contact .contact-info > span{
    color: var(--gold);
    font-size: 2.6rem;
    margin-right: 1.2rem;
}
.contact .contact-info h3{
    font-size: 1rem;
    font-weight: 400;
}
.contact .contact-info h3 span{
    text-transform: uppercase;
    font-size: 1.05rem;
}
.contact .contact-social-links{
    display: flex;
}
.contact .contact-social-links a{
    display: block;
    width: 50px;
    height: 50px;
    background: var(--nero);
    margin: 0 0.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition);
}
.contact .contact-social-links a:first-child{
    margin-left: 0;
}
.contact .contact-social-links a:hover{
    background: var(--gold);
}
.contact-form input, .contact-form textarea{
    width: 100%;
    margin: 1rem 0;
    background: var(--hero);
    border: 3px solid transparent;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 25px;
    outline: 0;
    caret-color: #fff;
    color: var(--gold); /* ← Cambia el color del texto escrito */
}
.contact-form input:focus, .contact-form textarea:focus{
    border-color: var(--gold);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{
    text-transform: uppercase;
    
}
/*modificacion de columnas en contacto*/
.row.contacto-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 2rem;
  background-color: #111;
  color: white;
}

.col {
  flex: 1;
  min-width: 280px;
  box-sizing: border-box;
}

/* Estilo del video */
.col-center video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
  object-fit: cover;
}
.col-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.col-center video {
  max-height: 400px;     /* altura máxima en pantallas grandes */
  max-width: 100%;       /* evita que se desborde */
  width: auto;           /* conserva proporción */
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
  object-fit: contain;
}
/*fin modificacion*/

/* #### footer #### */

.footer{
    padding: 2.5rem 0;
    border-top: 1.5px solid #252525;
}
.footer-tittle{
    text-transform: capitalize;
    font-size: 1.3rem;
    font-family: var(--poppins);
    font-weight: 700;
    color: gold;
}
.footer i {
  color: gold;
}
.footer .col{
    text-align: center;
    padding: 1rem;
}
.footer .col:first-child .text{
    width: 80%;
    margin: 0 auto;
    color: gold;
}
.social-links{
    display: flex;
    justify-content: center;
}
.social-links a{
    background: var(--nero);
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 1.5rem 0.5rem;
    transition: var(--transition);
}
.social-links a:hover{
    background: var(--gold);
}
.footer-links a{
    display: block;
    text-transform: capitalize ;
    padding: 0.2rem 0;
    transition: var(--transition);
}
.footer-links a .fas{
    display: none;
}
.footer-links a:hover{
    color: gold;
}
.footer .col:last-child div{
    padding: 0.2rem 0;
}
.footer .col:last-child .fas{
    padding-right: 0.5rem;   
}
.footer-text .text{
    text-align: center;
    color: gold;
}
/*mapa en footer*/
iframe {
      width: 100%;
      height: 250px;
      border: 0;
    }

/* #### Media Queries #### */
@media screen and (min-width:500px){
    /*home page*/
    .home .row-left h1{
        font-size: 4rem;
     }
     .home .row-left h2{
        font-size: 1.4rem;
     }
     .home-pg-btn button{
        padding: 1 rem 1.5rem;
     }
     .home .img-container{
        width: 320px;
        height: 320px;
     }
     .home .img-border{
        width: 325px;
        height: 325px;
     }
}

@media screen and (min-width:768px){
    /* footer*/
    .footer .row{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}
    /* projects page */
    .projects .row{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 2rem;
    }
    .projects .row .item{
        margin: 0;
    }
    .projects .row .item:nth-child(2){
        grid-column: 2/4;
    }
    .projects .row .item:nth-child(3){
        grid-column: 1/3;
    }
    .projects .row .item:nth-child(6){
        grid-column: 2/4;
    }
    .projects .row .item:nth-child(7) {
       grid-column: 1/3;
    }

/* contact page */
    .contact-form .form-group{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 1rem;
    }
    .contact .row > div{
        margin: 0;
    }

@media screen and (min-width:992px){
    /*navbar section */
    .navbar-toggler{
        display: none;
    }
    .navbar .container{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    .navbar-nav{
        display: flex;
        justify-content: flex-end;
    }
    .navbar-collapse{
        height: 100%;
        flex: 1 0 auto;
    }
    .brand-and-toggler{
        flex: 0 0 100px;
    }
    .nav-item{
        margin: 0 0.5rem;
    }
    .nav-link{
        font-size: 1rem;
    }
    /* contact page */
      .contact .row{
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          grid-gap: 2rem;
    }
    /*home page*/
    .home .row{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 2rem;
    }
    .home .row > div{
     height: calc(100vh - 73px);   
     border: none;
     margin: 0;
     align-items: flex-start;
    }
    .home .row-left{
        text-align: left;
    }
    .home .img-container{
        width: 100%;
        height: 100%;
        border-radius: unset;
    }
    .home .img-border{
        height: 90%;
        width: 100%;
        transition: var(--transition);
        border-radius: unset;
        background: transparent;
    }
    .home .img-border:hover{
        transform: translateY(-14px);
    }
}

@media screen and (min-width:1200px){
    /* footer */
    .footer .row{
        grid-template-columns: repeat(4, 1fr);
    }
    .footer .row .col{
        text-align: left;
    }
    .footer .col:first-child .text{
        margin: 0;
    }
    .social-links{
        justify-content: flex-start;
    }
    .footer-links a .fas{
        display: inline-block;
    }
}
/* Hero Style */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
  }

  .hero-text {
    position: absolute;
    z-index: 10;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
  }

  .hero-text h1, .hero-text h3, .hero-text p {
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
  }

  .hero-text h1 {
    
    font-weight: 400;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 3px 8px rgba(0,0,0,0.6);
    animation-name: fadeUp;
    animation-duration: 1.6s;
    animation-timing-function: ease-out;
    animation-delay: 0.5s;
    -webkit-text-stroke: 1px black;
  }
  .hero-text h3 {
    color: var(--gold);
    font-size: 2rem;
    font-family: var(--poppins);
    animation-name: fadeUp;
    animation-duration: 1.6s;
    animation-timing-function: ease-out;
    animation-delay: 2.2s;
    text-transform: capitalize;
    line-height: 1.2;
    font-weight: 900;
    -webkit-text-stroke: 1px black;
}
  .hero-text p {
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    animation-name: fadeUp;
    animation-duration: 1.6s;
    animation-timing-function: ease-out;
    animation-delay: 3.5s;
    -webkit-text-stroke: 0.8px black;
  }

  .slider {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 500%; /* 5 images width */
    display: flex;
    animation: slide 30s linear infinite;
  }

  .slider img {
    width: 20%; /* ← 100 / 5 imágenes */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  @keyframes slide {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-80%);
    }
  }

  @keyframes fadeUp {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Responsive */
  @media (max-width: 600px) {
    .hero-text h1 {
      font-size: 2rem;
    }
    .hero-text p {
      font-size: 1.1rem;
    }
  }
