/*
Theme Name: GLOBAL SERVICES
Theme URI: http://www.globalservices 
Author: ademy-groups JOSE MARTIN MBOMIO
Author URI: http://r2r.com
Description: Global services- gestion de expedientes España - Guinea Ecuatorial
Version: 3
License: 
- GNU General Public License v2 or later
License URI: 
- http://www.gnu.org/licenses/gpl-2.0.html

Tags: gestiones de xpedientes,otros servicios 
Text Domain: global services
/*

*/
body {
    font-family: 'Georgia', serif;
}/* --- HERO SLIDER 1200x600 --- */
.hero-slider {
  
    height: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    /* Elimina cualquier margen superior que empuje el nav */
    padding: 0 !important;
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 600px;
}

/* ZOOM EFFECT */
.hero-slider .carousel-item img {
    height: 600px;
    width: 100%;
    object-fit: cover;
    transition: transform 10s ease-in-out;
}

.hero-slider .carousel-item.active img {
    transform: scale(1.15);
}

/* EL ÚNICO OVERLAY QUE NECESITAS (Gradiente Moderno) */
.hero-slider .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Oscurece de abajo hacia arriba para resaltar el texto */
    background:linear-gradient(to top, rgba(7, 9, 93, 0.96) 0%, rgba(33, 5, 5, 0.2) 60%, #00000073 100%);
    z-index: 1;
}

/* TEXTO Y ANIMACIÓN */
.hero-slider .carousel-caption {
    z-index: 2;
    bottom: 12% !important;
}

.hero-slider .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* BOTÓN DORADO */
.btn-gold {
    background-color: #c8a46b;
    color: white;
    border-radius: 25px;
    padding: 10px 25px;
}

.btn-gold:hover {
    background-color: #a88952;
    color: white;
}

/* TEXTO DORADO */
.text-gold {
    color: #c8a46b;
    text-decoration: none;
}

.text-gold:hover {
    text-decoration: underline;
}

/* CARDS */
.card img {
    object-fit: cover;
}


/* NAVBAR TRANSPARENTE */
#mainNav {
    transition: all 0.4s ease;
    background: transparent;
    padding: 20px 0;
    text-transform: uppercase;
  font-weight: bolder;
}

#mainNav.scrolled {
    background: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#mainNav.scrolled .nav-link,
#mainNav.scrolled .navbar-brand {
    color: #fff !important;
}


/* BOTÓN */
.btn-gold {
    background-color: #c8a46b;
    color: white;
    border-radius: 30px;
    padding: 10px 25px;
}

.btn-gold:hover {
    background-color: #a88952;
}


/* --- Preloader Estilizado --- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader:before {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 3px solid #c5a059; /* Color de la editorial */
  border-right: 3px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Botón Scroll Top --- */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  background: #c5a059;
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
  color: #fff;
  text-decoration: none;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

.scroll-top i {
  font-size: 28px;
  line-height: 0;
}

.scroll-top:hover {
  background: #a88548;
  color: #fff;
  transform: translateY(-5px); /* Efecto de elevación */
}

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


/* ================================================================
   GRID CAROUSEL DE LIBROS (ESTRUCTURA)
   ================================================================ */

/* Ajuste para que los botones de navegación se vean fuera si es necesario */
#bookGridCarousel {
    overflow: visible;
    position: relative;
}

/* Configuración de 4 ítems en línea para Desktop */
@media (min-width: 768px) {
    #bookGridCarousel .carousel-inner {
        display: flex !important;
    }
    #bookGridCarousel .carousel-item {
        margin-right: 0;
        flex: 0 0 25%; /* 4 libros visibles (100/4) */
        display: block;
    }
}

/* ================================================================
   TARJETA DEL LIBRO (CARD BOOK)
   ================================================================ */

.card-book {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 10px; /* Espaciado entre tarjetas */
}

/* Efecto Push al hacer clic */
.card-book:active {
    transform: scale(0.95) !important;
}

/* Imagen del libro */
.card-book img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-book:hover img {
    transform: scale(1.05);
}

/* ================================================================
   OVERLAY Y BOTONES (HOVER)
   ================================================================ */

.card-book .book-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.card-book:hover .book-overlay {
    opacity: 1;
}

/* Botones dentro del overlay */
.btn-book-action {
    width: 80%;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px); /* Empieza abajo */
    transition: all 0.3s ease;
}

