/* Los .et-waypoint (iconos de blurb, imágenes) parten en opacity:0 en CSS y solo
   se muestran cuando Divi les añade .et-animated (vía JS). Como la regla base
   .et-waypoint:not(.et_pb_counters){opacity:0} puede aparecer después en el CSS
   y ganar por orden, forzamos la visibilidad: todos quedan visibles, igual que
   producción una vez termina la animación. */
.et-waypoint {
  opacity: 1 !important;
}

/* Split-header: logo centrado en un <li> reservado en mitad del menú */
.et_header_style_split #main-header .centered-inline-logo-wrap {
  margin: -33px 0;
  height: 66px;
}
.et_header_style_split #main-header .centered-inline-logo-wrap .logo_container {
  height: 100%;
}

/* Fixed header debe quedar debajo del header secundario fijo, como producción */
body.et_fixed_nav.et_secondary_nav_enabled #main-header {
  top: 50.8px !important;
}

/* Párrafo de fecha y lista de precios CRE en portada */
#fechaGas {
  text-align: center !important;
  font-family: 'Open Sans', 'Heebo', sans-serif !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 12px auto 0 auto !important;
}

#fechaGas .cre-price-link {
  color: #29aaf0 !important;
  font-weight: 700 !important;
  text-decoration: none;
  display: inline-block;
  margin-top: 2px;
}

#fechaGas .cre-price-link:hover,
#fechaGas .cre-price-link:focus-visible {
  color: #7bc9f4 !important;
  text-decoration: underline;
}

/*
   Componentes de Divi usados en la portada. El exportador conserva el
   marcado, pero no la parte diferida de la hoja de estilos de Divi que
   controla el carrusel y la cuadrícula Salvattore. Estas reglas hacen que
   ambos componentes funcionen sin cargar WordPress ni el runtime de Divi.
*/
.et_pb_slider {
  position: relative;
  overflow: hidden;
  transition: height 0.4s ease-in-out;
}

.et_pb_slider .et_pb_slides {
  position: relative;
  width: 100%;
}

.et_pb_slider .et_pb_slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transform: scale(0.98);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0.6s ease-in-out;
  padding: 0 6%;
  box-sizing: border-box;
  text-align: center;
  list-style: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.et_pb_slider .et_pb_slide.et-pb-active-slide {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transform: scale(1);
}

.et_pb_slides::after {
  content: '';
  display: block;
  clear: both;
}

.et-pb-controllers {
  position: absolute;
  z-index: 10;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
}

.et-pb-controllers a {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 0.5;
  text-indent: -9999px;
}

.et-pb-controllers a:last-child {
  margin-right: 0;
}

.et-pb-controllers .et-pb-active-control {
  background-color: #fff;
  opacity: 1;
}

.et-pb-slider-arrows a {
  position: absolute;
  z-index: 10;
  top: 50%;
  color: #fff;
  font-family: ETmodules, sans-serif;
  font-size: 48px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, left 0.2s ease, right 0.2s ease;
}

.et-pb-arrow-prev { left: 0; }
.et-pb-arrow-next { right: 0; }
.et-pb-arrow-prev::before { content: '\34'; }
.et-pb-arrow-next::before { content: '\35'; }
.et-pb-slider-arrows span { display: none; }
.et_pb_slider:hover .et-pb-arrow-prev { left: 22px; opacity: 1; }
.et_pb_slider:hover .et-pb-arrow-next { right: 22px; opacity: 1; }

/* Salvattore convierte los artículos en columnas con JavaScript. La cuadrícula
   también cubre el estado inicial, así que el blog no se apila si el script
   tarda en cargar o está deshabilitado. */
.et_pb_blog_grid .et_pb_salvattore_content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 5.5%;
}

