/********** Template CSS **********/
/* Evita que se vean los parciales sin estilos */
body.loading #topbar-container,
body.loading #header-container,
body.loading #footer-container {
  visibility: hidden;
}
.text-justy {
  text-align: justify!important;
}

:root {
    --primary: #C1181E ;
    --light: #F6F7F8;
    --dark: #1A2A36;
}

body {
    color: #222121;
}

a {
    color: #C1181E;
    text-decoration: none
}

a:hover {
    color: #5a0407
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none
}

a.topbar {
    color: #ffffff;
        font-size: 0.9rem;
    text-decoration: none
}

a.topbar:hover {
    color: #ff0008
}


.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** 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 {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.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;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: auto;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 12px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    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;
}
small .topbarsmall {
    font-size: .85em!important;
}
@media (max-width: 1440px) {
 .navbar .navbar-nav .nav-link {
    margin-right: 10px;
   
    font-size: 14px;
   
}
}
@media (max-width: 1200px) {
  

    a.topbar {
        font-size: 0.7rem!important;
}
small .topbarsmall {
    font-size: .7em;
}
.navbar .navbar-nav .nav-link {
    margin-right: 10px;
   
    font-size: 12px;
   
}
}
@media (max-width: 1024px) {
  

.navbar .navbar-nav .nav-link {
 
   
    font-size: 11px;
   
}
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }

    .d-none-btop  {
        display: none;
    }
  
}

@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 ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgb(0 0 0 / 48%);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, .9);
    border-radius: 45px;
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    border-radius: 45px;
    transition: .5s;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/contacto/Suministro_energia.png) center center no-repeat;
    background-size: cover;
}
.page-header-galeria {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/galeria/Los_Altos/4.png) center center no-repeat;
    background-size: cover;
}
.page-header-contacto {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/contacto/dragon.jpg);
      background-repeat: no-repeat;
    background-position: center 52%; 
    background-size: cover;
}
.page-header-blog {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/blog/03.jpeg) center center no-repeat;
    background-size: cover;
}

.page-header-filosofia {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/filosofia/01.jpeg) center center no-repeat;
    background-size: cover;
}
.page-header-historia {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/historia/01.jpg) ;
      background-repeat: no-repeat;
    background-position: center 90%; 
    background-size: cover;

}
.page-header-responsabilidad-social {
    background:
        linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 0.68)),
        url(../img/responsabilidad_social/banner6.jpeg);
    
    background-repeat: no-repeat;
    background-position: center 80%;
    background-size: auto;
    background-color: #000; /* rellena los lados */
}

.page-header-CP {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/centrales/1.jpeg) center center no-repeat;
    background-size: cover;
}
.page-header-PS {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/paneles_solares/bannerpanelessolares2.jpeg);
     background-repeat: no-repeat;
    background-position: center 71%; 
    background-size: cover;
}
.page-header-MEM {
    background-image: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/MEM/bannermem1.png);
    background-repeat: no-repeat;
    background-position: center 23%; 
    background-size: cover;
}

.page-header-OP {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/mantenimiento/IMG_6093.png) center center no-repeat;
    background-size: cover;
}

.page-header-AE {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/baterias/9.jpeg) center center no-repeat;
    background-size: cover;
}


.page-header-DOVE {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/galeria/Los_Altos/9.jpeg) center center no-repeat;
    background-size: cover;
}
.page-header-MC {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/galeria/DSP/IMG_6101.png) center center no-repeat;
    background-size: cover;
}
.page-header-MR {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/galeria/Los_Altos/9.jpeg) center center no-repeat;
    background-size: cover;
}
.page-header-IA {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/galeria/Los_Altos/9.jpeg) center center no-repeat;
    background-size: cover;
}
.page-header-CM {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/galeria/Los_Altos/9.jpeg) center center no-repeat;
    background-size: cover;
}
.page-header-DSI {
     background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, 68%)), url(../img/galeria/Los_Altos/9.jpeg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1800px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-icon {
    position: relative;
    margin: -50px 0 25px 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 100px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover .service-icon {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 1000px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1360px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-img::before,
.portfolio-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    background: var(--dark);
    transition: .5s;
}

.portfolio-img::before {
    left: 50%;
}

.portfolio-img::after {
    right: 50%;
}

.portfolio-item:hover .portfolio-img::before {
    width: 51%;
    left: 0;
}

.portfolio-item:hover .portfolio-img::after {
    width: 51%;
    right: 0;
}

.portfolio-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    transition-delay: .3s;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1850px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    border-radius: 8px 60px 0 0;
}

.team-item .team-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #FFFFFF;
    transition: .5s;
}


