/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-color: #011E6D;
  --primary-hover: #FF7E2E;
  --primary-hover2: #4D93CD;
  --secondary-color: #F3F5F7; /* Gris claro */
  --text-color: #333;
  --text-color-light: #eee;
  --text-color-dark: #111;
  --background-light: #fff;
  --background-dark: #111;
  --background-section-bg: #f7f7f7; /* Fondo alternativo secciones */
  --border-color: #ddd;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-darker: rgba(0, 0, 0, 0.2);
  --font-main: "Montserrat", sans-serif;
  --font-secondary: "Open Sans", sans-serif;
  --header-height: 92px;
  --header-scrolled-height: 72px;
}

body {
  background: var(--background-light);
  color: var(--text-color);
  font-family: var(--font-secondary); /* Open Sans para texto general */
}

a {
  color: var(--primary-color);
  transition: color 0.3s ease-in-out;
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  color: var(--primary-hover) !important; /* Usar important con cuidado, aquí por especificidad de librerías */
  outline: none;
  text-decoration: none;
}

p {
  padding: 0;
  margin: 0 0 1.5rem 0; /* Usar rem para márgenes */
  font-size: 1rem; /* Tamaño base */
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main); /* Montserrat para títulos */
  font-weight: 700; /* Más peso para títulos */
  margin: 0 0 1.25rem 0;
  padding: 0;
  color: var(--text-color-dark);
}
/* Tamaños de fuente base (ajustar según diseño) */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Preloader (si se usa) */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--background-light);
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--secondary-color);
  border-top-color: var(--primary-color);
  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;
  display: none;
  background: var(--primary-color);
  color: var(--text-color-light);
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 1;
  font-size: 1.5rem; /* Tamaño icono */
  border-radius: 50%;
  right: 15px;
  bottom: 15px;
  transition: background 0.3s;
  z-index: 997; /* Debajo del header y nav móvil */
  padding-top: 9px;
}

.back-to-top i {
    line-height: 1;
}

.back-to-top:hover {
  background: var(--primary-hover);
  color: var(--text-color-light) !important; /* Asegurar color en hover */
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  padding: 20px 0;
  height: var(--header-height);
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  transition: all 0.5s ease;
  z-index: 998;
  /* Estado inicial: totalmente transparente, sin borde ni sombra */
  background-color: transparent;
  border-bottom: none;
  box-shadow: none;
}

/* Ajustes iniciales para elementos dentro del header transparente */
#header #logo img {
  /* El src se controla por JS */
}
#header .nav-menu a {
  color: var(--text-color-light); /* TEXTO BLANCO INICIALMENTE (sobre #intro) */
  /* border-bottom: 3px solid transparent; ya estaba */
}
#header #mobile-nav-toggle {
   color: var(--text-color-light); /* Icono blanco inicialmente */
   /* height y line-height ya estaban */
}
/* Quitar borde inferior en hover/active cuando es transparente */
#header .nav-menu li:hover > a,
#header .nav-menu > .menu-active > a {
   border-bottom-color: transparent; /* Sin borde inferior visible inicialmente */
   color: var(--primary-hover) !important; /* Color hover puede ser un azul más claro o blanco */
}


/* Estado header CON SCROLL */
#header.header-scrolled {
  /* Fondo blanco semi-transparente con blur */
  background-color: rgba(255, 255, 255, 0.9); /* Ajusta la opacidad (0.9 = 90%) */
  backdrop-filter: blur(10px); /* Efecto blur */
  -webkit-backdrop-filter: blur(10px); /* Para Safari */

  /* Sombra suave para separar */
  box-shadow: 0px 2px 15px var(--shadow-color);

  /* Quitar el borde inferior */
  border-bottom: none;

  /* Ajustar altura y padding (como ya estaba) */
  padding: 10px 0;
  height: var(--header-scrolled-height);
}

/* Ajustes para elementos dentro del header con scroll */
#header.header-scrolled .nav-menu a {
  color: var(--text-color); /* Texto oscuro normal (sobre fondo claro) */
}
/* Mostrar borde inferior en hover/active CUANDO tiene scroll */
#header.header-scrolled .nav-menu li:hover > a,
#header.header-scrolled .nav-menu > .menu-active > a {
  color: var(--primary-color) !important;
  border-bottom-color: var(--primary-color); /* Borde visible ahora */
}
#header.header-scrolled #mobile-nav-toggle {
    color: var(--primary-color); /* Icono azul */
    height: var(--header-scrolled-height);
    line-height: var(--header-scrolled-height);
}
/* Logo negro y icono azul se controlan por JS */
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Nav Menu Essentials */
.nav-menu, .nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu ul {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  z-index: 99;
}
.nav-menu li {
  position: relative;
  white-space: nowrap;
}
.nav-menu > li {
  float: left;
  margin-left: 10px; /* Espacio entre items principales */
}
.nav-menu li:hover > ul, .nav-menu li.sfHover > ul {
  display: block;
}
.nav-menu ul ul {
  top: 0;
  left: 100%;
}
.nav-menu ul li {
  min-width: 180px;
}

