/* Estilo general */
/* Estilo general */
body {
    font-family: Helvetica, sans-serif !important;
    font-size: small !important;
    color: #333;
    background-color: #0a0c10 !important;
}
.container {width: 95%; margin: 0 auto;}
.hero {
    background: #002B49; /* Color principal */
    color: white;
    padding: 80px 0;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
}

.card {
    border: none;
    margin-bottom: 30px;
}

#modalcrearinci, #modaleditarinci {
    width:900px !important;
    max-width:900px !important;
}

/* Estilos para el footer */
footer {
    background-color: #0a0c10 !important;
}

footer h3 {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #b30000;
}

footer a:hover {
    color: #b30000 !important;
    transition: color 0.3s ease;
}

footer hr {
    height: 1px;
    opacity: 0.2;
}

/* Estilos para el footer */
footer {
    background-color: #0a0c10 !important;
    font-family: 'Arial', sans-serif;
}

footer h3 {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
}

footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #b30000;
}

footer a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #b30000 !important;
}

footer hr {
    height: 1px;
    opacity: 0.2;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #b30000;
    color: white !important;
    transform: translateY(-3px);
}

/* Colores personalizados */
.bg-header { background-color: #0a0c10 !important;}
.bg-primary {
    background-color: #0a0c10 !important;
}

.btn-primary {
    background-color: #0062cc;
    border-color: #0062cc;
}

.card-title {
    color: #002B49;
}

.bg-video {
    position: absolute;
    top: -9em;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 900px;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Ajusta este valor según qué tan transparente lo quieras */
    pointer-events: none; /* Para que no interfiera con clics */
}

.hero .container {
    z-index: 1;
    position: relative;
}

.rojizo {
    background-color: #97605b;
    min-height: 750px;
}

.nav-link { font-size: larger !important;}
.nav-link:hover { color: #b81b0e !important; }
.sub-menu {
    display: none;
    position: absolute;
    background-color: antiquewhite; /* ajusta al color de tu navbar */
    list-style: none;
    padding: 0px;
    margin: 0;
    z-index: 1000;
}
.menu-item {
    border-bottom: 1px solid #0a0c10;
    width: 200px;
    padding: 20px;
    background-color: antiquewhite;
}
.menu-item a {
    text-decoration: none;
    color: #0a0c10;
}
.menu-item a:hover {
    color: #b81b0e;
}
.nav-item {
    position: relative;
}

.nav-item:hover .sub-menu {
    display: block;
}

.mega-menu {
  position: relative;
}

.mega-menu-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 20px;
  width: 1000px; /* ajusta al tamaño que necesites */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
}

.mega-menu:hover .mega-menu-content {
  display: block;
  padding: 20px;
}

.mega-menu-content .row {
  display: flex;
  gap: 20px;
}

.mega-menu-content .col {
  flex: 1;
  text-align: center;
}

.mega-menu-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.mega-menu-content h6 {
  margin: 10px 0 5px;
  font-weight: bold;
}

.btnred { background-color: #b81b0e; color: white; border: 2px solid #b81b0e; text-decoration: none; padding: 7px 20px 7px 20px; margin-right: 10px; text-align: center; }
.btntransp { background-color: transparent; color: white; border: 2px solid white; text-decoration: none; padding: 7px 20px 7px 20px; margin-right: 10px; text-align: center; }

.card-img-top { height: 270.66px;}
.card-logos {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}
.circulo {
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    border: 2px solid black !important;
}
.circulo span { line-height: 1.1em !important; }
.carousel-item p {padding: 10px 40px 10px 40px!important; }
.masinfo2 {
    color: #2b2b2b;
    font-family: Helvetica, sans-serif;
    text-decoration: none;
}
.masinfo2:hover {
    color:#b81b0e;
}
.masinfo2 svg { width: 15px;}

.dropdown-menu .mega-menu-content {
    padding: 20px !important;
}

.btna:hover {
    color: #b30000 !important;
}

.partner-section {
  background-color: #0f0f11;
  color: white;
  padding: 60px 20px;
}

.partner-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.partner-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
}

.partner-text {
  max-width: 600px;
}

.partner-text h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.partner-text p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.partner-button {
  display: inline-block;
  background-color: #e63939;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background-color 0.3s;
}

.partner-button:hover {
  background-color: #c52828;
}
.partner-section {
    position: relative;
    overflow: hidden;
}

.partner-section .overlay {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Ajusta opacidad aquí */
    z-index: 1;
}

.partner-container {
    position: relative;
    z-index: 2; /* Sitúa el contenido por encima del overlay */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
}

.partner-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
}