.card-book:hover .btn-book-action {
    transform: translateY(0); /* Sube al entrar */
}

/* ================================================================
   CONTROLES DE NAVEGACIÓN (FLECHAS)
   ================================================================ */

.custom-nav, 
#bookGridCarousel .carousel-control-prev,
#bookGridCarousel .carousel-control-next {
    width: 50px !important;
    height: 50px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    position: absolute !important;
    z-index: 10;
}

/* Arrimamos las flechas hacia afuera para no tapar los libros */
#bookGridCarousel .carousel-control-prev {
    left: -60px;
}

#bookGridCarousel .carousel-control-next {
    right: -60px;
}

/* Iconos de flecha (Círculos) */
.carousel-control-prev-icon, 
.carousel-control-next-icon {
    background-size: 40%;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s ease;
}

.carousel-control-prev-icon:hover, 
.carousel-control-next-icon:hover {
    background-color: #d4af37 !important; /* Color Oro */
    border-color: #d4af37;
}

/* Responsivo para Tablets y Móviles */
@media (max-width: 1300px) {
    #bookGridCarousel .carousel-control-prev { left: -10px; }
    #bookGridCarousel .carousel-control-next { right: -10px; }
    
    #bookGridCarousel .carousel-inner {
        padding: 0 40px; /* Margen interno para que las flechas no pisen las cards */
    }
}




/* Estilos base del preloader para que el JS funcione visualmente */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
  transition: all 0.6s ease-out;
}

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

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

/* Scroll Top Style */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #d4af37;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
  color: #fff;
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*    navbar*/
.navbar { transition: 0.4s; }
.navbar.scrolled {
  background-color: rgba(0,0,0,0.85) !important;
  padding: 10px 0;
}

.navbar-toggler { border:none; }

.navbar-toggler-icon {
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Añade esto a tu bloque <style> */
.btn-xs {
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: .2rem;
  width: 50%; /* Ocupa la mitad del contenedor */
  display: block; /* Necesario para que el margin auto funcione */
  margin: 10px auto !important; /* Centrado horizontal y margen arriba/abajo */
  text-align: center;
}
@media (max-width: 991.98px) {
    /* 1. FORZAR ESTADO INICIAL: Negro y Fijo */
    #mainNav, .navbar {
        background-color: #000000 !important; /* Fondo negro real */
        position: fixed !important; 
        top: 0 !important;
        width: 100%;
        z-index: 1050; /* Por encima de todo */
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 10px 0 !important;
        border-bottom: 2px solid #d4af37;
    }

    /* 2. ELIMINAR TRANSPARENCIAS: Evita que el JS de scroll lo oculte */
    #mainNav.navbar-transparent, 
    #mainNav.bg-transparent {
        background-color: #000000 !important;
    }

    /* 3. MENÚ DESPLEGABLE: Estilo moderno al abrir */
    .navbar-collapse {
        background: rgba(15, 15, 15, 0.98) !important;
        backdrop-filter: blur(10px);
        margin-top: 8px;
        padding: 20px;
        border-radius: 0 0 15px 15px;
        border: 1px solid rgba(212, 175, 55, 0.2);
    }

    /* 4. ENLACES: Texto blanco y flecha dorada */
    #mainNav .nav-link {
        color: #ffffff !important;
        padding: 15px 10px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #mainNav .nav-link::after {
        content: '→';
        color: #d4af37;
        opacity: 0.7;
    }

    /* 5. TOGGLER (Hamburguesa): Siempre visible */
    .navbar-toggler {
        border: 1px solid #d4af37 !important;
        display: block !important; /* Asegura que no se oculte */
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23d4af37' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
    }

    /* 6. COMPENSACIÓN: Para que el contenido no se meta bajo el nav */
    body {
        padding-top: 70px !important;
    }


    /* Estilo para los enlaces del Walker */
#mainNav .nav-link {
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 10px 15px !important;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: #c5a059 !important; /* Dorado Esangui */
}

/* Si es un dropdown (submenú), el fondo debe ser oscuro */
.dropdown-menu {
    background-color: #1a1a1a;
    border: 1px solid #c5a059;
}

.dropdown-item {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 12px;
}

.dropdown-item:hover {
    background-color: #c5a059;
    color: #000;
}
}
/* estado base */
#mainNav {
  background: transparent;
  transition: background-color 0.3s ease;
}