/*** 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: 550px; 
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    /* opacity: 0; */
    transition: .5s;
    z-index: 1;
}

@media (max-width: 992px) {
.testimonial-carousel .owl-nav {
   display: none;
}
}

.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: 450px;
    /* height: 400px; */
    border-radius: 5%;
}

.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);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    color: #9B9B9B;
    border: 1px solid #9B9B9B;
    border-radius: 38px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #9B9B9B;
    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: #FFFFFF;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}


/* home banner video */

.bg-video-media {
    width: 100%;        /* ocupa todo el ancho del contenedor */
    height: 100vh;      /* cámbialo al alto que necesites */
    object-fit: cover;  /* centra y recorta para cubrir sin deformar */
  }


  /* botón/asa para arrastrar */
.drag-badge{
  position:absolute; right:12px; top:12px; z-index:1000;
}
.drag-handle{
  display:inline-flex; align-items:center; gap:.5rem;
  background:rgba(0,0,0,.55); color:#fff; padding:.35rem .6rem;
  border-radius:999px; cursor:grab; user-select:none; backdrop-filter:blur(4px);
}
.dragging .drag-handle{ cursor:grabbing; }

/* placeholder al arrastrar */
.sortable-placeholder{
  height:80px; border:2px dashed #0d6efd; margin:12px 0; border-radius:12px;
  background:rgba(13,110,253,.06);
}

/* cada sección marcada como arrastrable */
.draggable-section{ position:relative; }


/* compensa el navbar sticky en los anclajes nativos */
.draggable-section { scroll-margin-top: var(--nav-h, 72px); }


/* hover links google maps */
.address-link {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.address-link:hover {
  color: #ffc107 !important; /* Amarillo Bootstrap */
  text-shadow: 0 0 6px rgba(255, 193, 7, 0.7);
  text-decoration: none;
}

.address-link:hover i {
  color: #ffc107 !important; /* Icono también cambia */
}


/* colores */
.color-white {
    color: #FFFFFF;
}


/* Banner tamaño */


.owl-carousel-item video,
.owl-carousel-item img {
  height: 60vh;       /* ajusta el porcentaje que quieras */
  object-fit: cover;  /* asegura que no se deforme */
}

p.text-primary.mb-0 {
    font-weight: bold;
    font-size: large;
}

.link-contacto {
    color: cornflowerblue;
    font-weight: 600;
}
.link-contacto:hover {
    color: #C1181E;
    font-weight: 600;
}

.iconwhat {
    color: green;
}

.text-green {
    color: green !important;
}
/* Badge circular iconos */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  min-width: 60px;            
  border-radius: 50%;
  background-color: #32C36C;  
  color: #ffffff;             
  font-size: 24px;            
  box-shadow: 0 6px 16px rgba(50, 195, 108, 0.25);
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.icon-badge:hover {
  background-color: #28a745;  /* verde más oscuro al hover */
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 24px rgba(40, 167, 69, 0.3);
}

.feature-text h5 {
  line-height: 1.4;
  font-weight: 500;
}



/* Centrar el contenedor c */

/* Desktop */

.owl-carousel-item img,
.owl-carousel-item video {
  width: 100%;          
  height: 70vh;         
  object-fit: cover;    
  object-position: center; 
  border-radius: 0;    
}
/* Moil */
@media (max-width: 768px) {
  .owl-carousel-item img,
  .owl-carousel-item video {
    height: 60vh; 
}
}
@media (max-width: 576px) {
  .icon-badge {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 20px;
  }
  .feature-text .ms-4 {
    margin-left: 0.9rem !important;
  }
}



/* Galeria */
/* Hover efectos en imágenes de la galería */
.gallery-section a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px; /* opcional */
}

