.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}


:root {
  /* Fonts */
  --default-font: "Lato", sans-serif;
  --heading-font: "Lato", sans-serif;
  --nav-font: "Lato", sans-serif;

  /* Variable para altura del carousel */
  --carousel-height: 640px;

  /* Global Colors */
  --background-color: #ffffff;
  --default-color: #5c6670;
  --heading-color: #1b2f45;
  --accent-color: #009bde;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  /* Nav Menu Colors */
  --nav-color: rgba(255, 255, 255, 255);
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #5c6670;
  --nav-dropdown-hover-color: #262c2e;

  /* Smooth scroll */
  scroll-behavior: smooth;
}
/*color del texto directorio*/
#Directorio .card-body > p {
  color: #3e444a; /* el color que quieras */
 
}


/*color de la tabla empresa*/
.table {
  --bs-emphasis-color: #5c6670; /* el color que quieras */
}
/* Color Presets */
.light-background {
  --background-color: #f6fcfe;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #5c6670;
  --default-color: #ffffff;
  --heading-color: #ffffff;
 /* --surface-color: #254160;*/
  --contrast-color: #ffffff;
}

/* Ejes estratégicos border style */
.eje-item {
  border-color: #009bde !important;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}


/* =========================
   TIPOGRAFÍA GLOBAL
   ========================= */

/* H2 – títulos de sección */
h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

/* H3 – subtítulos */
h3 {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.25;
}

/* H4 – títulos pequeños */
h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Texto normal */
p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/*--------------------------------------------------------------
# PHP Email Form Messages
--------------------------------------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Global Header  ✅ (FIJO #5c6670)
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  --heading-color: #ffffff;

  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo { line-height: 1; }

.header .logo img {
  max-height: 60px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 36px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

/* Global Header on Scroll ✅ (MISMO COLOR) */
.scrolled .header {
  --background-color: #5c6670;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/* Opcional: Asegura que los controles del mapa se queden un nivel más abajo */
.leaflet-top, .leaflet-bottom {
    z-index: 900 !important; /* Leaflet usa 1000 por defecto */
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/

/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu { padding: 0; }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li { position: relative; }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 1.125rem;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }
 

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a { padding-right: 0; }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 0;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0,0,0,0.1);
  }

  .navmenu .dropdown ul li { min-width: 200px; }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i { font-size: 12px; }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover > a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 30px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0,0,0,0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul { background-color: rgba(33, 37, 41, 0.1); }

  .navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active { overflow: hidden; }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu > ul { display: block; }
}

@media (max-width: 1199px){

  /* solo cuando el menu esta abierto */
  .mobile-nav-active .navmenu > ul{
    bottom: auto !important;        /* quita el bottom fijo */
    height: auto !important;        /* ajusta al contenido */
    max-height: calc(100svh - 80px) !important; /* limite y scroll si crece */
    overflow-y: auto !important;
  }

}

/* =========================================
   HOME (solo index): header oscuro SOLO al inicio
   ========================================= */