.partner-text {
    max-width: 600px;
}

.partner-text h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

.partner-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.btnred:hover {
    background-color: #c52828;
}

/* General Timeline Section Styles */
.gpc-timeline-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Un fondo gris claro como en la imagen */
    font-family: Arial, sans-serif; /* O tu fuente preferida */
}

.gpc-timeline-section .container {
    max-width: 1200px; /* Ajusta según el ancho de tu contenedor principal */
    margin: 0 auto;
    padding: 0 15px;
}

.timeline-title {
    text-align: center;
    font-size: 3em;
    color: #333;
    margin-bottom: 50px;
    position: relative;
    font-weight: 600;
}

/* Timeline Wrapper (The main vertical line) */
.timeline-wrapper {
    position: relative;
    padding: 0;
}

/* Vertical Line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%; /* Centra la línea */
    transform: translateX(-50%);
    width: 2px; /* Grosor de la línea */
    background-color: #e0e0e0; /* Color gris claro para la línea */
    height: 100%;
    z-index: 1;
}

/* Individual Timeline Event */
.timeline-event {
    position: relative;
    margin-bottom: 60px; /* Espacio entre eventos */
    display: flex; /* Para controlar la posición de los años y el contenido */
    align-items: center; /* Centra verticalmente año y contenido */
    justify-content: center; /* Centra el conjunto de año+contenido */
}

/* Timeline Year (the dot on the line) */
.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Ancho del círculo/año */
    height: 60px; /* Altura del círculo/año */
    background-color: #cc0000; /* Color rojo como en la imagen */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    z-index: 2; /* Para que esté por encima de la línea */
    box-shadow: 0 0 0 4px #f8f8f8; /* Un "borde" para que resalte del fondo */
}

/* Timeline Content Container */
.timeline-content {
    width: 45%; /* La mitad del ancho disponible para el contenido */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1; /* Para que el contenido esté por encima de la línea */
}

/* Content on the Right Side */
.timeline-content.right {
    margin-left: 55%; /* Empuja el contenido a la derecha de la línea */
    text-align: left;
}

/* Content on the Left Side */
.timeline-content.left {
    margin-right: 55%; /* Empuja el contenido a la izquierda de la línea */
    text-align: right;
}

/* Arrow/Pointer for Content Boxes (optional, but good for visual connection) */
.timeline-content.right::before {
    content: '';
    position: absolute;
    left: -10px; /* Posiciona la punta hacia la línea */
    top: 30px; /* Ajusta verticalmente */
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #fff; /* Color del fondo del contenido */
}

.timeline-content.left::before {
    content: '';
    position: absolute;
    right: -10px; /* Posiciona la punta hacia la línea */
    top: 30px; /* Ajusta verticalmente */
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #fff; /* Color del fondo del contenido */
}

/* Image within Content */
.timeline-image {
    max-width: 100%;
    width: 100%;
    height: 300px;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    object-fit: cover;
}

.timeline-content h3 {
    color: #cc0000; /* Rojo para los títulos */
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
}

.hero-section {
    position: relative; /* Necesario para posicionar el overlay y el contenido */
    height: 400px; /* La altura deseada de tu sección */
    background-size: cover; /* Asegura que la imagen cubra todo el área */
    background-position: center; /* Centra la imagen */
    background-attachment: fixed; /* ¡Este es el efecto de paralaje! La imagen se queda fija */
    display: flex; /* Habilita Flexbox para centrar el contenido */
    align-items: center; /* Centra el contenido verticalmente */
    justify-content: center; /* Centra el contenido horizontalmente */
    text-align: center; /* Asegura que el texto dentro del .container también se centre */
    overflow: hidden; /* Evita barras de desplazamiento si el contenido excede el tamaño */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Color negro con 50% de opacidad (oscurece la imagen) */
    z-index: 1; /* Asegura que el overlay esté por encima de la imagen de fondo */
}