/* Nav Menu Arrows */
.sf-arrows .sf-with-ul { padding-right: 30px; }
.sf-arrows .sf-with-ul:after {
  content: "\f107"; /* FontAwesome down arrow */
  position: absolute;
  right: 15px;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  color: inherit; /* Heredar color del enlace */
}
.sf-arrows ul .sf-with-ul:after { content: "\f105"; /* FontAwesome right arrow */ }

/* Nav Menu Container */
#nav-menu-container {
  float: right;
  margin: 0;
   display: flex; /* Ayuda a alinear verticalmente si es necesario */
   align-items: center;
   height: 100%; /* Ocupar altura del header */
}

/* Nav Menu Styling */
.nav-menu a {
  padding: 8px 12px; /* Aumentar padding horizontal */
  text-decoration: none;
  display: inline-block;
  color: var(--text-color-dark); /* Color inicial oscuro para contraste con header transparente */
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.875rem; /* 14px */
  text-transform: uppercase;
  outline: none;
  transition: color 0.3s, border-bottom 0.3s; /* Añadir transición para borde */
  border-bottom: 3px solid transparent; /* Borde transparente inicial */
}

/* Estilo enlaces cuando header tiene scroll */
.header-scrolled .nav-menu a {
  color: var(--text-color); /* Color normal en header con fondo blanco */
}

/* Estilo hover y activo */
.nav-menu li:hover > a,
.nav-menu > .menu-active > a {
  color: var(--primary-color) !important; /* Color primario al hacer hover o estar activo */
  border-bottom-color: var(--primary-color); /* Mostrar borde inferior */
}

/* Submenú */
.nav-menu ul {
  margin: 0; /* Quitar margen superior */
  padding: 10px 0; /* Padding vertical, sin padding horizontal */
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  background: var(--background-light);
  border-radius: 4px; /* Bordes redondeados */
}
.nav-menu ul li {
  transition: background-color 0.3s;
}
.nav-menu ul li a {
  padding: 10px 15px; /* Padding items submenú */
  color: var(--text-color);
  transition: color 0.3s;
  display: block;
  font-size: 0.8125rem; /* 13px */
  text-transform: none;
  font-weight: 500; /* Ligeramente menos peso */
  border-bottom: none; /* Sin borde inferior en submenús */
}
.nav-menu ul li:hover {
    background-color: var(--secondary-color); /* Fondo suave al hacer hover */
}
.nav-menu ul li:hover > a {
  color: var(--primary-color) !important;
}
.nav-menu ul ul { margin: 0; }

/*--------------------------------------------------------------
# Mobile Navigation
--------------------------------------------------------------*/
#mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 0;
  z-index: 1001; /* PONER ENCIMA DEL MENÚ MÓVIL */
  margin: 0;
  border: 0;
  background: none;
  font-size: 24px;
  display: none;
  transition: color 0.4s;
  outline: none;
  cursor: pointer;
  color: var(--text-color-light);
  height: var(--header-height);
  line-height: var(--header-height);
}

#header.header-scrolled #mobile-nav-toggle {
    color: var(--primary-color);
    height: var(--header-scrolled-height);
    line-height: var(--header-scrolled-height);
}
.mobileBlanco i { color: var(--text-color-light) !important; }
.mobileAzul i { color: var(--primary-color) !important; position:relative;top:-10px; }


/* Mobile Nav Styling - NUEVOS ESTILOS */
#mobile-nav {
  position: fixed;
  top: 0;
  padding-top: 60px; /* Espacio para el botón de cerrar (que está en el toggle) */
  bottom: 0;
  z-index: 1000; /* Debajo del toggle */
  background: var(--background-light); /* Fondo blanco */
  left: -280px; /* Oculto a la izquierda (un poco más ancho) */
  width: 280px; /* Más ancho */
  overflow-y: auto;
  transition: left 0.4s ease;
  box-shadow: 5px 0px 15px rgba(0, 0, 0, 0.1); /* Sombra lateral */
}

#mobile-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#mobile-nav ul li {
  position: relative;
  border-bottom: 1px solid var(--secondary-color); /* Línea divisoria sutil */
}
#mobile-nav ul li:last-child {
    border-bottom: none; /* Sin borde en el último */
}

#mobile-nav ul li a {
  color: var(--text-color); /* Texto oscuro */
  font-size: 0.9rem; /* 14px-15px */
  text-transform: none; /* Sin mayúsculas forzadas */
  overflow: hidden;
  padding: 15px 20px; /* Más padding vertical y horizontal */
  position: relative;
  text-decoration: none;
  width: 100%;
  display: block;
  outline: none;
  font-weight: 500; /* Peso normal */
  font-family: var(--font-main);
  transition: color 0.3s, background-color 0.3s;
}

#mobile-nav ul li a:hover {
  color: var(--primary-color); /* Color primario al hacer hover */
  background-color: var(--secondary-color); /* Fondo gris claro hover */
}

