/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --celeste: #5173b1;  
  --amarillo: #d2ae7e;   
  --azul: #242e5d;  
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

/* CONTAINERS */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* NAVBAR */
.navbar {
  background:var(--azul);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.mensaje-btn {
  background: white;
  color: var(--azul);
  padding: 0.6rem 1rem;
  font-weight: bold;
  text-decoration: none;
}

/* HERO */
.hero {
  background: linear-gradient(rgba(28, 35, 65, 0.7), rgba(28, 35, 65, 0.7)),
    url('assets/hero.jpg') no-repeat center center/cover;
  height: 90vh;
  display: flex;
  align-items: center;
  color: white;
  padding-left: 10%;
}

.hero-content {
  max-width: 500px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-yellow {
  background-color: var(--amarillo);
  color: white;
  padding: 0.8rem 1.6rem;
}

.btn-yellow:hover {
  background-color: #c8924c;
}

.btn-brochure {
  margin-top: 1rem;
}

/* SECTIONS */
.section {
  padding: 4rem 0;
}

/* MISIÓN & VISIÓN */

.mision-vision-section{
  margin-bottom: 1.5rem;
}

.subtitle-nosotros {
  color: var(--amarillo);
  font-size: large;
}

.mv-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.mv-row.reverse {
  flex-direction: row-reverse;
}

.mv-img {
  flex: 1;
  min-width: 280px;
}

.mv-img img {
  width: 100%;
}

.mv-text {
  flex: 1;
  min-width: 280px;
}

.mv-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1c2341;
}

/* STATS */
.stats {
  background: var(--amarillo);
  color: var(--azul); 
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding: 2.5rem 1rem; 
}

.stat-item {
  min-width: 200px; 
  margin: 0.5rem;
  display: flex;
  align-items: center; 
  justify-content: center;
  gap: 0.5rem; 
}

.stat-item img {
  height: 60px; 
  width: 60px;
  flex-shrink: 0;
}

.stat-text {
  display: flex;
  flex-direction: column;
  text-align: left; 
}

.stat-text strong {
  font-size: 2.2rem; 
  font-weight: 700;
  line-height: 1.1;
}

.stat-text span {
  font-size: 0.9rem; 
  line-height: 1.2;
}

/* SERVICIOS */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 0 4rem;
}

.title-block {
  border-top: 2px solid --amarillo;
  padding-top: 0.5rem;
}

.title-block .subtitle {
  color: var(--amarillo);
  font-size: 1.2rem;
}

.btn.btn-primary {
  background-color: var(--celeste);
  color: white;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  font-weight: bold;
}

.btn.btn-primary:hover {
  background-color: #2e435e;
}

.services .container {
  overflow-x: hidden;
}

.services h2 {
  color: var(--azul);
  font-size: 2.5rem;
  margin: 0.2rem 0 0 0;
}

