


.logo-slider {
    width: 100%;
    max-width: 850px; /* Tamaño en computadoras */
}

@media (max-width: 768px) {
    .logo-slider {
        max-width: 380px; /* Tamaño en celulares */
    }
}

.mags-navbar-logo {
    height: 120px; /* Ajusta esta altura según prefieras */
    width: auto; /* Mantiene la proporción */
    display: block;
    padding: 5px 0; /* Espaciado interno opcional */
    transition: transform 0.3s ease;
}

/* Efecto opcional al pasar el mouse */
.mags-navbar-logo:hover {
    transform: scale(1.05);
}

/* Ajuste para móviles: logo un poco más pequeño */
@media (max-width: 768px) {
    .mags-navbar-logo {
        height: 50px;
    }
}

.mags-navbar-text {
    display: inline-block;
    color: var(--dark);
    font-size: clamp(1.15rem, 1.2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    padding: 24px 0;
}

/********** Template CSS **********/
:root {
    --primary: #FF5E14;
    --secondary: #5F656F;
    --light: #F5F5F5;
    --dark: #02245B;
}

html {
    scroll-behavior: smooth;
}

section[id],
div[id] {
    scroll-margin-top: 110px;
}

#infraestructura,
#divisiones,
#servicios,
#proyectos,
#mision-vision,
#clientes,
#por-que-elegirnos,
#contacto {
    position: relative;
}

#infraestructura::before,
#divisiones::before,
#servicios::before,
#proyectos::before,
#mision-vision::before,
#clientes::before,
#por-que-elegirnos::before,
#contacto::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(86%, 1120px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    opacity: 0.72;
    pointer-events: none;
}

#proyectos,
#mision-vision,
#clientes,
#por-que-elegirnos,
#contacto {
    margin-top: clamp(10px, 2vw, 22px);
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
    max-width: 540px;
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-action-btn-full {
    grid-column: 1 / -1;
}

.contact-action-btn:hover {
    transform: translateY(-2px);
}

.contact-action-btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(255, 94, 20, 0.22);
}

.contact-action-btn-primary:hover,
.contact-action-btn-primary:focus {
    color: #ffffff;
}

.contact-action-btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.22);
}

.contact-action-btn-whatsapp:hover,
.contact-action-btn-whatsapp:focus {
    color: #ffffff;
}

.contact-action-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.contact-action-btn-outline:hover,
.contact-action-btn-outline:focus {
    color: #ffffff;
    border-color: rgba(255, 94, 20, 0.35);
}

.contact-reveal-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
    max-width: 540px;
}

.contact-reveal-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 13px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.84);
    font-weight: 600;
    line-height: 1.3;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-reveal-chip i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.contact-reveal-chip.is-hidden {
    display: none;
}

.contact-reveal-chip.is-visible {
    display: inline-flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-form-status {
    display: none;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.contact-form-status.is-visible {
    display: block;
}

.contact-form-status.is-success {
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.28);
    color: #9ff0be;
}

.contact-form-status.is-error {
    background: rgba(255, 94, 20, 0.14);
    border: 1px solid rgba(255, 94, 20, 0.3);
    color: #ffd0bf;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


.topbar-right {
    position: relative;
    background: var(--primary);
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    position: relative;
    padding-right: 50px;
    height: 75px;
    display: flex;
    align-items: center;
    background: var(--primary);
}

.topbar-social-link {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.topbar-social-link i {
    transition: inherit;
}

.topbar-social-link.social-facebook i {
    color: #1877f2;
}

.topbar-social-link.social-linkedin i {
    color: #0a66c2;
}

.topbar-social-link.social-youtube i {
    color: #ff0000;
}

.topbar-social-link.social-instagram i {
    color: #e1306c;
}

.topbar-social-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.navbar .navbar-brand::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 100%;
    top: 0;
    right: -25px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    /*color: var(--dark);*/
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
/* --- CORRECCIÓN DE TAMAÑO DE IMÁGENES --- */
#header-carousel .carousel-item {
    height: 100vh; /* Fuerza a que todas las slides midan lo mismo (toda la pantalla) */
    min-height: 600px; /* Asegura un tamaño mínimo en pantallas medianas */
}

#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* El truco mágico: llena el espacio sin deformar */
    object-position: center; /* Centra el enfoque de la foto */
}

/* --- TUS ESTILOS EXISTENTES (CON AJUSTES) --- */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    /* Overlay gris corporativo (serio) */
    background: linear-gradient(to right, rgba(38, 41, 46, 0.88) 0%, rgba(38, 41, 46, 0) 100%);
    z-index: 1;
}

/* La primera diapositiva muestra el logo principal sin overlay encima */
#header-carousel .carousel-item:first-child .carousel-caption {
    background: transparent;
}

/* --- SOLUCIÓN DEFINITIVA: ELIMINAR DUPLICIDAD DE CÍRCULOS --- */

/* --- OPERACIÓN LIMPIEZA TOTAL: GRUPO MAGS --- */

/* 1. Vaciamos los botones de cualquier contenido previo (iconos, spans, etc) */
#header-carousel .carousel-control-prev *,
#header-carousel .carousel-control-next * {
    display: none !important;
}

/* 2. Reseteamos los botones contenedores para que no tengan fondo ni bordes */
#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    background: transparent !important;
    border: none !important;
    width: 8% !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 3. Dibujamos el CÍRCULO y la FLECHA desde el pseudo-elemento ::before del botón */
#header-carousel .carousel-control-prev::before,
#header-carousel .carousel-control-next::before {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    background-color: #FE5D17 !important; /* Tu naranja corporativo */
    color: #ffffff !important;
    border-radius: 50% !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease;
}

/* 4. Asignamos la dirección de cada flecha */
#header-carousel .carousel-control-prev::before {
    content: "\f104" !important; /* Flecha Izquierda */
}

#header-carousel .carousel-control-next::before {
    content: "\f105" !important; /* Flecha Derecha */
}

