/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Roboto:wght@400;500&family=Open+Sans:wght@300&display=swap');

/* CSS Variables */
:root {
  --blue-dark:  #004B8A;
  --green-sec:  #008833;
  --gray-light: #F4F7FA;
  --gray-mid:   #D1D9E0;
  --text-dark:  #2E3A47;
  --text-light: #55657A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--gray-light);
}

/* Navegación fija */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(31,59,87,0.9);
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
}
.nav-mail {
  grid-column: 1;
  justify-self: start;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  white-space: nowrap;
}
.nav-mail a {
  color: #fff !important;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mail a:visited {
  color: #fff !important;
}
.nav-mail a:active {
  color: #fff !important;
}
.nav-mail a:hover,
.nav-mail a:focus {
  color: var(--green-sec) !important;
}
.nav-list {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 1rem 0;
  margin: 0 auto;
  flex: 1 1 0;
  max-width: 600px;
}
.nav-list li {
  margin: 0 1rem;
}
.nav-list a {
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.nav-list a:hover {
  color: var(--green-sec);
}

/* Hero full-screen */
.hero {
  margin-top: 0;
  width: 100vw;
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #fff;
}
.hero-logo {
  max-width: 500px; /* Más grande */
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.hero-subtitle {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.servicios-h2 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 3.5rem;
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
  color: #fff; /* Ahora blanco */
  text-align: center;
}

/* Secciones con gradiente y bordes redondeados */
section.intro-section.intro-blanco {
  background: #fff;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.10);
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 2rem auto;
  text-align: center;
}

section.intro-section.intro-blanco h2 {
  color: #111;
  margin-bottom: 1.5rem;
}

section.intro-section.intro-blanco .intro-detalle {
  color: #333;
  font-size: 1.15rem;
}

/* Elimina el gradiente solo de la intro, el resto sigue igual */
#servicios,
#clientes,
#nosotros,
#contacto {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--green-sec));
  color: var(--gray-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Servicios: tarjetas blancas sobre gradiente */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  padding: 1.5rem;
  /* text-align is removed to allow default left-alignment */
}
#servicios .service-card h3,
#nosotros .service-card h3 {
  color: #000 !important; /* Forzar color negro */
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-align: center; /* Center the heading specifically */
}
#servicios .service-card p,
#servicios .service-card ul li,
#nosotros .service-card ul li {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #000 !important; /* Forzar color negro */
  font-size: 1.1rem;
}

#servicios .service-card ul,
#nosotros .service-card ul {
  /* This rule ensures the list itself is left-aligned and bullets are handled correctly */
  list-style-position: inside;
  padding-left: 0;
  margin-top: 0.5rem;
}

/* Formulario de contacto */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gray-mid);
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
}
.contact-form button,
button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  background: var(--green-sec);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  cursor: pointer;
}
button:hover,
.contact-form button:hover {
  background: #006f26;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background: var(--blue-dark);
  color: #fff;
}

.hero-bottom {
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #fff;
}
.hero-bottom-img {
  display: block;
  width: 100vw;
  max-width: 100%;
  aspect-ratio: 5/1; /* Cambiado a 5:1 */
  object-fit: cover;
  margin: 0 auto;
}



/* Media Queries */
@media (max-width: 900px) {


  .navbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 0.5rem;
  }
  .nav-mail {
    text-align: center;
    margin-bottom: 0.2rem;
    margin-right: 0;
    grid-column: auto;
    justify-self: auto;
  }
  .nav-list {
    justify-content: center;
    margin: 0 auto;
    grid-column: auto;
  }
  .hero-logo {
    max-width: 300px;
  }
  .servicios-h2 {
    font-size: 2.2rem;
  }
  section.intro-section.intro-blanco {
    padding: 2rem 1rem;
    max-width: 98vw;
  }
  #servicios,
  #nosotros,
  #contacto {
    padding: 2rem 1rem;
    max-width: 98vw;
  }
  .service-cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .hero-bottom-img {
    aspect-ratio: 2.5/1;
  }
}

@media (max-width: 600px) {
  .hero-logo {
    max-width: 180px;
  }
  .servicios-h2 {
    font-size: 1.3rem;
  }
  .hero-content {
    padding: 0 0.5rem;
  }
  section.intro-section.intro-blanco {
    padding: 1.2rem 0.5rem;
    font-size: 0.98rem;
  }
  #servicios,
  #nosotros,
  #contacto {
    padding: 1.2rem 0.5rem;
    font-size: 0.98rem;
  }
  .service-card {
    padding: 1rem 0.5rem;
  }
  .hero-bottom-img {
    aspect-ratio: 1.5/1;
  }
  .navbar {
    padding: 0.5rem 0;
  }
  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }
  .nav-list li {
    margin: 0.2rem 0;
  }
}
