/*
Theme Name: EthiaLab
Theme URI: https://ethialab.mx
Author: EthiaLab
Author URI: https://ethialab.mx
Description: Theme personalizado para EthiaLab - Plataforma educativa sobre ética en IA
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ethialab
Tags: custom-header, custom-menu, featured-images, footer-widgets, full-width-template
*/

/* =========================================================
   VARIABLES CSS (Design Tokens)
   ========================================================= */
:root {
  --color-dark: #1A1A1A;
  --color-orange: #FF6E1D;
  --color-blue: #06A6FF;
  --color-gray-light: #829DC3;
  --color-gray-dark: #2D2E41;
  --color-white: #FFFFFF;
  --color-black: #000000;

  --font-heading: 'Bai Jamjuree', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1280px;
  --section-pad: 80px 40px;
  --border-radius: 15px;

  --transition: 0.3s ease;
  --shadow: 0 0 16px 2px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul,
ol {
  list-style: none;
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  line-height: 1;
}

.btn-blue {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn-blue:hover {
  background: #0590d8;
  color: var(--color-white);
}

.btn-orange {
  background: var(--color-orange);
  color: var(--color-white);
}

.btn-orange:hover {
  background: #e05a10;
  color: var(--color-white);
}

.text-orange {
  color: var(--color-orange);
}

.text-blue {
  color: var(--color-blue);
}

.text-white {
  color: var(--color-white);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 45px;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 20px;
}

/* =========================================================
   HEADER
   ========================================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 60px;
}

.header-logo img,
.header-logo svg,
.custom-logo-link img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* WP envuelve el logo en un <a class="custom-logo-link">, lo alineamos */
.custom-logo-link {
  display: flex;
  align-items: center;
}

/* Ocultar el texto del sitio que WP puede generar junto al logo */
.site-title,
.site-description,
.custom-logo-link+.site-branding-text {
  display: none !important;
}

.header-nav ul {
  display: flex;
  gap: 40px;
}

.header-nav a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-white);
  transition: color var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-orange);
}

.header-line {
  height: 4px;
  background: var(--color-orange);
}

/* Hamburger button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.hamburger-btn span {
  display: block;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

/* Hamburger → X animation */
.hamburger-btn.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.mobile-nav.is-open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-white);
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--color-orange);
}

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: var(--color-dark);
  padding: 50px 40px;
  text-align: center;
  color: var(--color-white);
}

.footer-logo {
  margin: 0 auto 20px;
}

.footer-logo img,
.footer-logo svg,
.footer-logo .custom-logo-link img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.footer-logo .custom-logo-link {
  display: inline-flex;
  justify-content: center;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-copy a {
  color: var(--color-blue);
}

/* =========================================================
   HERO — BOTÓN DE CONTROL DE SONIDO
   ========================================================= */

.hero-sound-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 8px 16px 8px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.hero-sound-btn:hover {
  background: rgba(255, 110, 29, 0.75);
  border-color: var(--color-orange);
}

.hero-sound-btn .sound-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero-sound-btn {
    bottom: 16px;
    right: 16px;
    padding: 8px 12px 8px 10px;
    font-size: 13px;
  }

  .hero-sound-btn .sound-label {
    display: none;
  }
}

/* --- Hero Video --- */
.hero-video-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* min-height: 600px; */
  min-height: 700px;
  display: flex;
  align-items: flex-end;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrapper video,
.hero-video-wrapper iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback: aspect ratio responsive embed */
.video-embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-embed-responsive iframe,
.video-embed-responsive video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 1) 100%);
  z-index: 1;
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  color: var(--color-black);
  line-height: 1.1;
  /* max-width: 800px; */
  text-align: center;
}

.hero-title .letter-blue {
  color: var(--color-blue);
}

.hero-title .letter-orange {
  color: var(--color-orange);
}

