/* ========================================
   SPE Comitê Técnico O&M - Design System
   Inspired by spemacae.org & spepdibrasil.org
   ======================================== */

:root {
  --primary: #003366;
  --primary-light: #004080;
  --primary-dark: #002244;
  --secondary: #0066CC;
  --accent: #00A3E0;
  --gold: #C9A84C;
  --gold-light: #E8D48B;

  --bg-white: #FFFFFF;
  --bg-light: #F5F8FC;
  --bg-gray: #E8EDF2;
  --bg-dark: #001A33;

  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --text-light: #718096;
  --text-white: #FFFFFF;

  --border: #D1D9E6;
  --border-light: #E2E8F0;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --header-height: 80px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo img,
.header-logo-img {
  height: 50px;
  width: auto;
  border-radius: 4px;
}

.header-logo-img-spe {
  height: 32px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.header-logo-img-spe:hover {
  opacity: 1;
}

.header-logo-text {
  display: flex;
  flex-direction: column;
}

.header-logo-text .brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.header-logo-text .subtitle {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--bg-light);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
}

.dropbtn .arrow {
  font-size: 0.5rem;
  line-height: 1;
  transition: transform 0.2s;
}

.dropdown:hover .dropbtn {
  color: var(--primary);
  background: var(--bg-light);
}

.dropdown:hover .dropbtn .arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 6px;
  margin-top: 4px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}

.dropdown-content a:hover {
  color: var(--primary);
  background: var(--bg-light);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--text-white) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 0;
}

.hero-slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,34,68,0.85) 0%, rgba(0,51,102,0.7) 50%, rgba(0,64,128,0.5) 100%);
}

.hero-slide-bg-1 { background-image: url('../assets/images/hero/hero-fpso.jpg'); }
.hero-slide-bg-2 { background-image: url('../assets/images/hero/hero-workers-3.jpg'); }
.hero-slide-bg-3 { background-image: url('../assets/images/hero/hero-worker.jpg'); }

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-text h1 span {
  color: var(--gold);
}

.hero-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--text-white);
  background: rgba(255,255,255,0.1);
}

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

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}

.hero-stat .label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* ========================================
   SECTION COMMON
   ======================================== */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-alt .section-header h2 {
  color: var(--primary);
}

.section-dark .section-header h2 {
  color: var(--text-white);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

/* ========================================
   CARDS
   ======================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   ABOUT / PAGE HEADER
   ======================================== */

.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--text-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.page-header-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,34,68,0.85), rgba(0,51,102,0.7));
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 16px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--text-white);
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
}

/* ========================================
   TEAM / MEMBERS GRID
   ======================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card .company {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.team-card .bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.team-card .social-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ========================================
   TIMELINE (Eventos)
   ======================================== */

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 24px 28px;
  margin-bottom: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.timeline-item:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 32px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--secondary);
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.timeline-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-item .btn-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ========================================
   NEWS / BLOG
   ======================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card-image {
  height: 200px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-light);
}

.news-card-body {
  padding: 24px;
}

.news-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 6px 0 8px;
  line-height: 1.4;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.news-card .btn-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ========================================
   TABS
   ======================================== */

.tabs {
  margin: 40px 0;
}

.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ========================================
   GT GROUPS
   ======================================== */

.gt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gt-card {
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.3s;
}

.gt-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.gt-card .gt-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.gt-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-item p, .contact-item a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.7;
}

.footer-spe-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-spe-img {
  height: 36px;
  width: auto;
  border-radius: 3px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.footer-social a:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.15);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    padding: 24px;
  }

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

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

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav a.active::after {
    display: none;
  }

  .dropdown {
    width: 100%;
  }

  .dropbtn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    justify-content: space-between;
  }

  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    background: transparent;
    min-width: auto;
  }

  .dropdown:hover .dropdown-content,
  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
  }

  .hero-stat .number {
    font-size: 1.6rem;
  }

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

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

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

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

  .page-header h1 {
    font-size: 2rem;
  }

  /* Header logo overflow fix */
  .header-inner {
    gap: 8px;
  }

  .header-logo {
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .header-logo-img {
    height: 36px;
  }

  .header-logo-text .brand {
    font-size: 0.85rem;
  }

  .header-logo-text .subtitle {
    font-size: 0.6rem;
  }

  .header-logo-img-spe {
    height: 24px;
  }

  /* Sponsor items smaller on mobile */
  .sponsor-item {
    padding: 8px 14px;
    min-width: 110px;
  }
  .sponsor-item img {
    max-height: 32px;
    max-width: 90px;
  }

  /* Video grid on tablet */
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Fix timeline on mobile */
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    padding-left: 50px;
  }
  .timeline-date {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 8px;
    display: inline-flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
  }
}

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 1.4rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .header-logo-text .brand {
    font-size: 0.75rem;
  }
  .header-logo-text .subtitle {
    display: none;
  }
  .header-logo-img {
    height: 30px;
  }
  .header-logo-img-spe {
    height: 20px;
  }

  .sponsors-grid {
    gap: 16px;
  }
  .sponsor-item {
    min-width: 80px;
    padding: 6px 10px;
  }

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

  .news-filter-bar .filter-btn {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .article-title {
    font-size: 1.3rem;
  }
}

/* ========================================
   NEWSLETTER
   ======================================== */