#mobile-nav ul li li { padding-left: 40px; /* Mayor indentación submenú */ }

#mobile-nav ul li.menu-active > a,
#mobile-nav ul li.menu-item-active > a {
  color: var(--primary-color); /* Color primario para activo */
  font-weight: 600; /* Más peso para activo */
}

#mobile-nav ul .menu-has-children i {
  position: absolute;
  right: 0;
  top: 0;
  padding: 16px 20px; /* Ajustar padding icono */
  cursor: pointer;
  color: #aaa; /* Color icono flecha más suave */
  transition: transform 0.3s;
}

#mobile-nav ul .menu-has-children i.fa-chevron-up {
  color: var(--primary-color); /* Color primario cuando desplegado */
  transform: rotate(180deg);
}

/* Mobile Nav Overlay - AJUSTADO */
#mobile-body-overly {
  width: 100%;
  height: 100%;
  z-index: 999; /* Detrás del menú y el toggle */
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(0, 0, 0, 0.7); /* Oscurecer un poco más */
  display: none;
  opacity: 0; /* Iniciar transparente */
  transition: opacity 0.4s ease; /* Transición suave para el overlay */
}

/* Mobile Nav Active State - AJUSTADO */
body.mobile-nav-active { overflow: hidden; }
body.mobile-nav-active #mobile-nav { left: 0; }
body.mobile-nav-active #mobile-nav-toggle {
  /* El color se gestiona con las clases mobileBlanco/mobileAzul y el estado :hover */
  /* Asegurar que el icono 'X' se vea bien */
  color: var(--primary-color); /* Color primario para la 'X' sobre el menú blanco */
}

body.mobile-nav-active #mobile-body-overly {
    display: block;
    opacity: 1; /* Hacer visible el overlay */
}
/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  overflow: hidden; /* Evitar barras de scroll por animaciones WOW */
  padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}
.section-header h3 {
  font-size: 2rem; /* 32px */
  color: var(--text-color-dark);
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}
.section-header h3::before {
  content: '';
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: var(--border-color);
  bottom: 1px;
  left: calc(50% - 60px);
}
.section-header h3::after {
  content: '';
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: calc(50% - 20px);
}
.section-header p.section-description {
  text-align: center;
  padding-bottom: 30px;
  color: var(--text-color);
  font-size: 1.1rem; /* 18px */
  max-width: 800px; /* Limitar ancho para mejor lectura */
  margin-left: auto;
  margin-right: auto;
}

/* Section with background */
.section-bg {
  background-color: var(--background-section-bg);
  /* background-image: url('/Imagenes/mapamundienblanco.png'); */ /* Considerar si se ve bien y no afecta rendimiento */
  /* background-position: center top; */
  /* background-repeat: no-repeat; */
  /* background-size: cover; */
  /* background-attachment: fixed; */ /* Evitar fixed si es posible por rendimiento */
  position: relative;
}
/* Overlay para secciones con fondo si es necesario */
.section-bg::before {
  /* content: ''; */ /* Descomentar y estilizar si se necesita overlay */
  /* position: absolute; */
  /* left: 0; right: 0; top: 0; bottom: 0; */
  /* background: rgba(255, 255, 255, 0.9); */
  /* z-index: 1; */
}
.section-bg .container {
  position: relative;
  z-index: 2; /* Contenido encima del overlay */
}


/*--------------------------------------------------------------
# Intro Section
--------------------------------------------------------------*/
#intro {
  display: table;
  width: 100%;
  height: 100vh;
  background: var(--background-dark); /* Fondo negro como fallback */
  position: relative;
  padding: 0; /* Sin padding vertical */
}
/* Fondo animado con pseudo-elemento */
#intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/Imagenes/FondoIntro/fondo-intro.jpg') no-repeat center center;
  background-size: cover;
  z-index: 1; /* Detrás del contenido, encima del fondo negro */
  animation: zoomEffect 25s infinite linear alternate; /* Animación más lenta */
}

@keyframes zoomEffect {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); } /* Zoom más sutil */
}

#intro .carousel, #intro .carousel-inner, #intro .carousel-item {
    height: 100%; /* Asegurar que ocupen toda la altura */
}

#intro .carousel-item {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Fondo oscuro por defecto para TODOS los slides */
  /*background-color: #1a1a1a; /* Un gris muy oscuro, casi negro */
  /* La imagen del primer slide sobreescribirá esto vía JS */
}
/* Overlay oscuro para cada slide */
#intro .carousel-item::before {
  content: '';
  background-color: rgba(0, 0, 0, 0.5); /* Overlay más oscuro */
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0; right: 0; left: 0; bottom: 0;
  z-index: 2; /* Encima de la imagen de fondo del item */
}
/* Contenedor del contenido dentro del carrusel */
#intro .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Cambiado de absolute */
  text-align: center;
  z-index: 3; /* Encima del overlay */
  padding: 0 15px; /* Padding horizontal */
}
#intro .carousel-content {
   max-width: 700px; /* Limitar ancho del contenido */
}
.intro-container{
    height:100%;
}
/* Estilos Texto Intro - Slide 1 */
.intro-slide1-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.intro-logo-container { margin-bottom: 1rem; }
.logoIntroduccion {
    max-width: 180px; /* Tamaño base logo */
    height: auto;
}
.intro-title { /* FELOBE */
  color: var(--text-color-light);
  margin-bottom: 0;
  font-size: 3.5rem; /* Tamaño base */
  font-weight: 700;
  letter-spacing: 0.05em; /* Espaciado ligero */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}
