/* Estilos para las páginas nativas editables con el look de Odoo */
.ch-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px;
}
body .ch-hero {
  padding-left: 20px;
  padding-right: 20px;
}
body .ch-hero > * {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.ch-hero .wp-block-image img {
  max-width: 120px;
  height: auto;
  margin: 0 auto 24px;
}
.ch-cards {
  gap: 24px;
  align-items: stretch;
}
.ch-cards .wp-block-column {
  display: flex;
}
.ch-cards .wp-block-column > .wp-block-group {
  width: 100%;
}
.ch-plan {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ch-plan__precio {
  margin: 18px 0 10px;
}
.ch-plan__cta {
  margin-top: 16px;
}
.ch-btn .wp-block-button__link {
  background: var(--ch-azul);
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 700;
  border: 0;
  font-size: .95rem;
}
.ch-btn .wp-block-button__link:hover {
  background: var(--ch-azul-osc);
  color: #fff;
}
.ch-btn--outline .wp-block-button__link {
  background: transparent;
  color: var(--ch-azul);
  border: 1px solid var(--ch-azul);
}
.ch-btn--outline .wp-block-button__link:hover {
  background: var(--ch-tinte);
  color: var(--ch-azul);
}
.ch-shipping {
  font-size: .85rem;
  color: var(--ch-gris);
  margin: .75rem 0 0;
}

.ch-blog-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ch-device-img {
  max-width: 520px;
  margin: 24px auto;
}
.ch-card--wide {
  margin-top: 24px;
}
.ch-tabla {
  width: 100%;
}
.ch-tabla table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.ch-tabla th,
.ch-tabla td {
  padding: 10px 12px;
}
.ch-faq details {
  background: #fff;
  border: 1px solid var(--ch-gris-cl);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.ch-faq summary {
  font-weight: 700;
  color: var(--ch-tinta);
  cursor: pointer;
}
.ch-faq details[open] summary {
  margin-bottom: 8px;
}
.ch-cta.wp-block-group {
  padding: 40px !important;
}
.ch-cta .wp-block-button__link {
  background: #fff;
  color: var(--ch-azul-osc);
  font-weight: 700;
  border-radius: 10px;
}

/* FAQ nativo con aspecto de acordeón de Odoo */
.wp-block-details {
  background: #fff;
  border: 1px solid var(--ch-gris-cl);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.wp-block-details summary {
  font-weight: 700;
  color: var(--ch-tinta);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
  content: "⌄";
  color: var(--ch-azul);
  font-size: 1.1rem;
}
.wp-block-details[open] summary::after { content: "⌃"; }
.wp-block-details p {
  color: var(--ch-gris);
  margin-top: 10px;
}

/* Logo animado del hero */
.ch-hero__logo svg {
  width: 260px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}
/* Captura de la app */
.ch-app-img {
  max-width: 320px;
  margin: 0 auto;
}
.ch-app-img img {
  border-radius: 24px;
  box-shadow: 0 18px 40px -20px rgba(12,35,64,.45);
}

/* Badges largos en móvil */
.ch-badge {
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
}
@media (max-width: 600px) {
  .ch-badge { font-size: .62rem; padding: 5px 10px; }
}

/* Tablas anchas: scroll horizontal en móvil */
.ch-tabla { overflow-x: auto; }
@media (max-width: 768px) {
  .ch-tabla table { min-width: 720px; }
}

/* Carruseles deslizables creados con el bloque Galería */
.ch-slider.wp-block-gallery {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding-bottom: 10px;
}
.ch-slider.wp-block-gallery .wp-block-image {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
}
.ch-slider.wp-block-gallery .wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px -24px rgba(12,35,64,.45);
}
.ch-app-slider { max-width: 340px; margin: 0 auto; }
.ch-web-slider { margin-top: 24px; }
.ch-slider.wp-block-gallery::-webkit-scrollbar { height: 6px; }
.ch-slider.wp-block-gallery::-webkit-scrollbar-thumb { background: #bae0fd; border-radius: 999px; }

/* Altura fija de los carruseles para que no estiren la página */
.ch-app-slider.wp-block-gallery { height: 520px; }
.ch-app-slider .wp-block-image { height: 520px; }
.ch-app-slider .wp-block-image img {
  width: 100%; height: 520px;
  object-fit: cover; object-position: top center;
}
.ch-web-slider.wp-block-gallery { height: 520px; }
.ch-web-slider .wp-block-image { height: 520px; }
.ch-web-slider .wp-block-image img {
  width: 100%; height: 520px;
  object-fit: cover; object-position: top center;
}
@media (max-width: 768px) {
  .ch-app-slider.wp-block-gallery,
  .ch-app-slider .wp-block-image,
  .ch-app-slider .wp-block-image img { height: 460px; }
  .ch-web-slider.wp-block-gallery,
  .ch-web-slider .wp-block-image,
  .ch-web-slider .wp-block-image img { height: 260px; }
}

/* Carrusel real con Bootstrap */
.ch-carousel {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.ch-carousel.ch-app-carousel { max-width: 340px; }
.ch-carousel .carousel-item {
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7fafc;
}
.ch-carousel .carousel-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}
.ch-carousel .carousel-indicators { margin-bottom: 10px; }
.ch-carousel .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ch-azul); opacity: .4; border: 0;
}
.ch-carousel .carousel-indicators .active { opacity: 1; }
.ch-carousel .carousel-control-prev-icon,
.ch-carousel .carousel-control-next-icon { width: 2rem; height: 2rem; }
.ch-carousel .carousel-control-prev,
.ch-carousel .carousel-control-next { opacity: .75; }
.ch-carousel .carousel-control-prev:hover,
.ch-carousel .carousel-control-next:hover { opacity: 1; }
@media (max-width: 768px) {
  .ch-carousel .carousel-item { height: 460px; }
  .ch-carousel.ch-web-carousel .carousel-item { height: 260px; }
}