/* 5. Efecto Hover para que se vea profesional */
#header-carousel .carousel-control-prev:hover::before,
#header-carousel .carousel-control-next:hover::before {
    background-color: #e04d13 !important; /* Un naranja un poco más oscuro */
    transform: scale(1.1);
}
/* --- AJUSTE MÓVIL (MANTIENE TUS REGLAS) --- */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        height: 70vh; /* Un poco más corto en móviles para ver contenido abajo */
        min-height: 450px;
    }
    
    /* El resto ya lo hace el CSS general de arriba */
}

.page-header {
    background: linear-gradient(to right, rgba(38, 41, 46, 1) 0%, rgba(38, 41, 46, 0) 100%), url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}

/*** Facts ***/
.facts {
    position: relative;
    margin: 6rem 0;
    background: var(--dark);
}

.facts .border {
    border-color: rgba(255, 255, 255, .1) !important;
}


/*** Features ***/
.btn-play {
    position: absolute;
    z-index: 1050 !important;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

@media (max-width: 992px) {
    .btn-play {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #FFFFFF;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

/* Mantener tamaño fijo aunque cambies imágenes (evita que “brinque” el card) */
.service-item > img.img-fluid{
    width: 100%;
    height: 260px;        /* ajusta si quieres más alto/bajo */
    object-fit: cover;    /* no deforma, recorta si es necesario */
    object-position: center;
    display: block;
}

.service-item .service-img {
    position: absolute;
    padding: 12px;
    width: 130px;
    height: 130px;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .service-img img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* no deforma */
    object-position: center;
    display: block;
}

.service-item .service-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.service-item .service-title {
    position: absolute;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #767E88;
    transition: .5s;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item .service-text {
    position: absolute;
    overflow: hidden;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;
    background: rgba(38, 41, 46, 0.72);
    transition: .5s;
}

.service-item:hover .service-text {
    top: 0;
}

.service-item .service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100px;
    top: -100%;
    left: 0;
    transform: skewY(-12deg);
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-text::before {
    top: -55px;
}

.service-item .btn {
    position: absolute;
    width: 130px;
    height: 50px;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background: #FFFFFF;
    border: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.service-division-grid {
    align-items: stretch;
}

.service-item-division {
    border-radius: 18px;
    overflow: visible;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
    transition: transform .35s ease, box-shadow .35s ease;
}

.service-item-division:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, .18);
}

.service-item-division .service-title h3 {
    letter-spacing: .03em;
}

.service-item-priority {
    box-shadow: 0 20px 50px rgba(0, 0, 0, .16);
}

.service-item-priority > img.img-fluid {
    height: 290px;
}

.service-item-priority .service-title {
    background: linear-gradient(180deg, rgba(95, 101, 111, 0.96), rgba(34, 39, 46, 0.96));
}

.service-item-priority .btn {
    background: #fff7f2;
}

.service-item-featured {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, .22);
}

.service-item-featured .service-img {
    width: 146px;
    height: 146px;
    top: -73px;
    border: 4px solid rgba(255, 94, 20, 0.18);
}

.service-item-featured .service-title {
    background: linear-gradient(180deg, rgba(255, 94, 20, 0.96), rgba(151, 72, 27, 0.96));
}

.service-item-featured .service-text {
    background: rgba(18, 22, 27, 0.82);
}

.service-item-secondary {
    opacity: 0.96;
}

.service-item-secondary .service-title {
    background: linear-gradient(180deg, rgba(57, 65, 77, 0.96), rgba(29, 34, 41, 0.96));
}

@media (max-width: 991.98px) {
    .service-item-featured,
    .service-item-priority,
    .service-item-division {
        transform: none;
    }

    .service-item-priority > img.img-fluid {
        height: 260px;
    }

    .service-item-featured .service-img {
        width: 130px;
        height: 130px;
        top: -65px;
    }
}


/*** Project ***/
.project-carousel {
    position: relative;
    background: var(--dark);
}

.project-item {
    position: relative;
    display: block;
}

.project-item img {
    transition: .5s;
}

.project-item:hover img,
.project-carousel .owl-item.center img {
    margin-top: -60px;
}

.project-item .project-title {
    position: absolute;
    padding: 0 15px;
    width: 100%;
    height: 80px;
    bottom: -110px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark);
    transition: .5s;
}

.project-item:hover .project-title,
.project-carousel .owl-item.center .project-title  {
    bottom: -60px;
}

.project-item .project-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 30px;
    top: -15px;
    left: 0;
    transform: skewY(-5deg);
    background: var(--dark);
    transition: .5s;
}

.project-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    transition: .5s;
    opacity: 0;
    z-index: 1;
}

