/* =============================================================
   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: #98bcdb;
  --hover-color: #4934E3;
  --fondo-claro: #ffffff;
  --texto-oscuro: #000000;
  --comillas-comentarios: #f8aa1a;
  --fondo-comentarios: #f1f1f4;
  --texto-rojo: #d10f10;
  --texto-gris-oscuro: #343434;

  --fondo-coorp-01: #98bcdb;
  --fondo-coorp-02: #bca8af;
  --texto-coorp-01: #343434;
  --texto-coorp-02: #ffffff;
  --dark-background: #a28d93;
  /* 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;
}

.leo-color {
  color: #E4780D;
}

@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);
}

/* Prevent body scroll when mobile menu is active */
body.mobile-nav-active {
  overflow: hidden;
}

a {
  color: var(--texto-gris-oscuro);
  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 - Modern Design
--------------------------------------------------------------*/
#topbar {
  background: linear-gradient(
    135deg,
    var(--main-background) 0%,
    var(--dark-background) 100%
  );
  color: #fff;
  height: 45px;
  font-size: 13px;
  font-weight: 500;
  z-index: 996;
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

/* Topbar Contact Section */
.topbar-contact {
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.contact-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: all 0.3s ease;
}

.contact-icon i {
  font-size: 11px;
  color: #fff;
}

.contact-link {
  color: #fff !important;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-link:hover {
  color: var(--hover-color) !important;
}

.contact-item:hover .contact-icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Topbar Actions Section */
.topbar-actions {
  gap: 20px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff !important;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 12px;
}

.social-link:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
  color: #fff !important;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 12px;
  font-weight: 500;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

.flag-group {
  gap: 4px;
  margin-left: 8px;
}

.flag-mini {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.language-toggle:hover .flag-mini {
  transform: scale(1.1);
}

/* Responsive Design for Topbar */
@media (max-width: 992px) {
  .topbar-contact {
    gap: 15px;
  }

  #topbar-email {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #topbar {
    height: 40px;
    font-size: 12px;
  }

  .topbar-contact,
  .social-links {
    display: none !important;
  }

  .topbar-actions {
    margin: 0 auto;
  }
}

/*--------------------------------------------------------------
# Header - Modern Design
--------------------------------------------------------------*/
#header {
  height: 90px;
  padding: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(152, 188, 219, 0.1);
  transition: all 0.4s ease;
  z-index: 997;
  top: 45px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#header.header-scrolled {
  top: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.header-content {
  height: 100%;
  padding: 0 15px;
}


#header .logo {
  display: flex;
  align-items: center;
  color: var(--texto-oscuro);
  text-decoration: none;
  transition: all 0.3s ease;
}

#header .logo img {
  height: var(--navbar-logo-height);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

#header.header-scrolled .logo img {
  height: calc(var(--navbar-logo-height) - 10px);
}

/*--------------------------------------------------------------
# Modern Navigation - Current Design
--------------------------------------------------------------*/

/* Modern Navbar Container 

#navbar.navbar {
  display: block !important;
  padding: 0;
  background: none;
  border: none;
}

/* Main navbar with backdrop filter 
.main-navbar {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.4s ease;
}

.main-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
}

/* Desktop Navigation *
.navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

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

.nav-link {
  display: flex;
  align-items: center;
  color: var(--texto-coorp-01) !important;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 25px;
  white-space: nowrap;
}

/*
.nav-link::before {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--hover-color);
  transition: all 0.3s ease;
}
*/

.nav-link:hover,
.nav-link.active {
  color: var(--hover-color) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 20px;
}

/* Header Actions */
.header-actions {
  gap: 15px;
}

/* CTA Button */
.cta-btn {
  display: inline-block !important;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    var(--main-background) 0%,
    var(--dark-background) 100%
  );
  color: #fff !important;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(152, 188, 219, 0.3);
}

.cta-btn:hover {
  background: linear-gradient(135deg, var(--hover-color) 0%, #b8080a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(208, 15, 16, 0.4);
  color: #fff !important;
}

.cta-btn i {
  font-size: 12px;
}

/* Modern Mobile Toggle */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--texto-coorp-01);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-nav-toggle:hover .hamburger-line {
  background: var(--hover-color);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .nav-link {
    display: block !important;
    padding: 12px 16px;
    font-size: 13px;
  }
}

@media (max-width: 992px) {
  #header {
    display: block !important;
    top: 40px;
    height: 80px;
  }

  #header.header-scrolled {
    height: 70px;
  }

  .header-content {
    padding: 0 10px;
  }

  /* Hide desktop navigation on mobile */
  #navbar.navbar {
    display: none !important;
  }
}

