/* =============================================================
   Hoja de estilos principal (style.css)
   Propósito: Definir variables, tipografía base y estilos de layout/componentes.

   Índice de secciones:
   1) General y variables CSS (:root, tipografías, colores)
   2) Utilidades (clases de ayuda: .link-inherit, tamaños, etc.)
   3) Componentes (preloader, back-to-top, sliders, etc.)
   4) Secciones de página (gallery, services, courses, contact, footer)
   5) Ajustes responsive (media queries)

   Buenas prácticas:
   - Mantener nombres consistentes y semánticos.
   - Agrupar reglas por secciones con comentarios claros.
   - Evitar !important salvo en utilidades puntuales.
============================================================= */

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --main-background: #01533E;
  --hover-color: #D00F10;
  --fondo-claro: #ffffff;
  --texto-oscuro: #000000;
  --comillas-comentarios: #f8aa1a;
  --fondo-comentarios: #f1f1f4;
  --texto-rojo: #d10f10;
  --texto-gris-oscuro: #343434;

  --fondo-coorp-01: #01533E;
  --fondo-coorp-02: #a6a6a6;
  --texto-coorp-01: #01533E;
  --texto-coorp-02: #ffffff;
  --dark-background: #a31e07;
  /* Altura global del logo en navbar */
  --navbar-logo-height: 80px;
}

/* Mapa (Google Maps iframe) */
.map-iframe {
  width: 100%;
  height: 350px;
  max-height: 60vh;
  min-height: 300px;
  border: 0;
  display: block;
}

@media (max-width: 576px) {
  .map-iframe {
    height: 300px;
  }
}

/* SOLO mh */
.fondo-rojo {
  background-color: var(--fondo-coorp-01);
  color: var(--texto-oscuro);
}

@font-face {
  font-family: "Diphylleia";
  src: url("../fonts/Diphylleia-Regular.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--texto-gris-oscuro);
}

a {
  color: var(--main-background);
  text-decoration: none;
}

a:hover {
  color: var(--hover-color);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Raleway, sans-serif;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--main-background);
  border-top-color: #ecf8f9;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--main-background);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--hover-color);
  color: #fff;
}

.back-to-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;
  }
}

/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/
#topbar {
  background: var(--main-background);
  color: #fff;
  height: 40px;
  font-size: 13px;
  font-weight: 600;
  z-index: 996;
  transition: all 0.5s;
}

#topbar.topbar-scrolled {
  top: -40px;
}

#topbar i {
  padding-right: 6px;
  line-height: 0;
}

#topbar-days,
#topbar-phone {
  display: block !important;
}

@media (max-width: 992px) {
  #topbar-days {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #topbar-days,
  #topbar-phone {
    display: none !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  height: 100px; /* altura fija para evitar que crezca */
  padding: 0 0;
  display: flex;
  align-items: center;
  background: #fff;
  transition: all 0.5s;
  z-index: 997;
  top: 40px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
  #header {
    padding: 15px 0;
  }
}

#header.header-scrolled {
  top: 0;
}

#header .logo {
  font-family: Raleway, sans-serif;
  font-size: 24px;
  margin: 0;
  padding: 0;
  line-height: 12px !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--texto-oscuro);
}

#header .logo a {
  color: var(--texto-oscuro);
}

#header .logo img {
  display: block;
  height: var(--navbar-logo-height);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Permitir SVG inline en lugar de <img> si se usa directamente */
#header .logo svg {
  display: block;
  height: var(--navbar-logo-height);
  width: auto;
  max-width: 100%;
}

/**
* Appointment Button
*/
.appointment-btn {
  margin-left: 25px;
  background: var(--dark-background);
  color: var(--fondo-claro);
  border-radius: 4px;
  padding: 8px 25px;
  white-space: nowrap;
  transition: 0.3s;
  font-size: 14px;
  display: inline-block;
  font-weight: 700;
}

.appointment-btn:hover {
  background: var(--hover-color);
  color: #fff;
}

@media (max-width: 768px) {
  .appointment-btn {
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
}

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

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: var(--texto-coorp-01);
  white-space: nowrap;
  transition: 0.3s;
  text-transform: uppercase;
  font-weight: 500;
}

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

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

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(8, 37, 65, 0.25);
  transition: 0.3s;
  border-radius: 4px;
}

