body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}
/* === HEADER TRANSPARENTE SOLO EN EL HOME === */
/* === HEADER TRANSPARENTE SOLO EN HOME === */
body.home header.wp-block-template-part > .wp-block-group.header-home-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.4); /* Ajusta aquí si lo quieres más o menos transparente */
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

/* Menú */
body.home .menu-header .wp-block-navigation-item a {
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem; /* tamaño ajustado (antes 1rem) - reducir aquí si se desea más delgado */
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

/* Hover y activo */
body.home .menu-header .wp-block-navigation-item a:hover,
body.home .menu-header .wp-block-navigation-item.current-menu-item a {
  color: #f5c536;
  /* Esto ponía un borde abajo de cada opción de menú */
  /* border-bottom: 2px solid #f5c536; */
}

/* === Refuerzo para que siempre se aplique el fondo transparente correctamente === */
body.home .header-home-container {
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

body.home header.wp-block-template-part > .wp-block-group {
  background-color: rgba(0,0,0,0.4) !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}
/* =================================== */
/* === HEADER DEFAULT (PÁGINAS INTERIORES) === */
body:not(.home) .header-default-container {
  background-color: #000000;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

/* Logo */
/* body:not(.home) .wp-block-site-logo img,
.header-default-container .wp-block-site-logo img {
  max-height: 60px;
  height: auto;
  width: auto;
} */

/* Menú */
body:not(.home) .menu-header .wp-block-navigation-item a {
  color: #ffffff;
  padding: 0.4rem 1rem;
  font-size: 0.9375rem; /* tamaño ajustado (antes 1rem) - reducir aquí si se desea más delgado */
  font-weight: 400; /* Más delgado */
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Hover y activo */
body:not(.home) .menu-header .wp-block-navigation-item a:hover,
body:not(.home) .menu-header .wp-block-navigation-item.current-menu-item a {
  color: #f5c536;
}
/* Subrayado animado en páginas interiores */
body:not(.home) .menu-header .wp-block-navigation-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: #f5c536;
  transition: width 0.3s ease;
}

body:not(.home) .menu-header .wp-block-navigation-item a:hover::after,
body:not(.home) .menu-header .wp-block-navigation-item.current-menu-item a::after {
  width: 100%;
}

 /* === Logo general (más pequeño en blog e interiores) === */
body:not(.home) .wp-block-site-logo img,
body:not(.home) .custom-logo {
  max-height: 44px !important; /* Puedes ajustar a 42px si aún se ve grande */
  height: auto !important;
  width: auto !important;
}

/* === Logo solo para home (más grande) === */
body.home .wp-block-site-logo img,
body.home .custom-logo {
  max-height: 60px !important;
  height: auto;
  width: auto;
}
/* ------ clientes ------------------ */
.phi-clientes {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #fff;
}
.phi-clientes .phi-titulo-seccion {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid #f7b500;
  display: inline-block;
  padding-bottom: 0.3rem;
}
.phi-clientes .phi-descripcion {
  max-width: 700px;
  margin: 0 auto 2rem;
}
.phi-swiper-clientes img {
  max-height: 60px;
  object-fit: contain;
  margin: 0 auto;
}

/* ----- content page -------- */
/* .phi-content-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.phi-content-page h2,
.phi-content-page h1 {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #222;
}

.phi-content-page img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
} */


/* ----- inner page ------- */
.phi-inner-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.phi-inner-page h1,
.phi-inner-page h2 {
  font-weight: bold;
  margin-bottom: 1rem;
}

.phi-inner-page img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

/* ---- blog templates --------- */

.blog-recientes-wrapper {
  padding: 4rem 2rem;
}

.wp-block-post-template li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.wp-block-post-template li div.phi-blog-card h2 a{
  /* border: 2px solid magenta !important; */
  text-decoration: none;
  border-bottom: 4px solid #FFC300; /* Amarillo */
}

.wp-block-post-template li div.phi-blog-card h2 a:hover {
  /* border: 2px solid magenta !important; */
  text-decoration: none;
  border-bottom: 4px solid #000000; /* Amarillo */
  transition: all 0.3s ease;
}

.phi-blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
  background-color: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

.phi-blog-card img {
  width: 100%;
  height: 220px;         /* Limita la altura */
  object-fit: cover;     /* Recorta proporcionalmente */
  border-radius: 6px;    /* Opcional: esquinas redondeadas */
}

.phi-blog-card .wp-block-post-featured-image {
  height: 220px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.phi-blog-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.phi-blog-card .wp-block-post-featured-image img {
  aspect-ratio: unset !important;
  max-width: 100% !important;
}

/* --- Blog Custom Thumbnail (overrides WP default figure) --- */
.phi-blog-card .phi-custom-thumbnail,
.phi-blog-card .phi-custom-thumbnail img,
.phi-blog-card figure.wp-block-post-featured-image,
.phi-blog-card figure.wp-block-post-featured-image img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 6px;
  margin: 0 auto;
  display: block;
  overflow: hidden;
}

.wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* Línea amarilla bajo el título de la sección blog */
.blog-recientes-wrapper h2.wp-block-heading {
  display: inline-block;
  border-bottom: 4px solid #FFC300;
  /* Amarillo */
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* ========================
   Estilos Ninja Forms personalizados (adaptado)
   ======================== */

.nf-form-cont form {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem;
}

.nf-form-cont .nf-field {
  margin-bottom: 1.5rem;
}

.nf-form-cont .nf-field-label label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #111;
  font-size: 1rem;
}

.nf-form-cont input[type="text"],
.nf-form-cont input[type="email"],
.nf-form-cont textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.nf-form-cont input[type="text"]:focus,
.nf-form-cont input[type="email"]:focus,
.nf-form-cont textarea:focus {
  border-color: #eab308;
  outline: none;
  box-shadow: 0 0 0 1px #eab308;
}

.nf-form-cont .nf-error .nf-error-msg {
  color: #e53935;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.nf-form-cont .nf-field-element input[type="submit"],
.nf-form-cont .nf-field-element button[type="submit"] {
  background-color: #eab308;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.nf-form-cont .nf-field-element input[type="submit"]:hover,
.nf-form-cont .nf-field-element button[type="submit"]:hover {
  background-color: #c79306;
}