.gallery-section a img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Icono en hover */
.gallery-section a::after {
  content: "\f002"; /* ícono lupa Font Awesome */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 2rem;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Efecto al pasar el mouse */
.gallery-section a:hover img {
  transform: scale(1.1);
  filter: brightness(70%);
}

.gallery-section a:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


.bg-video-media2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bg-video-media3 {
    width: 100%;
    height: 120vh;
    object-fit: cover;
}

.br-banner {
    border-radius: 2%;
}
/* linea de timepo */

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css");
.timeline .dot {
	height: 25px;
	width: 25px;
}
.timeline .icon i {
	padding: 10px;
	font-size: 60px;
	line-height: 1;
}
.timeline .date {
	width: 150px;
	margin-right: -25px;
	margin-top: 24px;
	border-top: 3px solid lightgray;
	text-align: right;
	font-size: 20px;
}
.timeline .card-body {
	background: #fefefe;
}
/*Even*/
.event:nth-child(even) .date {
	margin-left: -25px;
	text-align: left;
}
.event:nth-child(even) .icon i {
	margin-left: 45px;
}
/*Colors*/
.bg-color1 {
	background: red;
	color: #fff;
}
.txt-color1 {
	color: red;
	border-color: red !important;
}
.bg-color2 {
	background: rgb(2, 2, 128);
	color: #fff;
}
.txt-color2 {
	color: rgb(8, 8, 134);
	border-color: rgb(24, 24, 155) !important;
}

/*Animation*/
.timeline .detail,
.timeline .icon {
	visibility: hidden;
	opacity: 0;
	transition: all 0.5s ease-in-out;
}

.timeline .event:nth-child(odd) .detail,
.timeline .event:nth-child(even) .icon {
	transform: translate3d(200px, 0, 0);
}

.timeline .event:nth-child(even) .detail,
.timeline .event:nth-child(odd) .icon {
	transform: translate3d(-200px, 0, 0);
}

.timeline .event.in-view .detail,
.timeline .event.in-view .icon {
	transform: none;
	visibility: visible;
	opacity: 1;
}

.timeline .dot {
	animation: scaleAnimation 1s;
}

@keyframes scaleAnimation {
	0% {
		transform: scale(0);
	}
	100% {
		transform: scale(1);
	}
}

/* linea de timepo fin */


/* pdf responsabilidad social  */

.pdf-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: .5rem;
}
.pdf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}
.pdf-thumb .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.747);
  color: #fff;
  font-weight: 600;
  opacity: 0;
  transition: opacity .25s ease;
  text-align: center;
}
.pdf-thumb:hover img { transform: scale(1.03); filter: blur(1px); }
.pdf-thumb:hover .overlay { opacity: 1; }

/* pdf responsabilidad social FIN */

