/* Variables CSS para facilitar la personalización */
:root {
    --primary-color: rgb(0, 61, 102);
    --secondary-color: #068CE5;
    --text-color: #FFF;
    --background-color: #FFF;
    --font-size-small: 0.625rem; /* 10px */
    --font-size-medium: 0.875rem; /* 14px */
    --font-size-large: 0.9375rem; /* 15px */
    --spacing-small: 0.3125rem; /* 5px */
    --spacing-medium: 0.625rem; /* 10px */
    --spacing-large: 1.25rem; /* 20px */
}

body {
    font-family: serif, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: var(--background-color);
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh; /* Ocupa el 100% de la altura de la pantalla */
}

/* Evita el scroll horizontal en toda la web */
html {
    width: 100%;
    overflow-x: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
}

main, .main-content { /* Ajusta ".main-content" o la etiqueta que envuelva tu contenido central */
    flex: 1; 
}

/* Asegura que ninguna imagen rompa su contenedor */
img {
    max-width: 100%;
    height: auto;
}

/* --- HEADER Y NAVEGACION --- */
header {
    background-color: var(--primary-color);
    padding: 18px 20px;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    align-items: center;
    height: auto; /* Permite que tome la altura que requiera el logo */
}

.logo {
    height: 90px;       /* Ajusta la altura visible según prefieras (ej. 40px - 50px) */
    width: auto;        /* Mantiene la proporción original para evitar distorsión o recortes */
    max-width: 100%;    /* Asegura adaptabilidad en pantallas pequeñas */
    object-fit: contain;/* Garantiza que la imagen completa encaje perfectamente dentro del área */
    display: block;
}

.nav-derecha {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

header h1 {
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0%;
    margin: 0 var(--spacing-medium);
    display: flex;
    justify-content: center;
    gap: var(--spacing-small);
}

nav ul li {
    background-color: var(--primary-color);
    padding: var(--spacing-small) var(--spacing-large);
    border-radius: var(--spacing-small);
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 18px;
}

nav ul li:hover {
    background-color: var(--secondary-color);
    margin: 0%;
}

main {
    padding: var(--spacing-medium);
}

#mainini {
    margin: 0 auto;
    max-width: 900px;
    text-align: left;
}

#mainini img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: var(--spacing-medium);
}

footer {
    background-color: var(--primary-color);
    padding: var(--spacing-medium);
    color: var(--text-color);
    text-align: center;
    margin-top: var(--spacing-large);
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

footer p {
    margin: 0;
    font-size: var(--font-size-medium);
}

.logofooter {
    width: 100px;
    height: 100px !important; /* El !important anula las reglas de Bootstrap */
    object-fit: contain;     /* Conserva la proporción sin deformar la imagen */
    border-radius: 20%;
    padding-inline: 1%;
}

a {
    text-decoration: none;
    color: var(--text-color);
    font-size: var(--font-size-small);
}

.Slogan {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Clase para contenedores */
.container {
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

.container2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  height: 255px;
  width: 62%;
  float: left;
  text-align: left;
}

#b {
  display: inline;
  color: blue;
  font-weight: bold;
  background-color: #f0f0f0;
  padding: 2px;
}

#b2{
  color: white;
  display: flexbox;
  font-weight: bold;
}

.container1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height:255px;
  width: 52%; 
}

.container3{
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	height:255px;
	width: 52%;
	float:right;
}

/* Ajustes adicionales */
.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.inter a{
	color:#036;
	font-size:14px;
}

.link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.link-list li {
  margin-bottom: 50px;
}

.link-list a {
  display: flex;
  position:absolute;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size:large;
}

.link-list img {
  margin-right: 35px;
}

.marque {
	height: 3px;
}
  
/* Para pantallas medianas y grandes */
@media (min-width: 768px) {
.marque {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}
}

/* Para pantallas pequeñas */
@media (max-width: 767px) {
.marque {
    width: 80%;
    margin-left: 10px;
    margin-right: 10px;
}
}

/*Index Corregido Definitivo con Fondos*/
.slider-container {
    width: 100%;
    height: auto;
    aspect-ratio: 24 / 9; /* Ajusta la proporción según el diseño de tus banners */
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.5s ease-in-out;
    margin: 0;
    padding: 0;
}

.slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: block;
    margin: 0;
    padding: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
  
.slide:first-child {
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s ease;
    z-index: 10;
}
  
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
  
.prev {
    left: 20px;
}
  
.next {
    right: 20px;
}
  
.prev:focus, .next:focus {
    outline: none;
}



 /*Menu de navegacion*/
.content-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        padding: 20px;
    }

/* Identidad */
.content-containeri {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
      padding: 20px;
  }

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 500px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 10px;
  transition: opacity 0.3s ease;
}

.image-container1 {
  position: relative;
  overflow: hidden;
}

.image-container1 img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.image-container1:hover img {
  opacity: 0.7;
}

  /*Barra de navegacion */
  .navbar {
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 30px;
	cursor: pointer;
	color: var(--text-color);
	padding: 5px 10px;
  }
  
  .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
  }
  
  .menu > li {
    position: relative;
  }
  
  .menu > li > a {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    color: white;
  }
  
  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #fff;
    border: none;
    z-index: 9999;
  }
  
  .submenu-item {
    padding: 10px 15px;
  }
  
  .submenu-item a {
    text-registration: none;
    color: white;
    display: block;
  }
  
  .menu > li:hover .submenu {
    display: block;
  }

.imagen {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(0, 61, 102);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
    font-size: large;
    box-sizing: border-box;
  }
  
  .card.active .description {
    opacity: 1;
  }
  
  .seccion {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.seccion:nth-child(2) {
    flex-direction: row-reverse;
}

.textoV, .textoM {
    flex: 1;
    padding: 20px;
    text-align:center;
    font-size: larger;
    box-sizing: border-box;
}

.imagenV, .imagenM {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.imagenV img, .imagenM img {
  width: 80%;
  height: auto;
  display: block;
}

#F {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
  color: #036;
}

#pF {
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.acronimo strong {
  font-size: 1.2em;
  color: #007BFF;
}

.acronimo {
  text-align:left;
  align-items: center;
}

/* Portafolio */
.gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item {
  position: relative;
  width: 400px;
  height: 500px;
}

.image-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.gallery-item:hover .image-overlay img {
  opacity: 0.7;
}

.title {
  position:absolute;
  bottom: 91%;
  left: 0;
  width: 100%;
  background-color: gray;
  color: #036;
  text-align: center;
  padding: 10px;
  font-size: 23px;
  transition: background-color 0.3s ease;
}

.gallery-item:hover .title {
  background-color: rgba(0, 0, 0, 0.7);
}

#An {
  text-decoration: none;
}

#pP {
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.containerSyE {
  width: 90%;
  margin: 0 auto;
  font-family: serif, sans-serif;
}

#pP ul {
  list-style-type: disc;
  padding-left: 20px;
}

#pP ol {
  list-style-type: decimal;
  padding-left: 40px;
}

#pP li {
  margin-bottom: 10px;
}

#pP strong {
  color: #2E86C1;
}

.containerSyE ul, .container ol {
  margin-bottom: 20px;
}

/* CSS de Clientes */
.clientes {
  text-align: center;
  padding: 20px;
}

