/* ========== RESET Y BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== HEADER ========== */
header {
  width: 100%;
  padding: 20px 20px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  z-index: 10;
  background-color: transparent;
  position: relative;
}
.logok{
  display: none;
}
.moviles{
  display: none;
}
.logo {
  display: flex;
  align-items: end;
  gap: 5px;
  font-style: italic;
}

.logo p {
  font-size: 11px;
  line-height: 13px;
  font-style: italic;
}

.menu-toggle {
  display: none;
  background: none;
  color: #fff;
  font-size: 28px;
  border: none;
  cursor: pointer;
}

 ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.sidebar {
  display: flex;
  float: left;
}

/* ========== HERO ========== */
main{
  width: 100%;
  padding: 20px 40px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  z-index: 10;
  background-color: transparent;
  position: relative;
}
.hero {
 
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  height: 368px;
  padding: 0 40px;
  color: #fff;
  text-align: center;
}

.hero-img {
    position:absolute;
margin-top:-450px ;
}

.hero h2 {
  font-size: 32px;
}

.hero p {
  font-size: 14px;
  margin-bottom: 30px;
}

#btn {
  background-color: #fff;
  color: #003366;
  padding: 12px 25px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
  font-size: 14px;
}

#btn:hover {
  background-color: #e6f4fc;
}
.texto{
    position: relative;

}
/* ========== SERVICES ========== */

.services {
  padding: 100px 35px;

}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas de igual ancho */
  gap: 20px; /* espacio entre columnas y filas */
}

.service {
  padding: 20px 109px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0px 3px rgba(0, 0, 0, 0.363);
  text-align: center;
}
.services h3{
    font-size: 25px;
text-align: center;
padding-bottom: 20px;
color: #003366;
}
.service h4 {
  color: #003366;
  margin-bottom: -3
}

.service p {
    text-align: justify;
  font-size: 15px;
  margin-bottom: 20px;

}

.service i {
  font-size: 36px;
  color: #003366;
  margin-bottom: 10px;
}

.service a {
  background-color: #003366;
  color: #fff;
  text-decoration: none;
  padding: 7px 20px;
  border-radius: 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.service a:hover {
  background-color: #333;
}

/* ========== SOBRE MÍ ========== */
.sobremi {
  background-image: url(img/portadabaja.png);
  background-size: cover;
  display: flex;
  color: #a0b1c6;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 20px;
  margin: 40px;

}
.informaciónes{
    display: none;
}

.sobremi p {
  margin-top: px;
  text-align: justify;
  color: #a0b1c6;
  line-height: 28px;
}
.section-title{
    margin-top: 40px;
}
.sobremi strong {
  color: #a0b1c6;
  font-size: 14px;
}
.sobremi img{
    border-radius: 50%;
}
.cv button{
    padding:  5px 50px;
    margin: 20px 0px;
    border-radius: 20px;
    background-color: #f2f2f2;
    border: none;
    color: #000;
    cursor: pointer;
}

/* ========== TESTIMONIOS ========== */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  margin-top: 100px;
  color: #003366;
  gap: 0px;
  padding: 0 30px;
}


.testimonial {
  background: #fff;
  border-left: 4px solid #003366;
  margin: 20px 0;
  width: 90%;
  padding: 20px;
  color: #003366;
  
}

/* ========== CONTACTO ========== */
.contact {
  background: #fff;
  padding: 0px 5px;
  color: #003366;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  margin: 0px auto;
}

.contact .section-title {
  font-size: 20px;
  margin-bottom: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #003366;
  font-size: 1.2em;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #003366;
  border-radius: 10px;
  font-size: 1em;
  color: #003366;
  outline: none;
}

.input-group textarea {
  padding: 12px;
  resize: vertical;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #003366;
}

.btns {
  background-color: #003366;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  margin:  0 150px;
}

.btns i {
  margin-right: 8px;
}

.btns:hover {
  background-color: #0d47a1;
}

/* ========== FOOTER ========== */
footer {
  background-color: #0c172c;
  color: #a0b1c6;
  text-align: center;
  padding: 30px 20px;
  margin-top: 80px;
}