.newsletter-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.newsletter-box p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input,
.newsletter-form button {
  width: 100%;
  box-sizing: border-box;
}

.newsletter-form input {
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

/* ========================================
   VALUE PROPOSITION
   ======================================== */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.value-item {
  text-align: center;
  padding: 32px 20px;
}

.value-item .v-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.value-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Sponsors */
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.sponsor-item {
  padding: 12px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  min-width: 160px;
  transition: all 0.3s;
}

.sponsor-item:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.sponsor-item img {
  max-height: 48px;
  max-width: 140px;
  width: auto;
  height: auto;
}

/* ========================================
   ORGANOGRAM TREE
   ======================================== */

.grupos-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.grupo-col {
  display: flex;
  flex-direction: column;
}

.grupo-title {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}

.grupo-col .team-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .grupos-wrapper {
    grid-template-columns: 1fr;
  }
}

.org-tree {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.org-node {
  display: flex;
  justify-content: center;
}

.org-root {
  margin-bottom: 0;
}

.org-box {
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  color: var(--text-white);
}

.org-box-primary {
  background: var(--primary);
}

.org-box-accent {
  background: var(--secondary);
}

.org-box-secondary {
  background: var(--bg-light);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--secondary);
  min-width: 200px;
}

.org-box-secondary strong {
  color: var(--primary);
  font-size: 0.95rem;
}

.org-box-secondary span {
  color: var(--text-light);
  font-size: 0.8rem;
}

.org-box-light {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  height: 100%;
  box-sizing: border-box;
}

.org-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  width: 100%;
}

.org-row-groups {
  align-items: stretch;
}

.org-node-group {
  flex: 1;
  min-width: 0;
  display: flex;
}

.org-node-group .org-box-light {
  width: 100%;
}

.org-line {
  width: 2px;
  height: 32px;
  background: var(--border-light);
  position: relative;
}

.org-line::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--border-light);
}

.org-group-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.org-group-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 0.82rem;
}

.org-group-member:last-child {
  border-bottom: none;
}

.org-member-name {
  font-weight: 600;
  color: var(--text-primary);
}

.org-member-company {
  color: var(--text-light);
  font-size: 0.75rem;
  background: rgba(0,102,204,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ========================================
   MISSION / VISION / VALUES
   ======================================== */

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

.mvv-card {
  padding: 40px 32px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s;
}

.mvv-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.mvv-card .mvv-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.mvv-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.mvv-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* ========================================
   RESOURCES
   ======================================== */

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.resource-item:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.resource-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.resource-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.resource-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.resource-item .badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg-light);
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ========================================
   BACK TO TOP
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ========================================
   CAROUSEL
   ======================================== */

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  flex-shrink: 0;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--text-white);
  box-shadow: var(--shadow-md);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.carousel-dots button.active {
  background: var(--secondary);
  width: 28px;
  border-radius: 5px;
}

.carousel-dots button:hover {
  background: var(--secondary);
  opacity: 0.5;
}

/* Auto-play pause on hover */
.carousel:hover .carousel-track {
  animation-play-state: paused;
}

/* Hero carousel específico */
.hero-carousel .carousel-slide {
  display: flex;
  align-items: center;
  min-height: 400px;
  position: relative;
}

/* Cards carousel - equal height cards, better framing */
.cards-carousel {
  position: relative;
  padding: 0 50px;
  overflow: visible;
}

.cards-carousel .carousel-track {
  display: block !important;
  position: relative;
  min-height: 200px;
}

.cards-carousel .carousel-slide {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.cards-carousel .carousel-slide.active {
  display: grid;
}

.cards-carousel .carousel-slide .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
  height: 100%;
}

.cards-carousel .carousel-slide .card p {
  flex: 1;
}

.cards-carousel .carousel-slide .card h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.cards-carousel .carousel-prev {
  left: -8px;
}

.cards-carousel .carousel-next {
  right: -8px;
}

@media (max-width: 768px) {
  .cards-carousel .carousel-slide {
    grid-template-columns: 1fr;
    padding: 0 40px;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

/* ========================================
   PWA / OFFLINE
   ======================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-gray);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 0.85rem;
}

.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.video-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.video-thumb .play-btn {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.video-card:hover .play-btn {
  background: var(--secondary);
  transform: scale(1.1);
}

.video-info {
  padding: 16px;
}

.video-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.video-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
}

.blog-sidebar .widget {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.blog-sidebar .widget h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.blog-sidebar .widget ul li {
  margin-bottom: 8px;
}

.blog-sidebar .widget ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.blog-sidebar .widget ul li a:hover {
  color: var(--secondary);
}

.workshop-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.badge-presencial {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-online {
  background: #e3f2fd;
  color: #1565c0;
}

.badge-hibrido {
  background: #fff3e0;
  color: #e65100;
}

.workshop-instructor,
.workshop-date,
.workshop-location {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.news-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
}

.news-link:hover {
  color: var(--primary);
}

.news-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   CONTENT GRID (Image + Text alternating)
   ======================================== */

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  height: auto;
  display: block;
}

.content-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.content-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .content-grid.reverse {
    direction: ltr;
  }
}

/* ========================================
   CARD WITH BACKGROUND IMAGE (Frentes)
   ======================================== */

.frente-card {
  position: relative;
  overflow: hidden;
}

.frente-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}

.frente-card > *:not(.frente-card-img) {
  position: relative;
  z-index: 1;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
