/**
* Theme Name: Uphand Child
* Description: This is a child theme of Uphand, generated by Merlin WP.
* Author: Template Path
* Modified: Ing. Aneudy Patino
* Template: uphand
* Version: 1.0
*/

/* Paleta de colores principal y variantes compatibles */
/* Fuentes corporativas: Inter (texto) + Montserrat (títulos y acentos) */
:root {
  --theme-color: #1771BF;
  --theme-color-dark: #1763A6;
  --theme-color-alt: #1B80BF;
  --theme-color-light: #A0D3F2;
  --theme-color-pale: #D8F2F0;
  --text-font: "Inter", sans-serif;
  --title-font: "Montserrat", sans-serif;
  --special-font: "Montserrat", sans-serif;
}

/* ========== Logos: dimensiones y color ========== */
/* Ajusta los valores según los logos en carpeta logos/ y Theme Options */

/* Logo en cabecera principal */
.main-header .logo-box img,
.main-header .sticky-header .logo-box img {
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Logo en footer */
.footer-logo img {
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

/* Logo en menú móvil */
.mobile-menu .nav-logo img {
  max-width: 160px;
  height: auto;
}

/* Logo en popup de búsqueda */
.search-popup .upper-box .logo-box img {
  max-width: 200px;
  height: auto;
}

/* Opcional: si usas SVG y lo incrustas inline, descomenta para cambiar color
.logo-box svg {
  fill: var(--theme-color);
}
*/

.donate-now-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--theme-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--title-font);
  font-weight: 600;
  transition: background 0.2s;
}
.donate-now-btn:hover {
  background: var(--theme-color-dark);
  color: #fff;
}

/* Firma del desarrollador en el footer */
.footer-credit {
	text-align: center;
	padding: 12px 20px;
	background-color: #111;
	color: #8a8a8a;   /* gris claro sobre fondo oscuro, visible pero discreto */
	font-size: 11px;
}
.footer-credit-text {
	margin: 0;
}
.footer-credit a {
	color: #9a9a9a;
	text-decoration: none;
}
.footer-credit a:hover {
	color: #b0b0b0;
	text-decoration: underline;
}
.footer-credit-heart {
	color: #7a6a6a;   /* gris con toque rojizo */
}


/*TOOLTIPS */
/* Custom Tooltip para Service For Peace */
.sfp-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 2px dotted var(--theme-color-dark);
    color: inherit;
    display: inline-block;
    margin-bottom: 8px;
}

/* Icono de Font Awesome (pequeñito y gris) */
.sfp-tooltip i {
    margin-left: 5px;
    font-size: 0.6em; /* Lo pusimos en 0.6em como pediste */
    color: #999999;
    vertical-align: middle;
    position: relative;
    top: -3px;
}

/* El globo de texto (Tooltip) */
.sfp-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--theme-color-dark);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap; 
    z-index: 999;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    font-family: var(--text-font);
}

/* El triangulito que apunta hacia abajo */
.sfp-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--theme-color-dark) transparent transparent transparent;
    margin-bottom: 2px;
}

/* Sobrescribir el margen de la clase mb_70 en las pestañas */
.tab-btn-box.mb_70 {
    margin-bottom: 10px !important;
}

/* ========== Blog Grid: Style SFP ========== */

.news-block-sfp .inner-box {
  position: relative;
  display: block;
  padding: 315px 30px 30px 30px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
}

.news-block-sfp .inner-box .bg-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: all .21s cubic-bezier(.25, .8, .25, 1);
}

.news-block-sfp .inner-box:hover .bg-layer {
  -webkit-transform: scale3d(1.1, 1.1, 1);
  transform: scale3d(1.1, 1.1, 1);
}

.news-block-sfp .inner-box .bg-layer::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(34, 34, 34, 0) 38%, #000000 100%);
  transition: all 500ms ease;
}

.news-block-sfp .inner-box:hover .bg-layer::before {
  opacity: 0;
}

.news-block-sfp .inner-box .bg-layer::after {
  position: absolute;
  content: '';
  width: 100%;
  height: 0%;
  left: 0;
  bottom: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(34, 34, 34, 0) 38%, #A0D3F2 100%);
  transition: all .5s cubic-bezier(.25, .8, .25, 1);
}

.news-block-sfp .inner-box:hover .bg-layer::after {
  height: 100%;
  opacity: 1;
}

.news-block-sfp .inner-box .content-box {
  position: relative;
  display: block;
  z-index: 1;
}

.news-block-sfp .inner-box .content-box .post-date {
  position: relative;
  display: flex;
  align-items: center;
  width: 141px;
  height: 40px;
  line-height: 40px;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 21px;
  z-index: 1;
}

.news-block-sfp .inner-box .content-box .post-date::before {
  position: absolute;
  content: '';
  background-image: url(../uphand/assets/images/shape/shape-13.png);
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

.news-block-sfp .inner-box .content-box h4 {
  display: block;
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 13px;
}

.news-block-sfp .inner-box .content-box h4 a {
  display: inline-block;
  color: #fff;
}

.news-block-sfp .inner-box .content-box h4 a:hover {
  text-decoration: underline;
}

.news-block-sfp .inner-box .content-box .post-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.news-block-sfp .inner-box .content-box .post-info li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 21px;
  color: #fff;
}