.navbar .dropdown ul li {
  min-width: 200px;
  color: var(--texto-coorp-01);
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  text-transform: none;
}

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

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

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

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

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

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: var(--hover-color-extra);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(60, 60, 60, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: 8px;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--hover-color-extra);
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: var(--hover-color);
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(102, 111, 136, 0.25);
}

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

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

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

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

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 70vh;
  background-color: #000;
  overflow: hidden;
  position: relative;
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item,
#hero .carousel-item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

#hero .carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#hero .container {
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding-top: 30px;
  padding-bottom: 30px;
  margin-bottom: 50px;
  border-top: 4px solid var(--main-background);
}

@media (max-width: 1200px) {
  #hero .container {
    margin-left: 50px;
    margin-right: 50px;
  }
}

#hero h2 {
  color: #2f2f2f;
  margin-bottom: 5px;
  font-size: 30px;
  font-weight: 800;
}

#hero p {
  margin: 0 auto 30px auto;
  color: var(--hover-color-extra);
}

#hero .carousel-inner .carousel-item {
  transition-property: opacity;
  background-position: center top;
}

#hero .carousel-inner .carousel-item,
#hero .carousel-inner .active.carousel-item-start,
#hero .carousel-inner .active.carousel-item-end {
  opacity: 0;
}

#hero .carousel-inner .active,
#hero .carousel-inner .carousel-item-next.carousel-item-start,
#hero .carousel-inner .carousel-item-prev.carousel-item-end {
  opacity: 0.3;
  transition: 0.5s;
}

#hero .carousel-inner .carousel-item-next,
#hero .carousel-inner .carousel-item-prev,
#hero .carousel-inner .active.carousel-item-start,
#hero .carousel-inner .active.carousel-item-end {
  left: 0;
  transform: translate3d(0, 0, 0);
}

#hero .carousel-inner .container {
  max-width: 900px;
}

#hero .carousel-control-next-icon,
#hero .carousel-control-prev-icon {
  background: none;
  font-size: 30px;
  line-height: 0;
  width: auto;
  height: auto;
  background: rgba(102, 111, 136, 0.8);
  border-radius: 50px;
  transition: 0.3s;
  color: rgba(255, 255, 255, 0.5);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero .carousel-control-next-icon:hover,
#hero .carousel-control-prev-icon:hover {
  background: var(--hover-color);
  color: rgba(255, 255, 255, 0.8);
}

#hero .carousel-indicators li {
  cursor: pointer;
  background: #fff;
  overflow: hidden;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  opacity: 0.6;
  transition: 0.3s;
}

#hero .carousel-indicators li.active {
  opacity: 1;
  background: var(--main-background);
}

#hero .btn-get-started {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  transition: 0.5s;
  line-height: 1;
  color: #fff;
  background: var(--main-background);
}

#hero .btn-get-started:hover {
  background: var(--hover-color);
}

.hero-title-container {
  position: absolute;
  width: 100%;
  max-width: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--main-background);
  z-index: 10;
}

.hero-logo {
  padding: 30px;
  width: 1024px;
  max-width: 80%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
}

.hero-title-container h1 {
  font-size: 36px;
  font-weight: bold;
  border-radius: 5px;
  margin: 10px;
}

#hero .carousel-control-prev,
#hero .carousel-control-next {
  z-index: 20;
}

@media (max-width: 992px) {
  #hero {
    height: 50vh;
  }
}

@media (max-width: 600px) {
  #hero {
    margin-top: 100px;
    height: 30vh;
  }
}

@media (max-width: 768px) {
  #hero h2 {
    font-size: 24px;
  }
  .portada-despues-h2 {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  #hero .carousel-control-prev,
  #hero .carousel-control-next {
    width: 5%;
  }
}

@media (max-height: 500px) {
  #hero {
    height: 160vh;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 80px 0;
  overflow: hidden;
}

.section-bg {
  background-color: #f7fcfc;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

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

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #01A222;
  bottom: 0;
  left: calc(50% - 25px);
}