.intro-slogan-container { margin-top: 1rem; }
.slogan {
  line-height: 1.4; /* Mejorar legibilidad */
  color: var(--text-color-light);
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
  font-size: 1.3rem; /* Tamaño base slogan */
  font-style: italic;
  margin: 0 auto;
  max-width: 90%;
}

/* Estilos Texto Intro - Otros Slides */
.carousel-title {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}
.carousel-text {
    width: 80%;
    margin: 0 auto 30px auto;
    color: var(--text-color-light);
    font-size: 1.1rem;
     line-height: 1.6;
     text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* Estilos Carusel (Fade, Controles, Indicadores) */
#intro .carousel-fade .carousel-inner .carousel-item { transition-property: opacity; }
#intro .carousel-fade .carousel-inner .carousel-item,
#intro .carousel-fade .carousel-inner .active.carousel-item-left,
#intro .carousel-fade .carousel-inner .active.carousel-item-right { opacity: 0; }
#intro .carousel-fade .carousel-inner .active,
#intro .carousel-fade .carousel-inner .carousel-item-next.carousel-item-left,
#intro .carousel-fade .carousel-inner .carousel-item-prev.carousel-item-right { opacity: 1; transition: opacity 0.7s ease; } /* Transición más suave */
#intro .carousel-fade .carousel-inner .carousel-item-next,
#intro .carousel-fade .carousel-inner .carousel-item-prev,
#intro .carousel-fade .carousel-inner .active.carousel-item-left,
#intro .carousel-fade .carousel-inner .active.carousel-item-right {
  left: 0;
  transform: translate3d(0, 0, 0);
}

#intro .carousel-control-prev,
#intro .carousel-control-next {
  width: 8%; /* Ancho controles */
  opacity: 0.8;
  transition: opacity 0.3s;
  z-index: 4; /* Encima del contenido */
}
#intro .carousel-control-prev:hover,
#intro .carousel-control-next:hover {
    opacity: 1;
}
#intro .carousel-control-next-icon,
#intro .carousel-control-prev-icon {
  background: none;
  font-size: 2.5rem; /* Tamaño iconos flechas */
  line-height: 1;
  color: rgba(255, 255, 255, 0.7); /* Color semi-transparente */
}

#intro .carousel-indicators {
    bottom: 30px; /* Posición indicadores */
    z-index: 4; /* Encima del contenido */
}
#intro .carousel-indicators li {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.5); /* Indicadores semi-transparentes */
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  transition: background-color 0.3s;
}
#intro .carousel-indicators li.active {
  background-color: var(--background-light); /* Indicador activo blanco */
}

/* Botón Get Started (si se usa) */
#intro .btn-get-started {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1rem; /* 16px */
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 35px; /* Más padding */
  border-radius: 50px;
  transition: all 0.5s;
  margin: 10px;
  color: var(--text-color-light);
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
}
#intro .btn-get-started:hover {
  background: transparent; /* Fondo transparente al hacer hover */
  border-color: var(--text-color-light); /* Borde blanco */
  color: var(--text-color-light) !important;
}

/*--------------------------------------------------------------
# Tarjetas Section (About Us)
--------------------------------------------------------------*/
.section-about {
    color: var(--text-color-dark);
}
.tarjetas-container {
    margin-top: 30px;
}
.tarjeta {
  box-shadow: 0 4px 15px var(--shadow-color); /* Sombra más pronunciada */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
  background: var(--background-light);
  display: flex;
  flex-direction: column; /* Vertical por defecto */
  height: 100%; /* Para que todas las tarjetas en una fila tengan la misma altura */
  border-radius: 8px; /* Bordes redondeados */
  overflow: hidden; /* Para contener bordes redondeados */
}
.tarjeta:hover {
    transform: translateY(-5px); /* Efecto levantar al hacer hover */
    box-shadow: 0 8px 25px var(--shadow-darker);
}
.tarjeta-imagen.imagen-acerca {
    /* width: 100%; */ /* Ocupar ancho completo de la tarjeta */
     /* max-height: 200px; */ /* Limitar altura si es necesario */
    object-fit: contain; /* Ajustar imagen sin deformar */
    padding: 20px;
    margin: 0 auto; /* Centrar si es más pequeña que el contenedor */
    max-width: 150px; /* Mantener tamaño original */
}
.tarjeta-cuerpo {
  padding: 1.5rem; /* Más padding interno */
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Ocupar espacio restante */
}
.tarjeta-titulo {
  text-align: center;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem; /* Espacio bajo el título */
}
.tarjeta-texto {
  flex-grow: 1; /* Párrafo ocupa espacio restante */
  font-size: 0.95rem; /* Tamaño texto tarjeta */
  text-align: justify; /* Justificar texto */
  color: var(--text-color);
  margin-bottom: 0; /* Sin margen inferior para el último elemento */
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.section-services {
  background: var(--background-light); /* Fondo blanco */
}
#services .box {
  padding: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 0 10px 40px 10px; /* Margen alrededor */
  background: var(--background-light);
  box-shadow: 0 10px 29px 0 var(--shadow-color);
  transition: all 0.3s ease-in-out;
  text-align: center; /* Centrar contenido */
  height: 100%; /* Misma altura */
  display: flex;
  flex-direction: column;
}
#services .box:hover {
  transform: translateY(-5px);
   box-shadow: 0 15px 35px 0 var(--shadow-darker);
}