.home-page:not(.scrolled) .header{
  --background-color: rgba(0, 0, 0, 0.80); /* ⬅ oscuridad suave */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Al hacer scroll, usa tu estilo scrolled (y quitamos blur) */
.home-page.scrolled .header{
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (max-width: 1199px){
  /* en home y sin scroll: mantenemos oscuridad pero SIN blur */
  .home-page:not(.scrolled) .header{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* y si el menú está abierto, tampoco blur (para evitar bugs) */
  body.mobile-nav-active .header{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color:  #ffffff;
  background-color:  #5c6670;
  font-size: 12px;
  position: relative;
}

.footer .footer-top { padding-top: 10px; }

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
  padding: 10px;
}

.footer .footer-about .logo img {
  max-height: 60px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
}

.footer .footer-about p {
  font-size: 1rem;
  font-family: var(--heading-font);
}

.footer .social-links a {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, black 50%);
}

.footer h4 {
  font-size: 18px;
  font-weight: bold;
  position: relative;
  padding-bottom: 5px;
}

.footer .footer-links { margin-bottom: 30px; }

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child { padding-top: 0; }

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover { color: var(--accent-color); }

.footer .footer-contact p { margin-bottom: 5px; font-size: 16px; }

.footer .copyright {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  margin-top: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.footer .copyright p { margin-bottom: 0; }

.footer .credits {
  margin-top: 5px;
  font-size: 10px;
}




/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--accent-color);
  border-top-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0 !important; }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title{
  min-height: 300px;              /* ⬅ TODOS iguales */
  padding: 0;                     /* ya no usamos padding para altura */
  display: flex;
  align-items: center;            /* centra vertical */
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Overlay desactivado (como lo tienes) */
.page-title:before {
  display: none;
}

/* Imagen LCP como fondo real */
.page-title .page-title-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Contenido arriba */
.page-title .container{
  padding-top: 80px;              /* separación desde el header */
  padding-bottom: 40px;
  position: relative;
  z-index: 2;
}

.page-title h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li { padding-left: 10px; }

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/* Opcional: evita que dark-background meta fondo encima del <img> */
.page-title.dark-background{
  background: none !important;
}

/* Responsive recomendado */
@media (max-width: 768px){
  .page-title{
    padding: 90px 0 40px 0;
  }
}
.page-title{
  --heading-color: #ffffff;
  --default-color: #ffffff;
}

.page-title h1,
.page-title h2,
.page-title h3,
.page-title h4,
.page-title p,
.page-title .breadcrumbs,
.page-title .breadcrumbs a{
  color: #ffffff !important;
}
/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section, .section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section, .section { scroll-margin-top: 66px; }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {text-align: justify; 
    margin-bottom: 0 !important;
    margin-top: 0 !important;  /* Asegura que no sea el margen de arriba */
    padding-bottom: 0 !important; /* A veces hay padding */
    line-height: 1.4 !important;}

/*hero aqui !*/


/*--------------------------------------------------------------
# Why Us Section
--------------------------------------------------------------*/
.why-us .img-bg {
  min-height: 500px;
  position: relative;
}

.why-us .img-bg img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.why-us .slides {
  background-color: color-mix(in srgb, var(--default-color), transparent 97%);
}

.why-us h3 { font-size: 24px; font-weight: 700; }
.why-us h4 {
  font-size: 18px;
  font-weight: 300;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.why-us .swiper {
  margin: 140px 140px 120px 140px;
  overflow: hidden;
}

.why-us .swiper-wrapper { height: auto; }

.why-us .swiper-button-prev:after,
.why-us .swiper-button-next:after {
  font-size: 24px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.why-us .swiper-button-prev { left: 80px; }
.why-us .swiper-button-next { right: 80px; }

.why-us .swiper-pagination {
  margin-top: 30px;
  position: relative;
}

.why-us .swiper-pagination .swiper-pagination-bullet {
  background-color: color-mix(in srgb, var(--default-color), transparent 50%);
}
.why-us .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

@media (max-width: 1200px) {
  .why-us .swiper { margin: 60px 60px 40px 60px; }
  .why-us .swiper-button-prev,
  .why-us .swiper-button-next { display: none; }
}

@media (max-width: 575px) {
  .why-us .swiper { margin: 40px 40px 20px 40px; }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  position: relative;
  height: 100%;
  margin-bottom: 30px;
}

.services .service-item .icon { margin-right: 20px; }

.services .service-item .icon i {
  color: var(--accent-color);
  font-size: 40px;
  line-height: 0;
  transition: 0.3s;
}

.services .service-item:hover .icon i { color: var(--accent-color); }

.services .service-item .title {
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.375rem;
  transition: 0.3s;
}

.services .service-item .description {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 10px;
  
}

.services .service-item .readmore {
  display: flex;
  align-items: center;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  transition: 0.3s;
  font-weight: 700;
  font-size: 14px;
}

.services .service-item .readmore i { margin-left: 8px; }

.services .service-item:hover .title,
.services .service-item:hover .readmore,
.services .service-item:hover .icon i {
  color: var(--accent-color);
}


/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action {
  padding: 80px 0;
  position: relative;
  clip-path: inset(0);
}

.call-to-action img {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.call-to-action:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 50%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.call-to-action .container { position: relative; z-index: 3; }

.call-to-action h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--default-color);
}

.call-to-action p { color: var(--default-color); }

.call-to-action .cta-btn {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
}

.call-to-action .cta-btn:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, black 15%);
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
}

.features .icon-list i {
  margin-right: 10px;
  font-size: 24px;
  line-height: 1;
}

.features .icon-list span {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.features .phone-wrap { position: absolute; right: 0; }

@media (max-width: 768px) {
  .features .phone-wrap { position: relative; }
}

.features .phone-wrap img { width: 340px; }

@media (max-width: 992px) {
  .features .phone-wrap img { margin-top: 30px; }
}

@media (max-width: 768px) {
  .features .phone-wrap img { width: 100%; }
}

.features .details {
  margin-top: 80px;
  padding: 120px 0;
  background-color: color-mix(in srgb, var(--default-color), transparent 97%);
}

.features .details h4 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.features .details p {
  margin-bottom: 20px;
  font-size: 15px;
}

.features .details .btn-get-started {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-family: var(--heading-font);
  display: inline-block;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 10px 32px;
  border-radius: 50px;
  transition: 0.5s;
}

.features .details .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Recent Posts Section
--------------------------------------------------------------*/
.recent-posts .post-box {
  transition: 0.3s;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.recent-posts .post-box .post-img {
  overflow: hidden;
  position: relative;
  height: 200px;
}

.recent-posts .post-box .post-img img {
  transition: 0.5s;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.recent-posts .post-box .meta { margin-top: 15px; }

.recent-posts .post-box .meta .post-date {
  font-size: 15px;
  font-weight: 400;
  color: var(--accent-color);
}

.recent-posts .post-box .meta .post-author {
  font-size: 15px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.recent-posts .post-box .post-title {
  color: var(--heading-color);
  font-size: 18px;
  font-weight: 700;
  margin: 15px 0 0 0;
  position: relative;
  transition: 0.3s;
}

.recent-posts .post-box p {
  margin: 15px 0 0 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.recent-posts .post-box .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  margin-top: 15px;
}

.recent-posts .post-box .readmore i {
  line-height: 0;
  margin-left: 4px;
  font-size: 18px;
}

.recent-posts .post-box:hover .post-title { color: var(--accent-color); }
.recent-posts .post-box:hover .post-img img { transform: scale(1.1); }

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h3 {
  font-size: 2rem;
  font-weight: 700;
}

.about .content p {
  margin: 30px 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding: 0 0 15px 0;
  font-weight: 400;
  display: flex;
}

.about .content ul i {
  color: var(--accent-color);
  font-size: 1.25rem;
  line-height: 1.2;
  margin-right: 0.5rem;
}

/*--------------------------------------------------------------
# Service Cards Section
--------------------------------------------------------------*/
.service-cards .card-item {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  position: relative;
  border-radius: 0;
}

.service-cards .card-item .card-bg {
  min-height: 300px;
  position: relative;
}

.service-cards .card-item .card-bg img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.service-cards .card-item .card-body { padding: 30px; }

.service-cards .card-item h4 {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
}

.service-cards .card-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonial-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0 20px rgba(0, 0, 0, 0.1);
  box-sizing: content-box;
  padding: 30px;
  margin: 40px 30px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: 0.3s;
}

.testimonials .testimonial-item .stars { margin-bottom: 15px; }

.testimonials .testimonial-item .stars i { color: #ffc107; margin: 0 1px; }

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  border: 4px solid var(--background-color);
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
}

.testimonials .swiper-wrapper { height: auto; }

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.testimonials .swiper-slide { opacity: 0.3; }

@media (max-width: 1199px) {
  .testimonials .swiper-slide-active { opacity: 1; }
  .testimonials .swiper-pagination { margin-top: 0; }
  .testimonials .testimonial-item { margin: 40px 20px; }
}

@media (min-width: 1200px) {
  .testimonials .swiper-slide-next {
    opacity: 1;
    transform: scale(1.12);
  }
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .service-box {
  background-color: var(--surface-color);
  padding: 20px;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
}

.service-details .service-box + .service-box { margin-top: 30px; }

.service-details .service-box h4 {
  font-size: 20px;
  font-weight: 700;
  border-bottom: 2px solid color-mix(in srgb, var(--default-color), transparent 92%);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.service-details .services-list { background-color: var(--surface-color); }

.service-details .services-list a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-top: 15px;
  transition: 0.3s;
}

.service-details .services-list a:first-child { margin-top: 0; }

.service-details .services-list a i {
  font-size: 16px;
  margin-right: 8px;
  color: var(--accent-color);
}

.service-details .services-list a.active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.service-details .services-list a.active i { color: var(--contrast-color); }

.service-details .services-list a:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
  color: var(--accent-color);
}

.service-details .download-catalog a {
  color: var(--default-color);
  display: flex;
  align-items: center;
  padding: 10px 0;
  transition: 0.3s;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.service-details .download-catalog a:first-child { border-top: 0; padding-top: 0; }
.service-details .download-catalog a:last-child { padding-bottom: 0; }

.service-details .download-catalog a i {
  font-size: 24px;
  margin-right: 8px;
  color: var(--accent-color);
}

.service-details .download-catalog a:hover { color: var(--accent-color); }

.service-details .help-box {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  margin-top: 30px;
  padding: 30px 15px;
}

.service-details .help-box .help-icon { font-size: 48px; }
.service-details .help-box h4,
.service-details .help-box a { color: var(--contrast-color); }

.service-details .services-img { margin-bottom: 20px; }

.service-details h3 { font-size: 26px; font-weight: 700; }
.service-details p { font-size: 15px; }

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  margin: 0 10px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child { margin-left: 0; }
.portfolio .portfolio-filters li:last-child { margin-right: 0; }

@media (max-width: 575px) {
  .portfolio .portfolio-filters li { font-size: 14px; margin: 0 5px; }
}

.portfolio .portfolio-item { position: relative; }

.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: color-mix(in srgb, var(--background-color), transparent 10%);
  padding: 15px;
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 50px;
  font-size: 24px;
  top: calc(50% - 14px);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: 0.3s;
  line-height: 0;
}

.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-item .portfolio-info .details-link {
  right: 14px;
  font-size: 28px;
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  bottom: 20px;
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img { width: 100%; }

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0,0,0,0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li { margin-top: 10px; }

.portfolio-details .portfolio-description { padding-top: 30px; }

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  background-position: left center;
  background-repeat: no-repeat;
  position: relative;
}

@media (max-width: 640px) {
  .contact {
    background-position: center 50px;
    background-size: contain;
  }
}

.contact:not(.curriculum-section):before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

.contact .info-item + .info-item { margin-top: 40px; }

.contact .info-item i {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .php-email-form { height: 100%; }

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Blog Posts Section
--------------------------------------------------------------*/
.blog-posts article {
  background-color: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 30px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.blog-posts .post-img {
  max-height: 240px;
  margin: -30px -30px 15px -30px;
  overflow: hidden;
}

.blog-posts .post-category {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 10px;
}

.blog-posts .title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.blog-posts .title a {
  color: var(--heading-color);
  transition: 0.3s;
}

.blog-posts .title a:hover { color: var(--accent-color); }

.blog-posts .post-author-img {
  width: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.blog-posts .post-author { font-weight: 600; margin-bottom: 5px; }

.blog-posts .post-date {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Blog Pagination Section
--------------------------------------------------------------*/
.blog-pagination {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-pagination li { margin: 0 5px; transition: 0.3s; }

.blog-pagination li a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-pagination li a.active,
.blog-pagination li a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details { padding-bottom: 30px; }

.blog-details .article {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
}

.blog-details .title {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 30px 0;
}

.blog-details .content { margin-top: 20px; }

.blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.blog-details .content blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog-details .content blockquote p {
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog-details .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog-details .meta-top ul li+li { padding-left: 20px; }

.blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .meta-bottom a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}
.blog-details .meta-bottom a:hover { color: var(--accent-color); }

.blog-details .meta-bottom .cats,
.blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog-details .meta-bottom .cats { padding: 0 20px 0 0; }

.blog-details .meta-bottom .cats li,
.blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--default-color);
  content: ",";
}

.blog-details .meta-bottom .share { font-size: 16px; }
.blog-details .meta-bottom .share i { padding-left: 5px; }

/*--------------------------------------------------------------
# Blog Author Section
--------------------------------------------------------------*/
.blog-author { padding: 10px 0 40px 0; }

.blog-author .author-container {
  background-color: var(--surface-color);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.blog-author img { max-width: 120px; margin-right: 20px; }

.blog-author h4 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 0px;
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-author .social-links { margin: 0 10px 10px 0; }

.blog-author .social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-right: 5px;
}

.blog-author p {
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Blog Comments Section
--------------------------------------------------------------*/
.blog-comments { padding: 10px 0; }
.blog-comments .comments-count { font-weight: bold; }

.blog-comments .comment {
  margin-top: 30px;
  position: relative;
}

.blog-comments .comment .comment-img { margin-right: 14px; }
.blog-comments .comment .comment-img img { width: 60px; }

.blog-comments .comment h5 { font-size: 16px; margin-bottom: 2px; }

.blog-comments .comment h5 a {
  font-weight: bold;
  color: var(--default-color);
  transition: 0.3s;
}
.blog-comments .comment h5 a:hover { color: var(--accent-color); }

.blog-comments .comment h5 .reply {
  padding-left: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-comments .comment h5 .reply i { font-size: 20px; }

.blog-comments .comment time {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 5px;
}

.blog-comments .comment.comment-reply { padding-left: 40px; }

/*--------------------------------------------------------------
# Comment Form Section
--------------------------------------------------------------*/
.comment-form { padding-top: 10px; }

.comment-form form {
  background-color: var(--surface-color);
  margin-top: 30px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.comment-form form h4 {
  font-weight: bold;
  font-size: 22px;
}

.comment-form form p { font-size: 14px; }

.comment-form form input {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  font-size: 14px;
  border-radius: 4px;
  padding: 10px 10px;
}

.comment-form form input:focus {
  color: var(--default-color);
  background-color: var(--surface-color);
  box-shadow: none;
  border-color: var(--accent-color);
}

.comment-form form input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form textarea {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
  height: 120px;
}

.comment-form form textarea:focus {
  color: var(--default-color);
  box-shadow: none;
  border-color: var(--accent-color);
  background-color: var(--surface-color);
}

.comment-form form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form .form-group { margin-bottom: 25px; }

.comment-form form .btn-primary {
  border-radius: 4px;
  padding: 10px 20px;
  border: 0;
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.comment-form form .btn-primary:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widgets-container { margin: 60px 0 30px 0; }

.widget-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 600;
  padding: 0 0 10px 0;
  margin: 0 0 20px 0;
  position: relative;
}

.widget-title:before {
  content: "";
  position: absolute;
  display: block;
  height: 2px;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  left: 0;
  right: 0;
  bottom: 1px;
}

.widget-title:after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  left: 0;
  bottom: 1px;
}

.widget-item { margin-bottom: 40px; }
.widget-item:last-child { margin-bottom: 0; }

.search-widget form {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  padding: 3px 10px;
  position: relative;
  transition: 0.3s;
}

.search-widget form input[type=text] {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  width: calc(100% - 40px);
  background-color: var(--background-color);
  color: var(--default-color);
}

.search-widget form input[type=text]:focus { outline: none; }

.search-widget form button {
  background: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 15px;
  margin: -1px;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
  line-height: 0;
}

.search-widget form button i { line-height: 0; }

.search-widget form button:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.search-widget form:is(:focus-within) { border-color: var(--accent-color); }

.categories-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-widget ul li { padding-bottom: 10px; }
.categories-widget ul li:last-child { padding-bottom: 0; }

.categories-widget ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.categories-widget ul a:hover { color: var(--accent-color); }

.categories-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.recent-posts-widget .post-item {
  display: flex;
  margin-bottom: 15px;
}
.recent-posts-widget .post-item:last-child { margin-bottom: 0; }

.recent-posts-widget .post-item img {
  width: 80px;
  margin-right: 15px;
}

.recent-posts-widget .post-item h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.recent-posts-widget .post-item h4 a {
  color: var(--default-color);
  transition: 0.3s;
}
.recent-posts-widget .post-item h4 a:hover { color: var(--accent-color); }

.recent-posts-widget .post-item time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.tags-widget { margin-bottom: -10px; }

.tags-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-widget ul li { display: inline-block; }

.tags-widget ul a {
  background-color: color-mix(in srgb, var(--default-color), transparent 94%);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  border-radius: 50px;
  font-size: 14px;
  padding: 5px 15px;
  margin: 0 6px 8px 0;
  display: inline-block;
  transition: 0.3s;
}

.tags-widget ul a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.tags-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Valores Section - Custom Styles
--------------------------------------------------------------*/
.valores-row {
  gap: 5px;
  margin-bottom: 10px;
}

.valores-col {
  flex: 1;
  max-width: none;
  border: 1px solid #829496;
  border-radius: 8px;
  text-align: center;
  background-color: var(--surface-color);
  transition: all 0.3s ease;
}

.valores-col:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-color: var(--accent-color);
}

.valores-col h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
}

@media (max-width: 768px) {
  .valores-row { flex-direction: column; gap: 10px; }
  .valores-col { width: 100%; margin-bottom: 10px; }
}

/*--------------------------------------------------------------
# Carousel FGS - Custom Styles
--------------------------------------------------------------*/
#carouselFGS {
  max-height: 600px;
  overflow: hidden;
}

#carouselFGS .carousel-item img {
  height: 600px;
  object-fit: cover;
}

#carouselFGS .carousel-caption {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 20px;
  backdrop-filter: blur(3px);
  bottom: 20px;
  left: 20px;
  right: 20px;
}

#carouselFGS .carousel-caption h3 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#carouselFGS .carousel-caption h4 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#carouselFGS .carousel-caption p {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#carouselFGS .carousel-caption strong {
  color: var(--accent-color);
  font-weight: 700;
}

@media (max-width: 768px) {
  #carouselFGS { max-height: 500px; }
  #carouselFGS .carousel-item img { height: 500px; }
  #carouselFGS .carousel-caption {
    padding: 15px;
    bottom: 15px;
    left: 15px;
    right: 15px;
  }
  #carouselFGS .carousel-caption h3 { font-size: 1.1rem; margin-bottom: 8px; }
  #carouselFGS .carousel-caption h4 { font-size: 0.9rem; margin-bottom: 8px; }
  #carouselFGS .carousel-caption p { font-size: 0.8rem; line-height: 1.4; }
}

@media (max-width: 576px) {
  #carouselFGS { max-height: 300px; }
  #carouselFGS .carousel-item img { height: 300px; }
  #carouselFGS .carousel-caption {
    padding: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
  #carouselFGS .carousel-caption h3 { font-size: 1rem; margin-bottom: 6px; }
  #carouselFGS .carousel-caption h4 { font-size: 0.85rem; margin-bottom: 6px; }
  #carouselFGS .carousel-caption p { font-size: 0.8rem; line-height: 1.4; }
}

/*--------------------------------------------------------------
# Team Section  ✅ (UNIFICADO, SIN DUPLICADOS)
--------------------------------------------------------------*/
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 70px;
}

.team .team-member{
  background: var(--surface-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 2px 6px rgba(0,0,0,.06);
  height: 100%;
}

.team .team-member .member-img{
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.team .team-member .member-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.team .team-member .member-info{
  padding: 8px 8px 10px;
  text-align: center;
}

.team .team-member .member-info h4{
  font-size: 1.1rem;
  margin: 0 0 2px;
  line-height: 1.15;
}

.team .team-member .member-info span{
  font-size: 1rem;
  line-height: 1.15;
  display: block;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}



/* Responsive */
@media (max-width: 1200px){
  .team-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px){
  .team-grid{ grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 576px){
  .team-grid{ grid-template-columns: 1fr; gap: 8px; }
}

/*--------------------------------------------------------------
# Team Socio (Gerentes de Proyectos)
--------------------------------------------------------------*/

#team-socio .team-member .member-img{
  aspect-ratio: 1 / 1; /* antes 1/1 -> baja altura de la card */
}

#team-socio .team-member .member-info{
  padding: 6px 6px 7px; /* menos padding */
}

#team-socio .team-member .member-info h4{
  font-size: 1.1rem;
  margin: 0 0 1px;
}

#team-socio .team-member .member-info span{
  font-size:  1rem;
}