/* Colores oficiaLE REDES */


  :root{
    --yt:#FF0000;
    --in:#0A66C2;
    --ig:#E4405F; 
    --xfg:#FFFFFF;
    --btn-border: rgba(255,255,255,.28);
  }


  .bg-dark .btn.btn-link,
  .footer .btn.btn-outline-light.btn-social{
    border-color: transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
  }
  .btn i, .btn svg{ transition: color .2s ease, fill .2s ease, transform .12s ease; }

  .icon-x svg{ display:inline-block; vertical-align:-.125em; width:1em; height:1em; fill:currentColor; }


  .is-youtube i{ color: var(--yt); }
  .is-linkedin i{ color: var(--in); }
  .is-instagram i{ color: var(--ig); }       
  .is-x.icon-x svg{ color: var(--xfg); }     


  .btn:focus-visible{ outline:2px solid #fff; outline-offset:2px; }

  .bg-dark .btn.btn-link.is-youtube:hover i,
  .bg-dark .btn.btn-link.is-youtube:focus-visible i{ color:#ff4d4d; transform: translateY(-1px); }

  .bg-dark .btn.btn-link.is-linkedin:hover i,
  .bg-dark .btn.btn-link.is-linkedin:focus-visible i{ color:#2b8bdc; transform: translateY(-1px); }

  .bg-dark .btn.btn-link.is-instagram:hover i,
  .bg-dark .btn.btn-link.is-instagram:focus-visible i{ color:#ff6a84; transform: translateY(-1px); }

  .bg-dark .btn.btn-link.is-x.icon-x:hover svg,
  .bg-dark .btn.btn-link.is-x.icon-x:focus-visible svg{ color:#e6e6e6; transform: translateY(-1px); }

  .footer .btn.btn-outline-light.btn-social.is-youtube:hover,
  .footer .btn.btn-outline-light.btn-social.is-youtube:focus-visible{
    background: var(--yt); border-color: var(--yt);
  }
  .footer .btn.btn-outline-light.btn-social.is-youtube:hover i,
  .footer .btn.btn-outline-light.btn-social.is-youtube:focus-visible i{ color:#fff; transform: translateY(-1px); }

  .footer .btn.btn-outline-light.btn-social.is-linkedin:hover,
  .footer .btn.btn-outline-light.btn-social.is-linkedin:focus-visible{
    background: var(--in); border-color: var(--in);
  }
  .footer .btn.btn-outline-light.btn-social.is-linkedin:hover i,
  .footer .btn.btn-outline-light.btn-social.is-linkedin:focus-visible i{ color:#fff; transform: translateY(-1px); }

  .footer .btn.btn-outline-light.btn-social.is-instagram:hover,
  .footer .btn.btn-outline-light.btn-social.is-instagram:focus-visible{
    background: var(--ig); border-color: var(--ig);
  }
  .footer .btn.btn-outline-light.btn-social.is-instagram:hover i,
  .footer .btn.btn-outline-light.btn-social.is-instagram:focus-visible i{ color:#fff; transform: translateY(-1px); }

  .footer .btn.btn-outline-light.btn-social.is-x:hover,
  .footer .btn.btn-outline-light.btn-social.is-x:focus-visible{
    background:#ffffff; border-color:#ffffff;
  }
  .footer .btn.btn-outline-light.btn-social.is-x:hover svg,
  .footer .btn.btn-outline-light.btn-social.is-x:focus-visible svg{
    color:#000000; transform: translateY(-1px);
  }

  .bg-dark .btn:hover, .footer .btn:hover{ transform: translateY(-1px); }

  @media (prefers-reduced-motion: reduce){
    .btn, .btn i, .btn svg{ transition:none; }
  }



/* FIN COLORES OFICIALES */


/* ===== AJUSTE RESPONSIVE DEL LOGO ===== */

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  height: auto;
}

/* La imagen del logo se adapta al contenedor */
.logo-dragon {
  width: clamp(140px, 18vw, 220px); 
  height: auto;
  object-fit: contain;
  transition: width 0.3s ease;
}

.navbar-brand {
  min-height: 70px; 
}

.navbar-brand img {
  display: block;
}

.w-bannerresp {
        width: 70%!important;
  }

/* ==========================================================
   TOPBAR MÓVIL menu hamburguesa
   ========================================================== */
@media (max-width: 991.98px) {
  .topbar-mobile {
    background-color: #fff;
    border-top: 2px solid #C1181E;
  }

  .topbar-mobile a {
    color: #212529 !important; 
    font-weight: 500;
    text-decoration: none;
  }

  .topbar-mobile i {
    font-size: 1.1rem;
    color: inherit; 
  }

  .topbar-mobile .social-row,
  .topbar-mobile .d-flex.flex-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }

  .topbar-mobile .social-link {
    font-size: 1.3rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .topbar-mobile .social-link:hover {
    transform: scale(1.1);
    opacity: 0.85;
  }

  .topbar-mobile .social-link.youtube {
    color: #ff0000;
  }

  .topbar-mobile .social-link.social-x {
    color: #000;
  }

  .topbar-mobile .social-link.linkedin {
    color: #0077b5;
  }

  .topbar-mobile .social-link.instagram {
    color: #c13584;
  }

  .topbar-mobile .social-link.social-x svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
  }
}


  /* General del acordeón GALERIA */
  #galeriaAccordion .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-bottom: 3px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    background: #000000;
  }

  #galeriaAccordion .accordion-button {
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    color: #fff;
  }

  /* Alternar colores de fondo */
  #galeriaAccordion .accordion-item:nth-child(odd) .accordion-button {
    background-color: #b30000; 
  }
  #galeriaAccordion .accordion-item:nth-child(even) .accordion-button {
    background-color: #111; 
  }

  /* Color al pasar el mouse */
  #galeriaAccordion .accordion-item:nth-child(odd) .accordion-button:hover {
    background-color: #d10000;
  }
  #galeriaAccordion .accordion-item:nth-child(even) .accordion-button:hover {
    background-color: #222;
  }

  /* Mantener color al estar abierto */
  #galeriaAccordion .accordion-button:not(.collapsed) {
    color: #fff;
  }

  /* Íconos de Bootstrap */
  #galeriaAccordion .accordion-button i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
  }

  /* Girar ícono al abrir */
  #galeriaAccordion .accordion-button:not(.collapsed) i {
    transform: rotate(180deg);
  }

  /* Quitar el chevron por defecto */
  #galeriaAccordion .accordion-button::after {
    display: none;
  }

  /* Fade-in animación */
  #galeriaAccordion .accordion-body {
    padding: 0;
    animation: fadeIn 0.6s ease-in-out;
    background-color: #000000;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* Nuestros Servicios  */


