/*
Theme Name:   Curso Android Gratis Theme
Description:  Tema hijo de GeneratePress optimizado para SEO, EEAT, diseño moderno, comentarios, comunidad devs y footer profesional
Author:       Víctor Alonso (WalkiriaApps)
Author URL:   https://walkiriaapps.com
Template:     generatepress
Version:      2.2.0
*/

:root {
  --android-green: #3DDC84;
  --android-dark: #073042;
  --android-dark-deep: #052432;
  --android-blue: #4285F4;
  --accent-gold: #f59e0b;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.7;
}

/* Header & Nav */
.site-header {
  background: linear-gradient(135deg, #073042 0%, #0d4a66 100%) !important;
  border-bottom: 3px solid var(--android-green);
}

.main-title a, .site-description {
  color: #ffffff !important;
}

.main-navigation, .main-navigation ul ul {
  background-color: #073042 !important;
}

/* Ocultar la cabecera automática de imagen destacada */
.featured-image.page-header-image,
.page-header-image,
.page-header-image-single {
  display: none !important;
}

/* Hero Curso 0 */
.curso-cero-hero {
  background: linear-gradient(135deg, #073042 0%, #102a43 100%);
  color: #ffffff;
  padding: 40px 32px;
  border-radius: 16px;
  margin-bottom: 35px;
  box-shadow: 0 10px 25px -5px rgba(7, 48, 66, 0.3);
  border: 1px solid rgba(61, 220, 132, 0.3);
}

.curso-cero-badge {
  display: inline-block;
  background-color: var(--android-green);
  color: #073042;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.curso-cero-hero h1 {
  color: #ffffff !important;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.25;
}

.curso-cero-hero p.lead {
  color: #cbd5e1;
  font-size: 1.15rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===================================================
   CAJA DE PRESENTACIÓN DEL INSTRUCTOR (CON SU FOTO / JETO)
   =================================================== */
.instructor-intro-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 6px solid var(--android-green);
  border-radius: 16px;
  padding: 30px;
  margin: 35px 0;
  box-shadow: 0 6px 18px rgba(7, 48, 66, 0.06);
}

.instructor-card-inner {
  display: flex !important;
  flex-direction: row !important;
  gap: 24px !important;
  align-items: flex-start !important;
  text-align: left !important;
}

@media (max-width: 768px) {
  .instructor-card-inner {
    flex-direction: row !important;
    gap: 16px !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .instructor-photo {
    width: 75px !important;
    height: 75px !important;
  }
  .instructor-details h3 {
    font-size: 1.15rem !important;
  }
  .instructor-details p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  .instructor-action-links {
    justify-content: flex-start !important;
  }
}

.instructor-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.instructor-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  outline: 3px solid var(--android-green);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: block;
}

.instructor-verified-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--android-green);
  color: #073042;
  font-size: 0.9rem;
  font-weight: 900;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.instructor-details {
  flex-grow: 1;
}

.instructor-badge-label {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  margin-bottom: 8px;
}

.instructor-details h3 {
  color: var(--android-dark);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.instructor-details p {
  color: var(--text-main);
  margin-bottom: 12px;
  font-size: 0.98rem;
  line-height: 1.65;
}

.instructor-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .instructor-action-links {
    justify-content: center;
  }
}

.instructor-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s;
}

.instructor-btn.linkedin {
  background: #0077b5;
  color: #ffffff !important;
}

.instructor-btn.linkedin:hover {
  background: #005f93;
}

.instructor-btn.github {
  background: #24292e;
  color: #ffffff !important;
}

.instructor-btn.github:hover {
  background: #1b1f23;
}

.instructor-btn.walkiria {
  background: #073042;
  color: var(--android-green) !important;
}

.instructor-btn.walkiria:hover {
  background: #0d4a66;
}

/* Grid de Módulos Curso 0 */
.modulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0 40px 0;
}

.modulo-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.modulo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--android-green);
}

.modulo-number {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--android-green);
  background: #073042;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  width: fit-content;
}

.modulo-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--android-dark);
  margin-bottom: 8px;
}

.modulo-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 15px;
}

.modulo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--android-dark);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s;
}

.modulo-btn:hover {
  background: #0d4a66;
  color: var(--android-green) !important;
}

/* ===================================================
   CALLOUT BANNER TELEGRAM PARA DEVS & 20 TESTERS
   =================================================== */
