/*
Theme Name: presenciaeninternet
Theme URI: https://example.com/presenciaeninternet
Description: Tema hijo para Divi 5 creado por Presencia en internet.
Author: Presencia en internet
Author URI: https://presenciaeninternet.com
Template: Divi
Version: 5.0.0
*/

/* ==========================================================
   FUENTES Y BASE SHERPA
   ========================================================== */

body,
.fondo-sherpa {
  font-family: 'Poppins', Arial, sans-serif;
}

body {
  background: #ffffff;
}

a {
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}


/* ==========================================================
   SHERPA - MENÚ PRINCIPAL DIVI
   Detectado en tu HTML como: .et_pb_menu_0_tb_header
   ========================================================== */

.et-l--header .et_pb_menu_0_tb_header {
  background: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.et-l--header .et_pb_section_0_tb_header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: #ffffff !important;
}

.et-l--header .et_pb_row_0_tb_header {
  width: 100% !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 24px 20px 18px !important;
}

.et-l--header .et_pb_menu_0_tb_header .et_pb_menu_inner_container,
.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__wrap {
  width: 100%;
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
}

.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__wrap {
  justify-content: center !important;
}

.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__logo-wrap,
.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__logo {
  display: none !important;
}

.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__menu > nav {
  width: 100% !important;
  float: none !important;
}

.et-l--header .et_pb_menu_0_tb_header .et-menu,
.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__menu > nav > ul {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 28px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
}

.et-l--header .et_pb_menu_0_tb_header .et-menu > li,
.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__menu > nav > ul > li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.et-l--header .et_pb_menu_0_tb_header .et-menu > li > a,
.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__menu > nav > ul > li > a {
  position: relative !important;
  display: inline-block !important;
  padding: 0 0 8px 0 !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  color: #000000 !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

.et-l--header .et_pb_menu_0_tb_header .et-menu > li > a:hover,
.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__menu > nav > ul > li > a:hover {
  color: #0067b9 !important;
  opacity: 1 !important;
}

.et-l--header .et_pb_menu_0_tb_header .et-menu > li.current-menu-item > a,
.et-l--header .et_pb_menu_0_tb_header .et-menu > li.current_page_item > a,
.et-l--header .et_pb_menu_0_tb_header .et-menu > li.current-menu-ancestor > a,
.et-l--header .et_pb_menu_0_tb_header .et-menu > li.current_page_ancestor > a {
  color: #0067b9 !important;
  font-weight: 700 !important;
}

.et-l--header .et_pb_menu_0_tb_header .et-menu > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 5px;
  background: #ffc247;
  transition: width 0.2s ease;
}

.et-l--header .et_pb_menu_0_tb_header .et-menu > li > a:hover::before,
.et-l--header .et_pb_menu_0_tb_header .et-menu > li.current-menu-item > a::before,
.et-l--header .et_pb_menu_0_tb_header .et-menu > li.current_page_item > a::before,
.et-l--header .et_pb_menu_0_tb_header .et-menu > li.current-menu-ancestor > a::before,
.et-l--header .et_pb_menu_0_tb_header .et-menu > li.current_page_ancestor > a::before {
  width: 100%;
}

.et-l--header .et_pb_menu_0_tb_header .et-menu > li.menu-inscribete > a {
  color: #000000 !important;
  font-weight: 700 !important;
}

.et-l--header .et_pb_menu_0_tb_header .et-menu > li.menu-inscribete > a:hover {
  color: #0067b9 !important;
}

.et-l--header .et_pb_menu_0_tb_header .sub-menu {
  border-top: 4px solid #ffc247 !important;
}

.et-l--header .et_pb_menu_0_tb_header .sub-menu li {
  padding: 0 !important;
}

.et-l--header .et_pb_menu_0_tb_header .sub-menu li a {
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  color: #111111 !important;
}

.et-l--header .et_pb_menu_0_tb_header .sub-menu li a:hover {
  color: #0067b9 !important;
  background: #f7f7f7 !important;
}

.et-l--header .et_pb_menu_0_tb_header .menu-item-has-children > a:first-child::after {
  color: inherit !important;
}


/* ==========================================================
   SHERPA - MENÚ MÓVIL
   ========================================================== */