footer .social i {
  margin: 0 10px;
  color: white;
  font-size: 20px;
}

/* ========== FORMULARIO SUPERIOR ========== */
#formulario-modal {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.6);
      justify-content: center;
      align-items: center;
      z-index: 999;
    }

    #formulario-modal form {
      background: #fff;
      padding: 30px;
      border-radius: 15px;
      width: 90%;
      max-width: 450px;
      position: relative;
      box-shadow: 0 0 10px rgba(0,0,0,0.2);
    }

    #formulario-modal .btn-cerrar {
      position: absolute;
      top: 10px; right: 15px;
      background: #002a50;
      border: none;
      border-radius: 50%;
      font-size: 17px;
      padding: 5px 10px;
      cursor: pointer;
      color:#fff;
    }
    #formulario-modal .btn-cerrar:hover {
      background-color: #0c172c;
      color: gray;
    }

    #formulario-modal .input-group {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
      border: 1px solid #ccc;
      padding: 10px;
      border-radius: 8px;
    }

    #formulario-modal .input-group i {
      margin-right: 10px;
      color: #002a50;
    }

    #formulario-modal input,
    #formulario-modal textarea {
      border: none;
      outline: none;
      width: 100%;
      font-size: 16px;
    }

    #formulario-modal button[type="submit"] {
      background-color: #002a50;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
      width: 100%;
      font-size: 16px;
      transition: background 0.3s ease;
    }

    #formulario-modal button[type="submit"]:hover {
      background-color: #002a50;
    }
    .section-titles{
      color: #002a50;
      text-align: center;
    }
    .btn-cerrar button{
      background-color: #002a50;
      color: #ccc;
    }

/* ========== RESPONSIVE ========== */
@media (max-width: 1000px) {
  
  .logok{
    display: block;
    text-align: center;
    margin-left: 40px;
  }
  .logok p{
    font-size: 12px;
  }
  
  .menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    top: 20px;
    right: 20px;
    z-index: 9999;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -460px;
    width: 460px;
    height: 100%;
    background-color: #002a50;
    color: #fff;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 9998;
    box-shadow: 0 0 2px #003366;
  }

  .sidebar.active {
    left: 0;
  }
.pantalla{
  visibility: hidden;
}
  .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 60px 20px;
    display: flex;
    flex-direction: column;
  }

  .sidebar ul li {
    margin: 20px 0;
  }

  .sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
  }

  .sidebar ul li a i {
    padding: 5px;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9997;
  }

  .overlay.active {
    display: block;
  }

  /* Asegura que todo el contenido debajo quede en menor z-index */
  main, section, .contenido, .page-content {
    position: relative;
    z-index: 2 !important;
  }

  /* Si tienes nav original, lo ocultamos en móviles */
  nav.navbar {
    display: none !important;
  }





  
 .hero-img {
    position:absolute;
margin-top:-470px ;
}

  .hero {
    flex-direction: column;
    padding: 60px ;
    padding-right: 200px;
  }

 
  .hero h2 {
    font-size: 20px
    ;
    position: relative;
  }

  .hero p {
    font-size: 14px;
  }

  #btn {
    font-size: 12px;
    padding: 8px 16px;
  }
  .services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas de igual ancho */
  gap: 20px; /* espacio entre columnas y filas */
}

.services h3{
    font-size: 20px;
}
.services{
  margin-top: -200px;

}
.service{
    padding: 40px;
}

.about{
    width: 100%;
    margin: 0;

}
  .sobremi {
    padding: 0px;
    margin: 0;
  }