.service-grid {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 1rem 5%;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.service-grid::-webkit-scrollbar {
  display: none; 
}

.service-box {
  background: var(--azul);
  color: white;
  padding: 2rem 2rem 4.5rem 2rem; 
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 280px;
  height: 300px;
  transition: transform 0.3s ease;
  overflow: hidden;
  position: relative; 
}

.service-box h3{
  line-height: 1.2;
}

.service-box:hover {
  transform: translateY(-4px);
}

.service-number {
  font-size: 4rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}

.btn-box a:hover {
  background-color: #c8924c;
}

.btn-box {
  position: absolute;
  bottom: 0;
  right: 0;
}

.btn-box a {
  display: inline-block;
  background-color: var(--amarillo);
  color: white;
  padding: 0.6rem 1.5rem;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
}


/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(28, 35, 65, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.modal-content {
  background-color: var(--celeste);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  text-align: left;
}

.modal-content h2 {
  margin-bottom: 1rem;
}

.modal-content a.modal-close {
  display: inline-block;
  margin-top: 1.5rem;
  color: white;
  font-weight: bold;
  text-decoration: none;
}

#modal-formacion .modal-content p {
    margin-bottom: 1.5em; /* O 20px, o el espacio que prefieras */
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

/* OPCIONAL: clases por color de fondo para modales */
.modal-content.azul-oscuro { background: var(--azul); }
.modal-content.dorado { background: var(--amarillo); color: var(--azul); }
.modal-content.celeste { background: var(--celeste); }

/* CONTACTO */
.contacto {
  padding-bottom: 4rem;
  padding-top: 2rem;
}

.contacto-flex {
  display: flex;
  align-items: stretch;
  gap: 3rem;
}

.contact-img {
  flex: 1;
  min-width: 300px;
}

.contact-img img {
 width: 100%; 
 height: 100%;
 object-fit: cover;
}

.subtitle-contact {
  color: var(--amarillo);
  font-size: 1.2rem;
}

.contact-form {
 flex: 1;
}

.contact-form h2 {
 margin-top: 0.5;
 margin-bottom: 2.5rem;
 color: var(--azul);
 font-size: 2.5rem;
 line-height: 1.2;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
}

.icon-input input,
.icon-input textarea {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: none;
  border-bottom: 1px solid var(--amarillo);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  resize: none;
}

.icon-form {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Para que no aparezca el borde azul al hacer clic */
.icon-input input:focus,
.icon-input textarea:focus {
    outline: none;
}

.btn-enviar {
  align-self: center;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 0;
}
.icon-user {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}
.icon-email {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}
.icon-question {
     background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></svg>');
}

/* FOOTER */
.footer {
  text-align: center;
  background: var(--amarillo);
  color: var(--azul);
  padding: 2rem;
}

.footer p{
  padding-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-container h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  align-items: left;
  text-align: left;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start; 
}
.footer-link {
  display: inline-flex;
  align-items: center;
  background-color: var(--azul); 
  color: var(--amarillo);
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.footer-link:hover {
background-color: #211f36; 
}

.footer-link img {
  margin-right: 12px;
  width: 30px;
  height: 30px; 
}

/* ANIMACIONES */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 2rem;
    text-align: center;
  }

  .mv-row,
  .mv-row.reverse,
  .contacto-flex {
    flex-direction: column;
    text-align: center;
  }

  .icon-form {
    display: none;
  }

  .btn-enviar {
    align-self: center;
    width: 100%;
  }

  .service-box {
    height: auto;
  }
}

.service-slider-wrapper {
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--amarillo);
  color: #fff;
  border: none;
  padding: 0.8rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
  transition: background 0.3s;
}

.slider-btn:hover {
  background-color: #c8924c;
}

.slider-btn.left {
  left: -10px;
}

.slider-btn.right {
  right: -10px;
}

.service-grid {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 1rem 5%;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.service-grid::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
    .service-grid {
      padding: 1rem;
      gap: 1rem;
      scroll-snap-type: x mandatory;
      scroll-padding: 1rem;
    }
    

    .service-box {
      scroll-snap-align: center;
      min-width: 90%;
      max-width: 90%;
      margin: 0 auto;
    }
    .service-box {
    padding-top: 1.5rem ;
    padding-bottom: 1.5rem;
  }
  .btn-box {
    margin-top: 1rem; /* en vez de auto */
  }
  .service-box h3 {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .service-number{
    margin-bottom: 0;
  }

    .slider-btn {
      display: none; /* Ocultamos flechas en mobile */
    }

  .stats {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .stat-item {
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .stat-text strong {
    font-size: 1.8rem;
  }

  .stat-text span {
    font-size: 0.95rem;
  }

  .stat-icon {
    font-size: 1.4rem; /* ícono más claro */
  }
  .services-header {
    flex-direction: column;
    align-items: left;
    text-align: left;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .btn.btn-primary {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
  .section {
    padding: 2rem 0 1.5rem;
  }

  .contacto{
    padding-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contact-img{
    display: none;
  }

  .contact-form h2{
    align-items: left;
    text-align: left;
    font-size: xx-large;
    margin-bottom: 1rem;
  }

  .contact-form p{
    align-items: left;
    text-align: left;
  }

  .title-block h2{
    font-size:xx-large;
  }

  .stats{
    margin-top: 2rem;
  }



}




.icon-phone {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23888" viewBox="0 0 24 24"><path d="M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.05-.24c1.12.37 2.33.57 3.54.57a1 1 0 011 1v3.5a1 1 0 01-1 1A17 17 0 013 5a1 1 0 011-1h3.5a1 1 0 011 1c0 1.21.2 2.42.57 3.54a1 1 0 01-.24 1.05l-2.21 2.2z"/></svg>');
}