@media (max-width: 980px) {
  .et-l--header .et_pb_row_0_tb_header {
    padding: 16px 20px !important;
  }

  .et-l--header .et_pb_menu_0_tb_header .et_pb_menu_inner_container,
  .et-l--header .et_pb_menu_0_tb_header .et_pb_menu__wrap {
    justify-content: flex-end !important;
  }

  .et-l--header .et_pb_menu_0_tb_header .et_pb_menu__menu {
    display: none !important;
  }

  .et-l--header .et_pb_menu_0_tb_header .et_mobile_nav_menu {
    display: block !important;
  }

  .et-l--header .et_pb_menu_0_tb_header .mobile_menu_bar::before {
    color: #0067b9 !important;
    font-size: 32px !important;
  }

  .et-l--header .et_pb_menu_0_tb_header .et_mobile_menu {
    border-top: 4px solid #ffc247 !important;
    background: #ffffff !important;
    padding: 18px 0 !important;
  }

  .et-l--header .et_pb_menu_0_tb_header .et_mobile_menu li {
    list-style: none !important;
  }

  .et-l--header .et_pb_menu_0_tb_header .et_mobile_menu li a {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }

  .et-l--header .et_pb_menu_0_tb_header .et_mobile_menu li a:hover,
  .et-l--header .et_pb_menu_0_tb_header .et_mobile_menu li.current-menu-item > a,
  .et-l--header .et_pb_menu_0_tb_header .et_mobile_menu li.current_page_item > a {
    color: #0067b9 !important;
    background: #f7f7f7 !important;
  }
}


/* ==========================================================
   MENÚ LEGAL DEL PIE SHERPA
   ========================================================== */

.menu_pie {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 72px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  font-family: 'Poppins', Arial, sans-serif;
}

.menu_pie li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  line-height: 1;
}

.menu_pie li::marker {
  content: "" !important;
  display: none !important;
}

.menu_pie li a {
  display: inline-block !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 !important;
  margin: 0 !important;
}

.menu_pie li a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  opacity: 1;
}

@media (max-width: 780px) {
  .menu_pie {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 14px !important;
    text-align: center !important;
  }
}


/* ==========================================================
   PASTILLAS GENERALES
   ========================================================== */

.pastilla-inscribete {
  display: inline-block;
  position: relative;
  background: #ffb53b;
  color: #ffffff;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  padding: 14px 34px 12px;
  text-align: center;
  text-transform: uppercase;
  transform: skew(-6deg);
}

.pastilla-inscribete span {
  display: block;
  transform: skew(6deg);
}

.pastilla-inscribete small {
  display: block;
  position: absolute;
  right: 0;
  bottom: -20px;
  color: #0066b3;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transform: skew(6deg);
}

.pastilla-azul {
  display: inline-block;
  background: #005eb8;
  color: #ffffff;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  padding: 15px 34px 14px;
  text-align: center;
  text-transform: uppercase;
  transform: skew(-5deg);
  box-shadow: none;
}

.pastilla-azul::before,
.pastilla-azul::after {
  content: "";
}

.pastilla-azul span {
  display: inline-block;
  transform: skew(5deg);
}


/* ==========================================================
   SHERPA - TESTIMONIOS / LISTADO
   Shortcode: [sherpa_listado]
   ========================================================== */

.sherpa-listado {
  width: 100%;
  background: #ffffff;
  padding: 42px 0 70px;
  font-family: 'Poppins', Arial, sans-serif;
}

.sherpa-listado,
.sherpa-listado * {
  box-sizing: border-box;
}

.sherpa-listado__container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.sherpa-listado__title,
.sherpa-listado__intro,
.sherpa-listado__years,
.sherpa-listado__edition,
.sherpa-listado__group,
.sherpa-listado__empty {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.sherpa-listado__title {
  color: #0067b1;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  margin: 0 auto 28px;
  padding: 0;
}

.sherpa-listado__intro {
  background: #f8b83e;
  text-align: center;
  padding: 23px 24px 24px;
  margin-bottom: 30px;
  clip-path: polygon(
    0% 5%,
    100% 0%,
    98% 95%,
    2% 100%
  );
}

.sherpa-listado__intro p {
  color: #ffffff;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 900;
  margin: 0;
  padding: 0;
}

.sherpa-listado__intro strong {
  color: #0067b1;
  font-weight: 900;
}

.sherpa-listado__years {
  color: #0067b1;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 18px;
}

.sherpa-listado__year {
  color: #0067b1 !important;
  text-decoration: none !important;
  font-weight: 900;
}

.sherpa-listado__year:hover,
.sherpa-listado__year:focus {
  color: #f8b83e !important;
}

.sherpa-listado__year.is-active {
  color: #f8b83e !important;
}

.sherpa-listado__separator {
  color: #0067b1;
  margin: 0 3px;
  font-weight: 900;
}

.sherpa-listado__edition {
  color: #0067b1;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 18px;
  padding: 0;
}

.sherpa-listado__group {
  margin-bottom: 38px;
}

.sherpa-listado__group:last-child {
  margin-bottom: 0;
}

.sherpa-listado__subcategory-title {
  color: #0067b1;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  margin: 0 0 16px;
  padding: 0;
}

.sherpa-listado__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 20px;
}

.sherpa-listado__card {
  margin: 0;
  padding: 0;
}