@media (max-width: 1300px) {
  #header {
    height: 80px;
  }
}

@media (max-width: 768px) {
  #header {
    height: 80px;
  }

  #header.header-scrolled {
    height: 80px;
  }

  .cta-btn span {
    display: none;
  }

  @media (max-width: 1300px) {
    .cta-btn {
      display: none !important;
      padding: 10px 16px;
    }
  }

  .cta-btn {
    display: block !important;
    padding: 10px 16px;
  }
}

/**
* 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: 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 - Legacy (Not used in modern design)
--------------------------------------------------------------*/
/**
* Desktop Navigation - Legacy

.navbar.legacy {
  padding: 0;
}

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

.navbar.legacy li {
  position: relative;
}

.navbar.legacy a,
.navbar.legacy 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.legacy a i,
.navbar.legacy a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

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

.navbar.legacy .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.legacy .dropdown ul li {
  min-width: 200px;
  color: var(--texto-coorp-01);
}

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

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

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

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

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

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

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

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

*/
/**
* Modern Mobile Navigation 
*/

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

/* Mobile Navigation Content */
.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  transform: translateX(100%);
  transition: all 0.4s ease;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 100000;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0) !important;
  display: block !important;
}

/* Mobile Navigation Header */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(152, 188, 219, 0.2);
  background: var(--main-background);
}

.mobile-nav-logo {
  height: 40px;
  width: auto;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
  padding: 30px 0;
  position: relative;
  z-index: 100001;
}

.mobile-nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 100002;
}

.mobile-nav-menu li {
  margin: 0;
  position: relative;
  z-index: 100003;
}

.mobile-nav-link {
  display: flex !important;
  align-items: center;
  padding: 16px 25px;
  color: var(--texto-gris-oscuro) !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  z-index: 100001;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(152, 188, 219, 0.1);
  border-left-color: var(--main-background);
  color: var(--main-background) !important;
  transform: translateX(5px);
}

/* Mobile Navigation Footer */
.mobile-nav-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  border-top: 1px solid rgba(152, 188, 219, 0.2);
  background: #f8f9fa;
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(
    135deg,
    var(--main-background) 0%,
    var(--dark-background) 100%
  );
  color: #fff !important;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.mobile-cta-btn:hover {
  background: linear-gradient(135deg, var(--hover-color) 0%, #b8080a 100%);
  transform: translateY(-2px);
  color: #fff !important;
}

.mobile-contact-info {
  text-align: center;
}

.mobile-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--texto-gris-oscuro) !important;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.mobile-contact-link:hover {
  color: var(--main-background) !important;
}

/* Updated Mobile Toggle Styles */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: flex !important;
  }

  .navbar-nav {
    display: none !important;
  }
}

/* Legacy mobile navigation - hide it */
.navbar-mobile {
  display: none !important;
}

/* Hero Section */

.hero {
  min-height: 88vh;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero--gradient {
  background: radial-gradient(
      circle at 30% 30%,
      rgba(152, 188, 219, 0.35),
      transparent 60%
    ),
    linear-gradient(
      135deg,
      var(--main-background) 0%,
      var(--dark-background) 100%
    );
  color: #fff;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6));
  mix-blend-mode: multiply;
  opacity: 0.75;
  z-index: 1;
}

.hero__title {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero__bg-img-wrapper {
  filter: brightness(0.55) contrast(1.15);
  z-index: 0;
}

.hero__bg-img,
#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.15);
  animation: heroZoom 14s linear infinite alternate;
  opacity: 0.65;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.18);
  }
}

.hero__cta .btn {
  border-radius: 25px;
  font-weight: 600;
  padding: 12px 32px;
  transition: all 0.3s ease;
}

.hero__cta .btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
}

.hero__cta .btn-outline-light:hover {
  background: #fff;
  color: var(--main-background);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.hero__cta .btn-primary {
  background: linear-gradient(
    135deg,
    var(--main-background) 0%,
    var(--dark-background) 100%
  );
  border: none;
  box-shadow: 0 4px 15px rgba(152, 188, 219, 0.3);
}

.hero__cta .btn-primary:hover {
  background: linear-gradient(135deg, var(--hover-color) 0%, #b8080a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(208, 15, 16, 0.4);
}

/* Hero Logo Styles */
.hero-logo {
  max-width: 100px;
  width: 80px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  animation: logoFloat 3s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-10px);
  }
}