/*--------------------------------------------------------------
# Team Section 1 (Gerentes de Proyectos)
--------------------------------------------------------------*/

#team-gerentes .team-member .member-img{
  aspect-ratio: 1 / 1; /* antes 1/1 -> baja altura de la card */
}

#team-gerentes .team-member .member-info{
  padding: 6px 6px 7px; /* menos padding */
}

#team-gerentes .team-member .member-info h4{
  font-size: 1.1rem;
  margin: 0 0 1px;
}

#team-gerentes .team-member .member-info span{
  font-size: 1rem;
}


/*--------------------------------------------------------------
# Team Section 2 (Gerentes de Proyectos)
--------------------------------------------------------------*/

.team.team-2 .team-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* distinto layout */
  gap: 12px;
}

.team.team-2 .team-member{
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0px 3px 10px rgba(0,0,0,.08);
}

/* Texto un poco más grande */
.team.team-2 .team-member .member-info h4{
  font-size: 1.1rem;
}

.team.team-2 .team-member .member-info span{
  font-size:  1rem;
}

/* Responsive Team 2 */
@media (max-width: 1200px){
  .team.team-2 .team-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px){
  .team.team-2 .team-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 576px){
  .team.team-2 .team-grid{
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Proyecto 
--------------------------------------------------------------*/


/* Contenedor de la columna de imagen */
.detalle-col-img{
  padding-right: 0;
}

/* Wrapper principal de la imagen */
.detalle-img-wrap{
  width: 100%;
  height: 550px;
  min-height: 550px;
  background-color: #e9ecef;
  border-top-left-radius: .5rem;
  border-bottom-left-radius: .5rem;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

/* El carousel y sus items deben heredar la altura completa */
#detalleCarousel,
#detalleCarousel .carousel-inner,
#detalleCarousel .carousel-item{
  height: 100%;
  width: 100%;
}

/*  NO tocar display de .carousel-item (Bootstrap lo necesita) */
/* Imagen: NO se corta, se adapta al contenedor */
#detalleCarousel .carousel-item img{
  width: 100%;
  height: 100%;
  object-fit: contain;     /*  no recorta */
  object-position: center;
  display: block;
  background-color: #e9ecef; /* opcional para bandas */
}

/* --- Responsive (Celulares y Tablets) --- */
@media (max-width: 991px){
  .detalle-col-img{
    padding-right: calc(var(--bs-gutter-x) * .5);
  }

  .detalle-img-wrap{
    height: 300px;
    min-height: 300px;
    border-radius: .5rem .5rem 0 0;
  }
}

  /* --- CORRECCIÓN Z-INDEX: Asegura que el header gane al mapa --- */
  #header { z-index: 9999 !important; }

  #mapChile{
    height: 500px;
    border-radius: 10px;
    border: 1px solid #eee;
    z-index: 1;
  }

  .map-help{ font-size: 12px; color: #5c6670; }

  /* Botones tipo “pill” */
  #catalogoTipoProyectoEjec .btn,
  #catalogoTipoProyectoTer .btn{
    border-radius: 999px;
    margin: 2px;
  }

  /* (Opcional) separación icono + texto en periodo */
  .detalle-li i{ margin-right: .5rem; }

  /* --- CORRECCIÓN PINES: Quita el fondo blanco de los iconos personalizados --- */
  .leaflet-div-icon.custom-pin{
    background: transparent;
    border: none;
  }