.sherpa-listado__card-link {
  display: block;
  text-decoration: none !important;
}

.sherpa-listado__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  background: #f2f2f2;
  overflow: hidden;
}

.sherpa-listado__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.sherpa-listado__card-link:hover .sherpa-listado__image {
  transform: scale(1.04);
}

.sherpa-listado__placeholder {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
}

.sherpa-listado__name {
  background: #0067b1;
  color: #ffffff;
  min-height: 36px;
  padding: 8px 6px 7px;
  font-size: 9.5px;
  line-height: 1.08;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

/* Ganadores en listado: nombre en amarillo corporativo */
.sherpa-listado__card.is-ganador .sherpa-listado__name,
.sherpa-listado__name.is-ganador {
  background: #ffc345 !important;
  color: #000000 !important;
  font-weight: 900;
}

.sherpa-listado__empty {
  color: #0067b1;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

@media (max-width: 980px) {
  .sherpa-listado__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 17px 18px;
  }
}

@media (max-width: 767px) {
  .sherpa-listado {
    padding: 36px 0 60px;
  }

  .sherpa-listado__container {
    max-width: 390px;
    padding: 0 18px;
  }

  .sherpa-listado__title,
  .sherpa-listado__intro,
  .sherpa-listado__years,
  .sherpa-listado__edition,
  .sherpa-listado__group,
  .sherpa-listado__empty {
    max-width: 340px;
  }

  .sherpa-listado__title {
    font-size: 21px;
    margin-bottom: 22px;
  }

  .sherpa-listado__intro {
    padding: 21px 18px 22px;
    margin-bottom: 26px;
  }

  .sherpa-listado__intro p {
    font-size: 18px;
    line-height: 1.08;
  }

  .sherpa-listado__years {
    font-size: 14px;
    line-height: 1.25;
  }

  .sherpa-listado__edition {
    font-size: 13px;
  }

  .sherpa-listado__subcategory-title {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .sherpa-listado__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 16px;
  }

  .sherpa-listado__name {
    font-size: 8.5px;
    min-height: 32px;
  }
}


/* ==========================================================
   SHERPA - FICHA INDIVIDUAL
   Shortcode: [sherpa_detalle]
   ========================================================== */

.sherpa-ficha-wrap {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 42px 0 75px;
  font-family: 'Poppins', Arial, sans-serif;
  color: #000000;
  background: #ffffff;
  box-sizing: border-box;
}

.sherpa-ficha-wrap,
.sherpa-ficha-wrap * {
  box-sizing: border-box;
}

.sherpa-ficha-volver {
  margin: 0 0 18px;
  text-align: right;
}

.sherpa-ficha-volver a {
  display: inline-block;
  color: #0067b1 !important;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none !important;
  text-transform: uppercase;
}

.sherpa-ficha-volver a::before {
  content: "← ";
}

.sherpa-ficha-volver a:hover,
.sherpa-ficha-volver a:focus {
  color: #ffc345 !important;
}

.sherpa-ficha-titulo {
  font-size: 21px;
  line-height: 1.15;
  font-weight: 900;
  color: #0067b1;
  margin: 0 0 18px 0;
  padding: 0;
}

.sherpa-ficha-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 14px;
  align-items: stretch;
}

.sherpa-ficha-col-izq {
  width: 100%;
}

.sherpa-ficha-imagen {
  position: relative;
  width: 100%;
  background: #f0f0f0;
  overflow: hidden;
}

.sherpa-ficha-imagen img,
.sherpa-ficha-img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}

.sherpa-detalle__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  background: #f0f0f0;
}

/* Ganador en ficha: oculto */
.sherpa-ficha-ganador {
  display: none !important;
}