.project-carousel:hover .owl-nav {
    opacity: 1;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

/* =========================================
   PROYECTOS (estilo tipo romecaconstrucciones)
   Manteniendo tu paleta (--dark / --primary)
========================================= */

/* Card layout: anula el efecto antiguo (subir imagen/overlay) solo para el nuevo diseño */
.project-item.project-card img{
  margin-top: 0 !important;
}
.project-item.project-card:hover img{
  margin-top: 0 !important;
}
.project-item.project-card .project-title{
  display: none !important;
}

.project-item.project-card{
  text-decoration: none;
  color: inherit;
  padding: 10px 8px;
}

.project-card-media{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.project-card-media img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
}

.project-badge{
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  background: rgba(255, 94, 20, 0.92); /* --primary */
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.project-card-body{
  padding: 14px 4px 0;
}

.project-meta{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.project-location{
  font-size: 13px;
  color: rgba(255,255,255,0.80);
}
.project-location i{
  color: rgba(255,255,255,0.90);
  margin-right: 6px;
}

.project-card-title{
  margin: 0 0 6px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.project-card-desc{
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}

.project-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.project-tag{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

.project-card-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--primary);
}

/* Efecto: resalta el item centrado en el owl */
.project-carousel .owl-item .project-card{
  transform: scale(0.94);
  opacity: 0.75;
  transition: transform .25s ease, opacity .25s ease;
}
.project-carousel .owl-item.center .project-card{
  transform: scale(1);
  opacity: 1;
}
.project-carousel .owl-item.center .project-card-media{
  box-shadow: 0 22px 60px rgba(0,0,0,0.35);
}

@media (max-width: 768px){
  .project-card-media img{ height: 190px; }
  .project-carousel .owl-item .project-card{ transform: scale(1); opacity: 1; }
}


/* Controles: evita afectar otros carruseles (solo #header-carousel) */
#header-carousel .carousel-control-prev-icon::after,
#header-carousel .carousel-control-next-icon::after {
    display: none !important;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    background-image: none; /* Si usas FontAwesome personalizado */
    display: flex;
    align-items: center;
    justify-content: center;
}




/*** Team ***/
.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    display: flex;
    align-items: center;
    background: var(--primary);
    transition: .5s;
}

.team-item:hover .team-social {
    left: 0;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    /* Gris corporativo (sólido a transparente) */
    background: linear-gradient(to right, rgba(38, 41, 46, 1) 0%, rgba(38, 41, 46, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    /* Gris corporativo (sólido a transparente) */
    background: linear-gradient(to left, rgba(38, 41, 46, 1) 0%, rgba(38, 41, 46, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    position: relative; /* ¡Línea nueva! */
    z-index: 2;        /* ¡Línea nueva! Fuerza al texto a estar arriba */
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
    background-color: #26292E !important; /* Gris corporativo */
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}


/*** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: #B0B9AE;
    border-top: 1px solid rgba(255, 255, 255, .1);
}







/* --- LIMPIEZA ABSOLUTA DE CONTROLES DUPLICADOS --- */

/* 1. Forzamos que los botones (los contenedores) sean totalmente invisibles */
#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Eliminamos cualquier círculo o icono que el tema cree con pseudo-elementos en el botón */
#header-carousel .carousel-control-prev::before, 
#header-carousel .carousel-control-prev::after,
#header-carousel .carousel-control-next::before, 
#header-carousel .carousel-control-next::after {
    display: none !important;
    content: none !important;
}

/* 3. Estilizamos el icono interno (el círculo que SÍ queremos) */
#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3.5rem !important;
    height: 3.5rem !important;
    background-color: #FE5D17 !important; /* Tu naranja corporativo */
    background-image: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
}

/* 4. Insertamos UNA SOLA flecha blanca de FontAwesome */
#header-carousel .carousel-control-prev-icon::before {
    content: "\f104" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: white !important;
    font-size: 1.5rem !important;
    display: block !important;
}

#header-carousel .carousel-control-next-icon::before {
    content: "\f105" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: white !important;
    font-size: 1.5rem !important;
    display: block !important;
}

/* 5. Matamos cualquier flecha duplicada que el tema ponga en el span */
#header-carousel .carousel-control-prev-icon::after,
#header-carousel .carousel-control-next-icon::after {
    display: none !important;
    content: none !important;
}




/* --- EFECTO FONDO FIJO (PARALLAX) --- */

/* CAPA DE FONDO FIJO - Agrégalo al final de tu CSS */
/* FORZAR FONDO DE IMAGEN */
.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Asegúrate de que esta ruta sea correcta */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/about-bg.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

/* ELIMINAR EL GRIS DE BOOTSTRAP */
#nosotros, 
#nosotros .container, 
#nosotros .container-xxl {
    background-color: transparent !important;
}

/* MEJORAR LECTURA DE TEXTOS */
#nosotros h1, 
#nosotros p,
#nosotros h6 {
    color: #ffffff !important;
}

#nosotros .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

#nosotros .text-primary {
    color: #FF5E14 !important;
}

.about-intro-row {
    align-items: flex-start;
}

.about-media-grid {
    align-items: stretch;
}

.about-media-grid > div {
    display: flex;
}

.about-media-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.about-media-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.about-media-card-logo {
    padding: 10px;
}

.about-media-card-logo img {
    object-fit: contain;
    background: transparent;
}

.about-copy {
    padding-top: 8px;
}

.about-sectors-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 980px;
    margin: 42px auto 0;
}

.sector-map {
    position: relative;
    min-height: 420px;
    width: min(100%, 880px);
    margin: 0 auto;
}

.sector-map-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.sector-map-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sector-map-label {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.sector-map-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sector-map-icon-top {
    width: 78px;
    height: 78px;
}

.sector-map-item-top {
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
}

.sector-map-item-residencial {
    top: 122px;
    left: 6px;
}

.sector-map-item-comercial {
    top: 122px;
    right: 6px;
}

.sector-map-item-infra {
    top: 194px;
    left: 0;
}

.sector-map-item-edificacion {
    top: 190px;
    right: 24px;
}

.sector-map-item-industrial {
    top: 270px;
    left: 0;
}

.sector-map-item-mecanica {
    top: 270px;
    right: 0;
}

.sector-map-item-consultoria {
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.about-experience-card {
    width: min(100%, 560px);
    padding: 22px 30px;
    text-align: center;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 94, 20, 0.24), rgba(255, 255, 255, 0.08)),
        rgba(8, 15, 28, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.about-experience-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.about-experience-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

/* Base de transparencia y color principal */
#nosotros, 
#nosotros .container, 
#nosotros .container-xxl {
    background-color: transparent !important;
}

#nosotros .text-primary {
    color: #FF5E14 !important;
}

/* Tipografías y textos sobre fondo oscuro */
#nosotros h1, 
#nosotros p,
#nosotros h6 {
    color: #ffffff !important;
}