.sobremi img{
    margin: 20px;
    width: 1000px;
}
.contenedortex{
    margin: 0 20px;
    padding: 10px 0;
}

  .testimonials {
    flex-direction: column;
    padding: 20px;
  }

  .contact {
    width: 90%;
  }
}
/*--------------------------------*/
@media (max-width: 800px) {
    .menu-toggle {
    display: block;
    font-size: 15px;
    margin-bottom: 12px;
  }
    .logo{
        align-items: center;
    }
    .logo img{
        width: 20px;
    }
    .logo p{
        font-size: 7px;
        line-height: 7px;
    }
    .hero-img {
    position:absolute;
margin-top:-450px ;
}

.hero {
    flex-direction: column;
    padding: 0px ;
    padding-right: 200px;
  }
  .hero h2{
    margin-top: 150px;
    font-size:15px;
  }
  .hero p{
    font-size: 12px;
    margin-bottom: 10px;
  }
  #btn{
    font-size: 10px;
    padding: 5px 10px;
  }
  .services h3{
    font-size: 15px;
  }
 .services{
  margin-top: -100px;
 }
 .service  p {
    font-size: 12px;

 }
 .service{
    padding: 15px 12px;
 }
 .service  h4 {
    font-size: 13px;

 }
 .service i{
    font-size: 20px;
 }
 .service a {
  background-color: #003366;
  color: #fff;
  text-decoration: none;
  padding: 5px 15px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.about{
    padding: 0px;

}
.sobremi{
    padding: 0;
    display: flex;
    flex-direction: column;
}
.sobremi img{
    width: 150px;
    margin: 0;
    margin-top: 10px;
    padding: 0;
}
.contenedortex{
    margin-top: -20px;
    text-align: center;
}
.contenedortex strong, p{
    font-size: 12px;
}
.section-title{
    font-size: 14px;
    margin: 0;
}

}@media (max-width:788px){
  .services{
    margin-top: -200px;
  }
  .hero h2{
    padding-top: 100px;
  }

}
@media (max-width:540px) {
  .services h3{
    margin-top: 70px;
  }

  
}
@media (max-width:768px){
  .services{
    margin-top: -50px;
  }
  .hero h2{
    margin-top: 40px;
  }

}
@media (max-width: 555px) {
        .menu-toggle {
    display: block;
    font-size: 15px;
    margin-bottom: 20px;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -360px;
    width: 360px;
    height: 100%;
    background-color: #002a50;
    color: #fff;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 9998;
    box-shadow: 0 0 2px #003366;
  }

  .sidebar.active {
    left: 0;
  }
.pantalla{
  visibility: hidden
}
  .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 30px 0px;
    display: flex;
    flex-direction: column;
  }

  .sidebar ul li {
    margin: 20px 0;
  }

    .logo{
        align-items: center;
    }
    .logo img{
        width: 20px;
    }
    .logo p{
        font-size: 7px;
        line-height: 7px;
    }
    .hero-img {
    position:absolute;
margin-top:-450px ;
}

.hero {
    flex-direction: column;
    padding-bottom: 0px ;
    padding-right: 140px;
  }
  .hero h2{
    margin-top: 10px;
    font-size:12px;
  }
  .hero p{
    font-size: 11px;
    margin-bottom: 10px;
  }
  #btn{
    font-size: 8px;
    padding: 5px 10px;
  }
  .services h3{
    font-size: 15px;
  }
 .services{
  margin-top: -300px;
  border: none;
 }
 .services-grid {
    display: flex;
    flex-wrap: wrap;
  
}
 .service  p {
    font-size: 12px;

 }
 .service{
    padding: 20px 12px;
    margin: 0;
 }
 .service  h4 {
    font-size: 13px;

 }
 .service i{
    font-size: 20px;
 }
 .service a {
  background-color: #003366;
  color: #fff;
  text-decoration: none;
  padding: 5px 15px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.about{
    padding: 10px;

}
.sobremi{
    padding: 0;
    display: flex;
    flex-direction:row;
}
.sobremi img{
    width: 250px;
    margin-left: 10px;
    margin-top: 10px;
    padding: 0;
}
.testimonials{
    margin: 0;
}
.contenedortex{
    margin-top: 20px;
    text-align: left;
}
.contenedortex  p{
    font-size: 11px;
    line-height: 17px;
}
.contenedortex strong{
    font-size: 11px;
}
.section-title{
    font-size: 12px;
    margin: 0;
}
.cvs button {
    margin: 0;
    padding: 0;
    font-size: 12px;
    background-color: transparent;
    color: #a0b1c6;
    border: none;
}
.about .información {
    display: none;
}
.about .cv{
    display: none;
}

.contact .section-title {
  font-size: 14px;
  margin: 20px 0;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #003366;
  font-size: 12px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #003366;
  border-radius: 10px;
  font-size: 12px;
  color: #003366;
  outline: none;
}

.input-group textarea {
  padding: 12px;
  resize: vertical;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #003366;
}

.btns {
  background-color: #003366;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  margin:  0 50px;
  font-size: 12px;
}

.btns i {
  margin-right: 8px;
  font-size: 12px;
}

.btns:hover {
  background-color: #0d47a1;
}
.contact {
  background: #fff;
  padding: 0px 5px;
  color: #003366;
  width: 100%;
  border-radius: 20px;
  margin: 0px auto;
}
.informaciónes{
    display: block;
}
}