/* Contenedor del icono */
#services .icon {
  margin: 0 auto 15px auto; /* Centrar icono */
  display: inline-flex; /* Usar inline-flex o flex */
  align-items: center; /* Centrar icono verticalmente */
  justify-content: center; /* Centrar icono horizontalmente */
  text-align: center;
  border-radius: 50%;
  width: 70px; /* Tamaño contenedor icono */
  height: 70px;
  background: var(--primary-color); /* Fondo azul */
  transition: all 0.3s ease-in-out;
}

/* --- NUEVA REGLA o AJUSTE PARA EL ICONO <i> --- */
#services .icon i {
  color: var(--text-color-light); /* Icono blanco */
  font-size: 36px; /* Tamaño del icono Font Awesome */
  line-height: 1; /* Asegurar que no añada espacio extra */
  transition: color 0.3s ease-in-out; /* Transición para el color del icono */
}
/* --- FIN NUEVA REGLA --- */

/* Quitar reglas para la clase service-icon-img si existían */
/*
.service-icon-img {
    max-width: 40px;
    max-height: 40px;
}
*/

/* Estilos Hover */
#services .box:hover .icon {
  background: var(--background-light); /* Fondo blanco al hacer hover */
  border: 2px solid var(--primary-color); /* Borde color primario */
}
#services .box:hover .icon i {
  color: var(--primary-color); /* Icono color primario al hacer hover */
}

#services .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.1rem; /* 18px */
  text-align: center;
}
#services .title a {
  color: var(--text-color-dark);
  transition: color 0.3s;
}
#services .box:hover .title a {
  color: var(--primary-color);
}
#services .description {
  font-size: 0.9rem; /* 14px */
  line-height: 1.6;
  text-align: center;
  color: var(--text-color);
  margin-bottom: 0;
  flex-grow: 1; /* Descripción ocupa espacio restante */
}

/*--------------------------------------------------------------
# Equipo Section (Nuestro Grupo)
--------------------------------------------------------------*/
.section-equipo {
    /* Usa section-bg si quieres fondo alternativo */
}
#equipo .about-cols {
    margin-top: 30px;
}
#equipo .about-col {
  background: var(--background-light);
  border-radius: 10px; /* Bordes redondeados */
  box-shadow: 0px 2px 12px var(--shadow-color);
  margin-bottom: 30px; /* Espacio inferior */
  overflow: hidden; /* Para contener imagen y icono */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Misma altura */
  display: flex; /* Flex para alinear contenido */
  flex-direction: column;
}
#equipo .about-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-darker);
}
#equipo .about-col .img {
  position: relative;
  /* box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08); No necesita sombra extra */
}
#equipo .about-col .img img {
   /* La imagen ya es responsive con img-fluid */
   display: block; /* Asegurar que no haya espacio extra */
   width: 100%;
   height: 150px; /* Altura fija para imágenes de equipo */
   object-fit: contain; /* Ajustar sin deformar */
   padding: 10px; /* Espacio alrededor */
}
#equipo .about-col .icon {
    width: 60px; /* Icono más grande */
    height: 60px;
    padding-top: 0; /* Quitar padding, centrar con flex */
    text-align: center;
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%; /* Icono redondo */
    border: 4px solid var(--background-light);
    left: calc(50% - 30px); /* Centrado horizontalmente */
    bottom: -30px; /* Mitad afuera */
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
#equipo .about-col:hover .icon {
    background-color: var(--primary-hover);
    transform: scale(1.1); /* Efecto hover icono */
}
#equipo .about-col .icon img{
    /*width: 30px;*/ /* Tamaño imagen dentro del icono */
    height: auto;
}
#equipo .about-col .title {
  color: var(--text-color-dark);
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem; /* Tamaño título */
  padding: 0;
  margin: 45px 15px 10px 15px; /* Espacio arriba (por icono), lados y abajo */
}
#equipo .about-col .title a {
  color: inherit; /* Heredar color */
  transition: color 0.3s;
}
#equipo .about-col .title a:hover {
  color: var(--primary-color);
}
#equipo .about-col p.equipo-descripcion {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-color);
  margin-bottom: 20px; /* Margen final */
  padding: 0 20px;
  text-align: center;
  flex-grow: 1; /* Descripción ocupa espacio */
}