.et_pb_blog_grid .et_pb_salvattore_content > .column {
  min-width: 0;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.et_pb_blog_grid .et_pb_salvattore_content > .et_pb_post,
.et_pb_blog_grid .et_pb_salvattore_content > .column .et_pb_post {
  width: 100%;
}

@media (max-width: 980px) {
  .et_pb_blog_grid .et_pb_salvattore_content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .et_pb_blog_grid .et_pb_salvattore_content {
    grid-template-columns: 1fr;
  }

  .et-pb-controllers {
    bottom: 5%;
  }
}

/* ==========================================================================
   Estilos de Pestañas Divi y Línea de Tiempo (Bold Timeline) para Precios
   ========================================================================== */

/* Subtítulo previo a las pestañas */
.et_pb_text_1 h4 {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #333333 !important;
  padding-bottom: 10px !important;
  line-height: 1em !important;
  margin-bottom: 15px !important;
}

/* --- Control de Pestañas (Divi Tabs) --- */
.et_pb_tabs {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #fff;
  margin-top: 15px;
  overflow: hidden;
}

.et_pb_tabs_controls {
  display: flex;
  flex-wrap: wrap;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.et_pb_tabs_controls li {
  flex: 1 1 auto;
  text-align: center;
  margin: 0 !important;
  padding: 0 !important;
  border-right: 1px solid #e0e0e0;
}

.et_pb_tabs_controls li:last-child {
  border-right: none;
}

.et_pb_tabs_controls li a {
  display: block;
  padding: 9px 12px !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #666666 !important;
  text-decoration: none;
  background-color: #f5f5f5;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.et_pb_tabs_controls li:hover a {
  background-color: #eaeaea;
  color: #1e73be !important;
}

.et_pb_tabs_controls li.et_pb_tab_active a {
  background-color: #ffffff !important;
  color: #1e73be !important;
  font-weight: 700 !important;
  box-shadow: inset 0 2px 0 #1e73be;
}

.et_pb_all_tabs {
  padding: 25px 15px;
  background-color: #ffffff;
}

.et_pb_tab {
  display: none;
  opacity: 0;
}

.et_pb_tab.et_pb_active_content {
  display: block;
  animation: et_pb_tab_fade_in 0.4s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes et_pb_tab_fade_in {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ocultar botón no interpretado [bold_timeline_item_button ...] */
.bold_timeline_group_show_button {
  display: none !important;
}

/* --- Bold Timeline Layout --- */
.bold_timeline_container {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  padding: 15px 0;
  box-sizing: border-box;
}

/* Línea vertical central */
.bold_timeline_container_line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background-color: #1e73be;
  transform: translateX(-50%);
  z-index: 1;
}

/* Encabezado del mes (Cápsula negra "Enero", "Febrero", etc.) */
.bold_timeline_group_header {
  text-align: center;
  margin: 25px 0 20px 0;
  position: relative;
  z-index: 2;
}

.bold_timeline_group_header_title {
  display: inline-block;
  background-color: #1f2229;
  color: #ffffff !important;
  padding: 5px 22px !important;
  border-radius: 16px;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: 'Open Sans', sans-serif !important;
  margin: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Contenedor de items del mes */
.bold_timeline_group_content {
  position: relative;
}

/* Item individual del timeline */
.bold_timeline_item {
  position: relative;
  margin-bottom: 30px;
  min-height: 75px;
  display: flex;
  align-items: center;
  width: 100%;
  clear: both;
}

/* Ícono del nodo ($ dentro de círculo con borde azul) */
.bold_timeline_item_icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  border: 2.5px solid #1e73be;
  border-radius: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.bold_timeline_item_icon::before {
  content: "$";
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1e73be;
  line-height: 1;
}

/* Tarjeta contenedora de precio */
.bold_timeline_item_inner {
  position: relative;
  width: 43%;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px 20px 14px 20px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  z-index: 2;
  box-sizing: border-box;
}

/* Disposición alternada: Impar a la Izquierda, Par a la Derecha */
.bold_timeline_item:nth-child(odd) {
  justify-content: flex-start;
}

.bold_timeline_item:nth-child(odd) .bold_timeline_item_inner {
  margin-left: 2%;
  text-align: left;
}

.bold_timeline_item:nth-child(even) {
  justify-content: flex-end;
}

.bold_timeline_item:nth-child(even) .bold_timeline_item_inner {
  margin-right: 2%;
  text-align: left;
}

/* Píldora de fecha / súper-título celeste */
.bold_timeline_item_header_supertitle {
  position: absolute;
  top: -12px;
  left: 16px;
  margin: 0;
  padding: 0;
}

.bold_timeline_item_header_supertitle_inner {
  display: inline-block;
  background-color: #1bb5ff;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  font-family: 'Open Sans', sans-serif !important;
  padding: 3px 10px !important;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  white-space: nowrap;
}

/* Título con el precio en formato "$ 9.28 por litro." */
.bold_timeline_item_header_title,
h2.bold_timeline_item_header_title {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  color: #555555 !important;
  margin: 6px 0 0 0 !important;
  padding: 0 !important;
  line-height: 1.3em !important;
}

/* --- Responsive para dispositivos móviles --- */
@media (max-width: 768px) {
  .et_pb_tabs_controls {
    flex-direction: column;
  }
  .et_pb_tabs_controls li {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  .bold_timeline_container_line {
    left: 20px;
    transform: none;
  }
  .bold_timeline_group_header {
    text-align: left;
    padding-left: 50px;
  }
  .bold_timeline_item_icon {
    left: 20px;
    transform: translateY(-50%);
  }
  .bold_timeline_item {
    justify-content: flex-start !important;
    margin-bottom: 25px;
  }
  .bold_timeline_item_inner {
    width: calc(100% - 55px) !important;
    margin-left: 55px !important;
    margin-right: 0 !important;
  }
  .bold_timeline_item_header_supertitle_inner {
    font-size: 10px !important;
    padding: 2px 8px !important;
  }
  .bold_timeline_item_header_title,
  h2.bold_timeline_item_header_title {
    font-size: 16px !important;
  }
}