/* Text utilities for hero */
.text-white-75 {
  font-size: 30px !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.text-primary {
  color: var(--main-background) !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero {
    min-height: 70vh;
    padding: 6rem 0 4rem;
  }

  .hero__title {
    font-size: 2.5rem !important;
  }

  .hero-logo {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 4rem 0 3rem;
  }

  .hero__title {
    font-size: 2rem !important;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .hero-logo {
    max-width: 250px;
  }

  .hero__cta .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .hero__cta {
    gap: 0.75rem !important;
  }
}

/* Legacy hero styles - DISABLED - keeping for backward compatibility but not used 
#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.legacy {
  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;
  }
}
End of legacy hero styles */

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/


.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: var(--main-background);
  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: linear-gradient(
    135deg,
    var(--main-background) 0%,
    var(--dark-background) 100%
  );
  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: 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);
}

@media screen and (max-width: 1024px) {
  .cta .cta-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
}

#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: 140px;
  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);
  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 .loading {
  display: none;
  color: #555;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.1);
  letter-spacing: .3px;
}

.contact .php-email-form .loading.d-block {
  display: block !important;
  animation: fadeInScale .45s ease forwards;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: linear-gradient(135deg, #ed3c0d 0%, #b90f00 100%);
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 6px 18px -4px rgba(189, 32, 0, 0.4);
  letter-spacing: .3px;
}

.contact .php-email-form .error-message.d-block {
  display: block !important;
  animation: fadeInScale .45s ease forwards;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: linear-gradient(135deg, #18d26e 0%, #0f9a4d 100%);
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 6px 18px -4px rgba(24, 210, 110, 0.35);
  letter-spacing: .3px;
}

.contact .php-email-form .sent-message.d-block {
  display: block !important;
  animation: fadeInScale .45s ease forwards;
}

@keyframes fadeInScale { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }

.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 Form Submit Button - Spacing & Modern Layout */
.contact .php-email-form button[type="submit"],
.contact .php-email-form .contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: 32px;
  margin: 18px auto 30px; /* aire alrededor */
  width: auto;
  min-width: 240px;
  background: linear-gradient(135deg, var(--main-background) 0%, var(--dark-background) 100%);
  box-shadow: 0 8px 22px -6px rgba(15,17,21,.3), 0 3px 8px rgba(15,17,21,.18);
  transition: all .35s ease;
}
.contact .php-email-form button[type="submit"]:hover,
.contact .php-email-form .contact-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(15,17,21,.45), 0 6px 14px rgba(15,17,21,.2);
  background: linear-gradient(135deg, var(--hover-color) 0%, #b8080a 100%);
}
@media (max-width: 576px) {
  .contact .php-email-form button[type="submit"],
  .contact .php-email-form .contact-submit-btn { width:100%; min-width:0; padding:14px 24px; }
}

/*--------------------------------------------------------------
# Footer Legacy
--------------------------------------------------------------
#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 {
    width: 200px;
    height: max-content;
    font-size: 15px;
  }
  .texto-rgpd {
    margin: 0;
  }
}

@media (max-width: 766px) {
  #header .logo {
    width: 250px;
    height: max-content;
    font-size: 18px;
  }
}

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

/* Legacy video and hero styles - DISABLED
#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;
}
End legacy video styles */

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

/* Legacy hero logo style - DISABLED
@media (max-width: 600px) {
  .hero-logo {
    max-width: 300px;
  }
}
End legacy hero logo style */

.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);
}

/* =============================================================
   Servicios Modernos (nueva sección services-modern)
   ============================================================= */
.services-modern {
  position: relative;
}
.services-modern .section-title h2 {
  font-weight: 800;
  letter-spacing: 0.5px;
}
.services-modern .lead {
  font-size: 1.05rem;
  color: var(--texto-gris-oscuro);
}

/* Tarjetas modernas */
.services-modern .service-card {
  background: #fff;
  border: 1px solid rgba(152, 188, 219, 0.25);
  border-radius: 18px;
  padding: 2.25rem 1.9rem 2.1rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 28px -8px rgba(15, 17, 21, 0.08),
    0 2px 6px rgba(15, 17, 21, 0.04);
  transition: all 0.45s cubic-bezier(0.4, 0.2, 0.2, 1);
  height: auto;
  border-width: 1px;
}
.services-modern .service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 85% 15%,
    rgba(152, 188, 219, 0.25),
    transparent 60%
  );
  opacity: 0.55;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.services-modern .service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(152, 188, 219, 0.15),
    rgba(15, 17, 21, 0)
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.services-modern .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -10px rgba(15, 17, 21, 0.18),
    0 4px 12px rgba(15, 17, 21, 0.08);
}
.services-modern .service-card:hover::after {
  opacity: 1;
}

