/* =====================================================
   ESTILOS BASE DE ESTRUCTURA (HTML, BODY, WRAPPER)
   ===================================================== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =====================================================
   MENU DE NAVEGACION SUPERIOR (NAVBAR) TODAS
   ===================================================== */

/* Estilo inicial: fijo y semitransparente */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85) !important;
    transition: background 0.3s ease-in-out;
	padding: 18px 30px;
}

/* Al hacer scroll: se vuelve blanco s車lido */
.navbar.scrolled {
    background: rgba(255, 255, 255, 1) !important;
}

/* Tama?o y estilo del texto del men迆 */
.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 16px;
    transition: background-color 0.3s ease;
}

/* Estilo al pasar el cursor */
.navbar-nav .nav-link:hover {
    background-color: rgba(1, 79, 175, 0.07);
    border-radius: 8px;
}

/* =======================================================
   CABECERA CON VIDEO (HEADER CON VIDEO DE FONDO) HOME
   ======================================================= */

/* Contenedor principal */
.header-video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 15px;
    margin-top: 140px; /* Ajuste por el men迆 fijo */
}

/* V赤deo de fondo */
.video-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    min-height: 100%;
    object-fit: fill;
    z-index: -1;
}

/* Capa oscura sobre el v赤deo */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Mejora contraste */
}

/* Contenido de la cabecera */
.header-video .header-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    padding: 2.5rem 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.55);  /* Fondo semitransparente */
    border-radius: 12px;
    backdrop-filter: blur(2px);
}

/* T赤tulo principal */
.header-video .header-content h1 {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-top: 0.5rem;
    margin-bottom: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Subt赤tulo */
.header-video .header-content h2 {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    margin-top: 0.5rem;
    margin-bottom: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* P芍rrafos */
.header-video .header-content p {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.6;
    color: #f0f0f0;
    margin-top: 0.5rem;
    margin-bottom: 1.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Responsive para cabecera en m車viles */
@media (max-width: 576px) {
    .header-video .header-content h1 {
        font-size: 2rem;
    }

    .header-video .header-content h2 {
        font-size: 1.3rem;
    }

    .header-video .header-content p {
        font-size: 1rem;
    }
}

/* =====================================================
   BOTON PRINCIPAL "CONTACTA CON NOSOTROS" HOME
   ===================================================== */

/* Estilo general */
.header-video .header-content .mbr-section-btn a.btn.btn-secondary.display-4 {
    font-size: 1.2rem;
    border-radius: 4px;
    padding: 16px 32px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #2053AC !important;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin-top: 20px;
}

/* Hover del bot車n */
.header-video .header-content .mbr-section-btn a.btn.btn-secondary.display-4:hover {
    background-color: #1a4491 !important;
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Responsive para bot車n */
@media (max-width: 576px) {
    .header-video .header-content .mbr-section-btn a.btn.btn-secondary.display-4 {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* ==============================================================
   TARJETAS DE FUNCIONALIDADES (SECCION CARACTERISTICAS) HOME
   ============================================================== */

/* Fondo de la secci車n */
.features-section {
    background-color: #e3f0ff;
}

/* Separaci車n entre t赤tulo y tarjetas */
.features-section h2 {
    margin-bottom: 3rem;
}

/* Tarjeta individual */
.feature-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

/* Hover sobre tarjeta */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* T赤tulo dentro de tarjeta */
.feature-card h4 {
    font-weight: bold;
    font-size: 1.25rem;
    color: #0B3B82;
    margin-bottom: 15px;
}

/* P芍rrafo dentro de tarjeta */
.feature-card p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

/* C赤rculo que contiene el icono */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #014faf; /* Azul corporativo */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Icono dentro del c赤rculo */
.icon-circle .mbr-iconfont {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
}

/* Hover sobre el icono */
.icon-circle:hover {
    transform: scale(1.1);
}

/* Responsive para las tarjetas */
@media (max-width: 576px) {
    .feature-card {
        margin-bottom: 20px;
    }
}

/* =========================================================
   CARRUSEL DE CLIENTES (SECCION "NOS HAN ELEGIDO") HOME
   ========================================================= */

/* Fondo con degradado para la secci車n */
#clients-9 {
    background: linear-gradient(to bottom, #1d4ca1, #eaeef6); /* Degradado azul a gris claro */
    padding: 60px 0;
}

/* T赤tulo de la secci車n */
#clients-9 .mbr-section-title {
    color: #ffffff; /* Texto blanco */
    font-weight: 700; /* Negrita */
    font-size: 3rem; /* Tama?o grande */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Sombra para mejorar legibilidad */
    text-align: center;
}

/* Evita animaciones verticales err芍ticas al cargar */
.carousel-item {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Im芍genes de logos (color normal desde el inicio) */
#clients-9 .clients-img {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Efecto hover: agranda el logo suavemente */
#clients-9 .clients-img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Contenedor de cada logo */
#clients-9 .wrap-img {
    background: #ffffff; /* Fondo blanco de la tarjeta */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

/* Efecto al pasar el rat車n sobre la tarjeta */
#clients-9 .wrap-img:hover {
    transform: translateY(-5px);
}

/* Correcci車n: eliminar animaci車n vertical forzada en el carrusel */
#clients-9 .carousel-item {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
}

/* Opcional: prevenir animaciones desde el script de Mobirise */
.no-animate *,
.no-animate {
  animation: none !important;
  transform: none !important;
  transition: none !important;
  opacity: 1 !important;
}

/* Controles de navegaci車n del carrusel */
#clients-9 .carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

/* Botones de navegaci車n (prev/next) */
#clients-9 .carousel-control {
    width: 40px;
    height: 40px;
    background: #0B3B82; /* Azul corporativo */
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

#clients-9 .carousel-control:hover {
    background: #014faf; /* Azul m芍s fuerte al hacer hover */
}

/* Responsive para pantallas peque?as */
@media (max-width: 768px) {
    #clients-9 .clients-img {
        max-width: 80px;
        max-height: 80px;
    }

    #clients-9 .wrap-img {
        padding: 15px;
    }

    #clients-9 .mbr-section-title {
        font-size: 2rem;
    }
}

/* =====================================================
   PIE DE PAGINA (FOOTER) TODAS
   ===================================================== */

/* Contenedor principal del footer */
.footer {
    width: 100%;
    background-color: #23232d !important;
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
    font-size: 14px;
    line-height: 1.6;
}

/* Contenedor interno con columnas */
.footer .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* Columnas del footer */
.footer .col-12 {
    flex: 1;
    min-width: 240px;
    padding: 10px;
}

/* Logo en el footer */
.footer .media-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer .media-wrap img {
    border-radius: 10px; /* Bordes redondeados del logo */
    max-width: 180px;
}

/* T赤tulos de cada columna */
.footer h5 {
    font-size: 16px;
    font-weight: 700;
    color: #c4d900;
    margin-bottom: 10px;
}

/* P芍rrafos de texto */
.footer p {
    margin: 4px 0;
    color: white;
}

/* Lista de enlaces */
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #c4d900;
}

/* Iconos sociales */
.footer .social-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* Copyright */
.footer .copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #c4d900;
}

/* ============================================================
   CABECERA CON VIDEO (HEADER CON VIDEO DE FONDO) NORMATIVA
   ============================================================ */
   
.hero-normativa {
  margin-top: 130px;
  background: linear-gradient(to right, #014faf, #c4d900);
  color: white;
  padding: 200px 20px 100px;
  text-align: center;
}

.hero-normativa .titulo-normativa {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-normativa .subtitulo-normativa {
  font-size: 1.5rem;
  font-weight: 300;
}