/* ===============================
   BOTONES DETALLE PROYECTO
   =============================== */

#detalleCarousel .carousel-control-prev,
#detalleCarousel .carousel-control-next{
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

/* Círculo celeste */
#detalleCarousel .carousel-control-prev-icon,
#detalleCarousel .carousel-control-next-icon{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(0, 155, 222, 0.55); /*  celeste como la imagen */
  background-size: 55% 55%;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

/* Hover (un poco más oscuro) */
#detalleCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#detalleCarousel .carousel-control-next:hover .carousel-control-next-icon{
  background-color: rgba(0, 155, 222, 0.55);
}

/* Posición hacia los lados */
#detalleCarousel .carousel-control-prev{
  left: 16px;
}

#detalleCarousel .carousel-control-next{
  right: 16px;
}

/* Mobile: un poco más chicos */
@media (max-width: 768px){
  #detalleCarousel .carousel-control-prev,
  #detalleCarousel .carousel-control-next{
    width: 44px;
    height: 44px;
  }

  #detalleCarousel .carousel-control-prev-icon,
  #detalleCarousel .carousel-control-next-icon{
    width: 44px;
    height: 44px;
  }
}



/* ===============================
   BOTONES CARRUSEL: PROYECTOS ACTIVOS (INDEX)
================================ */