#nosotros .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Estilos para los botones contenedores de Llamado a la Acción (CTA) */
.custom-cta-button {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Comportamiento Hover de los botones CTA */
.custom-cta-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 94, 20, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cambio dinámico del icono interno durante el hover */
.custom-cta-button:hover .cta-icon-box {
    background-color: #ffffff !important;
}

.custom-cta-button:hover .cta-icon-box i {
    color: #FF5E14 !important;
}

/* Transición y resalte de texto en hover */
.custom-cta-button .cta-text {
    transition: color 0.3s ease;
}

.custom-cta-button:hover .cta-text {
    color: #FF5E14 !important;
}





/* =========================================
   BACKGROUND GLOBAL PROFESIONAL - GRUPO MAGS
========================================= */

/* Fondo general */
.logo-slider {
    width: 100%;
    max-width: 750px; /* Tamaño en computadoras */
}

@media (max-width: 768px) {
    .logo-slider {
        max-width: 380px; /* Tamaño en celulares */
    }
}

.mags-navbar-logo {
    height: 110px; /* Ajusta esta altura según prefieras */
    width: auto; /* Mantiene la proporción */
    display: block;
    padding: 5px 0; /* Espaciado interno opcional */
    transition: transform 0.3s ease;
}

/* Efecto opcional al pasar el mouse */
.mags-navbar-logo:hover {
    transform: scale(1.05);
}

/* Ajuste para móviles: logo un poco más pequeño */
@media (max-width: 768px) {
    .mags-navbar-logo {
        height: 50px;
    }
}

/********** Template CSS **********/
:root {
    --primary: #FF5E14;
    --secondary: #5F656F;
    --light: #F5F5F5;
    --dark: #02245B;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.topbar-right {
    position: relative;
    background: var(--primary);
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    position: relative;
    padding-right: 50px;
    height: 75px;
    display: flex;
    align-items: center;
    background: var(--primary);
}

.navbar .navbar-brand::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 100%;
    top: 0;
    right: -25px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    /*color: var(--dark);*/
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Header ***/
/* --- CORRECCIÓN DE TAMAÑO DE IMÁGENES --- */
#header-carousel .carousel-item {
    height: 100vh; /* Fuerza a que todas las slides midan lo mismo (toda la pantalla) */
    min-height: 600px; /* Asegura un tamaño mínimo en pantallas medianas */
}

#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* El truco mágico: llena el espacio sin deformar */
    object-position: center; /* Centra el enfoque de la foto */
}

/* --- TUS ESTILOS EXISTENTES (CON AJUSTES) --- */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    /* Overlay gris corporativo (serio) */
    background: linear-gradient(to right, rgba(38, 41, 46, 0.88) 0%, rgba(38, 41, 46, 0) 100%);
    z-index: 1;
}

/* ===================================================
   BANNER (Carrusel principal): logo arriba-derecha + tipografía más compacta
   NOTA: Solo ajustes visuales, sin modificar contenido/estructura.
   =================================================== */

/* Logo fijo sobre TODAS las diapositivas con apariencia transparente tipo PNG */
#header-carousel {
    position: relative;
}

#header-carousel::before {
    display: none;
}

#header-carousel::after {
    content: "";
    position: absolute;
    top: 24px;
    right: 26px;
    width: 196px;
    height: 222px;
    background: transparent url("../img/logo (2).png") no-repeat center / contain;
    z-index: 6;          /* encima de imágenes/caption */
    pointer-events: none; /* no bloquea clicks (flechas/botones) */
    filter:
        drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28))
        drop-shadow(0 0 18px rgba(255, 255, 255, 0.08));
    animation: carouselBrandFloat 5.5s ease-in-out infinite;
}

@keyframes carouselBrandFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Forzar overlay gris en el carrusel (por especificidad) */
#header-carousel .carousel-caption{
    background: linear-gradient(
        to right,
        rgba(38, 41, 46, 0.92) 0%,
        rgba(38, 41, 46, 0.55) 60%,
        rgba(38, 41, 46, 0.00) 100%
    ) !important;
}

/* El logo grande de la primera diapositiva ya no se usa */
#header-carousel .logo-slider {
    display: none !important;
}

/* Tipografía un poco más pequeña para que quepa mejor el contenido en pantalla */
#header-carousel .carousel-caption .display-1 {
    font-size: clamp(2.05rem, 4.4vw, 4.1rem) !important;
    line-height: 1.1 !important;
}

#header-carousel .carousel-caption .fs-5 {
    font-size: 1rem !important;
}

@media (max-width: 768px) {
    #header-carousel::after {
        top: 16px;
        right: 14px;
        width: 128px;
        height: 146px;
    }

    #header-carousel::before {
        top: 17px;
        right: 17px;
        width: 112px;
        height: 128px;
        border-radius: 26px;
    }

    #header-carousel .carousel-caption .display-1 {
        font-size: clamp(1.7rem, 6.2vw, 2.6rem) !important;
    }

    .mags-navbar-text {
        font-size: 1rem;
        letter-spacing: 0.08em;
        padding: 18px 0;
    }

    .about-media-card img {
        min-height: 220px;
    }

    .about-media-card {
        border-radius: 14px;
    }

    .about-copy {
        text-align: center;
    }

    .about-copy p {
        text-align: center !important;
    }

    .about-sectors-wrap {
        margin-top: 34px;
        gap: 22px;
    }

    .sector-map {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
        padding-top: 0;
    }

    .sector-map-title,
    .sector-map-item {
        position: static;
        transform: none;
    }

    .sector-map-title {
        grid-column: 1 / -1;
        margin-bottom: 2px;
        white-space: normal;
    }

    .sector-map-item-top,
    .sector-map-item-consultoria {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .sector-map-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }

    .sector-map-item-residencial,
    .sector-map-item-comercial,
    .sector-map-item-infra,
    .sector-map-item-edificacion,
    .sector-map-item-industrial,
    .sector-map-item-mecanica {
        min-height: 92px;
    }

    .sector-map-label {
        font-size: 0.8rem;
    }

    .sector-map-icon {
        width: 46px;
        height: 46px;
    }

    .about-experience-card {
        padding: 20px 18px;
        border-radius: 24px;
    }

    .about-experience-title {
        font-size: 1.28rem;
    }

    .contact-actions {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .contact-reveal-stack {
        max-width: none;
    }

    .contact-reveal-chip {
        border-radius: 18px;
    }
}

/* Pantallas grandes: un poco más de presencia */
@media (min-width: 1200px) {
    #header-carousel::before {
        width: 186px;
        height: 208px;
    }

    #header-carousel::after {
        top: 20px;
        right: 30px;
        width: 220px;
        height: 248px;
    }
}

/* --- SOLUCIÓN DEFINITIVA: ELIMINAR DUPLICIDAD DE CÍRCULOS --- */

/* --- OPERACIÓN LIMPIEZA TOTAL: GRUPO MAGS --- */

/* 1. Vaciamos los botones de cualquier contenido previo (iconos, spans, etc) */
#header-carousel .carousel-control-prev *,
#header-carousel .carousel-control-next * {
    display: none !important;
}