.cta .section-title h2::after {
  background: white;
}

.section-title p {
  margin-bottom: 0;
}

/* By default, we show padding columns in service. Also, we show the long email and hide the last one */
.remove-less-992 {
  display: block;
}
.remove-more-992 {
  display: none;
}
/* When the screen width is less than 992px, we hide the padding columns in services. Also, we show the long email and hide the last one */
@media (max-width: 992px) {
  .remove-less-992 {
    display: none;
  }
  .remove-more-992 {
    display: block;
  }
}

/*--------------------------------------------------------------
# Cta
--------------------------------------------------------------*/
.cta {
  background: var(--fondo-coorp-01);
  color: #fff;
  background-size: cover;
  padding: 20px 0;
  border: 1px solid var(--texto-oscuro);
}

.cta h3 {
  font-size: 28px;
  font-weight: 700;
}

.cta .cta-btn {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 15px;
  border-radius: 25px;
  transition: 0.5s;
  border: 2px solid #fff;
  color: #fff;
  background-color: var(--fondo-coorp-01);
}
.cta .cta-btn:hover {
  background-color: var(--dark-background);
}

#cta {
  color: var(--client-color);
  margin-bottom: 20px;
  text-align: center;
}

.services .icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin-top: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 50%;
  transition: 0.5s;
  color: var(--main-background);
  overflow: hidden;
  box-shadow: 0px 0 25px rgba(0, 0, 0, 0.15);
}

.services .icon i {
  font-size: 36px;
  line-height: 0;
}

.services .icon-box:hover .icon {
  box-shadow: 0px 0 25px rgba(102, 111, 136, 0.3);
}

.services .title {
  font-weight: 600;
  margin: 2px;
  margin-bottom: 15px;
  font-size: 18px;
  position: relative;
  padding-bottom: 15px;
}

.services .title a {
  color: var(--texto-gris-oscuro);
  transition: 0.3s;
}

.services .title a:hover {
  color: var(--hover-color);
}

.services .title::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 2px;
  background: var(--main-background);
  bottom: 0;
  left: calc(50% - 25px);
}

.services .description {
  line-height: 24px;
  font-size: 14px;
  margin: 5px;
}

.title-marcas {
  font-size: 22px;
}

.nuestras-marcas {
  padding-top: 20px;
}

.nuestras-marcas img {
  width: 100%;
}

/*--------------------------------------------------------------
# Gallery
--------------------------------------------------------------*/
.gallery {
  overflow: hidden;
}

/* Ajustar sección: que no herede el padding grande de section y colapse a su contenido */
section#gallery.gallery {
  padding: 20px 0 !important; /* reduce vertical space del bloque */
}

/* Forzar altura automática en Swiper dentro de la galería */
.gallery .swiper,
.gallery .swiper-wrapper,
.gallery .swiper-slide {
  height: auto !important;
}

.gallery .gallery-slider {
  padding-bottom: 0;
}

/* Compact gallery: limit slide image height and override .ratio */
.gallery .gallery-img-wrapper {
  height: 140px; 
  max-height: 40vh; /* no crecer demasiado en pantallas bajas */
  padding-top: 0 !important; /* anula el padding-top de .ratio */
  display: block;
}

.gallery .gallery-img-wrapper > img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* recorta para mantener proporción y llenar el alto */
  display: block;
}

@media (max-width: 768px) {
  .gallery .gallery-img-wrapper {
    height: 480px; /* más pequeño en móvil */
  }
}

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

.gallery .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid var(--main-background);
}

.gallery .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--main-background);
}

.gallery .swiper-slide-active {
  text-align: center;
  background: transparent;
  padding: 0;
}

@media (min-width: 992px) {
  .gallery .swiper-wrapper {
    padding: 40px 0;
  }

  .gallery .swiper-slide-active {
    z-index: 1;
    transform: scale(1.05);
    margin-top: 10px;
  }

  .gallery .swiper-slide-active .gallery-img-wrapper {
    border: 3px solid var(--fondo-coorp-01);
    background: #fff;
  }
}

/* Moved Pricing and FAQ blocks to assets/css/extras.css */