#carouselProyectosActivos .carousel-control-prev,
#carouselProyectosActivos .carousel-control-next{
  width: 52px;
  height: 52px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

/* Fondo redondo + icono centrado */
#carouselProyectosActivos .carousel-control-prev-icon,
#carouselProyectosActivos .carousel-control-next-icon{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background-color: rgba(0, 155, 222, 0.55);
  background-size: 60% 60%;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

/* Hover */
#carouselProyectosActivos .carousel-control-prev:hover .carousel-control-prev-icon,
#carouselProyectosActivos .carousel-control-next:hover .carousel-control-next-icon{
  background-color: rgba(0,0,0,.85);
}

/* Más a las “esquinas” (como querías) */
#carouselProyectosActivos .carousel-control-prev{ left: -18px; }
#carouselProyectosActivos .carousel-control-next{ right: -18px; }

/* Mobile: que no se salgan */
@media (max-width: 768px){
  #carouselProyectosActivos .carousel-control-prev{ left: 6px; }
  #carouselProyectosActivos .carousel-control-next{ right: 6px; }
}


/* =========================
   FEATURES – LOGO + CARRUSEL
   ========================= */

.features .features-media{
  display: flex;
  align-items: center;
  gap: 28px;
}

/* LOGO */
.features .features-logo{
  margin-top: 24px;
}
.features .features-logo img{
  width: 280px;          /* ⬅️ AQUÍ agrandas (prueba 380–460) */
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ajuste en pantallas grandes */
@media (min-width: 1200px){
  .features .features-logo img{
    width: 280px;        /* ⬅️ más grande en desktop grande */
  }
}

/* CARRUSEL */
.features .card-carousel-wrapper{
  width: 360px;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

/* ALTURA DEL CARRUSEL */
.features #reglasCarousel .carousel-inner,
.features #reglasCarousel .carousel-item{
  height: 460px;
}

/* IMAGEN FULL */
.features .card-carousel-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* MOBILE */
@media (max-width: 991px){
  .features .features-media{
    flex-direction: column;
    text-align: center;
  }

  .features .features-logo{
    margin-top: 0;
  }

  .features .features-logo img{
    width: 300px;        /* ⬅️ tamaño en móvil */
    margin: 0 auto;
  }

  .features .card-carousel-wrapper{
    width: 300px;
  }

  .features #reglasCarousel .carousel-inner,
  .features #reglasCarousel .carousel-item{
    height: 400px;
  }
}