/* --- Main Text Section --- */
.main-text-section {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

.main-text-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.main-text-intro {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.main-text-highlight {
  border-top: 5px solid var(--color-orange);
  border-bottom: 5px solid var(--color-orange);
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.main-text-conclusion {
  font-size: 17px;
  line-height: 1.7;
}

/* --- Qué es ETHIALAB --- */
.que-es-section {
  position: relative;
  background: rgba(0, 0, 0, 0.85);
  padding: var(--section-pad);
  overflow: hidden;
  background-image: url("https://ethialab.com/wp-content/uploads/2026/02/back-q-es-ethialab.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.que-es-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.que-es-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.que-es-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  grid-template-columns: .5fr 1fr;
  gap: 60px;
  align-items: center;
}

.que-es-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 45px;
  line-height: 1.1;
  margin-bottom: 30px;
  text-align: center;
}

.que-es-tag .line1 {
  color: var(--color-blue);
}

.que-es-tag .line2 {
  color: var(--color-orange);
}

.que-es-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-white);
  text-align: justify;
}

/* --- Cómo lo hacemos --- */
.como-section {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

.como-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.como-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-blue);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.como-text ul {
  list-style-type: disc;
  margin-left: 30px;
}

.como-text ul li {
  margin: 10px 0;
}

/* Logo dentro del panel de contacto */
.contacto-logo {
  margin-bottom: 24px;
}

.contacto-logo .custom-logo-link img,
.contacto-logo img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.como-text {
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}

.como-image img {
  max-width: 100%;
  margin: 0 auto;
}

/* --- Casos --- */
.casos-section {
  position: relative;
  background: rgba(26, 26, 26, 0.6);
  padding: var(--section-pad);
  overflow: hidden;
  background-image: url("https://ethialab.com/wp-content/uploads/2026/02/back-casos.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.casos-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.casos-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.casos-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.casos-inner .section-title {
  color: var(--color-orange);
}

.casos-desc {
  font-size: 17px;
  color: var(--color-white);
  max-width: 830px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.casos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.caso-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.caso-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* --- Mini Test --- */
.minitest-section {
  padding: var(--section-pad);
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.minitest-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 45px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.minitest-title .line2 {
  color: var(--color-orange);
}

.minitest-desc {
  font-size: 18px;
  color: var(--color-dark);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* --- Contacto Section --- */
.contacto-section {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contacto-info {
  background: var(--color-dark);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
}

.contacto-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 25px;
  color: var(--color-white);
  line-height: 1.4;
  text-align: center;
}

.contacto-title .highlight {
  color: var(--color-orange);
}

.contacto-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: var(--color-white);
  margin: 0 auto;
}

.contacto-detail svg {
  flex-shrink: 0;
  color: var(--color-orange);
}

.contacto-form-wrap {
  background: var(--color-white);
  padding: 60px 50px;
}

/* Contact Form 7 Overrides */
.wpcf7 .wpcf7-form-control-wrap {
  width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--color-blue);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-dark);
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 20px;
  display: block;
  background: var(--color-white);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--color-orange);
}

.wpcf7 textarea {
  resize: vertical;
  min-height: 140px;
}

.wpcf7 input[type="submit"] {
  background: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  padding: 15px 40px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
}

.wpcf7 input[type="submit"]:hover {
  background: #0590d8;
}

/* =========================================================
   HOME BLOG
   ========================================================= */

/* Slider */
.blog-slider-section {
  position: relative;
  background: var(--color-dark);
  overflow: hidden;
}

.blog-slider {
  position: relative;
}

.slide {
  position: relative;
  display: none;
}

.slide.active {
  display: block;
}

.slide-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.slide-content {
  position: absolute;
  bottom: 60px;
  left: 40px;
  max-width: 800px;
  color: var(--color-white);
}

.slide-content h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.2;
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
  background: var(--color-dark);
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-white);
  opacity: 0.4;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.dot.active {
  background: var(--color-orange);
  opacity: 1;
}

/* Blog Grid */
.blog-grid-section {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.post-card {
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--color-white);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--color-gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-body {
  padding: 20px;
  background: #ff991c;
  height: -webkit-fill-available;
  height: -moz-available;
}

.post-card-source {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.post-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.post-card-title a:hover {
  color: var(--color-blue);
}

.post-card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-gray-dark);
}

/* Blog Pagination */
.blog-pagination {
  text-align: center;
  margin-top: 50px;
}

.blog-pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-dark);
  border: 1px solid #ddd;
  transition: all var(--transition);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

/* =========================================================
   SINGLE POST
   ========================================================= */

