/*
  cv-overrides.css — Ruth Mujica CV-specific styles
  Complements docentes20.com design system (base.css, components.css, layout.css)
  Version: 1.0.0
*/

/* ============================================================
   1) Hero Section
   ============================================================ */
.cv-hero {
  background: linear-gradient(135deg, rgba(26,26,26,0.95) 0%, rgba(96,15,0,0.85) 100%);
  color: #fff;
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
}

.cv-hero h1 {
  font-family: var(--f-heading, 'Outfit', 'Montserrat', sans-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.cv-hero .subtitle {
  color: var(--c-accent, #FFC107);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 600;
  max-width: 900px;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
}

.cv-hero .subtitle a {
  color: var(--c-accent, #FFC107);
  text-decoration: underline;
  font-weight: 700;
}

.cv-hero .subtitle a:hover {
  color: #FFD54F;
}

.cv-hero .credential {
  font-style: italic;
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.cv-hero .recognition {
  color: var(--c-accent, #FFC107);
  font-size: 0.92rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.cv-hero .recognition a {
  color: var(--c-accent, #FFC107);
  text-decoration: underline;
}

.cv-hero-image {
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  display: block;
  border-radius: var(--r-md, 8px);
}

/* Badge Strip */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 1.5rem 0;
  border-top: 2px solid;
  border-image: linear-gradient(to right, #ffe404, #ff8e0b) 1;
}

.badge-strip a img {
  height: 60px;
  width: auto;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.badge-strip a img:hover {
  transform: scale(1.1);
}

/* Academic Links */
.academic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  padding: 1rem 0;
}

.academic-links a {
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.academic-links a:hover {
  color: var(--c-accent, #FFC107);
}

.academic-links img {
  height: 16px;
  width: auto;
  margin-right: 4px;
  vertical-align: middle;
}

/* CTA Banner */
.cta-banner {
  background-color: #646363;
  padding: 20px;
  text-align: center;
  color: #fff;
  margin-top: 1.5rem;
  border-radius: var(--r-md, 8px);
}

.cta-banner a {
  color: var(--c-accent, #FFC107);
  font-weight: 700;
}

/* ============================================================
   2) Section Styling
   ============================================================ */
.cv-section {
  padding: 3rem 0;
}

.cv-section:nth-child(even) {
  background-color: #f9f9f9;
}

.cv-section-dark {
  background-color: var(--c-dark, #1A1A1A);
  color: #fff;
}

.cv-section-dark h2,
.cv-section-dark h3 {
  color: #fff;
}

.section-heading {
  font-family: var(--f-heading, 'Outfit', 'Montserrat', sans-serif);
  font-size: var(--s-3xl, 2rem);
  font-weight: 700;
  color: var(--c-dark, #1A1A1A);
  margin-bottom: 0.5rem;
}

.section-heading::after {
  content: '';
  display: block;
  width: 140px;
  height: 3px;
  background: var(--g-gold-accent, linear-gradient(135deg, #FFC107 0%, #D39E00 100%));
  margin-top: 0.5rem;
}

.cv-section-dark .section-heading {
  color: #e0e0e0;
}

/* ============================================================
   3) Accordions (Experience & Publications)
   ============================================================ */
.cv-accordion-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  margin-bottom: 2px;
  background-color: var(--c-dark, #1A1A1A);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--f-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s;
  border-left: 4px solid var(--c-accent, #FFC107);
}

.cv-accordion-btn:hover {
  background-color: #333;
}

.cv-accordion-btn i {
  color: var(--c-accent, #FFC107);
  margin-right: 10px;
}

.cv-accordion-panel {
  display: none;
  padding: 16px 20px;
  background: #f5f5f5;
  border-left: 4px solid var(--c-accent, #FFC107);
  margin-bottom: 2px;
}

.cv-accordion-panel.open {
  display: block;
}

.cv-accordion-panel ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.cv-accordion-panel li {
  text-align: justify;
  color: #555;
  margin-bottom: 6px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.cv-accordion-panel .date-tag {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}

.cv-accordion-panel .date-tag .badge-active {
  display: inline-block;
  background: var(--c-accent, #FFC107);
  color: #000;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ============================================================
   4) Skill/Language Bars
   ============================================================ */
.skill-bar-wrap {
  margin-bottom: 1rem;
}

.skill-bar-label {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 4px;
}

.skill-bar-bg {
  background: #e0e0e0;
  border-radius: 20px;
  height: 24px;
  overflow: hidden;
}

.skill-bar-fill {
  background: var(--g-gold-accent, linear-gradient(135deg, #FFC107, #D39E00));
  height: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #000;
  transition: width 0.6s ease;
}

/* ============================================================
   5) Education Grid
   ============================================================ */
.edu-card {
  margin-bottom: 1.5rem;
}

.edu-card h5 {
  color: var(--c-accent, #FFC107);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.edu-card p {
  color: #888;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.edu-card .edu-date {
  color: var(--c-accent, #FFC107);
  font-size: 0.82rem;
}

/* ============================================================
   6) Activities Tabs
   ============================================================ */
.cv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 3px solid var(--c-accent, #FFC107);
  margin-bottom: 0;
}

.cv-tab-btn {
  padding: 10px 16px;
  background: #f1f1f1;
  border: 1px solid #ccc;
  border-bottom: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.cv-tab-btn:hover {
  background: #ddd;
}

.cv-tab-btn.active {
  background: var(--c-accent, #FFC107);
  color: #000;
  font-weight: 700;
}

.cv-tab-panel {
  display: none;
  padding: 20px;
  border: 1px solid #ccc;
  border-top: none;
  background: #fff;
}

.cv-tab-panel.active {
  display: block;
}

.cv-tab-panel ul {
  list-style: disc;
  padding-left: 20px;
}

.cv-tab-panel li {
  text-align: justify;
  color: #555;
  margin-bottom: 6px;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================================
   7) Portfolio & Book Cards
   ============================================================ */
.portfolio-card {
  background: #fff;
  border-radius: var(--r-lg, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card:hover {
  box-shadow: var(--shadow-premium, 0 10px 40px -10px rgba(0,0,0,0.15));
  transform: translateY(-4px);
}

.portfolio-card .pc-header {
  background: var(--c-dark-soft, #333);
  color: #fff;
  padding: 24px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.portfolio-card .pc-body {
  padding: 16px;
  text-align: justify;
  flex: 1;
  font-size: 0.9rem;
  color: #555;
}

.portfolio-card .pc-body img {
  max-width: 50%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.portfolio-card .pc-footer {
  padding: 16px;
  background: #f5f5f5;
}

.portfolio-card .pc-footer .btn {
  display: inline-block;
}

/* ============================================================
   8) YouTube Embeds
   ============================================================ */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-md, 8px);
  margin-bottom: 1rem;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   9) Contact Section
   ============================================================ */
.contact-info p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 12px;
}

.contact-info i {
  color: var(--c-accent, #FFC107);
  font-size: 1.4rem;
  margin-right: 10px;
  width: 30px;
  text-align: center;
}

.contact-logos a img {
  width: 40%;
  padding-top: 5px;
  transition: opacity 0.2s;
}

.contact-logos a img:hover {
  opacity: 0.8;
}

/* ============================================================
   10) Footer Override
   ============================================================ */
.cv-footer {
  background: var(--c-dark, #1A1A1A);
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
}

.cv-footer .social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.cv-footer .social-row a {
  color: var(--c-accent, #FFC107);
  font-size: 1.5rem;
  transition: opacity 0.2s, transform 0.2s;
}

.cv-footer .social-row a:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

.cv-footer .copyright {
  font-size: 0.9rem;
  color: #888;
}

.cv-footer .copyright a {
  color: #4CAF50;
}

/* ============================================================
   11) Responsive
   ============================================================ */
@media (max-width: 768px) {
  .cv-hero {
    padding: 100px 15px 40px;
  }
  .cv-hero h1 {
    font-size: 1.8rem;
  }
  .badge-strip a img {
    height: 40px;
  }
  .cv-tab-btn {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
}

/* ============================================================
   12) AOS override for reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