.service-link {
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.service-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  height: 100%;
}

.service-item .position-relative {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Altura visual consistente */
.service-item h3 {
  min-height: 65px; 
}

.service-item p {
  flex-grow: 1;
  min-height: 100px; 
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  opacity: 0.97;
}

.service-icon {
  background: #fff;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -35px;
  margin-bottom: 15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}


.service-link:hover .service-item {
  filter: brightness(1.05);
}


/* por que elegirnos */



.icon-badge:hover {
  background: #C1181E;
  color: #fff;
  transform: scale(1.1);
}

/* ====== Nuestras Ventajas ====== */
.ventajas-container {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
}

.ventaja-texto {
  position: absolute;
  font-weight: 600;
  color: #0a0a0a;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.ventaja-texto:hover {
  transform: scale(1.05);
}

/* Posiciones alrededor del círculo ventajas mem */
/* ====== Nuestras Ventajas ====== */
.ventajas-container {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
}

.ventaja-texto {
  position: absolute;
  font-weight: 600;
  color: #0a0a0a;
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.ventaja-texto:hover {
  transform: scale(1.05);
}

/* ====== Posiciones alrededor del círculo ====== */
.ventaja-1 {
  top: 20%;
  left: -38%;
}

.ventaja-2 {
  top: 20%;
  right: -40%;
}

.ventaja-3 {
  bottom: 20%;
  right: -42%;
}

.ventaja-4 {
  bottom: 20%;
  left: -52%;
}

.ventaja-texto::before {
  content: "";
  position: absolute;
  width: 45px;
  height: 1.5px;
  background-color: #d40e0e;
  top: 50%;
  transform: translateY(-50%);
}

.ventaja-1::before {
  right: -45px;
}

.ventaja-2::before {
  left: -45px;
}

.ventaja-3::before {
  left: -45px;
}

.ventaja-4::before {
  right: -45px;
}


.bg-danger {
    background-color: #C1181E  !important;
}

/* =============================
   Cifras 
   ============================= */
.cifras-container .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
  gap: 1rem;
}



.cifras-container .btn-lg-square {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cifras-container h1 {
  font-weight: 700;
}

.cifras-container h5{
  font-weight:600;
  margin-top:.5rem;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;        
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: calc(1.25em * 2);
}



.cifras-container span {
  display: block;
  line-height: 1.4;
}



.h-125 {
  height: 125%!important;
}

.min-h {
  min-height: 600px;
}


/* ERESPONSIVE n pantallas más grandes, aumenta ligeramente */
@media (min-width: 1200px) {
  .logo-dragon {
    width: clamp(120px, 10vw, 260px);
  }
    .cifras-container .col-md-6.col-lg-3 {
    flex: 0 0 19%;
    max-width: 19%;
  }
}
@media (min-width: 1024px) {
  .logo-dragon {
    width: clamp(120px, 10vw, 260px);
  }
}
@media (max-width: 1200px) {
.bg-video-media3 {
    height: 150vh;
}
 .cifras-container .col-md-6.col-lg-3 {
    flex: 0 0 49%;
    max-width: 60%;
  }
}
@media (max-width: 1024px) {
  .bg-video-media3 {
    height: 50vh;
}
}
/* En tablets medianas */
@media (max-width: 991.98px) {
  .h-125 {
  height: 100%!important;
}
  .logo-dragon {
    width: clamp(130px, 22vw, 180px);
  }
    .w-bannerresp {
        width: 80%!important;
  }
     .ventajas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ventaja-texto {
    position: static;
    margin-top: 15px;
    box-shadow: none;
    background: transparent;
    font-size: 1rem;
  }

  .ventaja-texto::before {
    display: none;
  }

  .ventaja-texto:hover {
    transform: none;
  }
   .cifras-row .cifras-item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}
@media (max-width: 768px) {
  .cifras-container .col-md-6.col-lg-3 {
    flex: 0 0 45%;
    max-width: 45%;
  }
  .min-h {
  min-height: 400px;
}
}



/* En móviles pequeños */
@media (max-width: 576px) {
   .min-h {
  min-height: 370px;
}
  .logo-dragon {
    width: clamp(110px, 40vw, 150px);
  }
   .w-bannerresp {
        width: 90%!important;
  }
    .cifras-container h5{
    -webkit-line-clamp: unset; 
    min-height:auto;
  }
   
}

@media (max-width: 480px) {
  .cifras-container .col-md-6.col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


