/*
VOLCANO PRO — DISEÑO GLOBAL PARA ARTÍCULOS
Instalar UNA SOLA VEZ en WordPress.
Todos los estilos están limitados a .volcano-articulo.
*/

:root {
  --vp-amarillo: #f5c400;
  --vp-amarillo-claro: #ffdf43;
  --vp-negro: #111111;
  --vp-gris: #f5f5f5;
  --vp-gris-borde: #dedede;
  --vp-rojo: #b42318;
  --vp-sombra: 0 12px 30px rgba(0,0,0,.10);
}

.volcano-articulo {
  max-width: 900px;
  margin: 0 auto;
  color: #252525;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

.volcano-articulo p {
  margin: 0 0 18px;
}

.volcano-articulo h2.wp-block-heading {
  margin: 42px 0 18px;
  padding: 13px 16px;
  border-left: 6px solid var(--vp-amarillo);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, #111 0%, #222 100%);
  color: #fff;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.24;
  letter-spacing: -.02em;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.volcano-articulo h3.wp-block-heading {
  margin: 30px 0 13px;
  color: var(--vp-negro);
  font-size: clamp(20px, 2.4vw, 25px);
  border-bottom: 3px solid var(--vp-amarillo);
  padding-bottom: 7px;
}

.volcano-articulo a:not(.volcano-boton) {
  color: #8a6800;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.volcano-articulo a:not(.volcano-boton):hover {
  color: var(--vp-negro);
  background: #fff3b8;
}

.volcano-articulo ul.wp-block-list,
.volcano-articulo ol.wp-block-list {
  margin: 18px 0 26px;
  padding-left: 0;
  list-style: none;
}

.volcano-articulo ul.wp-block-list li,
.volcano-articulo ol.wp-block-list li {
  position: relative;
  margin: 10px 0;
  padding: 13px 16px 13px 46px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.045);
}

.volcano-articulo ul.wp-block-list li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 12px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--vp-amarillo);
  color: var(--vp-negro);
  font-size: 14px;
  font-weight: 900;
}

.volcano-articulo ol.wp-block-list {
  counter-reset: vp-item;
}

.volcano-articulo ol.wp-block-list li {
  counter-increment: vp-item;
}

.volcano-articulo ol.wp-block-list li::before {
  content: counter(vp-item);
  position: absolute;
  left: 13px;
  top: 11px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--vp-negro);
  color: var(--vp-amarillo);
  font-size: 13px;
  font-weight: 900;
}

.volcano-respuesta-rapida,
.volcano-consejo,
.volcano-advertencia,
.volcano-dato-clave {
  margin: 25px 0;
  padding: 20px 22px;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(0,0,0,.07);
}

.volcano-respuesta-rapida {
  position: relative;
  border: 1px solid #ead27a;
  border-left: 7px solid var(--vp-amarillo);
  background: linear-gradient(135deg, #fffbea, #fff3b8);
}

.volcano-respuesta-rapida::before {
  content: "RESPUESTA RÁPIDA";
  display: block;
  margin-bottom: 8px;
  color: #5b4700;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.volcano-respuesta-rapida > strong:first-child {
  display: none;
}

.volcano-consejo {
  border: 1px solid #f1d55c;
  background: #fff9dc;
}

.volcano-dato-clave {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--vp-amarillo);
  background: linear-gradient(135deg, #111, #242424);
  color: #fff;
}

.volcano-dato-clave::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -35px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(245,196,0,.17);
}

.volcano-dato-clave p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.volcano-dato-clave a {
  color: var(--vp-amarillo);
}

.volcano-advertencia {
  border-left: 7px solid var(--vp-rojo);
  background: #fff1f0;
  color: #4a1713;
}

.volcano-tabla {
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border-radius: 13px;
  box-shadow: var(--vp-sombra);
}

.volcano-tabla .wp-block-table {
  margin: 0;
}

.volcano-tabla table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background: #fff;
}

.volcano-tabla th {
  padding: 14px;
  border: 1px solid #303030;
  background: var(--vp-negro);
  color: var(--vp-amarillo);
  font-weight: 900;
  text-align: left;
}

