:root {
  --verde-lima: #90C226;
  --verde-pasto: #419310;
  --verde-oscuro: #1c621b;
  --verde-oscuro-desvanecido: rgba(6, 144, 20, 0.74);
  --azul-gris: #487070;
  --azul-oscuro: #18333d;
  --azul-negro: #0b1e26;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--azul-negro);
  font-family: 'Segoe UI', sans-serif;
}

.navbar {
  background-color: var(--verde-oscuro);
}

.navbar-brand .logo {
  height: 50px;
  width: auto;
}


.hero {
  background-color: var(--azul-oscuro);
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
  overflow: hidden;
  position: relative;
  text-align: center;
  color: white;
}

.carrusel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.imagenes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.img {
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.85);
  width: 1134px;
  height: 576px;
  border-radius: 15px;
  margin: 5px;
  object-fit: cover;
  filter: saturate(175%);
}

.texto {
  position: absolute;
  bottom: 10px;
  width: 600px;
  height: 200px;
  padding: 10px;
  backdrop-filter: blur(20px);
  background-color: var(--color-overlay);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: height 1s, transform 1s, background-color 1s;
  transform: translateY(0);
  overflow: hidden;
}

.texto h3 {
  text-shadow: 0px 0px 15px black;
  color: white;
  font-weight: 300;
  font-size: 27px;
  margin: 10px 0 0 0;
}

.texto p {
  color: white;
  font-weight: 300;
  margin: 0;
  transition: font-size 0.2s ease-in-out;
  text-align: center;
  padding: 0 20px;
}

/* Flechas */
.atras,
.adelante {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  /* Tamaño fijo */
  height: 40px;
  cursor: pointer;
}

.atras img,
.adelante img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.atras {
  left: 10px;
}

.adelante {
  right: 10px;
}

.hero .puntos {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.hero .puntos p {
  font-size: 40px;
  font-weight: 500;
  margin: 0 5px;
  color: black;
}

.hero .puntos .bold {
  font-weight: 700;
  color: var(--verde-lima);
}

.card1 {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  max-width: 700px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card1 h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card1 p {
  font-size: 1.2rem;
}

.cta-button {
  padding: 0.75rem 1.5rem;
  background-color: #f57c00;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

/*
.cta-button:hover {
  background-color: #d65d00;
}*/

.cta-button.alt {
  background-color: #fff;
  color: #0b3d91;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: #ffffff;
}

.bg-dark {
  background-color: #0b3d91;
  color: white;
}

.card-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.card img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  /* Asegura que se cubra el espacio sin deformar */
  border-radius: 0;
  /* Opcional: si quieres esquinas rectas */
  position: relative;
  display: block;
}

/* Efecto de difuminado en las orillas usando una máscara */
.card img {
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.card1 {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  border-radius: 8px;
  flex: 1;
  /* fondo semitransparente */
  color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 90%;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.hero.card-group {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  /* fondo semitransparente */
  color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 90%;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.text-light {
  color: white;
}

/* Footer */
footer {
  background-color: var(--azul-oscuro);
  color: #ccc;
  padding: 3rem 1rem;
}

footer h5 {
  color: var(--verde-suave);
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

.social-icons i {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  color: var(--verde-suave);
}

.social-icons i:hover {
  color: white;
}

#experiencia {
  background-color: var(--verde-oscuro);
}

#experiencia .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}

#experiencia img {
  background-color: #fff;
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#nosotros {
  background-color: var(--verde-oscuro);
}

#nosotros .card-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

#nosotros .card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#nosotros .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

#nosotros .card img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 15px auto;
  display: block;
  border-radius: 12px;
}

#nosotros h1 {
  text-align: center;
  margin-bottom: 20px;
}

#nosotros p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.border-middle {
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  /* línea blanca con transparencia */
  padding-left: 2rem;
}

#servicios {
  background-color: var(--azul-oscuro);
}

#servicios .card-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

#servicios .card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#servicios .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

#servicios .card img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  margin: 0 auto 15px auto;
  display: block;
  border-radius: 12px;
}

#servicios h2 {
  text-align: center;
  margin-bottom: 20px;
}

#servicios ul {
  padding: 0;
  list-style: none;
  margin: 10px 0;
}

#servicios ul li {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.circle-wrapper {
  width: 300px;
  height: 300px;
  border: 2px dashed #198754;
  border-radius: 50%;
  position: relative;
}

.center-text {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.5;
}

.circle-logo {
  width: 70px;
  position: absolute;
}

/* Posicionamientos */
.top-center {
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.right-center {
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
}

.bottom-center {
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.left-center {
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
}

.bottom-right {
  bottom: 10px;
  right: 30px;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
}

.map-background {
  width: 100%;
  display: block;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}