/*
 Theme Name: IMCE Free
 Theme URI: https://imce.la
 Description: Free, GPL clone of the IMCE site. No proprietary code — custom theme, vanilla-JS slider and ES/PT-BR switcher. Elementor/RevSlider/trx_addons replaced by free code.
 Author: IMCE
 Requires at least: WordPress 6.0
 Tested up to: 6.6
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: imce-free
*/

:root {
  --navy: #0b2b45;
  --blue: #155e8a;
  --blue2: #1b6ca8;
  --teal: #1aa6a0;
  --light: #f4f7fa;
  --grey: #5b6b78;
  --accent: #f5a623;
  --white: #ffffff;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2d38;
  background: var(--white);
  line-height: 1.6;
}
a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section.alt { background: var(--light); }
.text-center { text-align: center; }
.kicker {
  text-transform: uppercase; letter-spacing: 2px; font-size: 13px;
  font-weight: 700; color: var(--teal); margin-bottom: 10px;
}
h1, h2, h3 { color: var(--navy); line-height: 1.2; font-family: "Lora", Georgia, serif; }

/* Language switcher (own free code) */
.imce-lang-switch {
  position: fixed; top: 12px; right: 12px; z-index: 2147483647;
  background: rgba(11,43,69,.94); border: 1px solid var(--teal);
  border-radius: 30px; padding: 6px 10px; display: flex; gap: 6px;
  align-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.imce-lang-switch .lbl { color: #9fb6c6; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-right: 2px; }
.imce-lang-switch button {
  background: transparent; border: 1px solid #2c4d6b; color: #cfe0ec;
  font-weight: 700; font-size: 12px; border-radius: 20px; padding: 3px 11px;
  cursor: pointer; font-family: inherit; line-height: 1.4;
}
.imce-lang-switch button.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.imce-lang-switch button:hover { color: #fff; border-color: var(--teal); }

/* Header / nav */
.site-header {
  background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand img { height: 46px; }
.site-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; align-items: center; }
.site-nav a { color: var(--navy); font-weight: 600; font-size: 15px; }
.site-nav li { position: relative; }
.site-nav li ul {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 10px 0; min-width: 220px;
  flex-direction: column; gap: 0;
}
.site-nav li:hover > ul { display: flex; }
.site-nav li ul a { display: block; padding: 8px 18px; font-weight: 500; white-space: nowrap; }
.btn-ticket { background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: 6px; font-weight: 700; }
.btn-ticket:hover { background: #e09412; text-decoration: none; }

/* Hero (free slider) */
.hero { position: relative; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #fff; overflow: hidden; }
.hero .slide { display: none; padding: 110px 0; text-align: center; }
.hero .slide.active { display: block; }
.hero h1 { color: #fff; font-size: 44px; max-width: 880px; margin: 0 auto 18px; }
.hero p { font-size: 20px; color: #d6e6f1; max-width: 640px; margin: 0 auto 28px; }
.hero .hero-cta { display: inline-block; background: var(--accent); color: #fff; padding: 14px 30px; border-radius: 8px; font-weight: 700; font-size: 16px; }
.hero .hero-cta:hover { background: #e09412; text-decoration: none; }
.hero .hero-more { display: block; margin-top: 16px; color: #bcd6e8; font-size: 14px; }
.hero-dots { text-align: center; padding-bottom: 30px; }
.hero-dots span { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.4); margin: 0 5px; cursor: pointer; }
.hero-dots span.active { background: var(--accent); }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid #e6edf3; border-radius: 10px; padding: 28px 22px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.card .num { font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: 1px; margin-bottom: 10px; }
.card h3 { margin: 0 0 10px; font-size: 20px; }
.card p { color: var(--grey); margin: 0; font-size: 15px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-grid img { border-radius: 12px; }
.about-text p { color: #34434f; margin-bottom: 16px; }

/* Latam */
.latam h2 { font-size: 32px; }
.latam p { max-width: 820px; margin: 0 auto 24px; color: #34434f; }

/* Services */
.services-intro { max-width: 900px; margin: 0 auto 40px; color: #34434f; }
.service-box { background: #fff; border-radius: 10px; padding: 26px; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.service-box .num { color: var(--teal); font-weight: 800; font-size: 14px; }
.service-box h3 { margin: 8px 0; }
.service-box p { color: var(--grey); }
.service-box a { font-weight: 700; font-size: 14px; }

/* Community */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi { background: #fff; border-radius: 12px; padding: 26px; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.testi p { font-style: italic; color: #34434f; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi .who .ph { width: 46px; height: 46px; border-radius: 50%; background: var(--blue2); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testi .who .nm { font-weight: 700; color: var(--navy); }
.testi .who .rl { font-size: 13px; color: var(--grey); }

/* Microlearning */
.micro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* Stats */
.stats { background: var(--navy); color: #fff; }
.stats .grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; text-align: center; }
.stats .big { font-size: 46px; font-weight: 800; color: var(--accent); }
.stats .sub { color: #bcd6e8; }

/* News */
.news-box { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid #e6edf3; border-radius: 12px; overflow: hidden; }
.news-box .body { padding: 24px; }
.news-box h3 { margin: 0 0 10px; }
.news-box p { color: var(--grey); }
.news-meta { font-size: 13px; color: var(--teal); margin-top: 12px; }

/* Partners */
.partners { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: center; }
.partners img { height: 60px; opacity: .8; }

/* Newsletter / footer */
.newsletter { background: var(--teal); color: #fff; text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter a { color: #fff; text-decoration: underline; }
.site-footer { background: var(--navy); color: #cfe0ec; padding: 50px 0 20px; }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color: #cfe0ec; }
.foot-bottom { border-top: 1px solid #1d3a54; margin-top: 30px; padding-top: 18px; text-align: center; font-size: 14px; }
.btn-inscribe { display: inline-block; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 6px; font-weight: 700; margin-top: 12px; }
.btn-inscribe:hover { background: #e09412; text-decoration: none; }

/* WooCommerce / Events Calendar free-plugin tweaks */
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button { background: var(--teal); color: #fff; }
.tribe-events { color: #1f2d38; }

@media (max-width: 980px) {
  .grid-4, .testi-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .micro-grid { grid-template-columns: 1fr; }
  .stats .grid-3 { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 600px) {
  .grid-4, .testi-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