/* =========================
   icons
   ========================= */
.eje-icon{
  width: 50px;   
  height: 50px;       
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}


/*--------------------------------------------------------------
# Compromiso imagen
--------------------------------------------------------------*/
/* Reduce espacio bajo el titulo (sube la imagen) */
#compromiso .section-title {
  padding-bottom: 30px;  
  margin-bottom: 10px;
}

/* Contenedor imagen (centrada + mas arriba) */
.compromiso-img {
  max-width: 960px;
  margin: 0 auto;        /* centrada */
  margin-top: -50px;     /* sube la imagen (prueba -20 si quieres mas arriba) */
}

/* Imagen */
.compromiso-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Variante "lg" (si la usas en HTML) */
.compromiso-img-lg {
  max-width: 1300px;     /* sube a 1400 si quieres mas */
  margin: 0 auto;
}

.compromiso-img-lg img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  #compromiso .section-title {
    padding-bottom: 20px;
    margin-bottom: 0;
  }

  .compromiso-img,
  .compromiso-img-lg {
    max-width: 100%;
    margin-top: 0;       /* en movil no conviene subirla con negativo */
  }
}

@media (min-width: 1920px) {
  body {
    zoom: 1.2; /* Aumenta todo al 120% en pantallas anchas */
    /* Ojo: esto a veces puede desajustar carruseles complejos */
  }
}