/* 2. Reseteamos los botones contenedores para que no tengan fondo ni bordes */
#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    background: transparent !important;
    border: none !important;
    width: 8% !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 3. Dibujamos el CÍRCULO y la FLECHA desde el pseudo-elemento ::before del botón */
#header-carousel .carousel-control-prev::before,
#header-carousel .carousel-control-next::before {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    background-color: #FE5D17 !important; /* Tu naranja corporativo */
    color: #ffffff !important;
    border-radius: 50% !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease;
}

/* 4. Asignamos la dirección de cada flecha */
#header-carousel .carousel-control-prev::before {
    content: "\f104" !important; /* Flecha Izquierda */
}

#header-carousel .carousel-control-next::before {
    content: "\f105" !important; /* Flecha Derecha */
}

/* 5. Efecto Hover para que se vea profesional */
#header-carousel .carousel-control-prev:hover::before,
#header-carousel .carousel-control-next:hover::before {
    background-color: #e04d13 !important; /* Un naranja un poco más oscuro */
    transform: scale(1.1);
}

/* --- AJUSTE MÓVIL (MANTIENE TUS REGLAS) --- */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        height: 70vh; /* Un poco más corto en móviles para ver contenido abajo */
        min-height: 450px;
    }

    /* El resto ya lo hace el CSS general de arriba */
}

.page-header {
    background: linear-gradient(to right, rgba(38, 41, 46, 1) 0%, rgba(38, 41, 46, 0) 100%), url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}

/*** Facts ***/
.facts {
    position: relative;
    margin: 6rem 0;
    background: var(--dark);
}

.facts .border {
    border-color: rgba(255, 255, 255, .1) !important;
}

/*** Features ***/
/* Ajustes para textos y legibilidad en la sección */
.text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.leading-relaxed p {
    line-height: 1.75;
}

/* Efecto hover interactivo para las listas de características */
.modern-feature-card {
    transition: all 0.3s ease;
}

.modern-feature-card:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 94, 20, 0.3) !important; /* Brillo sutil del primario naranja */
    transform: translateX(4px);
}

/* Mantener el boton play por encima del circulo decorativo */
.btn-play {
    position: absolute;
    z-index: 1050 !important;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

@media (max-width: 992px) {
    .btn-play {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #FFFFFF;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    padding: 12px;
    width: 130px;
    height: 130px;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .service-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.service-item .service-title {
    position: absolute;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #767E88;
    transition: .5s;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item .service-text {
    position: absolute;
    overflow: hidden;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;
    background: rgba(38, 41, 46, 0.72);
    transition: .5s;
}

.service-item:hover .service-text {
    top: 0;
}

.service-item .service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100px;
    top: -100%;
    left: 0;
    transform: skewY(-12deg);
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-text::before {
    top: -55px;
}

.service-item .btn {
    position: absolute;
    width: 130px;
    height: 50px;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background: #FFFFFF;
    border: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

/*** Project ***/
.project-carousel {
    position: relative;
    background: var(--dark);
}

.project-item {
    position: relative;
    display: block;
}

.project-item img {
    transition: .5s;
}

.project-item:hover img,
.project-carousel .owl-item.center img {
    margin-top: -60px;
}

.project-item .project-title {
    position: absolute;
    padding: 0 15px;
    width: 100%;
    height: 80px;
    bottom: -110px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark);
    transition: .5s;
}

.project-item:hover .project-title,
.project-carousel .owl-item.center .project-title {
    bottom: -60px;
}

.project-item .project-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 30px;
    top: -15px;
    left: 0;
    transform: skewY(-5deg);
    background: var(--dark);
    transition: .5s;
}

.project-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    transition: .5s;
    opacity: 0;
    z-index: 1;
}

.project-carousel:hover .owl-nav {
    opacity: 1;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

/* Controles: evita afectar otros carruseles (solo #header-carousel) */
#header-carousel .carousel-control-prev-icon::after,
#header-carousel .carousel-control-next-icon::after {
    display: none !important;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    background-image: none; /* Si usas FontAwesome personalizado */
    display: flex;
    align-items: center;
    justify-content: center;
}

/*** Team ***/
.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    display: flex;
    align-items: center;
    background: var(--primary);
    transition: .5s;
}

.team-item:hover .team-social {
    left: 0;
}

/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

/*** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: #B0B9AE;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

/* --- LIMPIEZA ABSOLUTA DE CONTROLES DUPLICADOS --- */

/* 1. Forzamos que los botones (los contenedores) sean totalmente invisibles */
#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Eliminamos cualquier círculo o icono que el tema cree con pseudo-elementos en el botón */
#header-carousel .carousel-control-prev::before,
#header-carousel .carousel-control-prev::after,
#header-carousel .carousel-control-next::before,
#header-carousel .carousel-control-next::after {
    display: none !important;
    content: none !important;
}

/* 3. Estilizamos el icono interno (el círculo que SÍ queremos) */
#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3.5rem !important;
    height: 3.5rem !important;
    background-color: #FE5D17 !important; /* Tu naranja corporativo */
    background-image: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
}

/* 4. Insertamos UNA SOLA flecha blanca de FontAwesome */
#header-carousel .carousel-control-prev-icon::before {
    content: "\f104" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: white !important;
    font-size: 1.5rem !important;
    display: block !important;
}

#header-carousel .carousel-control-next-icon::before {
    content: "\f105" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: white !important;
    font-size: 1.5rem !important;
    display: block !important;
}

/* 5. Matamos cualquier flecha duplicada que el tema ponga en el span */
#header-carousel .carousel-control-prev-icon::after,
#header-carousel .carousel-control-next-icon::after {
    display: none !important;
    content: none !important;
}

/* --- EFECTO FONDO FIJO (PARALLAX) / FONDO TRANSPARENTE --- */

body {
    /* background: #0b0f1a; */
    background-color: transparent;
    overflow-x: hidden;
}

/* Imagen fija de fondo */
.fixed-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(38, 41, 46, 0.82), rgba(0, 0, 0, 0.82)),
        url("../img/fondo.jpg") center center / cover no-repeat;
    z-index: -2;
}

/* Capa opcional elegante */
.fixed-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