/* cuando hace scroll */
#mainNav.scrolled {
  background-color: #000 !important;
}

/* 🔥 fuerza negro en páginas internas */
body:not(.home):not(.front-page) #mainNav {
  background-color: #000 !important;
}

/*******************************************
segundo bloque de ajsutes de plantilla

slider
botones
servicios
*/
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
/* --- SUBMENU MODERNO Y FORZADO A BLANCO --- */

.dropdown-menu {
    border: none;
    border-radius: 15px;
    padding: 10px;
    /* Forzamos fondo blanco sólido */
    background-color: #ffffff !important; 
    backdrop-filter: none; /* Quitamos el cristal para asegurar opacidad */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 10px;
    min-width: 220px;
    animation: fadeInDown 0.3s ease-out;
    border-left: 4px solid #d4af37;
}

/* Forzamos color negro en los items */
.dropdown-item {
    color: #000000 !important; /* Negro absoluto */
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    background-color: transparent !important;
}

/* Efecto Hover "Bestial" */
.dropdown-item:hover {
    background-color: #f8f9fa !important; /* Un gris muy claro para el hover */
    color: #d4af37 !important; /* El texto cambia a oro al pasar el mouse */
    padding-left: 25px;
}

/* Animación de entrada */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Comportamiento al hacer hover con mouse en desktop */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 991px) {
    #menu {
        max-height: 80vh; /* Evita que el menú sea más grande que la pantalla */
        overflow-y: auto; /* Permite scroll si el menú es muy largo */
        padding-bottom: 20px;
    }
}

/* zom sluder*/
/* =========================================
   ZOOM EFFECT SLIDER
========================================= */

.carousel-item img{
    width:100%;
    height:80vh;
    object-fit:cover;

    transform:scale(1);
    transition:transform 8s ease-in-out;
}

/* SLIDE ACTIVO */
.carousel-item.active img{
    transform:scale(1.12);
}

/* Overlay oscuro */
.overlay-slider{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.45);
    z-index:1;
}

/* Texto */
.carousel-caption{
    z-index:2;
    bottom:20%;
}

.carousel-caption h1{
    font-size:4rem;
    font-weight:700;
    text-shadow:0 5px 15px rgba(0,0,0,.6);
}

.carousel-caption p{
    font-size:1.2rem;
    max-width:600px;
}

/* Botones */
.carousel-caption .btn{
    padding:14px 35px;
    font-size:1rem;
    font-weight:600;
    transition:.3s;
}

.carousel-caption .btn:hover{
    transform:translateY(-3px);
}

.carousel-item.active img{
    animation:zoomHero 10s ease-in-out forwards;
}

@keyframes zoomHero{

    0%{
        transform:scale(1);
    }

    100%{
        transform:scale(1.15);
    }

}

/* tabs*/
/* Estilo para las pestañas */
.nav-tabs .nav-link {
    color: #4a5568;
    border: none;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.nav-tabs .nav-link.active {
    background: red; /* Color corporativo */
    color: white;
    font-weight: bold;
}

/* Efecto hover en tarjetas */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
/* theme*/
 .pt-lg-5 {
    padding-top: 7rem !important;
  }


/*wjassap*/
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.social-links a {
    transition: all 0.3s ease;
    font-size: 1.5rem;
}
.social-links a:hover {
    color: #d4af37 !important; /* Color dorado */
    transform: translateY(-3px);
}

/*contacto single*/.contact-options{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:0;
    margin-top:20px;
    flex-wrap:wrap;
}

.btn-contact{
    text-decoration:none;
    padding:12px 18px;
    font-size:14px;
    font-weight:600;
    color:#fff;
    transition:0.3s ease;
    display:flex;
    align-items:center;
    gap:6px;
    border-right:1px solid rgba(255,255,255,0.2);
}

.btn-contact:first-child{
    border-radius:10px 0 0 10px;
}

.btn-contact:last-child{
    border-radius:0 10px 10px 0;
    border-right:none;
}

.email{
    background:#1e3a8a;
}

.phone{
    background:#374151;
}

.whatsapp{
    background:#25D366;
}

.btn-contact:hover{
    opacity:0.9;
    transform:translateY(-2px);
}

/*nav color*/
.nav-link {

  color: #fff !important;

}