/*--------------------------------------------------------------
# Próximamente Section
--------------------------------------------------------------*/
.section-proximamente {
    background-color: var(--background-light);
}
.proximamente-card {
    background-color: var(--secondary-color); /* Fondo gris claro */
    border-color: var(--border-color) !important; /* Asegurar borde */
}
.proximamente-quote-text {
    color: var(--primary-color);
    font-weight: bold;
    font-style: italic;
    font-size: 1.8rem; /* Ajustar tamaño */
}
.proximamente-quote-footer {
    color: var(--text-color);
    font-size: 1rem;
}
.proximamente-image-container {
    overflow: hidden; /* Asegurar que imagen redondeada funcione */
}
.proximamente-image-title {
    color: var(--text-color-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.proximamente-image {
    transition: transform 0.5s ease;
}
.proximamente-card:hover .proximamente-image {
    transform: scale(1.05); /* Efecto zoom suave */
}
/* En #header o #logo */
#logo img {
  padding: 0;
  margin: 0;
  max-height: 50px; /* Altura máxima del logo */
  width: auto;
  transition: all 0.3s ease; /* Transición suave si cambia de tamaño */
  vertical-align: middle; /* Alinear verticalmente si es necesario */
}

/* Estilo específico para el logo cuando el header está scrolleado, si es necesario */
/* Por ejemplo, si necesitas ajustar márgenes o altura */
/*
#header.header-scrolled #logo img {
  max-height: 40px;
}
*/

/* Estilos para el carrusel Intro */
#intro .carousel-item {
  /* ... (otros estilos) ... */
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* IMPORTANTE: Quita cualquier background-color de aquí */
}
/* Estilos para featured-carousel (Owl Carousel) */
.featured-carousel .item .work {
    height: 400px; /* Altura fija para los items del carrusel */
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: 8px; /* Bordes redondeados */
}
.featured-carousel .item .img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 100%;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease; /* Transición para zoom suave */
}
.featured-carousel .item:hover .img {
    transform: scale(1.1); /* Efecto zoom al pasar el mouse */
}
.featured-carousel .item .text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); /* Degradado oscuro abajo */
    padding: 30px 20px;
    z-index: 2;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease;
}
.featured-carousel .item:hover .text {
    opacity: 1; /* Mostrar texto al hacer hover */
}
.carrusel-proximamente {
  color: var(--text-color-light);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem; /* Tamaño texto carrusel */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
  text-align: center;
}
/* Estilos para controles Owl Carousel */
.featured-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    margin-top: 0; /* Resetear margen */
}
.featured-carousel .owl-nav button {
    position: absolute;
    background: rgba(255, 255, 255, 0.8) !important;
    color: var(--primary-color) !important;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s;
}
.featured-carousel .owl-nav button:hover {
    background: var(--primary-color) !important;
    color: var(--text-color-light) !important;
}
.featured-carousel .owl-nav .owl-prev { left: -20px; }
.featured-carousel .owl-nav .owl-next { right: -20px; }
.featured-carousel .owl-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}
.featured-carousel .owl-dot {
    background: rgba(255, 255, 255, 0.5) !important;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-radius: 50%;
    transition: background 0.3s;
}
.featured-carousel .owl-dot.active {
    background: var(--background-light) !important;
}

/*--------------------------------------------------------------
# Encuéntranos Section (Mapa)
--------------------------------------------------------------*/
.section-encuentranos {
    padding-bottom: 0; /* Quitar padding inferior si el mapa va hasta abajo */
}
.map-container {
    height: 500px; /* Altura del mapa */
    margin-bottom: -10px; /* Compensar posible espacio inferior del iframe */
}
.map-container iframe {
    border: 0; /* Sin borde */
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.section-contact {
    /* Usa section-bg si quieres fondo alternativo */
}
#contact .contact-info {
  margin-bottom: 30px; /* Aumentar espacio */
  text-align: center;
}
#contact .contact-info i {
  font-size: 3rem; /* Icono más grande */
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary-color);
}
#contact .contact-info address,
#contact .contact-info p {
  margin-bottom: 5px; /* Menos espacio entre líneas */
  color: var(--text-color);
  font-size: 0.95rem;
}
#contact .contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--text-color-dark);
}
#contact .contact-info a {
  color: var(--text-color); /* Enlaces de contacto color texto normal */
  transition: color 0.3s;
}
#contact .contact-info a:hover {
  color: var(--primary-color) !important; /* Hover color primario */
}
#contact .contact-address,
#contact .contact-phone,
#contact .contact-email {
  margin-bottom: 30px;
  padding: 20px; /* Añadir padding */
  border: 1px solid var(--border-color); /* Borde sutil */
  border-radius: 8px;
  height: 100%;
  background-color: var(--background-light); /* Fondo blanco */
}