/*--------------------------------------------------------------
# Legal
{{ ... }}
--------------------------------------------------------------*/
.main-title-legal {
  padding-top: 80px;
  padding-bottom: 0;
}

.title-legal {
  font-size: 20px;
  color: #777777;
  font-weight: 700;
  margin: 10px 0;
  padding-top: 30px;
}

#content-legal {
  background-color: #fafafa;
  border: solid var(--main-background) 1px;
  padding: 30px;
}

#content-legal p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 10px;
}

.div-legal {
  width: 161px;
}

.ul-legal,
.ol-legal {
  font-size: 14px;
}

.table-legal {
  font-size: 13px;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  color: var(--texto-gris-oscuro);
  text-align: center;
  box-shadow: 0 0 20px rgba(214, 215, 216, 0.5);
  padding: 20px 10px 30px 10px;
}

.contact .info-box i {
  font-size: 32px;
  color: var(--main-background);
  border-radius: 50%;
  padding: 8px;
  border: 2px dotted #c5ebec;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #777777;
  font-weight: 700;
  margin: 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form {
  box-shadow: 0 0 20px rgba(214, 215, 216, 0.5);
  padding: 30px;
  padding-bottom: 3px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br + br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--main-background);
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type="submit"] {
  background: var(--main-background);
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: var(--hover-color);
}

.rgpd-left {
  text-align: left;
}

.rgpd-font {
  font-size: 40px;
}

.text-start-center {
  text-align: center;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* By default, we show the long email and hide the short one */
/* When the screen width is between 992px and 1200px, we show the short mail and hide the long one */
/*
#mail-in-992-1200 {
  display: none;
}

#mail-out-992-1200 {
  display: block;
}

@media (min-width: 992px) and (max-width: 1200px) {
  #mail-in-992-1200 {
      display: block;
  }

  #mail-out-992-1200 {
      display: none;
  }
}*/

#telefono-div {
  margin-bottom: 25px;
}
#contacto-div {
  margin-bottom: 25px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--fondo-claro-comentarios);
  padding: 0 0 30px 0;
  color: var(--main-background);
  font-size: 14px;
}

#footer .footer-top {
  background: var(--fondo-coorp-01);
  padding: 30px 0;
  width: 100%;
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: var(--main-background);
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 4px;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: var(--hover-color);
  text-decoration: none;
}

#footer .footer-top h4 {
  font-size: 24px;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
}

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

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

#footer .footer-top .footer-links ul i {
  padding-right: 2px;
  font-size: 18px;
  line-height: 1;
}

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

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

#footer .footer-top .footer-links ul a {
  color: var(--fondo-comentarios);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

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

#footer .footer-top .footer-newsletter form {
  margin-top: 30px;
  background: #fff;
  padding: 6px 10px;
  position: relative;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
}

#footer .footer-top .footer-newsletter form input[type="email"] {
  border: 0;
  padding: 4px;
  width: calc(100% - 110px);
}

#footer .footer-top .footer-newsletter form input[type="submit"] {
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 20px;
  background: var(--main-background);
  color: #fff;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
}

#footer .footer-top .footer-newsletter form input[type="submit"]:hover {
  background: var(--hover-color);
}

#footer .copyright {
  color: var(--texto-coorp-01);
  text-align: center;
  padding-top: 30px;
}

#footer .credits {
  color: var(--texto-coorp-01);
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
}

/* Cambios por accesibilidad */
.footer-top a,
.credits a {
  color: var(--client-color-black);
}

.cc-nb-okagree{
  background-color: var(--main-background) !important;
  color: var(--texto-coorp-02) !important;
}

.cc-nb-reject {
  background-color: var(--main-background) !important;
  color: var(--texto-coorp-02) !important;
}
.cc-cp-foot-save {
  background-color: var(--main-background) !important;
  color: var(--texto-coorp-01) !important;
}
.cc-pc-head-lang select:focus {
  box-shadow: 0 0 0 2px var(--main-background) !important;
}
.cc-cp-foot-byline {
  color: var(--texto-coorp-01) !important;
}
.cc-cp-foot-byline a {
  color: var(--texto-coorp-01) !important;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}