/* Todo el contenido encima */
.main-content {
    position: relative;
    z-index: 2;
}

/* Eliminar fondos blancos */
.container,
.container-fluid,
.container-xxl,
.row {
    background: transparent !important;
}

/* Secciones transparentes */
section,
.facts,
.footer,
.project-carousel {
    background-color: transparent !important;
}

/* Tarjetas blancas suaves */
.service-item,
.testimonial-text,
.team-item,
.navbar,
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
}

/* Navbar elegante */
.navbar {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

/* Textos claros sobre el fondo */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content p,
.main-content span {
    color: #ffffff;
}

/* Mantener naranja corporativo */
.text-primary {
    color: #FF5E14 !important;
}

/* Evita fondos blancos heredados */
.bg-white {
    background: transparent !important;
}

/* Footer más premium */
.footer {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px);
}

/* Facts oscuro translúcido */
.facts {
    background: rgba(38, 41, 46, 0.72) !important;
    backdrop-filter: blur(4px);
}

/* =========================
   ICONOS PERSONALIZADOS
========================= */
.custom-icon {
    width: 33px;
    height: 33px;
    object-fit: contain;
    margin-right: 12px;
    vertical-align: middle;
}

/* =================================
   FIX MODAL VIDEO BLOQUEADO
================================= */
.modal-backdrop.show {
    opacity: 0.7;
}

/* Evita capas invisibles bloqueando clics */
.modal-backdrop {
    z-index: 1050 !important;
}

.modal {
    z-index: 1055 !important;
}

/* Importante:
   No sobreescribas body.modal-open. Bootstrap usa esta clase para:
   - bloquear el scroll del fondo
   - compensar el ancho de la scrollbar
   Si lo forzamos, puede causar "saltos" y desalineaciones visuales al abrir modales. */

/* Asegura que el botón sea cliqueable */
.btn-play {
    position: absolute;
    z-index: 1050 !important;
}






.news-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 70px 0;
}

.news-cards img {
  width: 100%;
  height: 180px;
}

.news-cards h3 {
  font-size: 20px;
  margin: 10px 0;
}

.news-cards a {
  padding: 10px 0;
  color: var(--primary);
  text-transform: uppercase;
  display: inline-block;
  font-weight: bold;
}

.news-cards img {
  object-fit: cover;
}

/* =========================
   Botón flotante WhatsApp
========================= */
.whatsapp-float{
  position: fixed;
  right: 20px;
  bottom: 95px; /* SUBIDO ~2cm (de 95px a 171px) */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #ffffff;
  font-size: 28px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: visible;
}

.whatsapp-float:hover{
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.30);
}

.whatsapp-float-note{
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate3d(18px, -50%, 0) scale(0.92);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f1720;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.whatsapp-float-note::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.16);
}

.whatsapp-float.is-ready .whatsapp-float-note{
  opacity: 1;
  transform: translate3d(0, -50%, 0) scale(1);
  animation: whatsappNotePulse 2.8s ease-in-out 1.2s infinite;
}

.whatsapp-float.is-ready .whatsapp-float-note::before{
  animation: whatsappDotPulse 1.8s ease-in-out 1s infinite;
}

@keyframes whatsappNotePulse{
  0%, 100%{
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  }
  50%{
    box-shadow: 0 18px 36px rgba(0,0,0,0.24);
  }
}

@keyframes whatsappDotPulse{
  0%, 100%{
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.16);
  }
  50%{
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.08);
  }
}

@media (max-width: 576px){
  .whatsapp-float{ 
    right: 16px; 
    bottom: 100px; /* SUBIDO ~2cm en móviles (de 88px a 164px) */
  }

  .whatsapp-float-note{
    right: calc(100% + 10px);
    padding: 8px 12px;
    font-size: 12px;
    max-width: min(60vw, 180px);
    white-space: normal;
  }
}

@media (max-width: 768px) {
    section[id],
    div[id] {
        scroll-margin-top: 92px;
    }

    #proyectos,
    #mision-vision,
    #clientes,
    #por-que-elegirnos,
    #contacto {
        margin-top: 8px;
    }
}
/* =========================
   MODALES (Bootstrap) - estética y centrado
   - Evita imágenes estiradas
   - Mejora contraste del texto
========================= */

/* Fondo de la galería (azul corporativo con un poco de transparencia) */
#galleryModal .gallery-modal-content{
  background: rgba(38, 41, 46, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
}

/* Header como overlay y body sin padding (estilo tipo ficha) */
#galleryModal .modal-header{
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 6;
  padding: 10px 12px;
  justify-content: flex-end;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

#galleryModal .modal-body{
  padding: 0;
}

#galleryModal .modal-title{
  font-weight: 800;
  letter-spacing: .2px;
  color: #ffffff !important;         /* asegura contraste */
  font-size: 1.35rem;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55); /* mejora legibilidad */
}

/* HERO */
#galleryModal .gallery-hero{
  position: relative;
  background: #171a1f;
}

#galleryModal .gallery-hero-top{
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

#galleryModal .gallery-hero-badge{
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 94, 20, 0.95);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

#galleryModal .gallery-hero-count{
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.45);
}

/* Área de medios: estilo hero sin deformación
   Usamos object-fit: contain para que NO recorte ni “estire”.
   (Si prefieres que llene toda el área como banner, cambia a object-fit: cover.) */
#galleryModal .gallery-media{
  height: min(55vh, 380px);
  background: rgba(0,0,0,0.30);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px; /* evita que toque los bordes */
}

#galleryModal .gallery-img{
  width: 100%;
  height: 100%;
  object-fit: contain;   /* muestra completa, sin deformar */
  object-position: center;
  border-radius: 0;
}

/* Miniaturas */
#galleryModal .gallery-thumbs{
  display: flex;
  gap: 10px;
  padding: 10px 12px 14px;
  background: rgba(0,0,0,0.55);
}

#galleryModal .gallery-thumb{
  appearance: none;
  border: 2px solid rgba(255,255,255,0.20);
  background: transparent;
  padding: 0;
  width: 64px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

#galleryModal .gallery-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#galleryModal .gallery-thumb.is-active{
  border-color: rgba(255, 94, 20, 0.95);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* INFO: fondo blanco como ficha */