@media (max-width: 450px) {
  .logok{
    display: block;
  }
  
  .menu-toggle {
    display: block;
    font-size: 14px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background-color: #002a50;
    color: #fff;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 9998;
    box-shadow: 0 0 2px #003366;
  }

  .sidebar.active {
    left: 0;
  }

  .sidebar ul {
    list-style: none;
    margin: 60px 0px;
    display: flex;
    flex-direction: column;
  }

  .sidebar ul li {
    margin: 20px 0;
    width: 200px;
  }

  .sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
  }

 

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9997;
  }

  .overlay.active {
    display: block;
  }

  /* Asegura que todo el contenido debajo quede en menor z-index */
  main, section, .contenido, .page-content {
    position: relative;
    z-index: 2 !important;
  }

  /* Si tienes nav original, lo ocultamos en móviles */
  nav.navbar {
    display: none !important;
  }


.hero {
    flex-direction: column;
    padding-bottom: 0px ;
    padding-right: 140px;
  }
  .texto{
    margin-top: -50px;
  }
  .hero h2{
    font-size:11px;
  }
  .hero p{
    font-size: 9px;
    margin-bottom: 0px;
  }
  #btn{
    font-size: 7px;
    padding: 3px 8px;
  }
  .services h3{
    font-size: 12px;
        display: none;

  }
 .services{
  margin-top: -200px;
 }
 .services-grid {
    display: flex;
    flex-wrap: wrap;

  
}
 .service  p {
    font-size: 12px;

 }
 .service{
    border: none;
    box-shadow: none;
    padding: 20px 12px;
    margin: 0;
 }
 .service  h4 {
    font-size: 12px;

 }
 .service i{
    font-size: 20px;
 }
 .service a {
  background-color: #003366;
  color: #fff;
  text-decoration: none;
  padding: 5px 15px;
  border-radius: 14px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.about{
    padding: 10px;

}
.sobremi{
    padding: 0;
    display: flex;
    flex-direction:column;
}
.sobremi img{
    width: 100px;
    margin-left: 10px;
    margin-top: 10px;
    padding: 0;
}
.testimonials{
    margin: 0;
}
.contenedortex{
    margin-top: -33px;
    text-align: center;
}
.contenedortex  p{
    font-size: 11px;
    line-height: 17px;
}
.contenedortex strong{
    font-size: 11px;
}
.section-title{
    font-size: 12px;
    margin: 0;
}
.cvs button {
    margin: 0;
    padding: 0;
    font-size: 12px;
    background-color: transparent;
    color: #a0b1c6;
    border: none;
}
.about .información {
    display: none;
}
.about .cv{
    display: none;
}

.contact .section-title {
  font-size: 14px;
  margin: 20px 0;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #003366;
  font-size: 12px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #003366;
  border-radius: 10px;
  font-size: 12px;
  color: #003366;
  outline: none;
}

.input-group textarea {
  padding: 12px;
  resize: vertical;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #003366;
}

.btns {
  background-color: #003366;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  margin:  0 50px;
  font-size: 12px;
}

.btns i {
  margin-right: 8px;
  font-size: 12px;
}

.btns:hover {
  background-color: #0d47a1;
}
.contact {
  background: #fff;
  padding: 0px 5px;
  color: #003366;
  width: 100%;
  border-radius: 20px;
  margin: 0px auto;
}
.informaciónes{
    display: block;
}
}
@media (max-width:344px) {
  .services{
    top: -100px;
  }
  .texto {
  position: absolute;
  top: -30px;
  }
}