.services-modern .service-icon {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(
    135deg,
    var(--main-background) 0%,
    var(--dark-background) 100%
  );
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(152, 188, 219, 0.55);
  position: relative;
  z-index: 2;
  transition: all 0.45s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.services-modern .service-card:hover .service-icon {
  transform: rotate(8deg) scale(1.06);
  box-shadow: 0 10px 24px -6px rgba(152, 188, 219, 0.6);
}
.services-modern .service-icon i {
  line-height: 1;
}

/* Gradients alternativos si se desea (aplicados en HTML como extra class) */
.gradient-primary {
  background: linear-gradient(
    135deg,
    var(--main-background) 0%,
    var(--dark-background) 100%
  ) !important;
}

.services-modern .service-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--texto-gris-oscuro);
  letter-spacing: 0.3px;
}
.services-modern .service-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--texto-gris-oscuro);
}
.services-modern .service-text strong {
  color: var(--main-background);
  font-weight: 700;
}

/* Hover accent linea */
.services-modern .service-title {
  position: relative;
  padding-top: 0.4rem;
}
.services-modern .service-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  background: var(--main-background);
  border-radius: 4px;
  transition: width 0.45s ease;
}
.services-modern .service-card:hover .service-title::before {
  width: 70px;
}

/* Responsive */
@media (max-width: 992px) {
  .services-modern .service-card {
    padding: 2rem 1.6rem 1.9rem;
  }
}
@media (max-width: 768px) {
  .services-modern .lead {
    font-size: 1rem;
  }
  .services-modern .service-card {
    padding: 1.75rem 1.5rem 1.7rem;
  }
  .services-modern .service-icon {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }
  .services-modern .service-title {
    font-size: 1.05rem;
  }
  .services-modern .service-text {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .services-modern .row {
    row-gap: 1.4rem;
  }
  .services-modern .service-card {
    padding: 1.6rem 1.3rem 1.55rem;
  }
  .services-modern .service-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  .services-modern .service-title {
    font-size: 1rem;
  }
  .services-modern .service-text {
    font-size: 0.88rem;
  }
}
/* ============================================================= */

/* =============================================================
   Productos Modernos (products-modern)
   ============================================================= */
.products-modern {
  position: relative;
  font-weight: 300;
}
.products-modern .section-title h2 {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.products-modern .lead {
  font-size: 1.15rem;
  color: var(--texto-gris-oscuro);
}

.product-mini-card {
  background: #fff;
  border: 1px solid rgba(152, 188, 219, 0.25);
  border-radius: 18px;
  padding: 1.9rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 24px -8px rgba(15, 17, 21, 0.08),
    0 2px 6px rgba(15, 17, 21, 0.04);
  transition: all 0.45s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.product-mini-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 85% 15%,
    rgba(152, 188, 219, 0.25),
    transparent 60%
  );
  opacity: 0.55;
  transition: opacity 0.5s;
  pointer-events: none;
}
.product-mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(152, 188, 219, 0.18),
    rgba(15, 17, 21, 0)
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.product-mini-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -12px rgba(15, 17, 21, 0.2),
    0 4px 12px rgba(15, 17, 21, 0.08);
}
.product-mini-card:hover::after {
  opacity: 1;
}

.product-mini-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: linear-gradient(
    135deg,
    var(--main-background) 0%,
    var(--dark-background) 100%
  );
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(152, 188, 219, 0.55);
  transition: all 0.45s cubic-bezier(0.4, 0.2, 0.2, 1);
  position: relative;
  z-index: 2;
}
.product-mini-card:hover .product-mini-icon {
  transform: rotate(6deg) scale(1.07);
  box-shadow: 0 10px 24px -6px rgba(152, 188, 219, 0.62);
}
.product-mini-icon i {
  line-height: 1;
}

.product-mini-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--texto-gris-oscuro);
}
.product-mini-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--texto-gris-oscuro);
  margin: 0;
}
.product-mini-text strong {
  color: var(--main-background);
  font-weight: 700;
}

/* Utilidades de gradiente compartidas */
.products-modern .gradient-primary {
  background: linear-gradient(
    135deg,
    var(--main-background) 0%,
    var(--dark-background) 100%
  ) !important;
}

