/* ==============================
   RESET BÁSICO
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

  .col-lg-9 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 100%;
  }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* ==============================
   TÍTULOS
============================== */
h1, h2, h3, h4 {
  color: #006068;
  margin-bottom: 20px;
  font-weight: 700;
}

h1 i, h2 i {
  margin-right: 8px;
  color: #006068;
}

/* ==============================
   CONTENEDORES Y FILAS
============================== */
.container{
  width: 100%;          /* Ocupa toda a largura */
  max-width: 100%;      /* Impede limite */
  margin: 0;            /* Remove margens */
  padding: 0;           /* Remove espaços internos */
  display: grid;        /* Define layout em grid */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ajusta ao tamanho da tela */
  gap: 20px;            /* Espaço entre os blocos */
}
.texto-pequeno {
  font-size: 0.80rem;  /* ajusta el valor */
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ==============================
   GALERÍA DE CARDS
============================== */
.gallery-item {
  flex: 1 1 200px;
  max-width: 220px;
}

.gallery-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.gallery-card img {
  border-bottom: 1px solid #ddd;
  width: 100%;
  height: 120px;
  object-fit: contain;
  background-color: #fdfdfd;
  padding: 10px;
}

.gallery-card .card-body {
  padding: 10px 15px;
}

.gallery-card .card-body a {
  color: #0066cc;
  text-decoration: none;
}

.gallery-card .card-body a:hover {
  text-decoration: underline;
}

/* ==============================
   BOTONES PERSONALIZADOS
============================== */
.btn-epn-custom {
  background-color: #004080;
  color: #fff;
  border: none;
  padding: 12px 20px;
  margin: 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-epn-custom:hover {
  background-color: #0066cc;
}

.btn-epn-custom i {
  margin-right: 6px;
}

/* ==============================
   LISTAS DE SERVICIOS
============================== */
.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li {
  margin-bottom: 8px;
  padding-left: 1.4rem;
  position: relative;
}

.service-list li::before {
  content: "✔";
  color: #0066cc;
  position: absolute;
  left: 0;
}

/* ==============================
   SECCIÓN SERVICIOS
============================== */
.es-ES_item {
  padding: 60px 20px;
  background: #f9fafc;
}

.es-ES_item h1 {
  font-size: 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

/* Contenedor de columnas con FLEX */
.UGBContainer {
  display: flex;
  flex-wrap: nowrap;           /* todas en una sola fila */
  justify-content: space-between;
  gap: 20px;
}

/* Cada columna ocupa 25% */
.UGBColumn {
  flex: 1 1 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Columna 1 (texto) */
.UGBColumn.col1 {
  text-align: left;
  align-items: flex-start;
}

.UGBColumn.col1 .content {
  max-width: 400px;
}

.UGBColumn.col1 p.h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #222;
}

.UGBColumn.col1 p.text-muted {
  font-size: 1rem;
  color: #666;
}

/* Tarjetas de servicios */
.UGBColumn .card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  max-width: 280px;
  margin: 0 auto;
  text-align: center;
}

.UGBColumn .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.UGBColumn .card span.fas {
  font-size: 2rem;
  color: #0066cc;
  display: inline-block;
  margin-top: 10px;
}

.UGBColumn .card p.h4 {
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}

.UGBColumn .card p.p1 {
  font-size: 0.95rem;
  color: #555;
  margin: 10px 15px;
  line-height: 1.5;
}

.UGBColumn .card a span.fas.fa-arrow-right {
  margin-top: 12px;
  font-size: 1.1rem;
  color: #004080;
  transition: transform 0.2s ease, color 0.2s ease;
}

.UGBColumn .card a span.fas.fa-arrow-right:hover {
  transform: translateX(4px);
  color: #0066cc;
}

/* ==============================
   VÍDEO RESPONSIVO
============================== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==============================
   FOOTER
============================== */
.footer-elegant {
  background: #E47e3d;
  color: #fff;
  padding: 40px 20px;
  margin-top: 50px;
  text-align: center;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-logo span {
  color: #ffcc00;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-info div {
  text-align: left;
  max-width: 200px;
}

.footer-info i {
  color: #ffcc00;
  margin-right: 8px;
}

.footer-social {
  margin: 15px 0;
}

.footer-social a {
  color: #fff;
  margin: 0 8px;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #ffcc00;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #ccc;
}

/* ==============================
   MODALES
============================== */
.modal-content {
  border-radius: 10px;
  border: none;
  padding: 10px;
}

.modal-header {
  border-bottom: none;
}

.modal-body {
  font-size: 0.9rem;
  color: #444;
}

/* ==============================
   RESPONSIVIDAD
============================== */
@media (max-width: 992px) {
  .UGBContainer {
    flex-wrap: wrap;          /* en pantallas medianas, se permiten 2 columnas por fila */
  }
  .UGBColumn {
    flex: 1 1 45%;
  }
}

@media (max-width: 576px) {
  .UGBColumn {
    flex: 1 1 100%;          /* en móviles, cada columna ocupa la fila entera */
  }
  .es-ES_item {
    padding: 40px 15px;
  }
  .es-ES_item h1 {
    font-size: 0.5rem;
  }
  .UGBColumn .card {
    max-width: 100%;
  }
  .footer-info {
    flex-direction: column;
    align-items: center;
  }
}