.hero-section .container {
    position: relative; /* Necesario para que el contenido esté por encima del overlay */
    z-index: 2; /* Asegura que el contenido esté por encima del overlay */
    padding: 20px; /* Un poco de padding para el contenido */
}

.hero-title {
    font-size: 3.5em; /* Tamaño de fuente para el título */
    font-weight: bold; /* Ahora definido en CSS */
    margin-bottom: 10px; /* Espacio entre título y subtítulo */
    color: #fff; /* Asegura que el texto sea blanco, como ya lo tenías */
}

.hero-subtitle {
    font-size: 1.5em; /* Tamaño de fuente para el subtítulo */
    margin-bottom: 20px; /* Espacio antes del botón */
    color: #fff; /* Asegura que el texto sea blanco */
}

/* Si tu botón tiene la clase .btnred, ya debería tener sus estilos.
   Asegúrate de que tenga un 'display: inline-block;' si no lo tiene. */
.btnred {
    display: inline-block; /* Importante para que los márgenes y padding funcionen bien */
    padding: 10px 25px;
    background-color: #cc0000; /* Color rojo de tu botón */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: 2px solid #cc0000; /* Si es un botón, quita el borde por defecto */
    cursor: pointer;
    width: auto;
    min-width: 250px;
}
.btntransp {
    display: inline-block; /* Importante para que los márgenes y padding funcionen bien */
    padding: 10px 25px;
    background-color: transparent; /* Color rojo de tu botón */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: 2px solid white; /* Si es un botón, quita el borde por defecto */
    cursor: pointer;
}

.btnred:hover {
    background-color: #a00000; /* Un rojo más oscuro al pasar el ratón */
}

/* General Contact Section Styles */
.gpc-contact-section {
    padding: 60px 0;
    background-color: #fff; /* Fondo blanco como en la imagen */
    font-family: Arial, sans-serif;
}

.gpc-contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header with Image Section */
.contact-header-with-image {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espacio entre el contenido y la imagen */
    margin-bottom: 60px;
    gap: 30px; /* Espacio entre las columnas */
}

.contact-header-content {
    flex: 1; /* Ocupa el espacio disponible */
    padding-right: 30px; /* Espacio entre el texto y la imagen */
}