/* Responsive */
@media (max-width: 992px) {
  .products-modern .lead {
    font-size: 1.05rem;
  }
  .product-mini-text {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--texto-gris-oscuro);
    margin: 0;
  }
  .product-mini-card {
    padding: 1.75rem 1.4rem 1.6rem;
  }
}
@media (max-width: 768px) {
  .products-modern .section-title h2 {
    font-size: 28px;
  }
  .product-mini-card {
    padding: 1.6rem 1.25rem 1.45rem;
  }
  .product-mini-icon {
    width: 58px;
    height: 58px;
       font-size: 26px;
  }
  .product-mini-title {
    font-size: 1rem;
  }
  .product-mini-text {
    font-size: 0.85rem;
  }
}
@media (max-width: 480px) {
  .products-modern .section-title h2 {
    font-size: 26px;
  }
  .products-modern .row {
    row-gap: 1.35rem;
  }
  .product-mini-card {
    padding: 1.5rem 1.15rem 1.35rem;
  }
  .product-mini-icon {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }
  .product-mini-title {
    font-size: 0.95rem;
  }
  .product-mini-text {
    font-size: 0.82rem;
  }
}
/* ============================================================= */

/*--------------------------------------------------------------
# Utilities (replacing common inline styles in templates)
-------------------------------------------------------------*/
.link-inherit {
  color: inherit !important;
}

/* Missing utility classes for modern design */
.mr-8 {
  margin-right: 8px;
}

.gap-8 {
  gap: 8px;
}

.gap-15 {
  gap: 15px;
}

.gap-20 {
  gap: 20px;
}

.gap-25 {
  gap: 25px;
}

/* -------------------------------------------------------------
   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 {
  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: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;
  color: var(--texto-coorp-01);
}

.fs-h1 {
  font-size: 32px !important;
  line-height: 1.5;
  font-weight: 700;
}

/* ----------------------
   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;
}

/* Debug styles for mobile navigation */
.mobile-nav-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0) !important;
  display: block !important;
}

.mobile-nav-overlay.active .mobile-nav-menu {
  display: block !important;
  visibility: visible !important;
}

.mobile-nav-overlay.active .mobile-nav-link {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure body doesn't scroll when mobile menu is open */
body.mobile-nav-active {
  overflow: hidden !important;
}

/* Utility classes for modern hero */
.z-3 {
  z-index: 3 !important;
}

/* =============================================================
   Ajuste tipografías Servicios Modernos para coherencia con welcome
   ============================================================= */
.services-modern .section-title h2 {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.services-modern .lead {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.services-modern .service-title {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--texto-gris-oscuro);
}
.services-modern .service-text {
  font-size: 14.5px;
  line-height: 1.55;
}
@media (max-width: 992px) {
  .services-modern .section-title h2 {
    font-size: 28px;
  }
}
@media (max-width: 768px) {
  .services-modern .section-title h2 {
    font-size: 26px;
  }
  .services-modern .service-title {
    font-size: 18px;
  }
  .services-modern .service-text {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .services-modern .section-title h2 {
    font-size: 24px;
  }
  .services-modern .service-title {
    font-size: 17px;
  }
  .services-modern .service-text {
    font-size: 13.5px;
  }
}
/* ============================================================= */

/* =============================================================
   Ajustes productos: imagen y tipografías coherentes con welcome
   ============================================================= */
.product-mini-media {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
  background: #f3f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px -6px rgba(15, 17, 21, 0.12),
    0 2px 6px rgba(15, 17, 21, 0.05);
}
.product-mini-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease, filter 0.4s ease;
  filter: brightness(0.92) contrast(1.05);
}
.product-mini-card:hover .product-mini-img {
  transform: scale(1.06);
  filter: brightness(0.98) contrast(1.08);
}

/* Tipografía similar a bloques descriptivos (welcome) */
.product-mini-title {
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.35;
}
.product-mini-text {
  font-size: 14.5px;
  line-height: 1.55;
}
@media (max-width: 768px) {
  .product-mini-title {
    font-size: 17px !important;
  }
  .product-mini-text {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .product-mini-title {
    font-size: 16px !important;
  }
  .product-mini-text {
    font-size: 13.5px;
  }
}
/* ============================================================= */

/* Fix: evitar superposición de .mobile-nav-link con footer en pantallas bajas apaisadas */
@media (max-height: 520px) and (orientation: landscape) {
  .mobile-nav-content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .mobile-nav-menu {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 0 12px; /* compacta */
  }
  .mobile-nav-link {
    padding: 10px 18px; /* reduce altura enlace */
    font-size: 14px;
  }
  .mobile-nav-footer {
    position: static; /* deja de superponerse */
    margin-top: auto; /* empuja al final */
    padding: 14px 18px;
    background: #f1f3f5;
  }
  .mobile-cta-btn { padding: 10px 14px; font-size: 14px; }
}

/* Salvaguarda general: si footer sigue absoluto, reserva espacio de scroll */
.mobile-nav-menu { padding-bottom: 140px; }
.mobile-nav-footer { z-index: 10; }
@media (max-height: 520px) and (orientation: landscape) { .mobile-nav-menu { padding-bottom: 0; } }