.news-block-sfp .inner-box .content-box .post-info li a {
  display: inline-block;
  color: #fff;
}

.news-block-sfp .inner-box .content-box .post-info li a:hover {
  text-decoration: underline;
}

@media only screen and (max-width: 767px) {
  .news-block-sfp .inner-box {
    padding: 250px 20px 20px 20px;
  }
}

.news-block-one .inner-box .bg-layer::after {
  background: linear-gradient(180deg, rgba(34, 34, 34, 0) 38%, #A0D3F2 100%) !important;
}

/* ===== Service For Peace Preloader (100% root variables) ===== */
#sfp-preloader{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;               /* control por clases */
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
  background:
    radial-gradient(circle at 20% 20%, rgba(23,113,191,.22), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(160,211,242,.20), transparent 45%),
    #0b1f2a;
}

#sfp-preloader.is-visible{
  display: grid;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#sfp-preloader.is-hidden{
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#sfp-loader{
  width: 92px;
  height: 92px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#sfp-loader svg{
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}

#sfp-loader svg circle{
  fill: none;
  stroke-width: 5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-100deg);
  transform-origin: center;
}

/* usa solo variables root */
#sfp-loader .back{
  stroke: var(--theme-color-light);
  opacity: .35;
}

#sfp-loader .front{
  stroke: var(--theme-color);
}

#sfp-loader .circle-outer{ width: 86px; height: 86px; }
#sfp-loader .circle-outer circle{ stroke-dasharray: 62.75 188.25; }
#sfp-loader .circle-outer .back{ animation: circle-outer 1.8s ease infinite .3s; }
#sfp-loader .circle-outer .front{ animation: circle-outer 1.8s ease infinite .15s; }

#sfp-loader .circle-middle{ width: 60px; height: 60px; }
#sfp-loader .circle-middle circle{ stroke-dasharray: 42.5 127.5; }
#sfp-loader .circle-middle .back{ animation: circle-middle 1.8s ease infinite .25s; }
#sfp-loader .circle-middle .front{ animation: circle-middle 1.8s ease infinite .1s; }

#sfp-loader .circle-inner{ width: 34px; height: 34px; }
#sfp-loader .circle-inner circle{ stroke-dasharray: 22 66; }
#sfp-loader .circle-inner .back{ animation: circle-inner 1.8s ease infinite .2s; }
#sfp-loader .circle-inner .front{ animation: circle-inner 1.8s ease infinite .05s; }

/* acento también desde root */
#sfp-loader .circle-outer .pulse{
  stroke: var(--theme-color-pale);
  stroke-width: 3px;
  opacity: .75;
  stroke-dasharray: 8 242;
  animation: gold-pulse 2.4s linear infinite;
}

#sfp-loader .text{
  position: absolute;
  bottom: -34px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  color: #fff;
  white-space: nowrap;
  font-family: var(--title-font);
}

#sfp-loader .text::before,
#sfp-loader .text::after{
  content: attr(data-text);
}

#sfp-loader .text::after{
  position: absolute;
  left: 0;
  color: var(--theme-color-pale);
  animation: text-sweep 3.2s ease infinite;
}

#sfp-loader .subtext{
  position: absolute;
  bottom: -54px;
  font-size: 11px;
  color: rgba(255,255,255,.78);
  white-space: nowrap;
  font-family: var(--text-font);
}

@keyframes circle-outer{
  0%{ stroke-dashoffset: 25; }
  25%{ stroke-dashoffset: 0; }
  65%{ stroke-dashoffset: 301; }
  80%,100%{ stroke-dashoffset: 276; }
}
@keyframes circle-middle{
  0%{ stroke-dashoffset: 17; }
  25%{ stroke-dashoffset: 0; }
  65%{ stroke-dashoffset: 204; }
  80%,100%{ stroke-dashoffset: 187; }
}
@keyframes circle-inner{
  0%{ stroke-dashoffset: 9; }
  25%{ stroke-dashoffset: 0; }
  65%{ stroke-dashoffset: 106; }
  80%,100%{ stroke-dashoffset: 97; }
}
@keyframes gold-pulse{
  from{ stroke-dashoffset: 0; }
  to{ stroke-dashoffset: -250; }
}
@keyframes text-sweep{
  0%{ clip-path: inset(0 100% 0 0); }
  50%{ clip-path: inset(0 0 0 0); }
  100%{ clip-path: inset(0 0 0 100%); }
}

@media (prefers-reduced-motion: reduce){
  #sfp-loader *{
    animation: none !important;
    transition: none !important;
  }
}

/* Oculta el breadcrumb del header banner */
.page-title .bread-crumb {
  display: none !important;
}

/* ========== Page title responsivo: evitar solapamiento con el logo/header ========== */
@media only screen and (max-width: 991px) {
  .page-title {
    padding-top: 130px !important;  /* Espacio para que el título quede debajo del header */
    padding-bottom: 60px;
  }
  
  .page-title .content-box h1 {
    font-size: 32px !important;
    line-height: 40px !important;
  }
}

@media only screen and (max-width: 599px) {
  .page-title {
    padding-top: 120px !important;
    padding-bottom: 50px;
  }
  
  .page-title .content-box h1 {
    font-size: 26px !important;
    line-height: 34px !important;
  }
}