.contact-pretitle {
    color: #cc0000; /* Rojo */
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-title {
    font-size: 2.8em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-media-label {
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px; /* Espacio entre los iconos */
}

.social-icons a {
    color: #333;
    font-size: 1.8em; /* Tamaño de los iconos */
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #cc0000; /* Rojo al pasar el ratón */
}

.contact-header-image {
    flex: 1; /* Ocupa el espacio disponible */
    max-width: 50%; /* Limita el ancho de la imagen */
    display: flex;
    justify-content: center; /* Centra la imagen si es más pequeña que su contenedor */
    align-items: center;
}

.contact-header-image img {
    max-width: 100%;
    height: auto;
    display: block; /* Elimina espacio extra debajo de la imagen */
}

/* Location Columns Section */
.contact-locations {
    display: grid; /* Usa CSS Grid para las columnas */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 columnas responsivas */
    gap: 30px; /* Espacio entre las tarjetas de ubicación */
}

.contact-location-item {
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    display: flex;
    flex-direction: column; /* Apila el contenido verticalmente */
}

.contact-location-item h3 {
    color: #333;
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #cc0000; /* Línea roja bajo el título de la ubicación */
    padding-bottom: 10px;
    display: inline-block; /* Para que la línea roja tenga el ancho del texto */
}

.location-details p {
    color: #555;
    margin-bottom: 10px;
    font-size: 0.95em;
    display: flex; /* Para alinear el icono y el texto */
    align-items: flex-start;
    gap: 10px; /* Espacio entre el icono y el texto */
}

.location-details p i {
    color: #cc0000; /* Color de los iconos */
    font-size: 1.1em;
    flex-shrink: 0; /* Evita que el icono se encoja */
    padding-top: 2px; /* Alineación fina */
}

.map-placeholder {
    margin-top: auto; /* Empuja el mapa hacia abajo */
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden; /* Asegura que el iframe respete el border-radius */
    margin-top: 25px; /* Espacio entre detalles y mapa */
}

.map-placeholder iframe {
    display: block; /* Elimina espacio extra debajo del iframe */
}

.map-link {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #f2f2f2;
    color: #cc0000;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.map-link:hover {
    background-color: #e0e0e0;
}
.elem_menu_dash:hover { background-color: black !important;}
.menuizq {
    min-height: 100vh !important;
}
.btndash {
    width:90px;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .contact-header-with-image {
        flex-direction: column; /* Apila el encabezado y la imagen en pantallas medianas */
        text-align: center;
    }
    .contact-header-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .contact-header-image {
        max-width: 80%; /* Ajusta el tamaño de la imagen del encabezado */
    }
    .social-icons {
        justify-content: center; /* Centra los iconos sociales */
    }
    iframe { width: 100%;}
    .contemovilancho { width: 95% !important;}
    .timeline-wrapper {
        position: relative;
        padding: 0;
        transform: scale(0.5);
        transform-origin: top center;
    }
    .gpc-timeline-section .container {
        height: 155em;
    }
    .our-values-section .contemovilancho {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .menuizq {
        min-height: auto !important;
        height: auto !important;
    }
    #modalcrearinci, #modaleditarinci {
        width:96% !important;
        max-width:96% !important;
    }
}

@media (max-width: 768px) {
    .gpc-contact-section {
        padding: 40px 0;
    }
    .contact-title {
        font-size: 2.2em;
    }
    .contact-description {
        font-size: 0.9em;
    }
    .contact-locations {
        grid-template-columns: 1fr; /* Una sola columna en pantallas pequeñas */
    }
}

@media (max-width: 480px) {
    .contact-header-image {
        max-width: 100%;
    }
}

/* Media Queries para Responsividad (ajusta tamaños de fuente en móviles) */
@media (max-width: 768px) {
    .hero-section {
        height: 300px; /* Un poco menos alto en pantallas pequeñas */
    }
    .hero-title {
        font-size: 2.5em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .timeline-wrapper::before {
        left: 20px; /* Mueve la línea a la izquierda para móviles */
        transform: translateX(0);
    }

    .timeline-event {
        flex-direction: column; /* Apila elementos verticalmente */
        align-items: flex-start;
        justify-content: flex-start;
        margin-left: 0; /* Reinicia márgenes */
        margin-right: 0; /* Reinicia márgenes */
        padding-left: 60px; /* Espacio para la línea y el año */
    }

    .timeline-year {
        left: 20px; /* Alinea el año con la nueva posición de la línea */
        transform: translateX(-50%); /* Ajuste fino */
        position: absolute; /* Asegura que se mantenga en la línea */
        top: 0; /* Alinea con el inicio del evento */
        margin-top: 20px; /* Un poco de margen para que no se pegue al borde */
    }

    .timeline-content {
        width: 100%; /* El contenido ocupa todo el ancho disponible */
        margin: 0; /* Elimina márgenes laterales */
        text-align: left; /* Alinea todo a la izquierda */
        padding: 20px;
    }

    .timeline-content.left::before,
    .timeline-content.right::before {
        left: -10px; /* Mueve la flecha siempre a la izquierda */
        right: auto;
        border-left: none;
        border-right: 10px solid #fff;
    }
}

/* Custom CSS for responsiveness */

/* Adjust container width for smaller screens */
@media (max-width: 767.98px) {
    .container-fluid {
        padding: 0 1em 0 1em !important; /* Adjust padding for smaller screens */
    }
}

/* Navbar adjustments for mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #0a0c10; /* Same as header background */
        padding: 1em;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .social-icons-header {
        position: static !important; /* Remove absolute positioning on mobile */
        text-align: center !important;
        margin-bottom: 10px;
    }

    .gpc-logo {
        width: 120px !important; /* Adjust logo size for smaller screens */
    }

    .navbar-brand {
        margin-right: auto; /* Push toggler to the right */
    }

    .navbar-toggler {
        margin-left: auto; /* Push toggler to the right */
    }

    .nav-item {
        text-align: center;
    }

    .nav-item .sub-menu {
        display: none;
    }

    .mega-menu-content {
        display: none;
    }

    /* Mostrar el submenú cuando la clase 'show' sea añadida */
    .nav-item.dropdown.show .mega-menu-content {
        display: block;
    }
    /* Mostrar submenú cuando su contenedor esté con la clase 'show' */
    .nav-item.show .sub-menu {
        display: block;
    }

    .sub-menu, .mega-menu-content {
        position: static;
        display: block;
        width: 100%;        
        box-shadow: none;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    .sub-menu a { 
        text-decoration: none !important;
        color: black;
        font-size: 1.2em;
        line-height: 2em !important;
    }

    .menu-item {
        border-bottom: 1px solid #0a0c10;
        width: 100%;
        padding: 20px;
        background-color: antiquewhite;
    }

    .mega-menu-content .col {
        margin-bottom: 20px;
    }

    .mega-menu-content img {
        max-width: 100%;
        width: 80%;
        min-height: 180px;
    }

    .mega-menu-content .row {
        display: block;
    }

    #btnmasinfo1, #btnconv1 {
        width: 100% !important;
    }
}

/* Hero Section adjustments for mobile */
@media (max-width: 767.98px) {
    .rojizo {
        min-height: 50vh; /* Adjust hero section height for smaller screens */
        height: auto !important;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-content-container {
        width: 90% !important;
        margin: 2em auto !important; /* Center content and adjust margin */
        text-align: center !important;
    }

    .hero-title {
        font-size: 1.8rem !important; /* Adjust font size for h1 */
    }

    .hero p {
        font-size: 1rem !important; /* Adjust font size for paragraph */
    }

    .btnred, .btntransp {
        display: block;
        width: 80% !important;
        margin: 10px auto !important;
    }
}

/* Adjust card image height for smaller screens if needed */
@media (max-width: 575.98px) {
    .card-img-top {
        height: 200px;
        object-fit: cover;
    }
}

/* Adjust "Nuestras Políticas" buttons for small screens */
@media (max-width: 767.98px) {
    .d-flex.flex-column.flex-md-row .btnred,
    .d-flex.flex-column.flex-md-row .btntransp {
        width: 100% !important; /* Make buttons full width */
        margin-right: 0 !important; /* Remove right margin */
        margin-bottom: 10px !important; /* Add bottom margin between buttons */
    }
}

/* GPC en Números adjustments for smaller screens */
@media (max-width: 767.98px) {
    #gpc-numeros .col-6, #gpc-numeros .col-12 {
        width: 50%; /* Display two numbers per row */
        text-align: center;
    }

    #gpc-numeros .offset-md-1 {
        margin-left: 0; /* Remove offset on small screens */
    }
}

/* GPC en Números adjustments for smaller screens */
@media (max-width: 767.98px) {
    #gpc-numeros .col-6, #gpc-numeros .col-12 {
        width: 50%; /* Display two numbers per row */
        text-align: center;
    }

    #gpc-numeros .offset-md-1 {
        margin-left: 0; /* Remove offset on small screens */
    }

    /* Footer adjustments for mobile (vertical) */
    footer .col-md-3 {
        text-align: center !important; /* Center all content within footer columns */
    }

    footer h3::after {
        left: 50% !important; /* Center the underline */
        transform: translateX(-50%) !important;
    }

    footer .social-icons {
        text-align: center !important; /* Ensure social icons are centered */
    }
    .mega-menu-content {
        transform: translateX(0)  !important;
    }
}