/* Formulario Contacto */
#contact .form label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color-dark);
    font-size: 0.9rem;
}
#contact .form input,
#contact .form textarea {
  padding: 12px 15px;
  border-radius: 5px; /* Bordes redondeados */
  box-shadow: none;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s;
  width: 100%; /* Asegurar ancho completo */
}
#contact .form input:focus,
#contact .form textarea:focus {
    border-color: var(--primary-color);
    outline: none; /* Quitar outline por defecto */
    box-shadow: 0 0 0 2px rgba(1, 30, 109, 0.2); /* Sombra suave focus */
}
#contact .form button[type="submit"] {
  background: var(--primary-color);
  border: 0;
  padding: 12px 35px; /* Más padding */
  color: var(--text-color-light);
  transition: background-color 0.4s;
  cursor: pointer;
  border-radius: 50px; /* Botón redondeado */
  font-weight: 600;
  font-size: 1rem;
}
#contact .form button[type="submit"]:hover {
  background: var(--primary-hover);
}
#contact .form button[type="submit"] i {
    margin-right: 8px; /* Espacio icono */
}

/* Mensajes Validación y Respuesta */
#contact .form .validation {
  color: #ff4c4c; /* Rojo para errores */
  display: none;
  margin: 5px 0 15px 0;
  font-weight: 400;
  font-size: 0.8rem;
}
#contact .form #sendmessage {
  color: #28a745; /* Verde para éxito */
  border: 1px solid #28a745;
  display: none;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  background-color: #e9f7ec; /* Fondo verde claro */
  border-radius: 5px;
}
#contact .form #errormessage {
  color: #dc3545; /* Rojo para error */
  border: 1px solid #dc3545;
  display: none;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  background-color: #f8d7da; /* Fondo rojo claro */
  border-radius: 5px;
}
#contact .form #sendmessage.show,
#contact .form #errormessage.show { display: block; }

/* Estilos reCAPTCHA */
.recaptcha-container {
    margin-top: 15px;
}
.recaptcha-notice {
    font-size: 0.8rem;
    color: #6c757d; /* Gris */
    line-height: 1.4;
}
.recaptcha-notice a {
    color: var(--primary-color);
    text-decoration: underline;
}
.recaptcha-notice a:hover {
    color: var(--primary-hover) !important;
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--primary-color); /* Fondo principal footer */
  padding: 0 0 30px 0;
  color: var(--text-color-light);
  font-size: 0.9rem; /* 14px */
}

#footer .footer-top {
  background: var(--background-dark); /* Fondo superior más oscuro */
  padding: 60px 0 30px 0;
}

#footer .footer-top .footer-info { margin-bottom: 30px; }

.logo-and-title {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre logo y título (si lo usas) */
    margin-bottom: 20px;
}
.logo-footer {
    max-width: 180px; /* Tamaño logo footer */
    height: auto;
}
#footer .footer-top .footer-info h3 { /* Si decides usar h3 junto al logo */
  font-size: 2rem;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--text-color-light);
}
#footer .footer-top .footer-info p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
  font-family: var(--font-secondary);
  color: var(--text-color-light); /* Texto más claro */
}

/* Footer Social Links */
#footer .footer-top .social-links { margin-top: 20px; }
#footer .footer-top .social-links a {
  font-size: 1.2rem; /* Tamaño iconos */
  display: inline-flex; /* Usar flex para centrar icono */
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1); /* Fondo sutil */
  color: var(--text-color-light);
  line-height: 1;
  padding: 0; /* Quitar padding, tamaño controlado por width/height */
  margin-right: 8px; /* Espacio entre iconos */
  border-radius: 50%;
  text-align: center;
  width: 40px; /* Tamaño contenedor icono */
  height: 40px;
  transition: all 0.3s ease;
}
#footer .footer-top .social-links a:hover {
  background: var(--text-color-light); /* Fondo blanco al hacer hover */
  color: var(--primary-color) !important; /* Icono color primario */
  transform: scale(1.1); /* Efecto zoom */
}

/* Footer Titles (h4) */
#footer .footer-top h4 {
  font-size: 1rem; /* 16px */
  font-weight: bold;
  color: var(--text-color-light);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px; /* Espacio bajo el título */
}
#footer .footer-top h4::after { /* Solo línea decorativa */
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary-color); /* Línea color primario */
  width: 50px;
}

/* Footer Links */
#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: 10px; /* Espacio icono flecha */
  color: var(--primary-color); /* Icono flecha color primario */
  font-size: 1rem;
}
#footer .footer-top .footer-links ul li {
  padding: 10px 0;
  display: flex; /* Alinear icono y texto */
  align-items: center;
}
#footer .footer-top .footer-links ul li:first-child { padding-top: 0; }
#footer .footer-top .footer-links ul a {
  color: var(--text-color-light);
  transition: color 0.3s;
  display: inline-block;
  line-height: 1;
}
#footer .footer-top .footer-links ul a:hover {
  color: var(--primary-color) !important; /* Hover color primario */
}