.sherpa-ficha-datos {
  background: #ffc345;
  margin-top: 8px;
  padding: 25px 15px 22px;
  text-align: center;
  color: #ffffff;
  font-weight: 900;
  transform: rotate(-1.8deg);
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sherpa-ficha-label {
  display: block;
  font-size: 13px;
  line-height: 1.1;
  margin-bottom: 4px;
  font-weight: 900;
}

.sherpa-ficha-nombre,
.sherpa-ficha-proyecto {
  display: block;
  font-size: 12.5px;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 900;
}

.sherpa-ficha-proyecto {
  margin-bottom: 0;
}

.sherpa-ficha-descripcion {
  background: #f1f1f1;
  padding: 70px 34px 25px 34px;
  min-height: 405px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sherpa-ficha-descripcion h2 {
  font-size: 22px;
  line-height: 1;
  color: #0067b1;
  margin: 0 0 12px 0;
  padding: 0;
  font-weight: 900;
}

.sherpa-ficha-descripcion p {
  font-size: 15px;
  line-height: 1.12;
  margin: 0;
  padding: 0;
  text-align: justify;
  font-weight: 700;
  color: #000000;
}

.sherpa-ficha-testimonio {
  background: #0067b1;
  color: #ffffff;
  margin-top: 7px;
  padding: 22px 42px 26px 42px;
  transform: rotate(-1.4deg);
}

.sherpa-ficha-testimonio-inner {
  transform: rotate(1.4deg);
}

.sherpa-ficha-testimonio h2 {
  color: #ffffff;
  font-size: 23px;
  line-height: 1;
  margin: 0 0 14px 0;
  padding: 0;
  font-weight: 900;
}

.sherpa-ficha-testimonio p {
  color: #ffffff;
  font-size: 14.5px;
  line-height: 1.14;
  margin: 0;
  padding: 0;
  text-align: justify;
  font-weight: 700;
}

.sherpa-ficha-testimonio p + p {
  margin-top: 10px;
}

@media (max-width: 700px) {
  .sherpa-ficha-wrap {
    max-width: 100%;
    padding: 36px 18px 60px;
  }

  .sherpa-ficha-volver {
    text-align: left;
  }

  .sherpa-ficha-titulo {
    font-size: 20px;
  }

  .sherpa-ficha-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sherpa-ficha-imagen {
    max-width: 270px;
    margin: 0 auto;
  }

  .sherpa-ficha-imagen img,
  .sherpa-ficha-img {
    height: auto;
  }

  .sherpa-ficha-datos {
    max-width: 270px;
    margin-left: auto;
    margin-right: auto;
  }

  .sherpa-ficha-descripcion {
    min-height: auto;
    padding: 30px 25px;
  }

  .sherpa-ficha-descripcion p {
    font-size: 14px;
    line-height: 1.18;
  }

  .sherpa-ficha-testimonio {
    padding: 25px;
  }

  .sherpa-ficha-testimonio p {
    font-size: 13.5px;
    line-height: 1.18;
  }
}


/* ==========================================================
   SHERPA - FORMULARIOS / ERRORES
   ========================================================== */

.sherpa-form-errors {
  background: #fff3f3;
  border: 2px solid #d93025;
  color: #111111;
  padding: 18px 22px;
  margin: 0 0 24px;
  font-family: 'Poppins', Arial, sans-serif;
}

.sherpa-form-errors h4 {
  color: #d93025;
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 10px;
}

.sherpa-form-errors ol {
  margin: 0;
  padding-left: 22px;
}

.sherpa-form-errors li {
  margin-bottom: 6px;
}

.sherpa-form-errors label.error {
  color: #d93025;
  font-weight: 700;
}

input.sherpa-field-error,
select.sherpa-field-error,
textarea.sherpa-field-error,
input.error,
select.error,
textarea.error {
  border-color: #d93025 !important;
  outline-color: #d93025 !important;
}

label.error {
  color: #d93025;
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin-top: 4px;
}


/* ==========================================================
   SHERPA - AUMENTO SUAVE DE LEGIBILIDAD GENERAL
   ========================================================== */

.entry-content,
.et_pb_text,
.et_pb_code,
.et_pb_text_inner {
  font-size: 1.04em;
}

.entry-content p,
.entry-content li,
.et_pb_text p,
.et_pb_text li,
.et_pb_code p,
.et_pb_code li {
  line-height: 1.28;
}

/* Textos de páginas hechas con código Divi */
.sherpa-terms-section__intro p,
.sherpa-terms-section__block p,
.sherpa-terms-section__dates p,
.sherpa-terms-section__block li {
  font-size: 13.5px;
  line-height: 1.28;
}

.sherpa-terms-section__intro h2,
.sherpa-terms-section__block h2,
.sherpa-terms-section__dates h2 {
  font-size: 15px;
  line-height: 1.15;
}

/* Menú: lo dejamos estable */
.et-l--header .et_pb_menu_0_tb_header .et-menu > li > a,
.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__menu > nav > ul > li > a {
  font-size: 16px !important;
}

/* Móvil: subida más moderada */
@media (max-width: 767px) {
  .entry-content,
  .et_pb_text,
  .et_pb_code,
  .et_pb_text_inner {
    font-size: 1.02em;
  }

  .sherpa-terms-section__intro p,
  .sherpa-terms-section__block p,
  .sherpa-terms-section__dates p,
  .sherpa-terms-section__block li {
    font-size: 13px;
    line-height: 1.3;
  }
}


/* ==========================================================
   SHERPA - UTILIDADES
   ========================================================== */

.texto-azul-sherpa {
  color: #0067b1 !important;
}

.texto-amarillo-sherpa {
  color: #ffc345 !important;
}

.bg-azul-sherpa {
  background-color: #0067b1 !important;
}

.bg-amarillo-sherpa {
  background-color: #ffc345 !important;
}