/* ==========================================================================
   EthiaLab V2 — Ajustes propios de WordPress
   Las hojas styles*.css son las de las maquetas y NO se modifican.
   Aquí viven accesibilidad, barra de administración, formularios de Contact Form 7,
   paginación con enlaces, contenido del editor de bloques, páginas genéricas, 404 y autor.
   ========================================================================== */

/* 1. Accesibilidad */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
  background: #fff; border-radius: 8px; clip: auto; clip-path: none; color: #1a1a1a; display: block; font-weight: 700;
  height: auto; left: 12px; padding: 12px 18px; top: 12px; width: auto; z-index: 100000;
}
:focus-visible { outline: 3px solid #06a6ff; outline-offset: 2px; }

/* 2. Barra de administración (el encabezado es fixed) */
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .top { top: 0; } }
.admin-bar .nota-sidebar { top: 148px; }

/* 3. Portada: video del hero */
.hero-media video, .hero-video-embed {
  display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px;
  border: 1px solid rgba(6, 166, 255, 0.45); background: #0f141c; overflow: hidden;
}
.hero-media video { object-fit: cover; }
.hero-video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.eth-admin-note {
  background: #fff8e5; border: 1px dashed #ff6e1d; border-radius: 10px; color: #1a1a1a; font-size: 15px; padding: 14px 18px;
}