.centrado-next {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Efecto imagen al pasar por encima */

.service-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border: 5px solid var(--main-background);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  height: 300px; /* Altura fija para las tarjetas */
}

.service-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Oscurecer el fondo */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.service-card .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  transition: all 0.3s ease-in-out;
  width: 100%;
}

.service-card .icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.service-card .title {
  font-size: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.service-card .description {
  font-size: 16px;
  display: none;
}

.service-card:hover .overlay {
  opacity: 1;
  background-color: var(--main-background);
}

.service-card:hover .content {
  top: 30%;
}

.service-card:hover .description {
  display: block;
  margin-top: 10px;
}

.me-auto {
  line-height: 0.8 !important;
}

.sala {
  display: flex;
  flex-wrap: wrap;
  max-height: 900px;
  height: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  border: 1px solid var(--client-color-black);
}

@media (max-width: 991px) {
  .sala {
    max-height: 1100px;
  }
}

.sala .left {
  flex: 1;
  max-width: 50%;
  position: relative;
  overflow: hidden;
}

.sala .left img,
.sala .left3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sala .left2 img,
.sala .left4 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sala .right {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  text-align: left;
}

.sala ul {
  margin: 10px 0;
  padding-left: 20px;
}

.sala strong {
  font-size: 18px;
}

@media (min-width: 769px) {
  .sala .left3 img,
  .sala .left4 img {
    display: none;
  }
}

@media (max-width: 768px) {
  .sala {
    flex-direction: column;
    max-height: none;
  }

  .sala .left,
  .sala .right {
    max-width: 100%;
    flex: none;
  }

  .sala .left img {
    display: none;
  }

  .sala .right,
  .sala .left3,
  .sala .left4 {
    margin-top: 0;
    border-left: solid 20px var(--client-color-black);
  }
}

.serviceSmall {
  max-width: 800px;
}

.serviceSmallInto {
  margin-left: 80px;
  margin-right: 80px;
}

@media (max-width: 768px) {
  .serviceSmallInto {
    margin-left: 10px;
    margin-right: 10px;
  }
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: -40px 0 0 40px;
  position: relative;
  z-index: 2;
  border: 6px solid #fff;
}

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

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0 0 0 45px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: var(--comillas-comentarios);
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 0 15px;
  padding: 20px 20px 60px 20px;
  background: var(--fondo-claro-comentarios);
  color: var(--letra-oscura-comentarios);
  position: relative;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

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

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid var(--comillas-comentarios);
}

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

.back-to-top {
  right: 30px;
  border: 1px solid #fff;
}

/* Iconos de teléfono y de whatsapp */
.contact-icons {
  position: fixed; /* Fijo en la pantalla */
  bottom: 75px; /* A 20px del borde inferior */
  right: 25px; /* A 20px del borde izquierdo */
  display: flex;
  flex-direction: column; /* Colocar los iconos uno encima del otro */
  gap: 10px; /* Espacio entre los iconos */
  z-index: 1000; /* Para asegurarse de que esté siempre visible */
  background-color: rgba(102, 111, 136, 0.4);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #fff;
}

.contact-icons a {
  text-decoration: none; /* Quitar subrayado */
  color: inherit; /* Heredar el color del contenedor */
  display: flex;
  justify-content: center; /* Centrar los iconos horizontalmente */
  align-items: center; /* Centrar los iconos verticalmente */
}

.contact-icon {
  width: 28px; /* Tamaño de los iconos, ajusta según tus necesidades */
  height: auto;
  cursor: pointer; /* Cambiar el cursor al pasar sobre los iconos */
  transition: transform 0.3s ease; /* Efecto al pasar el ratón por encima */
}

.contact-icon:hover {
  transform: scale(
    1.4
  ); /* Aumenta ligeramente el tamaño cuando pases el cursor */
}

/* SOLO mh */
#topbar {
  background-color: var(--fondo-coorp-01);
  font-weight: 800;
  border-bottom: 1px solid var(--dark-background);
}

@media (max-width: 500px) {
  #header .logo {
    font-size: 15px;
  }
  .texto-rgpd {
    margin: 0;
  }
}