/* Footer Contact */
#footer .footer-top .footer-contact { margin-bottom: 30px; }
#footer .footer-top .footer-contact p {
  line-height: 1.8; /* Mayor espacio entre líneas */
  color: var(--text-color-light);
}
.contact-link {
    color: var(--text-color-light) !important; /* Asegurar color claro */
    transition: color 0.3s;
}
.contact-link:hover {
    color: var(--primary-hover) !important; /* Hover más claro */
    text-decoration: underline;
}

/* Footer Newsletter */
#footer .footer-top .footer-newsletter { margin-bottom: 30px; }
#footer .footer-top .footer-newsletter p { margin-bottom: 15px; color: var(--text-color-light); }
#footer .footer-top .footer-newsletter form {
    display: flex; /* Alinea input y botón */
    background: var(--background-light); /* Fondo blanco para el contenedor */
    padding: 6px 10px;
    position: relative;
    border-radius: 50px;
}
#footer .footer-top .footer-newsletter input[type="email"] {
  border: 0;
  padding: 4px;
  width: calc(100% - 110px); /* Ancho flexible */
  background: transparent; /* Fondo transparente */
  outline: none;
}
#footer .footer-top .footer-newsletter input[type="submit"] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 1rem;
  /*padding: 0 20px;*/
  background: var(--primary-color);
  color: var(--text-color-light);
  transition: background 0.3s;
  border-radius: 0 50px 50px 0; /* Bordes redondeados solo a la derecha */
  cursor: pointer;
  width: 100px; /* Ancho fijo botón */
}
#footer .footer-top .footer-newsletter input[type="submit"]:hover {
  background: var(--primary-hover);
}
.grecaptcha-badge{
    display:none!important;
}
/* Footer Bottom */
#footer .copyright {
  text-align: center;
  padding-top: 30px;
  color: var(--text-color-light);
}
#footer .credits {
  padding-top: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7); /* Créditos más tenues */
}
#footer .credits a {
  color: var(--text-color-light) !important; /* Enlace créditos blanco */
  transition: color 0.3s;
}
#footer .credits a:hover {
  color: var(--primary-hover) !important;
}


/*--------------------------------------------------------------
# Responsive Media Queries
--------------------------------------------------------------*/

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    #intro .carousel-content { padding: 0 10px; }
    .intro-title { font-size: 2.5rem; }
    .slogan { font-size: 1rem; }
    .carousel-title { font-size: 2rem; }
    .carousel-text { font-size: 0.9rem; width: 95%; }
    .logoIntroduccion { max-width: 120px; }
    .section-header h3 { font-size: 1.8rem; }
    .section-header p.section-description { font-size: 1rem; }
    #contact .contact-phone, #contact .contact-email { border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); } /* Añadir bordes en móvil si se apilan */
    #footer .footer-top .footer-info,
    #footer .footer-top .footer-links,
    #footer .footer-top .footer-contact,
    #footer .footer-top .footer-newsletter { text-align: center; }
    #footer .footer-top h4::after { left: 50%; transform: translateX(-50%); } /* Centrar línea decorativa */
    .logo-and-title { justify-content: center; }
     .featured-carousel .owl-nav button { display: none; } /* Ocultar flechas en móvil */
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .logoIntroduccion { max-width: 150px; }
    .slogan { font-size: 1.1rem; }
    .carousel-title { font-size: 2.5rem; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    #intro .carousel-content { max-width: 600px; }
    .intro-title { font-size: 3rem; }
    .slogan { font-size: 1.2rem; }
    .carousel-title { font-size: 2.8rem; }
    .carousel-text { font-size: 1rem; }
    .logoIntroduccion { max-width: 180px; }
    #contact .contact-phone { border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); } /* Bordes separadores */
    .featured-carousel .owl-nav button { display: block; } /* Mostrar flechas */
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    #intro .carousel-content { max-width: 700px; }
    .intro-title { font-size: 3.5rem; }
    .slogan { font-size: 1.3rem; }
    .carousel-title { font-size: 3rem; }
    .carousel-text { font-size: 1.1rem; }
    .logoIntroduccion { max-width: 200px; }
    #nav-menu-container { padding-right: 0; } /* Quitar padding extra si no es necesario */
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    #intro .carousel-content { max-width: 800px; }
    .intro-title { font-size: 4rem; }
    .slogan { font-size: 1.5rem; }
    .carousel-title { font-size: 3.5rem; }
    .logoIntroduccion { max-width: 220px; }
}

/* Mobile Nav Breakpoint */
@media (max-width: 991.98px) { /* Ajustar si el menú desktop rompe antes */
  #nav-menu-container { display: none; }
  #mobile-nav-toggle { display: block; /* Mostrar botón hamburguesa */ }
}