/*--------------------------------------------------------------
# mision, vision
--------------------------------------------------------------*/


.eje-item {
  
  border-bottom: 1px solid #dee2e6; 
  padding-bottom: 2rem;          
  margin-bottom: 2rem;           
}

/* Estilo para Desktop (Pantallas medianas y grandes - md) */
@media (min-width: 768px) {
  .eje-item {
    border-bottom: none;
    position: relative;
  }

  /* Línea vertical entre columnas */
  .eje-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15%;
    right: 0;
    width: 1px;
    height: 70%;
    background-color: var(--accent-color);
  }
}

/* SOLO Misión y Visión (primer bloque dentro de #services) */
@media (min-width: 768px) {

  /* primer .container.section-title (Misión/Visión) */
  #services .container.section-title:first-of-type .eje-item{
    padding-right: 3rem;   /* espacio hacia el centro */
  }

  /* segunda columna (Visión) del primer row */
  #services .container.section-title:first-of-type .eje-item + .col-md-6{
    padding-left: 3rem;    /* espacio desde el centro */
  }
}


/* ======================================================
   TRABAJA CON NOSOTROS – FORMULARIO CURRÍCULUM
   ====================================================== */

/* Banner */
.page-title.curriculum-banner{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Evitar fondos heredados del template */
.contact.curriculum-section{
  background-image: none !important;
}

/* Formulario */
.curriculum-section .php-email-form{
  background: transparent;
}

/* Inputs visibles */
.curriculum-section .php-email-form .form-control{
  background-color: #ffffff !important;
  color: #111 !important;
  opacity: 1 !important;
}

/* Placeholder */
.curriculum-section .php-email-form .form-control::placeholder{
  color: rgba(0,0,0,.45) !important;
  opacity: 1 !important;
}

/* Textarea */
.curriculum-section .php-email-form textarea{
  resize: vertical;
}

/* Input archivo */
.curriculum-section input[type="file"]{
  padding: 10px;
}

/* Botón */
.curriculum-section .php-email-form button[type="submit"]{
  background: var(--accent-color, #004a97);
  border-radius: 999px;
  padding: 12px 32px;
}

/* Responsive */
@media (max-width: 768px){
  .curriculum-section{
    padding-top: 40px;
  }
}

/* Card estilo "Contacto" para formularios (Curriculum) */
.fgs-form-card{
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  overflow: hidden; /* para que el header respete el borde */
  background: #fff;
}

.fgs-form-card__header{
  background: #f0f0f0;
  border-bottom: 1px solid #d9d9d9;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 10px 14px;
}

.fgs-form-card__body{
  padding: 18px;
}

/* Importante: que el form no "dibuje" otro fondo encima */
.curriculum-section .php-email-form{
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Texto largo dentro del header del formulario (Currículum) */
.fgs-form-card__header p{
  margin: 0;                 /* elimina espacios entre párrafos */
  padding: 0;
  text-align: justify;       /* justificado */
  line-height: 1.3;          /* buena lectura */
}

/* Pequeña separación controlada SOLO entre párrafos */
.fgs-form-card__header p + p{
  margin-top: 4px;           /* ajusta: 4–8px recomendado */
}
@media (max-width: 768px){
  .fgs-form-card__header p{
    text-align: left;        /* más legible en celular */
  }
}

/* Imagen superior curriculum */
.fgs-cv-image{
  width: 100%;
  padding:  0;
  text-align: center;
  background-color: #f0f0f0;
  
}

.fgs-cv-image img{
  max-width: 900px;   /* prueba 700–1000px */
  width: 100%;    /* controla tamaño real */
  height: auto;
}


/* =========================================
   CORRECCIÓN ESPECÍFICA: SECCIÓN PREVENCIÓN
   ========================================= */

/* Restaura el margen y la altura de línea solo para esta sección */
.texto-prevencion p {
    text-align: justify;       /* Mantiene justificado (opcional, puedes poner 'left' si prefieres) */
    margin-bottom: 15px !important; /* Le devuelve el espacio abajo para separar párrafos */
    line-height: 1.6 !important;    /* Le devuelve el aire entre líneas (1.4 era muy apretado) */
    color: #444;               /* Asegura buen contraste */
}

/* Ajuste para el título intermedio ("Nuestras reglas de oro...") */
.texto-prevencion h3 {
    margin-top: 30px !important;    /* Más espacio arriba del título intermedio */
    margin-bottom: 30px !important; /* Más espacio abajo del título intermedio */
    text-align: center;             /* Asegura que el título quede centrado */
}
#prevencion .service-item {
    margin-bottom: 0 !important;
}

/* Si quieres que el texto NO esté justificado en esta sección, cambia 'justify' por 'center' o 'left' arriba */


/* =========================================
   LAYOUT CON BARRA LATERAL FIJA (Estilo EBCO)
   ========================================= */


.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 120px 0 60px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

@media (min-width: 1200px) {
  .hero:after {
    position: absolute;
    content: "";
    width: 44%;
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--background-color), transparent 15%), color-mix(in srgb, var(--background-color), transparent 15%) 100%), linear-gradient(180deg, rgb(0, 0, 0), rgb(0, 0, 0) 100%);
    top: 0;
    bottom: 0;
    z-index: 2;
  }
}