.single-hero {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.single-hero img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.single-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 14px;
  color: var(--color-gray-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumbs a {
  color: var(--color-blue);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .sep {
  opacity: 0.4;
}

/* Post Header */
.post-title-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.post-meta {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--color-gray-dark);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.post-meta strong {
  color: var(--color-dark);
}

.post-meta a {
  color: var(--color-blue);
}

/* Post Content */
.post-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-dark);
}

.post-content p {
  margin-bottom: 1.5em;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-blue);
  margin: 1.8em 0 0.6em;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-dark);
  margin: 1.5em 0 0.5em;
}

.post-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin: 1.3em 0 0.4em;
}

.post-content h5 {
  font-size: 16px;
  font-weight: 700;
  margin: 1.2em 0 0.4em;
}

.post-content h6 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 1.2em 0 0.4em;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: 0.4em;
}

.post-content blockquote {
  border-left: 4px solid var(--color-orange);
  padding-left: 20px;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--color-gray-dark);
}

.post-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

/* Responsive iframes/videos inside content */
.post-content iframe,
.post-content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
}

.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #f5f9ff;
  border-left: 4px solid var(--color-blue);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 25px;
  margin-top: 50px;
}

.author-box-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}

.author-box-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.author-box-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

.author-box-name a {
  color: var(--color-blue);
}

.author-box-name a:hover {
  text-decoration: underline;
}

.author-box-bio {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-dark);
}

/* Sidebar */
.sidebar {
  padding-top: 10px;
}

.sidebar-widget {
  margin-bottom: 40px;
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-orange);
}

.related-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.related-post-item:last-child {
  border-bottom: none;
}

.related-post-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 5px;
}

.related-post-title a:hover {
  color: var(--color-blue);
}

.related-post-date {
  font-size: 12px;
  color: var(--color-gray-light);
}

/* =========================================================
   AUTHOR PAGE
   ========================================================= */

.author-page-header {
  background: var(--color-dark);
  padding: 60px 40px;
  text-align: center;
  color: var(--color-white);
}

.author-page-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid var(--color-orange);
}

.author-page-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-page-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 15px;
}

.author-page-bio {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
  line-height: 1.7;
}

.author-posts-section {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

.author-posts-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 40px;
  color: var(--color-dark);
}

/* =========================================================
   PAGE DE CONTACTO (full page)
   ========================================================= */

.contact-page-hero {
  background: var(--color-dark);
  padding: 80px 40px;
  text-align: center;
  color: var(--color-white);
  display: none;
}

.contact-page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  margin-bottom: 15px;
}

.contact-page-hero p {
  font-size: 18px;
  opacity: 0.8;
}

.contact-page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad);
}

/* =========================================================
   404 PAGE
   ========================================================= */

.error-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
}

.error-404 .error-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(80px, 15vw, 160px);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-blue), var(--color-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.error-404 h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 15px;
}

.error-404 p {
  font-size: 18px;
  color: var(--color-gray-dark);
  max-width: 500px;
  margin: 0 auto 40px;
}

/* =========================================================
   BLOG CONTACTO (aparece también en el home del blog)
   ========================================================= */

.blog-contacto-section {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* =========================================================
   RESPONSIVE — BREAKPOINTS
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .como-inner {
    grid-template-columns: 1fr;
  }

  /* .como-image { display: none; } */
  .que-es-inner {
    grid-template-columns: 1fr;
  }

  .casos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacto-inner {
    grid-template-columns: 1fr;
  }

  .contacto-info {
    padding: 40px;
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 50px 20px;
  }

  .container {
    padding: 0 20px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .casos-grid {
    grid-template-columns: 1fr 1fr;
  }

  .single-layout {
    padding: 30px 20px;
  }

  .author-box {
    flex-direction: column;
  }

  .section-title {
    font-size: 32px;
  }

  .minitest-title {
    font-size: 28px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .slide-image {
    height: 350px;
  }

  .slide-content {
    left: 20px;
    bottom: 30px;
  }

  .contact-page-hero h1 {
    font-size: 32px;
  }

  .contacto-form-wrap {
    padding: 30px 20px;
  }

  .blog-contacto-section {
    padding: 40px 20px;
  }

  .hero-video-section {
    min-height: 400px;

  }
}

@media (max-width: 480px) {
  .casos-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .como-inner {
    gap: 30px;
  }

  .que-es-inner {
    gap: 30px;
  }
}

/* =========================================================
   PÁGINA DE CURSO  (page-curso.php)
   Agrega este bloque al final de style.css
   ========================================================= */

/* ── Hero / Cabecera ──────────────────────────────────── */
.curso-hero {
  padding: 30px 40px 0px;
}

.curso-hero-inner {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
    position: absolute;
    bottom: 30px;
    left: 50px;
}

.curso-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}

.curso-category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-dark);
  background: var(--color-orange);
  padding: 4px 12px;
  border-radius: 30px;
  transition: opacity var(--transition);
}