.telegram-devs-callout {
  background: linear-gradient(135deg, #092c48 0%, #0088cc 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 26px 30px;
  margin: 35px 0;
  display: flex;
  gap: 22px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
  .telegram-devs-callout {
    flex-direction: column;
    text-align: center;
    padding: 22px 20px;
  }
}

.telegram-callout-icon {
  font-size: 3rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.telegram-callout-content h4 {
  color: #ffffff !important;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.telegram-callout-content p {
  color: #e0f2fe;
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.telegram-callout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0088cc !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.telegram-callout-btn:hover {
  background: var(--android-green);
  color: #073042 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* Pasos numerados dentro de tutoriales */
.paso-block {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  margin: 25px 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}

.paso-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.paso-num {
  background: var(--android-dark);
  color: var(--android-green);
  font-weight: 900;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.paso-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--android-dark);
  font-weight: 800;
}

/* Callout de alerta/truco */
.pro-tip-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 5px solid #3b82f6;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 0.95rem;
}

.pro-tip-box strong {
  color: #1e40af;
}

/* Imágenes Centradas y Proporcionadas */
.entry-content img,
.site-content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

.wp-block-image,
.image-centered-box {
  text-align: center;
  margin: 30px auto;
  clear: both;
}

.wp-block-image figure,
.aligncenter {
  margin: 0 auto !important;
  display: block;
  text-align: center;
}

.wp-block-image img,
.image-centered-box img {
  display: block;
  margin: 0 auto !important;
  max-width: min(100%, 650px) !important;
  height: auto !important;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Vídeo Responsivo Centrado */
.wp-block-embed-youtube,
.video-responsive-wrap {
  max-width: 720px;
  margin: 30px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(7, 48, 66, 0.12);
}

.wp-block-embed__wrapper,
.video-responsive-wrap .video-inner {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.wp-block-embed__wrapper iframe,
.video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tarjetas de Comunidad (WhatsApp & Telegram) */
.community-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 25px 0 35px 0;
}

.community-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.community-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.community-btn.whatsapp {
  background: #25D366;
  color: #ffffff !important;
}

.community-btn.telegram {
  background: #0088cc;
  color: #ffffff !important;
}

.community-btn.youtube {
  background: #FF0000;
  color: #ffffff !important;
}

.community-btn.github {
  background: #24292e;
  color: #ffffff !important;
}

/* ===================================================
   RED DE CURSOS HERMANOS
   =================================================== */
.cursos-red-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 25px 0 45px 0;
}

.curso-red-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}

.curso-red-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  border-color: var(--android-green);
}

.curso-red-icon {
  font-size: 2rem;
  flex-shrink: 0;
  background: #f1f5f9;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.curso-red-info h4 {
  color: var(--android-dark);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.curso-red-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

/* Content Views Grids */
.pt-cv-wrapper {
  margin: 25px 0 45px 0 !important;
}

.pt-cv-content-item {
  margin-bottom: 25px !important;
}

.pt-cv-ifield {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pt-cv-ifield:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  border-color: var(--android-green);
}

.pt-cv-thumbnail {
  border-radius: 8px;
  margin: 0 auto 12px auto !important;
  display: block;
}

.pt-cv-title a {
  color: var(--android-dark) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.pt-cv-title a:hover {
  color: var(--android-blue) !important;
}

.pt-cv-readmore.btn-success {
  background-color: var(--android-dark) !important;
  border-color: var(--android-dark) !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
}

.pt-cv-readmore.btn-success:hover {
  background-color: #0d4a66 !important;
  border-color: #0d4a66 !important;
}

/* Caja de Autor / EEAT en Posts (Fila Horizontal en Escritorio y Mobile) */
.eeat-author-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 5px solid var(--android-green) !important;
  border-radius: 14px !important;
  padding: 22px !important;
  margin: 40px 0 25px 0 !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 20px !important;
  align-items: flex-start !important;
  text-align: left !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.eeat-author-avatar {
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid #073042 !important;
  flex-shrink: 0 !important;
}

.eeat-author-info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: left !important;
}

.eeat-author-info h4 {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--android-dark) !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.3 !important;
}

.eeat-author-role {
  font-size: 0.85rem !important;
  color: var(--android-muted) !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
}

.eeat-author-bio {
  font-size: 0.9rem !important;
  color: var(--text-main) !important;
  line-height: 1.55 !important;
  margin-bottom: 12px !important;
}

.eeat-author-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

.eeat-author-links a {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: var(--android-blue) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 5px 11px !important;
  background: #f1f5f9 !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.eeat-author-links a:hover {
  background: #e2e8f0 !important;
  color: #0284c7 !important;
  text-decoration: none !important;
}

@media (max-width: 640px) {
  .eeat-author-box {
    flex-direction: row !important;
    gap: 14px !important;
    padding: 16px !important;
    align-items: flex-start !important;
  }
  .eeat-author-avatar {
    width: 68px !important;
    height: 68px !important;
  }
  .eeat-author-info h4 {
    font-size: 1.05rem !important;
  }
  .eeat-author-role {
    font-size: 0.78rem !important;
  }
  .eeat-author-bio {
    font-size: 0.85rem !important;
  }
  .eeat-author-links {
    gap: 6px !important;
  }
  .eeat-author-links a {
    font-size: 0.76rem !important;
    padding: 4px 8px !important;
  }
}

