@charset "UTF-8";

/* --- VARIABLES --- */
:root {
  --violeta:       #6833CC;
  --violeta-h:     #5528aa;
  --violeta-dark:  #3d1a80;
  --violeta-light: #f0ebff;
  --magenta:       #D600D6;
  --cian:          #33CBCC;
  --verd:          #1eaa6b;
  --gris-fosc:     #4D4A44;
  --gris-plata:    #A5A39B;
  --blanc:         #ffffff;
  --bg:            #f7f5ff;
  --text:          #2d2d2d;
  --border:        #e0d0ff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 64px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* --- NAVBAR --- */
.navbar {
  background: var(--gris-fosc);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; }
.nav-strips { display: flex; flex-direction: column; gap: 2px; }
.ns {
  font-size: 0.6rem;
  font-weight: 700;
  color: white;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}
.ns-violeta { background: var(--violeta); }
.ns-magenta { background: var(--magenta); }
.ns-cian    { background: var(--cian); color: #1a1a1a; }
.nav-menu { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover { background: rgba(255,255,255,0.12); color: white; }
.nav-wa {
  background: #25d366 !important;
  color: white !important;
  display: flex !important;
  align-items: center;
  gap: 5px;
  padding: 6px 12px !important;
  border-radius: 20px !important;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, #3d1a80 0%, #6833CC 55%, #4D4A44 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url('gbt-cursos-profesionales-cap-permisos.jpg') center/cover no-repeat;
  opacity: 0.2;
}
.hero-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to bottom, rgba(61,26,128,0.78) 0%, rgba(77,74,68,0.84) 100%);
}
.hero-body {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 24px 36px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 8px 18px;
  margin-bottom: 24px;
}
.hero-badge img { height: 22px; width: auto; filter: brightness(0) invert(1); }
.hero-badge span { color: white; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: #33CBCC; }
.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- 4 TILES VISIBLES --- */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 28px 18px;
  min-height: 200px;
  transition: opacity 0.2s;
}
.tile:hover { opacity: 0.88; }

.tile-merc { background: linear-gradient(135deg, #2e0e6e, #6b36a0); }
.tile-viat { background: linear-gradient(135deg, #7a0060, #d600d6); }
.tile-adr  { background: linear-gradient(135deg, #2a2a28, #5a5a54); }
.tile-taco { background: linear-gradient(135deg, #0a6b6b, #1abcb0); }

.tile-title {
  display: block;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  line-height: 1.2;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.tile-sub {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.82);
  font-family: Arial, sans-serif;
  margin-bottom: 4px;
}
.tile-desc {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.68);
  font-family: Arial, sans-serif;
  line-height: 1.4;
  margin-bottom: 2px;
}
.tile-cta {
  display: inline-block;
  margin-top: 12px;
  background: #f3f3f3;
  color: #5f626c;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 7px 14px;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s;
}
.tile:hover .tile-cta { background: white; }

/* --- STATS BAND --- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #4D4A44;
}
.stat-item {
  padding: 14px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-size: 1.1rem; color: white; font-weight: 800; }
.stat-item span   { font-size: 0.7rem; color: rgba(255,255,255,0.65); }

/* --- BOTONS --- */
.btn-primary {
  background: var(--violeta);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--violeta-h); }
.btn-cian {
  background: var(--cian);
  color: #1a1a1a;
  padding: 12px 26px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  transition: opacity 0.2s;
}
.btn-cian:hover { opacity: 0.88; }
.btn-wa-big {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.2s;
}
.btn-wa-big:hover { opacity: 0.88; }
.btn-phone-big {
  display: block;
  background: var(--violeta);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  text-align: center;
  transition: opacity 0.2s;
}
.btn-phone-big:hover { opacity: 0.88; }
.btn-email-big {
  display: block;
  background: var(--gris-fosc);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  transition: opacity 0.2s;
}
.btn-email-big:hover { opacity: 0.88; }
.btn-llamame {
  width: 100%;
  background: var(--violeta);
  color: white;
  border: none;
  padding: 13px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.btn-llamame:hover { background: var(--violeta-h); }

/* --- SECCIONS --- */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--gris-plata); font-size: 1rem; }
.section-head-light h2 { color: white; }
.section-head-light p { color: rgba(255,255,255,0.7); }
.text-violeta { color: var(--violeta); }
.section-white { background: white; }
.section-violeta-light { background: var(--violeta-light); }
.section-gris { background: #f0f0f0; }
.section-dark { background: var(--gris-fosc); }

/* --- CURSOS AMB FOTO --- */
.cursos-foto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.curs-foto-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(104,51,204,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s, box-shadow 0.28s;
  border: 1.5px solid var(--border);
}
.curs-foto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(104,51,204,0.18);
  border-color: var(--violeta);
}
.curs-foto-wrap {
  position: relative;
  overflow: hidden;
  height: 230px;
}
.curs-foto-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.curs-foto-card:hover .curs-foto-wrap img { transform: scale(1.05); }
.curs-numero {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--violeta);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.curs-numero.col-magenta { background: var(--magenta); }
.curs-numero.col-cian    { background: var(--cian); color: #1a1a1a; }
.curs-numero.col-dark    { background: var(--gris-fosc); }
.curs-foto-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.curs-foto-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.curs-foto-body h3 small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--violeta);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.curs-foto-body .desc { font-size: 0.88rem; color: #555; line-height: 1.55; }
.curs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.curs-tag {
  background: var(--violeta-light);
  color: var(--violeta);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.curs-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.curs-features li {
  font-size: 0.82rem;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.curs-features li::before {
  content: '\2713';
  color: var(--violeta);
  font-weight: 800;
  flex-shrink: 0;
}
.curs-ctas { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.btn-dates {
  flex: 1;
  background: var(--violeta);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s;
  min-width: 140px;
}
.btn-dates:hover { background: var(--violeta-h); }
.btn-wa-card {
  background: #25d366;
  color: white;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-wa-card:hover { opacity: 0.88; }

/* --- BONIFICACIO --- */
.bonificacio-box {
  background: var(--violeta);
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.bonificacio-text h3 { font-size: 1.05rem; font-weight: 800; color: white; margin-bottom: 6px; }
.bonificacio-text p  { font-size: 0.88rem; color: rgba(255,255,255,0.85); max-width: 520px; }

/* --- PER QUE GBT --- */
.perque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.perque-item {
  background: white;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 3px 16px rgba(104,51,204,0.07);
  border: 1.5px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.perque-item:hover { transform: translateY(-3px); border-color: var(--violeta); }
.perque-icon { font-size: 2.2rem; margin-bottom: 12px; }
.perque-item strong { display: block; font-size: 0.95rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.perque-item p { font-size: 0.8rem; color: #666; line-height: 1.5; }

/* --- OFICINES --- */
.oficines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.oficina-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.oficina-card h3 { font-size: 0.9rem; font-weight: 800; color: white; }
.oficina-card p  { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.oficina-contacte { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.oficina-contacte a { font-size: 0.8rem; color: #33CBCC; transition: opacity 0.2s; }
.oficina-contacte a:hover { opacity: 0.8; }

/* --- FAQs --- */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(104,51,204,0.06);
  border: 1.5px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--violeta-light); }
.faq-arrow { color: var(--violeta); transition: transform 0.3s; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 16px; }
.faq-a p { font-size: 0.85rem; color: #555; line-height: 1.6; }
.faq-a.open { display: block; }

/* --- CONTACTE --- */
.contacte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contacte-directe { display: flex; flex-direction: column; gap: 12px; }
.mini-form-box {
  background: var(--violeta-light);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1.5px solid var(--border);
}
.mini-form-box h3 { font-size: 1rem; font-weight: 800; color: var(--text); }
.mini-form-box input,
.mini-form-box select {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 0.88rem;
  font-family: inherit;
  background: white;
  color: var(--text);
  width: 100%;
}
.mini-form-box input:focus,
.mini-form-box select:focus { outline: none; border-color: var(--violeta); }
.form-msg { font-size: 0.82rem; color: var(--violeta); font-weight: 600; min-height: 20px; }

/* --- STICKY BAR --- */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  z-index: 999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}
.sticky-bar a {
  padding: 14px 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.sticky-bar a:hover { opacity: 0.88; }
.sticky-wa   { background: #25d366; }
.sticky-perm { background: var(--violeta); }
.sticky-tel  { background: var(--gris-fosc); }

/* --- RESPONSIVE --- */
@media (max-width: 1000px) {
  .oficines-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 160px; padding: 20px 14px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .cursos-foto-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .perque-grid { grid-template-columns: repeat(2, 1fr); }
  .contacte-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--gris-fosc);
    padding: 12px 0;
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 10px 20px; border-radius: 0; font-size: 0.9rem; }
  .nav-hamburger { display: flex; }
  .nav-inner { position: relative; }
  .bonificacio-box { flex-direction: column; }
  .curs-foto-wrap { height: 190px; }
  .hero-body { padding: 18px 20px 16px; }
  .hero h1 { font-size: 1.55rem; margin-bottom: 8px; }
  .hero-sub { font-size: 0.88rem; margin-bottom: 0; }
  .hero-badge { padding: 5px 12px; margin-bottom: 12px; }
  .hero-badge img { height: 18px; }
  .hero-badge span { font-size: 0.7rem; }
  .tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 150px; padding: 18px 12px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .oficines-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .perque-grid { grid-template-columns: 1fr 1fr; }
  .curs-ctas { flex-direction: column; }
  .btn-dates { min-width: unset; }
  .tile { min-height: 140px; padding: 16px 10px; }
  .tile-title { font-size: 1rem; letter-spacing: 1.5px; }
  .tile-sub { font-size: 0.65rem; }
  .tile-desc { font-size: 0.62rem; }
  .tile-cta { font-size: 0.6rem; padding: 5px 10px; margin-top: 8px; }
  .oficines-grid { grid-template-columns: 1fr; }
}