.curso-category:hover {
  opacity: .85;
}

.curso-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 18px;
}

.curso-excerpt {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-gray-light);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Imagen destacada ─────────────────────────────────── */
.curso-featured-image {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.curso-thumbnail {
  width: 100%;
  height: 450px;
  display: block;
  object-fit: cover;

}

/* ── Cuerpo del contenido ─────────────────────────────── */
.curso-content-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.curso-body {
  font-size: 17px;
  line-height: 1.8;
}

/* Paginación <!--nextpage--> */
.curso-page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-family: var(--font-heading);
  font-size: 15px;
}

.curso-page-links span a {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid var(--color-blue);
  border-radius: 6px;
  color: var(--color-blue);
  font-weight: 700;
  transition: all var(--transition);
}

.curso-page-links span a:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.et_ctaServicios{
  width: 95%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-weight: 700;
    color: var(--color-orange);
}
.et_ctaServicios__textBlue{
  color: var(--color-blue);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .curso-content-wrap {
    padding: 32px 24px 60px;
  }
}

@media (max-width: 768px) {
  .curso-hero-inner {
    width: 100%;
    max-width: 320px;
    left: 20px;
}
  .curso-hero {
    padding: 20px 20px 0px;
  }

  .curso-content-wrap {
    padding: 28px 20px 50px;
  }

  .curso-body {
    font-size: 16px;
  }
}


/* ============================================================
   MÓDULO CURSO HOME
   ============================================================ */

.curso-home-section {
  background-color: #f0f4f8;
  /* border-top: 4px solid var(--color-orange, #ff991c);
  border-bottom: 4px solid var(--color-orange, #ff991c); */
  padding: 48px 20px;
}

.curso-home-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

/* ── Tarjeta de imagen ── */
.curso-card {
  position: relative;
  flex: 0 0 520px;
  max-width: 520px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  height: 250px;
}

.curso-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* Overlay azul degradado sobre la imagen */
.curso-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 90, 180, .70) 0%, rgba(0, 50, 120, .85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px 18px;
}

.curso-card__title {
  font-family: var(--font-heading, sans-serif);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.35;
  color: #fff;
  margin: 0;
}

/* Badge "CURSO" */
.curso-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--color-orange, #ff991c);
  color: #fff;
  font-family: var(--font-heading, sans-serif);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ── Columna de texto ── */
.curso-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
      justify-content: center;
}

.curso-info__title {
  font-family: var(--font-heading, sans-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
  color: var(--color-gray-dark);
  margin: 0;
  width: 90%;
    text-align: center;
}

.curso-info__btn {
  /* Hereda .btn .btn-blue del theme */
  font-size: .85rem;
  letter-spacing: .08em;
  padding: 12px 28px;
}
.et_colorNaranja{
  color: var(--color-orange)!important;
}
.contacto-section.section-Curso{
  padding: 0 40px 80px;
}

/* ── Responsivo ── */
@media (max-width: 768px) {
  .curso-home-inner {
    flex-direction: column;
    gap: 28px;
  }

  .curso-card {
    flex: 0 0 auto;
    max-width: 100%;
    /* width: 100%; */
    width: 420px;
    height: 170px;
  }

  .curso-card img {
    height: 220px;
  }

  .curso-info {
    align-items: center;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .curso-home-section {
    padding: 32px 16px;
  }

  .curso-card img {
    height: 180px;
  }

  .curso-info__title {
    font-size: 1.4rem;
  }
}