/* Ott – Página de curso. Todo está acotado a .ott-c para no chocar con el tema ni con Elementor. */

body:has(.ott-c) { overflow-x: clip; }

.ott-c {
  --navy: #001E78;
  --olive: #B7B68C;
  --olive-dark: #5A5933;
  --olive-tint: #ECEBD9;
  --bg: #F4F3E8;
  --line: #DEDCC6;
  --ink: #0B1440;
  --ink2: #2A3057;
  --muted: #4A4F6B;
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  /* Ancho completo aunque el contenedor de Elementor sea "caja" */
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}
.ott-c *, .ott-c *::before, .ott-c *::after { box-sizing: border-box; }
.ott-c h2, .ott-c p, .ott-c ul { margin: 0; padding: 0; font-family: inherit; letter-spacing: normal; text-transform: none; }
.ott-c a { text-decoration: none; box-shadow: none; }
.ott-c img { max-width: 100%; display: block; height: auto; }
.ott-c a:focus-visible, .ott-c summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px #ffffff; }

.ott-c .ott-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Botones y links */
.ott-c .ott-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-family: inherit; font-weight: 600; cursor: pointer; }
.ott-c .ott-btn--navy { background: var(--navy); color: #ffffff; }
.ott-c .ott-btn--navy:hover { color: #ffffff; opacity: .92; }
.ott-c .ott-btn--lg { min-height: 52px; padding: 0 32px; font-size: 18px; }
.ott-c .ott-btn--olive { background: var(--olive); color: var(--navy); min-height: 56px; padding: 0 36px; font-size: 18px; font-weight: 700; }
.ott-c .ott-btn--olive:hover { color: var(--navy); opacity: .92; }
.ott-c .ott-btn--line { min-height: 44px; border: 2px solid var(--navy); color: var(--navy); font-size: 16px; background: transparent; }
.ott-c .ott-btn--line:hover { color: var(--navy); background: var(--bg); }
.ott-c .ott-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 500; color: var(--navy); }
.ott-c .ott-link:hover { color: var(--olive-dark); }

/* Botón nativo de WooCommerce con el estilo Ott */
.ott-c .ott-cart form.cart { margin: 0; padding: 0; display: flex; }
.ott-c .ott-cart .quantity { display: none !important; }
.ott-c .ott-cart .single_add_to_cart_button {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px !important; margin: 0 !important;
  border: 0 !important; border-radius: 999px !important;
  background: var(--navy) !important; color: #ffffff !important;
  font-family: inherit !important; font-size: 18px !important; font-weight: 600 !important; line-height: 1 !important;
  text-decoration: none; cursor: pointer; box-shadow: none !important;
}
.ott-c .ott-cart .single_add_to_cart_button:hover { background: var(--navy) !important; color: #ffffff !important; opacity: .92; }
.ott-c .ott-cart--bar .single_add_to_cart_button { min-height: 44px; padding: 0 24px !important; font-size: 16px !important; }
.ott-c .ott-cart--cta .single_add_to_cart_button { min-height: 56px; padding: 0 36px !important; background: var(--olive) !important; color: var(--navy) !important; font-weight: 700 !important; }
.ott-c .ott-cart--cta .single_add_to_cart_button:hover { background: var(--olive) !important; color: var(--navy) !important; }
.ott-c .ott-cart .added_to_cart { display: inline-flex; align-items: center; min-height: 44px; margin-left: 14px; font-size: 16px; font-weight: 500; color: var(--navy); }
.ott-c .ott-cart--cta .added_to_cart { color: #ffffff; }

/* Botón nativo del listado (cursos relacionados) */
.ott-c .ott-pc__a { display: flex; flex-direction: column; gap: 8px; }
.ott-c .ott-pc__a .button {
  display: inline-flex !important; align-items: center; justify-content: center; width: 100%;
  min-height: 44px; padding: 0 24px !important; margin: 0 !important;
  border: 2px solid var(--navy) !important; border-radius: 999px !important;
  background: transparent !important; color: var(--navy) !important;
  font-family: inherit !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1 !important;
  text-decoration: none; box-shadow: none !important;
}
.ott-c .ott-pc__a .button:hover { background: var(--bg) !important; color: var(--navy) !important; }
.ott-c .ott-pc__a .added_to_cart { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; font-size: 15px; font-weight: 500; color: var(--navy); }

/* Barra de secciones */
.ott-c .ott-bar { background: #ffffff; border-bottom: 1px solid var(--line); }
.ott-c .ott-bar .ott-wrap { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.ott-c .ott-bar__l { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.ott-c .ott-bar__logo { height: 34px; width: auto; }
.ott-c .ott-bar__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ott-c .ott-bar__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 16px; font-weight: 500; color: var(--navy); }
.ott-c .ott-bar__nav a:hover { color: var(--olive-dark); }
.ott-c .ott-bar .ott-btn { min-height: 44px; padding: 0 24px; font-size: 16px; }

/* Resumen */
.ott-c .ott-hero { background: var(--bg); padding: 64px 0; }
.ott-c .ott-hero .ott-wrap { display: flex; flex-direction: column; gap: 48px; }
.ott-c .ott-hero__top { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.ott-c .ott-hero__txt { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ott-c .ott-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--olive-dark); }
.ott-c h2.ott-h1 { font-size: 48px; line-height: 1.1; font-weight: 700; color: var(--navy); }
.ott-c .ott-lead { font-size: 20px; line-height: 1.5; color: var(--ink2); max-width: 540px; }
.ott-c .ott-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 8px; }
.ott-c .ott-price { font-size: 16px; color: var(--muted); }
.ott-c .ott-price strong { font-size: 24px; font-weight: 700; color: var(--ink); }
.ott-c .ott-price strong *, .ott-c .ott-cta__price * { font: inherit; color: inherit; text-decoration: none; }
.ott-c .ott-hero__img { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.ott-c .ott-hero__img img { width: 100%; max-width: 460px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; }
.ott-c .ott-facts { display: flex; flex-wrap: wrap; gap: 16px; }
.ott-c .ott-fact { flex: 1 1 240px; min-width: 0; background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; font-size: 17px; line-height: 1.3; font-weight: 500; }
.ott-c .ott-ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: var(--olive-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; }

/* Secciones */
.ott-c .ott-sec { padding: 80px 0 72px; }
.ott-c .ott-sec--tint { background: var(--bg); padding: 72px 0; }
.ott-c .ott-sec > .ott-wrap { display: flex; flex-direction: column; gap: 32px; }
.ott-c .ott-sec--tint > .ott-wrap { display: block; }
.ott-c .ott-head { display: flex; flex-direction: column; gap: 8px; }
.ott-c h2.ott-h2 { font-size: 34px; line-height: 1.2; font-weight: 700; color: var(--navy); }
.ott-c .ott-sub { font-size: 18px; line-height: 1.5; color: var(--muted); }

/* Tarjetas de contenido */
.ott-c .ott-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.ott-c .ott-card { flex: 1 1 200px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #ffffff; display: flex; flex-direction: column; }
.ott-c .ott-card__img { width: 100%; height: 150px; object-fit: cover; }
.ott-c .ott-card__ph { height: 150px; background: var(--olive-tint); }
.ott-c .ott-card__b { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.ott-c .ott-card__n { font-size: 14px; font-weight: 700; color: var(--olive-dark); letter-spacing: .08em; }
.ott-c .ott-card__t { font-size: 19px; line-height: 1.3; font-weight: 600; }

/* Descripción original del producto (cursos aún sin campos nuevos) */
.ott-c .ott-desc { max-width: 820px; font-size: 18px; line-height: 1.6; color: var(--ink2); }
.ott-c .ott-desc p { margin: 0 0 14px; }
.ott-c .ott-desc h1, .ott-c .ott-desc h2, .ott-c .ott-desc h3, .ott-c .ott-desc h4, .ott-c .ott-desc h5, .ott-c .ott-desc h6 { margin: 28px 0 12px; font-weight: 700; line-height: 1.25; color: var(--navy); font-family: inherit; }
.ott-c .ott-desc h1, .ott-c .ott-desc h2 { font-size: 28px; }
.ott-c .ott-desc h3 { font-size: 22px; }
.ott-c .ott-desc h4, .ott-c .ott-desc h5, .ott-c .ott-desc h6 { font-size: 19px; }
.ott-c .ott-desc ul, .ott-c .ott-desc ol { margin: 0 0 16px; padding-left: 24px; }
.ott-c .ott-desc li { margin: 0 0 6px; }
.ott-c .ott-desc a { color: var(--navy); text-decoration: underline; }
.ott-c .ott-desc img { max-width: 100%; height: auto; border-radius: 16px; }
.ott-c .ott-desc table { width: 100%; border-collapse: collapse; }
.ott-c .ott-desc td, .ott-c .ott-desc th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

/* Datos rápidos con etiqueta (cursos cortos) */
.ott-c .ott-fact__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ott-c .ott-fact__l { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive-dark); }
.ott-c .ott-fact__v { font-size: 17px; line-height: 1.3; font-weight: 500; }

/* Tarjetas de clases */
.ott-c .ott-card--clase { flex: 1 1 320px; }
.ott-c .ott-card__hd { background: var(--olive-tint); padding: 14px 24px; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--olive-dark); }
.ott-c .ott-card--clase .ott-card__b { padding: 24px; }
.ott-c .ott-bul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ott-c .ott-bul li { position: relative; padding-left: 22px; font-size: 18px; line-height: 1.4; font-weight: 500; }
.ott-c .ott-bul li::before { content: ''; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 999px; background: var(--navy); }

/* Dos columnas */
.ott-c .ott-two { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.ott-c .ott-box { flex: 1 1 440px; min-width: 0; background: #ffffff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.ott-c h2.ott-h3 { font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--navy); }
.ott-c .ott-li { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.ott-c .ott-li svg { flex: 0 0 auto; color: var(--navy); }
.ott-c .ott-p { font-size: 18px; line-height: 1.55; color: var(--ink2); }
.ott-c .ott-p p { margin: 0 0 12px; }
.ott-c .ott-p p:last-child { margin-bottom: 0; }
.ott-c .ott-hr { height: 1px; background: var(--line); }
.ott-c .ott-req { display: flex; flex-direction: column; gap: 6px; }
.ott-c .ott-req__l { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--olive-dark); }
.ott-c .ott-req__v { font-size: 18px; font-weight: 500; }

/* Pasos */
.ott-c .ott-steps { display: flex; flex-wrap: wrap; gap: 24px; }
.ott-c .ott-step { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ott-c .ott-step__n { width: 44px; height: 44px; border-radius: 999px; background: var(--navy); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.ott-c .ott-step__t { font-size: 21px; font-weight: 600; }
.ott-c .ott-step__d { font-size: 17px; line-height: 1.5; color: var(--muted); }
.ott-c .ott-small { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Chef y testimonio */
.ott-c .ott-box--chef { flex-direction: row; align-items: center; gap: 24px; }
.ott-c .ott-chef__img { flex: 0 0 104px; width: 104px; height: 104px; border-radius: 999px; object-fit: cover; border: 4px solid var(--olive); }
.ott-c .ott-chef__t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ott-c .ott-chef__k { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--olive-dark); }
.ott-c .ott-chef__n { font-size: 22px; font-weight: 700; }
.ott-c .ott-chef__b { font-size: 17px; line-height: 1.5; color: var(--muted); }
.ott-c .ott-box--quote { justify-content: center; gap: 10px; }
.ott-c .ott-quote__t { font-size: 20px; line-height: 1.5; font-weight: 500; }
.ott-c .ott-quote__a { font-size: 16px; color: var(--muted); }

/* Preguntas frecuentes */
.ott-c .ott-faq { max-width: 820px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 24px; }
.ott-c .ott-faq__list { display: flex; flex-direction: column; gap: 12px; }
.ott-c .ott-q { border: 1px solid var(--line); border-radius: 16px; background: #ffffff; overflow: hidden; }
.ott-c .ott-q summary { list-style: none; cursor: pointer; min-height: 64px; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 600; color: var(--ink); }
.ott-c .ott-q summary::-webkit-details-marker { display: none; }
.ott-c .ott-q summary::marker { content: ''; }
.ott-c .ott-q summary::after {
  content: ''; flex: 0 0 24px; width: 24px; height: 24px; background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ott-c .ott-q[open] summary::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ott-c .ott-q__a { padding: 0 24px 22px; font-size: 18px; line-height: 1.55; color: var(--ink2); }

/* Banda de reserva */
.ott-c .ott-cta { background: var(--navy); padding: 72px 0; }
.ott-c .ott-cta .ott-wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.ott-c .ott-cta__l { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ott-c h2.ott-h2--w { font-size: 38px; line-height: 1.15; font-weight: 700; color: #ffffff; }
.ott-c .ott-cta__d { font-size: 18px; line-height: 1.5; color: #DCDEF0; }
.ott-c .ott-cta__r { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ott-c .ott-cta__from { font-size: 16px; color: #DCDEF0; }
.ott-c .ott-cta__price { font-size: 40px; font-weight: 700; color: #ffffff; line-height: 1; }

/* Relacionados */
.ott-c .ott-rel { display: flex; flex-wrap: wrap; gap: 20px; }
.ott-c .ott-pc { flex: 1 1 230px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #ffffff; display: flex; flex-direction: column; }
.ott-c .ott-pc__img { display: block; height: 180px; background: var(--olive-tint); }
.ott-c .ott-pc__img img { width: 100%; height: 180px; object-fit: cover; }
.ott-c .ott-pc__b { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ott-c .ott-pc__t { font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.ott-c .ott-pc__p { font-size: 17px; font-weight: 600; }
.ott-c .ott-pc__p * { font: inherit; color: inherit; text-decoration: none; }
.ott-c .ott-pc__sp { flex: 1; }

/* Celular */
@media (max-width: 600px) {
  .ott-c .ott-hero { padding: 40px 0; }
  .ott-c h2.ott-h1 { font-size: 36px; }
  .ott-c h2.ott-h2 { font-size: 28px; }
  .ott-c h2.ott-h2--w { font-size: 30px; }
  .ott-c .ott-sec { padding: 56px 0 48px; }
  .ott-c .ott-sec--tint { padding: 48px 0; }
  .ott-c .ott-box { padding: 24px; }
  .ott-c .ott-box--chef { flex-direction: column; align-items: flex-start; }
  .ott-c .ott-cta { padding: 48px 0; }
}