/* ===================================================
   SECCIÓN DE COMENTARIOS REDISEÑADA Y MODERNA
   =================================================== */
#comments {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
}

.comments-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--android-dark);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
}

.comment-list .comment {
  margin-bottom: 22px;
}

.comment-body {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-body:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

/* Comentario destacado del autor/instructor */
.bypostauthor > .comment-body {
  border-left: 5px solid var(--android-green);
  background: linear-gradient(to right, #f6fdf9, #ffffff);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.comment-meta .avatar {
  border-radius: 50%;
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  width: 48px;
  height: 48px;
}

.comment-author-info {
  display: flex;
  flex-direction: column;
}

.comment-author .fn {
  font-style: normal;
  font-weight: 800;
  color: var(--android-dark);
  font-size: 1.05rem;
}

.comment-author .fn a {
  color: var(--android-dark);
  text-decoration: none;
}

.comment-metadata {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.comment-metadata a {
  color: var(--text-muted);
  text-decoration: none;
}

.comment-content {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 10px;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.reply {
  text-align: right;
  margin-top: 8px;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: var(--android-dark) !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none !important;
  transition: all 0.2s;
}

.comment-reply-link:hover {
  background: var(--android-dark);
  color: var(--android-green) !important;
}

/* Respuestas anidadas */
.comment-list .children {
  list-style: none;
  padding-left: 28px;
  margin-top: 15px;
  border-left: 2px solid #e2e8f0;
}

@media (max-width: 600px) {
  .comment-list .children {
    padding-left: 14px;
  }
}

/* ===================================================
   FORMULARIO DE COMENTARIOS MODERNO (#respond)
   =================================================== */
#respond {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--android-green);
  border-radius: 16px;
  padding: 30px;
  margin-top: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.comment-reply-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--android-dark);
  margin-bottom: 10px;
}

.comment-notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

#commentform {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#commentform .comment-form-comment {
  margin: 0;
}

#commentform .comment-form-comment textarea {
  width: 100%;
  min-height: 140px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

#commentform textarea:focus,
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus {
  background: #ffffff;
  border-color: var(--android-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.25);
}

#commentform .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0;
}

#commentform .comment-form-cookies-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--android-green);
}

#commentform .form-submit {
  margin-top: 10px;
}

#commentform input[type="submit"] {
  background: linear-gradient(135deg, #073042 0%, #0d4a66 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 12px rgba(7, 48, 66, 0.15);
}

#commentform input[type="submit"]:hover {
  background: #0d4a66;
  color: var(--android-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(7, 48, 66, 0.25);
}

/* ===================================================
   FOOTER MODERNO Y GUAPO (4 COLUMNAS + BRANDING)
   =================================================== */
.site-footer-modern {
  background: var(--android-dark);
  color: #cbd5e1;
  margin-top: 60px;
  border-top: 4px solid var(--android-green);
  font-size: 0.92rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Banner superior del footer */
.footer-top-banner {
  background: var(--android-dark-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
}

.footer-top-banner .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
}

.footer-brand-tagline {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 4px 0 0 0;
  max-width: 550px;
}

.footer-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.f-badge {
  background: rgba(61, 220, 132, 0.12);
  color: var(--android-green);
  border: 1px solid rgba(61, 220, 132, 0.3);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Columnas principales */
.footer-main-columns {
  padding: 45px 0 35px 0;
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .footer-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid-4 {
    grid-template-columns: 1fr;
  }
}

.f-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.f-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--android-green);
  border-radius: 2px;
}

.f-author-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.f-author-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--android-green);
}

.f-author-mini strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
}

.f-author-mini span {
  font-size: 0.8rem;
  color: #94a3b8;
}

.f-col-text {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 14px;
}

.f-social-pills {
  display: flex;
  gap: 8px;
}

.f-social-pills a {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s;
}

.f-social-pills a:hover {
  background: var(--android-green);
  color: #073042 !important;
}

.f-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.f-links-list li {
  margin-bottom: 10px;
}

.f-links-list a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.f-links-list a:hover {
  color: var(--android-green) !important;
  padding-left: 4px;
}

.f-sister-sites a {
  font-weight: 600;
}