/* 4. Blog: slider enlazado, paginación con enlaces y archivos */
.slide-content h2 a { color: inherit; text-decoration: none; }
.slide-content h2 a::after { content: ""; position: absolute; inset: 0; }
a.page-btn { text-decoration: none; box-sizing: border-box; }
.archive-header { margin-bottom: 32px; }
.archive-title { color: var(--blog-navy, #1e293b); font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.archive-desc { color: var(--blog-text-muted, #64748b); margin: 0; }
.eth-empty { color: #64748b; font-size: 18px; padding: 60px 0; text-align: center; }
.blog-card.hentry { margin: 0; }

/* 5. Nota individual: contenido del editor de bloques */
.nota-main--no-cover .nota-container { padding-top: 40px; }
.breadcrumb span { color: #1a1a1a; }
.nota-texto { overflow-wrap: break-word; }
.nota-texto > :first-child { margin-top: 0; }
.nota-texto h3 { color: var(--fg, #1a1a1a); font-size: 21px; margin: 32px 0 12px; }
.nota-texto h4 { font-size: 18px; margin: 28px 0 10px; }
.nota-texto a { color: #0074b8; }
.nota-texto a:hover { color: #005a8f; }
.nota-texto ul, .nota-texto ol { font-size: 17px; line-height: 1.7; margin: 0 0 24px; padding-left: 1.4em; }
.nota-texto ul { list-style: disc; }
.nota-texto ol { list-style: decimal; }
.nota-texto li { margin-bottom: 8px; }
.nota-texto img, .nota-texto video { height: auto; max-width: 100%; }
.nota-texto figure { margin: 0 0 28px; }
.nota-texto figcaption, .nota-texto .wp-element-caption { color: var(--muted, #9aa6b4); font-size: 14px; margin-top: 8px; text-align: center; }
.nota-texto blockquote { border-left: 4px solid #ff6e1d; color: #3b4450; font-style: italic; margin: 28px 0; padding: 4px 0 4px 20px; }
.nota-texto blockquote p { margin-bottom: 12px; }
.nota-texto table { border-collapse: collapse; display: block; margin: 0 0 28px; overflow-x: auto; width: 100%; }
.nota-texto th, .nota-texto td { border: 1px solid #dfe5ec; padding: 10px 14px; text-align: left; }
.nota-texto .wp-block-embed__wrapper, .nota-texto .wp-block-video, .nota-texto iframe { max-width: 100%; }
.nota-texto .alignleft { float: left; margin: 4px 24px 16px 0; }
.nota-texto .alignright { float: right; margin: 4px 0 16px 24px; }
.nota-texto .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.nota-texto::after { clear: both; content: ""; display: table; }
.autor-card h3 a { color: inherit; text-decoration: none; }
.autor-card h3 a:hover { color: var(--blue, #06a6ff); }
.autor-card .autor-img img { display: block; }
.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }

/* 6. Autor */
.author-header { background: #0f141c; padding: 48px 0; }
.author-header__card { margin: 0; max-width: 760px; }
.author-header__name { font-size: 28px; margin: 0 0 8px; }

/* 7. Formularios de Contact Form 7
   El <form> recibe la clase de la maqueta (contacto-form, contact-form, instituciones-contacto-form, lead-form);
   los campos usan clases neutras eth-* para que un mismo formulario sirva en todas las páginas. */
.wpcf7 { min-width: 0; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; width: 100%; }

.wpcf7-form.contacto-form, .wpcf7-form.contact-form, .wpcf7-form.instituciones-contacto-form {
  flex: 1 1 460px; min-width: 0; background: #fff; color: #1a1a1a; border-radius: 20px; padding: 32px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; box-sizing: border-box;
}
.eth-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #1a1a1a; min-width: 0; }
.eth-field--full, .eth-privacy, .wpcf7-form .wpcf7-response-output, .wpcf7-form .eth-submit { grid-column: 1 / -1; }

.wpcf7-form .f-input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; font-weight: 400; color: #1a1a1a;
  background: #fff; border: 1px solid #c3ccd7; border-radius: 10px; padding: 12px 14px; min-height: 46px;
}
.wpcf7-form select.f-input { appearance: auto; }
.wpcf7-form .eth-textarea, .wpcf7-form .f-textarea { resize: vertical; min-height: 110px; }

.eth-privacy { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; color: #3b4450; line-height: 1.4; }
.eth-privacy .wpcf7-form-control-wrap { width: auto; flex-shrink: 0; }
.eth-privacy input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.eth-privacy .wpcf7-list-item { margin: 0; }
.eth-privacy-link { color: #0074b8; text-decoration: underline; }

.wpcf7-form .eth-submit {
  justify-self: start; background: #06a6ff; color: #1a1a1a; border: 0; font: inherit; font-weight: 700; font-size: 16px;
  padding: 14px 34px; border-radius: 999px; min-height: 44px; cursor: pointer; transition: background-color 0.2s ease;
}
.wpcf7-form .eth-submit:hover { background: #3dbcff; }
.wpcf7-form .wpcf7-spinner { position: absolute; }
.wpcf7-not-valid-tip { color: #c0392b; font-size: 13px; font-weight: 600; margin-top: 2px; }
.wpcf7 form .wpcf7-response-output { border-radius: 10px; color: #1a1a1a; font-size: 14px; margin: 0; padding: 12px 16px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #25a244; background: #eaf8ee; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #ff6e1d; background: #fff3ec; }

.wpcf7-form.lead-form { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.wpcf7-form.lead-form .btn-submit { width: 100%; }

.eth-form-missing { flex: 1 1 460px; background: #fff; border-radius: 20px; color: #1a1a1a; padding: 32px; box-sizing: border-box; }
.eth-form-missing a { color: #0074b8; }
.eth-form-missing__admin { background: #fff8e5; border: 1px dashed #ff6e1d; border-radius: 10px; padding: 12px 16px; }

@media (max-width: 640px) {
  .wpcf7-form.contacto-form, .wpcf7-form.contact-form, .wpcf7-form.instituciones-contacto-form { grid-template-columns: 1fr; padding: 22px; }
}

/* 8. Página genérica (también carrito, pago y mi cuenta de WooCommerce) */
.page-main { min-height: 60vh; }
.page-container { margin: 0 auto; max-width: 1040px; padding: 56px 24px 80px; }
.page-title { color: #1a1a1a; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 0 0 32px; }
.post-content { color: #1a1a1a; font-size: 17px; line-height: 1.75; }
.post-content p { margin: 0 0 1.4em; }
.post-content h2 { color: #0074b8; font-family: "Bai Jamjuree", sans-serif; font-size: 28px; margin: 1.8em 0 0.6em; }
.post-content h3 { font-family: "Bai Jamjuree", sans-serif; font-size: 22px; margin: 1.5em 0 0.5em; }
.post-content h4 { font-family: "Bai Jamjuree", sans-serif; font-size: 18px; margin: 1.3em 0 0.4em; }
.post-content ul, .post-content ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4em; }
.post-content blockquote { border-left: 4px solid #ff6e1d; color: #3b4450; font-style: italic; margin: 1.5em 0; padding-left: 20px; }
.post-content img, .post-content video, .post-content iframe { height: auto; max-width: 100%; }
.post-content table { border-collapse: collapse; max-width: 100%; }
.post-content th, .post-content td { border: 1px solid #dfe5ec; padding: 8px 12px; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) {
  background: #06a6ff; border-radius: 999px; color: #1a1a1a; font-weight: 700;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: #3dbcff; color: #1a1a1a; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: #ff6e1d; color: #1a1a1a; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: #ff8a47; color: #1a1a1a; }

/* 9. Páginas individuales de curso y servicio (plantillas heredadas del V1) */
.curso-featured-image { margin: 0 auto; max-width: 100%; padding: 0; position: relative; }
.curso-thumbnail { display: block; height: 450px; object-fit: cover; width: 100%; }
.curso-featured-image::after { background: linear-gradient(180deg, rgba(15,20,28,0) 35%, rgba(15,20,28,0.85) 100%); content: ""; inset: 0; pointer-events: none; position: absolute; }
.curso-hero-inner { bottom: 30px; left: 50px; max-width: 580px; position: absolute; text-align: left; width: 100%; z-index: 1; }
.curso-title { color: #fff; font-size: clamp(26px, 4vw, 42px); line-height: 1.15; margin: 0; }
.curso-header-plain { background: #1a1a1a; padding: 56px 24px; }
.curso-header-plain .curso-title { margin: 0 auto; max-width: 780px; }
.curso-content-wrap { margin: 0 auto; max-width: 780px; padding: 40px 40px 80px; }
.curso-body { font-size: 17px; line-height: 1.8; }
.curso-page-links { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.curso-page-links span a { border: 2px solid #06a6ff; border-radius: 6px; color: #06a6ff; display: inline-block; font-weight: 700; padding: 6px 14px; text-decoration: none; }
.curso-page-links span a:hover { background: #06a6ff; color: #fff; }
.et_ctaServicios { color: #ff6e1d; font-weight: 700; margin: 0 auto 32px; max-width: 700px; text-align: center; width: 95%; }
.et_ctaServicios__textBlue { color: #06a6ff; }
@media (max-width: 1024px) { .curso-content-wrap { padding: 32px 24px 60px; } }
@media (max-width: 768px) {
  .curso-thumbnail { height: 320px; }
  .curso-hero-inner { left: 20px; max-width: 320px; }
  .curso-content-wrap { padding: 28px 20px 50px; }
  .curso-body { font-size: 16px; }
}

/* 10. Error 404 */
.error-404 { align-items: center; display: flex; justify-content: center; min-height: 70vh; padding: 80px 24px; text-align: center; }
.error-404__inner { max-width: 640px; }
.error-404__number {
  background: linear-gradient(135deg, #06a6ff, #ff6e1d); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; font-family: "Bai Jamjuree", sans-serif;
  font-size: clamp(88px, 16vw, 160px); font-weight: 700; line-height: 1; margin: 0 0 12px;
}
.error-404__title { font-size: 32px; margin: 0 0 14px; }
.error-404__text { color: #3b4450; font-size: 18px; line-height: 1.6; margin: 0 0 32px; }
.error-404__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 36px; }
.eth-btn { align-items: center; border-radius: 999px; box-sizing: border-box; display: inline-flex; font-size: 16px; font-weight: 700; justify-content: center; min-height: 44px; padding: 14px 28px; text-decoration: none; }
.eth-btn--primary { background: #06a6ff; color: #1a1a1a; }
.eth-btn--primary:hover { background: #3dbcff; color: #1a1a1a; }
.eth-btn--outline { border: 2px solid #ff6e1d; color: #1a1a1a; padding: 12px 26px; }
.eth-btn--outline:hover { background: #fff3ec; color: #1a1a1a; }
.error-404 .search-form { display: flex; gap: 8px; justify-content: center; }
.error-404 .search-field { border: 1px solid #c3ccd7; border-radius: 10px; font: inherit; min-height: 44px; padding: 8px 14px; }
.error-404 .search-submit { background: #1a1a1a; border: 0; border-radius: 10px; color: #fff; cursor: pointer; font: inherit; font-weight: 700; min-height: 44px; padding: 8px 18px; }