#galleryModal .gallery-info{
  background: #ffffff;
  color: #0b0f1a;
  padding: 18px 18px 22px;
}

#galleryModal .gallery-location{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .6px;
  color: rgba(2, 36, 91, 0.75);
  text-transform: uppercase;
  margin-bottom: 6px;
}

#galleryModal .gallery-info-title{
  margin: 0 0 10px;
  font-weight: 900;
  color: #0b0f1a;
  letter-spacing: .2px;
}

#galleryModal .gallery-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

#galleryModal .gallery-tag{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(2, 36, 91, 0.85);
  background: rgba(38, 41, 46, 0.06);
  border: 1px solid rgba(2, 36, 91, 0.12);
}

#galleryModal .gallery-section-title{
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  color: rgba(255, 94, 20, 0.95);
}

#galleryModal .gallery-info-desc{
  color: rgba(11, 15, 26, 0.78);
  line-height: 1.8;
}

#galleryModal .gallery-actions{
  margin: 12px 0 18px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#galleryModal .gallery-actions li{
  margin-bottom: 0;
}

#galleryModal .gallery-bullet-btn{
  width: auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 15, 26, 0.10);
  background: rgba(2, 36, 91, 0.04);
  color: rgba(11, 15, 26, 0.82);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  transition: .25s ease;
}

#galleryModal .gallery-bullet-btn:hover,
#galleryModal .gallery-bullet-btn.is-active{
  border-color: rgba(255, 94, 20, 0.40);
  background: rgba(255, 94, 20, 0.10);
  color: #0b0f1a;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

#galleryModal .gallery-bullets{
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  display: block;
}

#galleryModal .gallery-bullets li{
  margin-bottom: 8px;
  color: rgba(11, 15, 26, 0.82);
  line-height: 1.65;
}

@media (max-width: 576px){
  #galleryModal .gallery-media{ height: min(55vh, 320px); }
  #galleryModal .gallery-thumb{ width: 58px; height: 40px; }
  #galleryModal .gallery-actions{ gap: 8px; }
  #galleryModal .gallery-bullet-btn{
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Controles de la galería más visibles */
#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next{
  width: 9%;
  opacity: 1;
}

#galleryModal .carousel-control-prev-icon,
#galleryModal .carousel-control-next-icon{
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.55));
}

/* Modal del video: más limpio y centrado */
#videoModal .modal-content{
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
}

#videoModal iframe{
  display: block;
}



/* News Cards Mejora */
.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Más responsivo */
  gap: 25px;
  
}


.news-cards.mags-container{
  width: 100%;
  max-width: 1200px;   /* ajusta a tu gusto */
  margin: 70px auto;   /* auto izquierda/derecha = centrado */
  padding: 0 16px;     /* “aire” en pantallas pequeñas */
  box-sizing: border-box;
}



.card-item { cursor: pointer; transition: transform 0.3s; }
.card-item:hover { transform: translateY(-5px); }

/* =========================================
   SERVICIOS / GALERÍAS (News Cards) - estilo tipo "proyectos"
   Respeta tu paleta (--dark / --primary) y se integra al fondo fijo
========================================= */

.news-cards .gallery-card{
  border-radius: 18px;
  overflow: hidden;
  background: rgba(38, 41, 46, 0.62);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}

.news-cards .gallery-card:hover{
  transform: translateY(-6px);
}

.gallery-card-media{
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}

.gallery-card-media img{
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}

.news-cards .gallery-card:hover .gallery-card-media img{
  transform: scale(1.04);
}

.gallery-badge{
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 94, 20, 0.95); /* --primary */
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.gallery-card-body{
  padding: 16px 16px 18px;
}

.gallery-card-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.gallery-card-desc{
  margin: 0 0 14px;
  color: rgba(255,255,255,0.80);
  line-height: 1.65;
}

.gallery-card-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .4px;
}

@media (max-width: 576px){
  .gallery-card-media img{ height: 190px; }
}



/* NOTA:
   Se eliminaron estilos de un modal/carrusel "custom" antiguo (.modal, .modal-content, .prev/.next)
   porque estaban SOBREESCRIBIENDO los estilos de Bootstrap y eso provocaba que TODOS los modales
   (incluyendo el video de YouTube y la galería) se vieran desalineados (ligeramente a la izquierda).
   Bootstrap ya se encarga de centrar correctamente con .modal-dialog-centered. */







/* Forzar blanco en la sección de características */
.container-xxl .display-5, 
.container-xxl p, 
.container-xxl h4,
.container-xxl span {
    color: #FFFFFF;
}

/* Mantener el subtítulo con el color primario (el amarillo/dorado) */
.container-xxl .text-primary {
    color: var(--primary) !important;
}




.infra-card{
  max-width: 980px;                 /* ancho cómodo de lectura */
  padding: 40px 28px;
  border-radius: 18px;
  background: rgba(38, 41, 46, 0.70); /* gris corporativo semi-transparente */
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 22px 55px rgba(0,0,0,0.28);
  backdrop-filter: blur(8px);
}

.infra-kicker{
  color: rgba(255,255,255,0.75);
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 13px;
}

.infra-title{
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
}

.infra-divider{
  width: 90px;
  height: 4px;
  border-radius: 999px;
  background: #FF5E14; /* naranja corporativo */
}

.infra-text{
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.8;
}