/* Barra inferior de copyright */
.footer-bottom-bar {
  background: var(--android-dark-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  font-size: 0.82rem;
}

.f-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.f-copyright a {
  color: var(--android-green) !important;
  text-decoration: none;
}

.f-copyright a:hover {
  text-decoration: underline;
}

.f-legal-links a {
  color: #94a3b8 !important;
  text-decoration: none;
  margin: 0 4px;
}

.f-legal-links a:hover {
  color: #ffffff !important;
}

.f-legal-links .sep {
  color: #475569;
}

/* ==========================================================================
   NAVEGACIÓN SECUENCIAL Y AIRE FRESCO PARA LECCIONES DEL CURSO
   ========================================================================== */

.curso-lesson-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #f8fafc;
  border-left: 4px solid var(--android-green);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 28px;
  font-size: 0.92rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.curso-lesson-breadcrumb a {
  color: var(--android-navy);
  font-weight: 600;
  text-decoration: none;
}

.curso-lesson-breadcrumb a:hover {
  color: var(--android-green);
  text-decoration: underline;
}

.curso-lesson-breadcrumb span {
  color: var(--android-muted);
  font-weight: 600;
}

.curso-lesson-badge {
  background: #e6f9ee;
  color: #0d8244;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(61, 220, 132, 0.35);
}

/* Caja de Navegación Inferior (Anterior / Siguiente) */
.curso-lesson-nav-box {
  margin-top: 45px;
  margin-bottom: 35px;
  padding: 24px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.curso-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .curso-nav-grid {
    grid-template-columns: 1fr;
  }
}

.curso-nav-btn {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.curso-nav-btn.prev {
  text-align: left;
}

.curso-nav-btn.next {
  text-align: right;
  border-color: #d1fae5;
  background: #f0fdf4;
}

.curso-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.curso-nav-btn.prev:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.curso-nav-btn.next:hover {
  border-color: var(--android-green);
  background: #ffffff;
}

.curso-nav-direction {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--android-muted);
  margin-bottom: 4px;
}

.curso-nav-btn.next .curso-nav-direction {
  color: #0d8244;
}

.curso-nav-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--android-navy);
  line-height: 1.35;
}

.curso-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.curso-nav-index-link {
  font-weight: 600;
  color: var(--android-navy);
  text-decoration: none;
  font-size: 0.9rem;
}

.curso-nav-index-link:hover {
  color: var(--android-green);
  text-decoration: underline;
}

.curso-nav-telegram-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0088cc;
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
}

.curso-nav-telegram-chip:hover {
  background: #0077b5;
  transform: scale(1.02);
}

/* Callout Especial Telegram Devs & LLM Context (Layout en Fila Horizontal) */
.telegram-devs-callout {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
  background: linear-gradient(135deg, #092c48 0%, #0088cc 100%) !important;
  color: #ffffff !important;
  padding: 24px 30px !important;
  border-radius: 16px !important;
  margin: 35px 0 !important;
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.telegram-devs-callout .tg-callout-text,
.telegram-devs-callout > div:first-child {
  flex: 1 1 auto;
}

.telegram-devs-callout h4 {
  color: #ffffff !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  font-size: 1.22rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.telegram-devs-callout p {
  color: #e0f2fe !important;
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

.telegram-devs-callout .tg-callout-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.telegram-devs-callout a.btn-tg {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #ffffff !important;
  color: #0088cc !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  padding: 12px 20px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.2s ease !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.telegram-devs-callout a.btn-tg:hover {
  background: #3ddc84 !important;
  color: #073042 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(61, 220, 132, 0.35) !important;
}

.telegram-devs-callout a.btn-tg svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  fill: currentColor !important;
}

.telegram-devs-callout a.btn-llm-md {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  padding: 9px 18px !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  transition: all 0.2s ease !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.telegram-devs-callout a.btn-llm-md:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 860px) {
  .telegram-devs-callout {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 22px 20px !important;
    gap: 18px !important;
  }
  .telegram-devs-callout .tg-callout-actions {
    width: 100% !important;
  }
  .telegram-devs-callout a.btn-tg,
  .telegram-devs-callout a.btn-llm-md {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Cajas de Pasos y Pro-Tips para Tutoriales */
.pro-tip-box {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: #065f46;
}

.pro-tip-box strong {
  color: #047857;
}

.paso-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin: 22px 0;
}

.paso-block h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--android-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   CURSO ANDROID FAQ ACCORDION (SEO & AI OVERVIEWS)
   ========================================================================== */
.curso-faq-accordion {
  margin: 36px 0 24px 0;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.curso-faq-accordion h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--android-navy, #073042);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.curso-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curso-faq-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.curso-faq-item:hover {
  border-color: #10b981;
}

.curso-faq-item[open] {
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.curso-faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

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

.curso-faq-chevron {
  color: #10b981;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.curso-faq-item[open] .curso-faq-chevron {
  transform: rotate(180deg);
}

.curso-faq-answer {
  padding: 0 18px 16px 18px;
  border-top: 1px solid #f1f5f9;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

.curso-faq-answer p {
  margin-top: 12px;
  margin-bottom: 0;
}