.hero:before {
    display: none;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .container,
.hero .container-fluid {
  z-index: 3;
  position: relative;
}

.hero h1 {
  margin: 0;
  font-size: 2.625rem;
  font-weight: 700;
}

.hero blockquote {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  padding-left: 20px;
  border-left: 2px solid var(--accent-color);
  margin: 40px 0;
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  transition: 0.5s;
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

.hero .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  color: var(--default-color);
  font-weight: 600;
}

.hero .btn-watch-video i {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 32px;
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}

.hero .btn-watch-video:hover {
  color: var(--default-color);
}

.hero .btn-watch-video:hover i {
  color: var(--default-color);
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .hero .btn-get-started,
  .hero .btn-watch-video {
    font-size: 13px;
  }
}


.hero p {
  text-align: left;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  line-height: 1.6;
}
/* Puedes borrar la clase .page-title-overlay si la agregaste antes, ya que tu CSS ya oscurece el fondo automáticamente con :before y :after */

/* HERO split: 100vh */
.hero.hero-split{
  min-height: 100vh;
  padding: 0;            /* si tu hero tiene padding grande, te rompe el full-height */
  position: relative;
  overflow: hidden;
}

/* Asegura altura en el grid */
.hero.hero-split .container,
.hero.hero-split .row{
  height: 100%;
  min-height: 100vh;
}

/* Izquierda */
.hero-left{
  display: flex;
  align-items: center;
  padding: 80px 40px;
}

.hero-left-inner{
  width: 100%;
  padding-left: 6vw;   /* ajusta este valor si quieres más espacio */
  padding-right: 4vw;
}

/* Derecha: el video debe ocupar TODO el alto/ancho de la columna */
.hero-right{
  position: relative;
  min-height: 100vh;
}

/* Wrapper full */
.hero-video-full{
  position: absolute;
  inset: 0;              /* top:0 right:0 bottom:0 left:0 */
  overflow: hidden;
  
}

/* “Cover” para iframe YouTube (mantiene proporción y rellena) */
.hero-video-full iframe{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* Cover 16:9 */
  width: 100%;
  height: 100%;
  min-width: 177.78vh;   /* 16/9 * 100vh */
  min-height: 56.25vw;   /* 9/16 * 100vw */

  border: 0;
}

/* En móvil: texto arriba, video abajo con alto controlado */
@media (max-width: 991.98px){
  .hero-left{ padding: 70px 20px; }
  .hero-right{ min-height: 55vh; }
  .hero.hero-split .row{ min-height: auto; }
}

.hero.hero-split .container{
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hero.hero-split .row{
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* ===== En móvil/tablet: video primero, texto después ===== */
@media (max-width: 991.98px){
  .hero.hero-split .hero-right{ order: 1; }
  .hero.hero-split .hero-left { order: 2; }
}