.volcano-tabla td {
  padding: 14px;
  border: 1px solid var(--vp-gris-borde);
  vertical-align: top;
}

.volcano-tabla tbody tr:nth-child(even) {
  background: #fff9dc;
}

.volcano-imagen-pendiente {
  margin: 28px 0;
  min-height: 220px;
  padding: 35px 24px;
  display: grid;
  place-items: center;
  border: 2px dashed #b99700;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(245,196,0,.11), rgba(17,17,17,.045)),
    repeating-linear-gradient(45deg, #fff, #fff 12px, #fafafa 12px, #fafafa 24px);
  color: #5e4a00;
  text-align: center;
}

.volcano-imagen-pendiente p {
  margin: 0;
}

.volcano-imagen-pendiente code {
  font-size: 13px;
  color: #222;
}

.volcano-articulo .wp-block-image {
  margin: 28px 0;
}

.volcano-articulo .wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: var(--vp-sombra);
}

.volcano-faq {
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid #efd05c;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.volcano-faq[open] {
  border-color: var(--vp-amarillo);
  box-shadow: 0 9px 24px rgba(245,196,0,.18);
}

.volcano-faq summary {
  position: relative;
  padding: 17px 58px 17px 18px;
  cursor: pointer;
  list-style: none;
  background: #fff8d7;
  color: var(--vp-negro);
  font-weight: 900;
}

.volcano-faq summary::-webkit-details-marker {
  display: none;
}

.volcano-faq summary::after {
  content: "+";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--vp-amarillo);
  color: var(--vp-negro);
  font-size: 19px;
  line-height: 1;
  transition: transform .25s ease;
}

.volcano-faq[open] summary::after {
  transform: translateY(-50%) rotate(135deg);
}

.volcano-faq > p {
  margin: 0;
  padding: 16px 19px 20px;
  border-left: 4px solid var(--vp-amarillo);
}

.volcano-boton-contenedor {
  width: 100%;
  margin: 34px 0;
  text-align: center;
}

.volcano-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 16px 29px;
  border: 2px solid var(--vp-amarillo);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--vp-amarillo), var(--vp-amarillo-claro));
  color: var(--vp-negro) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  animation: volcanoPulso 2s infinite;
}

.volcano-boton::after {
  content: "➜";
  font-size: 21px;
  transition: transform .25s ease;
}

.volcano-boton:hover {
  background: var(--vp-negro);
  color: var(--vp-amarillo) !important;
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 13px 27px rgba(0,0,0,.31);
  animation-play-state: paused;
}

.volcano-boton:hover::after {
  transform: translateX(6px);
}

.volcano-boton:focus-visible {
  outline: 4px solid rgba(245,196,0,.45);
  outline-offset: 4px;
}

.volcano-articulo .wp-block-separator {
  margin: 38px auto;
  width: 90px;
  border: 0;
  border-top: 5px solid var(--vp-amarillo);
  opacity: 1;
}

@keyframes volcanoPulso {
  0% {
    box-shadow: 0 8px 20px rgba(0,0,0,.22), 0 0 0 0 rgba(245,196,0,.62);
  }
  70% {
    box-shadow: 0 8px 20px rgba(0,0,0,.22), 0 0 0 14px rgba(245,196,0,0);
  }
  100% {
    box-shadow: 0 8px 20px rgba(0,0,0,.22), 0 0 0 0 rgba(245,196,0,0);
  }
}

@media (max-width: 700px) {
  .volcano-articulo {
    font-size: 16px;
    line-height: 1.65;
  }

  .volcano-articulo h2.wp-block-heading {
    margin-top: 34px;
    padding: 12px 13px;
  }

  .volcano-articulo ul.wp-block-list li,
  .volcano-articulo ol.wp-block-list li {
    padding-right: 13px;
  }

  .volcano-boton {
    width: calc(100% - 20px);
    padding: 15px 16px;
    font-size: 15px;
  }

  .volcano-tabla {
    font-size: 14px;
  }

  .volcano-imagen-pendiente {
    min-height: 180px;
    padding: 25px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .volcano-boton {
    animation: none;
    transition: none;
  }

  .volcano-faq summary::after {
    transition: none;
  }
}
