/*
Theme Name: IActívate — Formación IA Práctica
Theme URI: https://iactivate.lovable.app
Author: IActívate
Author URI: https://iactivate.lovable.app
Description: Tema premium para WordPress que replica exactamente la web de IActívate. Totalmente funcional, preparado para captación de leads, página de cursos y blog dinámico. Sin necesidad de programar.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iactivate
Tags: education, blog, landing-page, dark-theme, modern, responsive
*/

:root {
  --theme-accent: #f59e0b;
  --color-night: #070d14;
  --color-graphite: #0e1724;
  --color-card: #0c1520;
  --color-border: #152232;
  --color-text: #f8fafc;
  --color-muted: #94a3b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-night);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Sora', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Enlaces destacados en artículos y contenidos editoriales */
.entry-content a,
article.post .entry-content a,
.post-content a,
.site-main article a:not(.btn-primary):not(.btn-outline) {
  color: var(--theme-accent, #00f0ff);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0, 240, 255, 0.65);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3.5px;
  padding: 0.05rem 0.2rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.entry-content a:hover,
.entry-content a:focus,
article.post .entry-content a:hover,
article.post .entry-content a:focus,
.post-content a:hover,
.post-content a:focus,
.site-main article a:not(.btn-primary):not(.btn-outline):hover {
  color: #ffffff;
  background-color: rgba(0, 240, 255, 0.18);
  text-decoration-color: #00f0ff;
  text-decoration-thickness: 2px;
}

.entry-content a:visited,
article.post .entry-content a:visited,
.post-content a:visited {
  color: #38bdf8;
  text-decoration-color: rgba(56, 189, 248, 0.55);
}

.text-gradient {
  background-image: linear-gradient(135deg, var(--theme-accent) 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.bg-cta-gradient {
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.16) 0%, transparent 55%), radial-gradient(ellipse at 70% 100%, rgba(139, 92, 246, 0.12) 0%, transparent 55%), var(--color-night);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--theme-accent);
  color: #070d14;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px -4px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-glass {
  background-color: rgba(14, 23, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-line;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  opacity: 1;
  padding-top: 0.75rem;
}
.faq-icon {
  transition: transform 0.25s ease;
  color: var(--theme-accent);
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* Course Layout & Mobile Optimization */
.card-course {
  padding: 1.25rem;
  border-radius: 1.25rem;
  box-sizing: border-box;
  overflow: hidden;
}
@media (min-width: 768px) {
  .card-course {
    padding: 2.25rem;
    border-radius: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .card-course {
    padding: 2.75rem;
  }
}

.course-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (min-width: 992px) {
  .course-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 2.75rem;
    align-items: start;
  }
}

.course-header-mobile {
  display: block;
  width: 100%;
  min-width: 0;
  margin-bottom: 0.25rem;
}
.course-header-desktop {
  display: none;
}
@media (min-width: 992px) {
  .course-header-mobile {
    display: none;
  }
  .course-header-desktop {
    display: block;
  }
}

.course-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.course-highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .course-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