.division-card{
  max-width: 1120px;
  padding: 46px 30px 56px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(255,94,20,0.12) 0%, rgba(255,94,20,0.03) 26%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(7,16,34,0.92) 0%, rgba(2,10,22,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 20px 48px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.division-intro{
  max-width: 760px;
  margin: 0 auto;
}

.division-pyramid{
  position: relative;
  padding: 18px 10px 10px;
}

.division-pyramid::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 72px;
  width: min(72%, 760px);
  height: calc(100% - 96px);
  transform: translateX(-50%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background:
    linear-gradient(180deg, rgba(255,94,20,0.12) 0%, rgba(255,94,20,0.04) 38%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.04);
  filter: drop-shadow(0 16px 36px rgba(0,0,0,0.22));
  opacity: 0.95;
  pointer-events: none;
}

.division-row{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 34px;
}

.division-row + .division-row{
  margin-top: 30px;
}

.division-row-top{
  margin-bottom: 8px;
}

.division-row-middle{
  justify-content: space-between;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.division-row-base{
  justify-content: space-between;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.division-item{
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 18px 28px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
    linear-gradient(180deg, rgba(11,30,63,0.92), rgba(5,15,31,0.96));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 18px 32px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.division-item:hover{
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255,94,20,0.35);
  box-shadow:
    0 24px 40px rgba(0,0,0,0.34),
    0 0 26px rgba(255,94,20,0.16);
}

.division-trigger{
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 104px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.division-badge-content{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.division-item-top{
  width: min(100%, 300px);
}

.division-item-base{
  width: min(100%, 360px);
}

.division-row-middle .division-item{
  width: min(100%, 290px);
}

.division-glow{
  position: absolute;
  inset: -30% auto auto -10%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,94,20,0.28) 0%, rgba(255,94,20,0.08) 42%, rgba(255,94,20,0) 72%);
  pointer-events: none;
}

.division-label{
  position: relative;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.division-count{
  color: rgba(255,255,255,0.72);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.division-trigger-icon{
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.division-trigger-icon::before,
.division-trigger-icon::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .25s ease;
}

.division-trigger-icon::after{
  transform: translate(-50%, -50%) rotate(90deg);
}

.division-item.is-open{
  border-color: rgba(255,94,20,0.28);
  box-shadow:
    0 28px 48px rgba(0,0,0,0.34),
    0 0 30px rgba(255,94,20,0.12);
}

.division-item.is-open .division-trigger-icon{
  background: rgba(255,94,20,0.14);
  border-color: rgba(255,94,20,0.30);
}

.division-item.is-open .division-trigger-icon::after{
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.4);
}

.division-panel{
  padding: 0 18px 18px;
}

.division-detail-media{
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
}

.division-detail-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,10,22,0.06) 0%, rgba(2,10,22,0.32) 100%);
}

.division-detail-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.division-detail-body{
  padding: 22px 8px 10px;
}

.division-detail-kicker{
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.division-detail-title{
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
}

.division-detail-text{
  margin: 0 0 20px;
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  line-height: 1.75;
}

.division-points{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.division-points li{
  position: relative;
  min-height: 100%;
  padding: 12px 14px 12px 34px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.92);
  font-size: .96rem;
  line-height: 1.5;
}

.division-points li::before{
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a4a 0%, var(--primary) 100%);
  box-shadow: 0 0 16px rgba(255,94,20,0.35);
}

.division-points-columns{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Ajuste móvil */
@media (max-width: 576px){
  .infra-card{ padding: 28px 18px; }
  .infra-title{ font-size: 1.6rem; }
  .division-card{
    padding: 30px 16px 36px;
    border-radius: 24px;
  }
  .division-pyramid::before{
    display: none;
  }
  .division-row,
  .division-row-middle,
  .division-row-base{
    max-width: none;
    flex-direction: column;
    gap: 16px;
  }
  .division-row + .division-row{
    margin-top: 16px;
  }
  .division-item,
  .division-item-top,
  .division-item-base,
  .division-row-middle .division-item{
    width: 100%;
    min-height: 86px;
    padding: 16px 18px;
  }
  .division-label{
    font-size: 1rem;
    letter-spacing: 0.06em;
  }
  .division-count{
    font-size: .72rem;
  }
  .division-detail-body{
    padding: 18px 4px 6px;
  }
  .division-points,
  .division-points-columns{
    grid-template-columns: 1fr;
  }
}




/* ===================================================
   AJUSTE DE CONTENEDORES DE CONTACTO (Fondo Oscuro)
   =================================================== */
.contact-item, 
.contact-form,
.bg-light.p-4,
.bg-light.p-5 {
    background-color: var(--dark) !important; /* Cambia el fondo a tu azul marino oscuro */
}

/* Cambia los textos secundarios, correos y leyendas a blanco para que no se pierdan */
.contact-item p,
.contact-item span,
.contact-item h5,
.bg-light.p-4 p,
.bg-light.p-5 p,
.bg-light.p-4 span,
.bg-light.p-5 span {
    color: #ffffff !important;
}




/* ===================================================
   CARRUSEL DE CLIENTES (LOGOS)
   =================================================== */
.client-carousel {
    position: relative;
    padding: 20px 0;
}

.client-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px; /* Altura fija para que todos los cuadros se vean alineados */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.client-item img {
    max-width: 85% !important;
    max-height: 85% !important;
    width: auto !important; /* Evita que Owl Carousel estire el logo a fuerza */
    height: auto !important;
    object-fit: contain; /* Ajusta el logo al recuadro sin deformarlo */
    margin: 0 auto;
}

/* Ocultar las flechas si no las necesitas, dejando solo los puntitos decorativos abajo */
.client-carousel .owl-nav {
    display: none !important;
}





/* ===================================================
   TARJETAS DE "POR QUÉ ELEGIRNOS"
   =================================================== */
.why-mags-section {
    position: relative;
    padding: 46px 34px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(255, 94, 20, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        rgba(10, 17, 30, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.why-mags-lead {
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
    line-height: 1.8;
}

.why-mags-card {
    padding: 28px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.why-mags-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 94, 20, 0.34);
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.22);
}

.why-mags-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 94, 20, 0.22), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ff7a3d;
    font-size: 1.4rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.why-mags-card h4 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
}

.why-mags-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    font-size: 0.95rem;
}

.why-mags-actions {
    margin-top: 34px;
}

.reason-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid transparent;
    transition: all 0.4s ease;
}

.reason-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary); /* El naranja que usas */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.reason-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 94, 20, 0.1); /* Fondo naranja muy suave */
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.reason-card:hover .reason-icon {
    background: var(--primary);
    color: #ffffff;
}

.reason-card h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark); /* Tu azul marino */
}

.reason-card p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #666;
}

@media (max-width: 768px) {
    .why-mags-section {
        padding: 34px 18px;
        border-radius: 24px;
    }

    .why-mags-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .why-mags-actions .btn {
        width: 100%;
        margin-right: 0 !important;
    }
}