.clientes h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 35px 25px; /* Espaciado uniforme vertical y horizontal */
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cliente-item {
    width: 100%;
    height: 90px; /* Altura máxima fija para todos los logos */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.cliente-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Mantiene la relación de aspecto original */
    filter: grayscale(10%); /* Opcional: Unifica tonos para un diseño limpio */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.cliente-item p {
  font-size: 14px;
}

.cliente-item:hover .cliente-icon {
    filter: grayscale(0%);
    transform: scale(2.05);
}

/* Estilos Noticias */
.seccion-principal {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.paquetes-pagados {
  width: 20%;
  margin: 20px;
}

.normativas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 80%;
  margin: 0 auto;
  padding: 20px;
}

.normativa-boton {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra el contenido verticalmente */
  align-items: center;
  width: 240px;            /* Aumentado de 200px a 240px para dar más espacio */
  aspect-ratio: 1 / 1;     /* Fuerza la forma de un cuadrado perfecto */
  height: auto;            /* Permite que aspect-ratio controle la altura */
  background-color: #007bff;
  color: white;
  font-size: 15px;         /* Ligera reducción para asegurar que el texto quepa holgadamente */
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;           /* Espaciado interno para que el texto no toque los bordes */
  box-sizing: border-box;  /* Incluye el padding dentro del tamaño del cuadrado */
}


.titulo-normativas {
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #036;
}

.normativa-boton:hover {
  background-color: #0056b3;
  transform: scale(1.05);
  color: white;
}

.normativa-boton strong {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Pagina de Contactenos */
.contacto-popup-container {
  display: flex;
  justify-content: space-between;
  margin: 20px;
}

.contacto {
  flex: 1;
  margin-right: 20px;
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contacto h2 {
  text-align: left;
  color: #333;
  margin-bottom: 20px;
}

.formulario-contacto {
  display: flex;
  flex-direction: column;
}

.formulario-contacto label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.formulario-contacto input,
.formulario-contacto textarea,
.formulario-contacto select {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.formulario-contacto textarea {
  height: 200px;
  resize: none;
}

.formulario-contacto select {
  appearance: none;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 20,0 10,10" fill="#007bff"/></svg>') no-repeat right 10px center;
  background-size: 10px;
}

.formulario-contacto select:focus {
  border-color: #007bff;
  outline: none;
}

.formulario-contacto button {
  background-color: #007bff;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #0056b3;
}

.areas {
  flex: 1;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.areas h2 {
  cursor: pointer;
  color: #007bff;
  margin-bottom: 10px;
  text-align: center;
}

.areas h2:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Ventanas Popup */
.popup {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 20%;
  text-align: center;
}

.popup-content img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* BOTON DE WHATSAPP*/
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #02DE34;
  border-radius: 50px;
  width: 90px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 99;
}

.whatsapp-button img {
  width: 90px;
  height: 70px;
}

/* Busca o añade esto en la sección de Estilos Noticias */
.titulo-normativas {
  text-align: center;
  width: 100%;
  margin-bottom: 25px;
  font-size: 36px;       /* Aumentado de 24px a 36px para que sea más grande */
  font-weight: bold;
  color: #036;           /* Mantiene tu color azul corporativo */
}


/* ========================================================== */
/* ÚNICO BLOQUE RESPONSIVO OFICIAL PARA DISPOSITIVOS MÓVILES */
/* ========================================================== */
@media (max-width: 768px) {
    header {
        width: 100%;
        box-sizing: border-box;
        position: relative; /* Muy importante para anclar el menú aquí */
    }

    .nav-container {
        max-width: 75%;
    }

    .nav-derecha {
        position: static; /* Evita que el menú tome a nav-derecha como referencia */
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        flex-direction: inherit;
        gap: var(--spacing-small);
        display: flex;
    }

    /* Forzamos a que el menú cubra toda la pantalla de lado a lado desde la cabecera */
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #ddd;
        box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
        box-sizing: border-box;
        z-index: 9999;
    }

    .menu > li {
        text-align: left;
        width: 100%;
    }
	
	.menu > li > a {
        color: #333 !important; /* Cambiamos el texto a oscuro para que se vea sobre el fondo blanco */
        padding: 12px 20px;
    }

    .menu.active {
        display: flex;
    }

    .seccion, 
    .seccion:nth-child(2) {
        flex-direction: column;
    }

    .flex-container {
        flex-direction: row;
    }

    .contacto-popup-container {
        flex-direction: column;
    }

    .contacto,
    .areas {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Dentro del @media móvil reemplaza la clase .slide por esta */
    .slide {
        height: 100vh !important;
        background-size: cover !important;
        background-position: center center !important;
    }

/* Dentro de @media (max-width: 768px) */
.normativa-boton {
  width: 45%;
  height: auto;
  aspect-ratio: 1 / 1;
  font-size: 14px; /* Ajuste fino de letra para pantallas medianas */
}

/* Dentro de @media (max-width: 480px) */
.normativa-boton {
  width: 90%;      /* Cambiado a 90% para que no quede excesivamente gigante en pantallas mini */
  margin: 0 auto;
  height: auto;
  aspect-ratio: 1 / 1;
}