.productos {
  font-weight: 800;
  color: #fff;
  margin: 0;
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 2;
}

#hero .hero-title-container {
  z-index: 10;
}

.gallery-img-wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  display: flex;
  border: 1px solid var(--main-background);
}

.gallery-img-crop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

#gallery {
  background-color: var(--fondo-claro);
}

@media (max-width: 991px) {
  #gallery {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}

@media (max-width: 600px) {
  .hero-logo {
    max-width: 300px;
  }
}

.courses .course-item {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 5px;
}

.courses .course-content {
  padding: 15px;
}

.courses .course-content h3 {
  font-weight: 700;
  font-size: 20px;
}

.courses .course-content h3 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.courses .course-content h3 a:hover {
  color: var(--accent-color);
}

.courses .course-content .category {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-size: 14px;
  padding: 6px 14px;
  margin: 0;
  border-radius: 5px;
}

.courses .course-content .price {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.courses .course-content .description {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.courses .trainer {
  padding-top: 15px;
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.courses .trainer .trainer-profile img {
  max-width: 50px;
  border-radius: 50px;
}

.courses .trainer .trainer-profile .trainer-link {
  padding-left: 10px;
  font-weight: 600;
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}
.courses .trainer .trainer-profile .trainer-link:hover {
  color: var(--accent-color);
}

/* -------------------------------------------------------------
     Utilities (replacing common inline styles in templates)
     ------------------------------------------------------------- */

.link-inherit {
  color: inherit !important;
}

/* -------------------------------------------------------------
   Footer language flags
   ------------------------------------------------------------- */
.flag-icon-20 {
  width: 20px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
.flag-icon-40 {
  width: 40px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
.footer-info .flag-icon-20,
.footer-info .flag-icon-40 {
  margin-right: 8px;
}
.footer-info .flag-icon-20:last-child,
.footer-info .flag-icon-40:last-child {
  margin-right: 0;
}

/* -------------------------------------------------------------
   Footer refinements and fixes
   ------------------------------------------------------------- */
#footer {
  background: #fff;
  color: var(--texto-coorp-02);
}
#footer .footer-top {
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
#footer .footer-info h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--texto-coorp-02);
  margin-bottom: 8px;
}
#footer a {
  color: var(--texto-coorp-02);
}
#footer a:hover {
  color: var(--hover-color);
}

#footer .copyright {
  color: var(--texto-coorp-01);
}

#footer .footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--texto-coorp-02);
  text-transform: uppercase;
  margin-bottom: 12px;
}
#footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#footer .footer-links ul li {
  padding: 8px 0;
}
#footer .footer-links ul i {
  color: var(--main-background);
  margin-right: 6px;
}
#footer .copyright,
#footer .credits {
  text-align: center;
  font-size: 13px;
}

/* Avoid uneven heights causing misalignment */
#footer .footer-top .row > [class*="col-"] {
  margin-bottom: 16px;
}

.separador {
  border: none;
  border-top: 2px solid #ccc;
  margin: 40px auto;
  width: 80%;
}

.fs-h2 {
  font-size: 18px !important;
  line-height: 1.5;
  font-weight: 600;
}

.fs-h1 {
  font-size: 32px !important;
  line-height: 1.5;
  font-weight: 700;
  color: var(--texto-coorp-01);
}

/* ----------------------
   Clases para tarjetas
   ---------------------- */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;          
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-img {
  width: 100%;
  height: var(--product-img-height, 220px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-img--contain {
  object-fit: contain;
  background: #f5f5f5;
}

.product-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem;
}

.product-title {
  color: var(--fondo-coorp-01);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: underline;
}

.product-desc {
  margin: 0;
  color: #444;
  font-size: 2rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.product-col {
  flex: 1 0 20%;   /* 5 columnas en escritorio */
  max-width: 20%;
}

@media (max-width: 992px) {
  .product-col {
    flex: 1 0 50%;  /* En tablets: 2 columnas */
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  .product-col {
    flex: 1 0 100%; /* En móviles: 1 columna */
    max-width: 100%;
  }
}

.link-underline {
  text-decoration: underline !important;
}

.chevron-color {
  color: #01A222 !important;
}