/* =========================================================
   OCULTAR CABECERA AUTOMÁTICA (PLANTILLA SOLUCIONES)
   ========================================================= */

.page-template-page-solucion header.entry-header,
.page-template-page-solucion-php header.entry-header {
  display: none !important;
}

/* .page-template-page-solucion .entry-content .kit-solutions-grid {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
   } */


/* .page-template-page-solucion .site-main {
  max-width: none !important;
}

.page-template-page-solucion .entry-content {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
} */

/* =========================================================
      HERO – INTRODUCCIÓN SOLUCIONES KIT DIGITAL
      ========================================================= */

.kit-soluciones-hero {
  margin-bottom: 80px;
}

.kit-soluciones-intro {
  text-align: justify;
}

.kit-soluciones-intro p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.kit-soluciones-contenido {
  display: flex;
  align-items: center;
  gap: 50px;
}

.kit-soluciones-texto,
.kit-soluciones-imagen {
  flex: 1;
}

.kit-soluciones-texto p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.kit-soluciones-imagen img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .kit-soluciones-contenido {
    flex-direction: column;
  }

  .kit-soluciones-imagen {
    order: -1;
  }
}


/* =========================================================
      GRID DE SOLUCIONES
   ========================================================= */
.kit-solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .kit-solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .kit-solutions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .kit-solutions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* =========================================================
      CARD BASE
      ========================================================= */

.kit-card {
  position: relative;
  background-color: #f7f7f7;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
  margin-bottom: 30px;
}


/* =========================================================
      CARD – CARA FRONTAL (ICONO + TÍTULO)
      ========================================================= */

.kit-card-front {
  padding: 30px;
  padding-top: 135px;
  text-align: left;
  transition: opacity 0.3s ease;
}

.kit-card-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 120px;
  height: 120px;
  background-color: #f7f7f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kit-card-icon img {
  width: 72px;
  height: auto;
}

.kit-card h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  color: #F47127;
  text-align: left;
}


/* =========================================================
      CARD – CARA TRASERA (HOVER REVEAL)
      ========================================================= */

.kit-card-back {
  position: absolute;
  inset: 0;
  background-color: #FD6D27;
  color: #ffffff;
  padding: 40px 25px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kit-card-back p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 20px 0 25px;
}


/* =========================================================
      BOTÓN CARD
      ========================================================= */

.kit-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  background-color: #ffffff;
  color: #FD6D27;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.kit-card-btn::after {
  content: "→";
  font-size: 1.2em;
  line-height: 1;
}

.kit-card-back .kit-card-btn {
  margin-top: auto;
}


/* =========================================================
      INTERACCIÓN HOVER / FOCUS
      ========================================================= */

.kit-card:hover .kit-card-front,
.kit-card:focus-within .kit-card-front {
  opacity: 0;
}

.kit-card:hover .kit-card-back,
.kit-card:focus-within .kit-card-back {
  opacity: 1;
}


/* =========================================================
      MÓVIL – SIN CONTENIDO OCULTO
      ========================================================= */

@media (max-width: 768px) {
  .kit-card-front {
    opacity: 1;
  }

  .kit-card-back {
    position: static;
    opacity: 1;
  }
}


/* =========================================================
      ESTILOS GENERALES PÁGINAS DE SOLUCIÓN
      ========================================================= */

.kitd-solution {
  max-width: 960px;
  margin: 0 auto 4rem;
  padding: 2.5rem 1.75rem 3rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  color: #111827;
}

.kitd-solution__header {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.kitd-solution__icon {
  width: 96px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.kitd-solution__headline h1 {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
  line-height: 1.2;
}

.kitd-solution__headline p {
  margin: 0;
  color: #4b5563;
  font-size: 0.98rem;
}

.kitd-solution__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.kitd-solution__block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
}

.kitd-solution__block p {
  margin: 0;
  color: #374151;
  font-size: 0.98rem;
}

.kitd-solution__block ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: none;
}

.kitd-solution__block li {
  position: relative;
  margin: 0.2rem 0;
  padding-left: 1.1rem;
  color: #374151;
  font-size: 0.96rem;
}

.kitd-solution__block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #F47127;
}

.kitd-solution__cta {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.kitd-solution__cta p {
  margin: 0;
  color: #111827;
  font-weight: 500;
}

.kitd-solution__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: #F47127;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.kitd-solution__button:hover,
.kitd-solution__button:focus-visible {
  background: #d65f1f;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .kitd-solution {
    padding: 2rem 1.25rem 2.5rem;
    margin-bottom: 3rem;
  }

  .kitd-solution__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .kitd-solution__icon {
    width: 80px;
  }

  .kitd-solution__headline h1 {
    font-size: 1.5rem;
  }

  .kitd-solution__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .kitd-solution__button {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
      ESTILOS PÁGINA CONTACTO
   ========================================================= */

.kitd-contact__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(244, 113, 39, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.kitd-contact__details a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.kitd-contact__details a:hover {
  border-bottom-color: #F47127;
}

.kitd-contact__form-wrapper {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.kitd-contact__form-wrapper h2 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
}

/* Optional: make Contact Form 7 match the style a bit */
.kitd-contact__form-wrapper form p {
  margin-bottom: 1rem;
}

.kitd-contact__form-wrapper input[type="text"],
.kitd-contact__form-wrapper input[type="email"],
.kitd-contact__form-wrapper input[type="tel"],
.kitd-contact__form-wrapper textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  line-height: 1.4;
  box-sizing: border-box;
}

.kitd-contact__form-wrapper input[type="submit"] {
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  background: #F47127;
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(244, 113, 39, 0.35);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.kitd-contact__form-wrapper input[type="submit"]:hover,
.kitd-contact__form-wrapper input[type="submit"]:focus-visible {
  background: #d65f1f;
  box-shadow: 0 14px 30px rgba(244, 113, 39, 0.45);
  transform: translateY(-1px);
}