/* ============================================================
   ROCARD — Global Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:        #2b2b9c;
  --primary-dark:   #1e1e7a;
  --primary-darker: #141458;
  --primary-light:  #4444cc;
  --primary-mid:    #3333b8;
  --bg-light:       #eeeeff;
  --white:          #ffffff;
  --text-dark:      #1a1a4e;
  --text-muted-w:   rgba(255,255,255,0.65);
  --text-muted-d:   rgba(26,26,78,0.6);

  --gradient-hero:  radial-gradient(ellipse at 50% 20%, #4444cc 0%, #2b2b9c 45%, #13134a 100%);
  --gradient-blue:  radial-gradient(ellipse 90% 60% at 50% 50%, #3333b8 0%, #2b2b9c 40%, #1e1e7a 75%, #141458 100%);
  --gradient-sobre: radial-gradient(ellipse at 60% 40%, #2b2b9c 0%, #1a1a70 45%, #0e0e4a 100%);

  --radius-xl:   1rem;
  --radius-pill: 9999px;
  --transition:  300ms ease;
  --shadow-nav:  0 4px 24px rgba(43,43,156,0.14);
  --font:        'Inter', system-ui, sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.75rem;
}
.section { padding: 5.5rem 0; }

/* ── Typography Helpers ─────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.6);
}
.eyebrow--dark {
  color: var(--primary);
  opacity: 1;
}
.section-headline { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; }
.section-sub { font-size: 1.05rem; line-height: 1.75; opacity: 0.72; }
.text-center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.85rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  min-height: 44px;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(43,43,156,0.4); }

.btn-outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: white; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }

.btn-white-semi { background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.3); color: white; }
.btn-white-semi:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

/* ── Scroll Fade-Up Animation ───────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(43,43,156,0.07);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-nav); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

/* Logo */
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 70px; width: auto; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: white;
}

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-toggle button {
  padding: 0.28rem 0.7rem;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.lang-toggle button.active {
  background: var(--primary);
  color: white;
}
.lang-sep {
  color: var(--primary);
  font-size: 0.73rem;
  font-weight: 700;
  opacity: 0.4;
  pointer-events: none;
}

/* Social Icons */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-socials a {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-socials a:hover { background: rgba(43,43,156,0.08); }
.nav-socials svg { width: 17px; height: 17px; fill: currentColor; }

/* Empezar Button */
.btn-empezar {
  background: var(--primary);
  color: white;
  padding: 0.52rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-empezar:hover { background: var(--primary-light); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 88vw);
  height: 100dvh;
  background: #fff;
  z-index: 1100;
  padding: 1.5rem;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: -4px 0 32px rgba(0,0,0,0.14);
  overflow-y: auto;
}
.nav-drawer.open { right: 0; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-top img { height: 36px; }
.drawer-close {
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.25rem;
  font-weight: 300;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.drawer-links a {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.drawer-links a:hover,
.drawer-links a.active {
  background: var(--primary);
  color: white;
}

.drawer-socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.drawer-socials a {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(43,43,156,0.2);
  border-radius: 8px;
  transition: all var(--transition);
}
.drawer-socials a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.drawer-socials svg { width: 18px; height: 18px; fill: currentColor; }

.drawer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(43,43,156,0.08);
}


/* ================================================================
   FOOTER
   ================================================================ */
/* ── Continuous gradient wrapper (inner pages: Servicios, CapacitaT, Contacto) ── */
/* Wraps <main> + <footer> so both share one single radial gradient with no break   */
.blue-canvas {
  background: radial-gradient(ellipse 90% 60% at 50% 50%, #3333b8 0%, #2b2b9c 40%, #1e1e7a 75%, #141458 100%);
  background-attachment: fixed; /* keeps gradient stable as user scrolls */
}
.blue-canvas > main,
.blue-canvas > footer {
  background: transparent !important;
}

.footer {
  /* Stand-alone footer (Inicio page). Inner pages override via .blue-canvas. */
  background: radial-gradient(ellipse 90% 60% at 50% 50%, #3333b8 0%, #2b2b9c 40%, #1e1e7a 75%, #141458 100%);
  padding: 4.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-col-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.footer-col p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 2;
  transition: color var(--transition);
}
.footer-col a:hover { color: white; }
.footer-logo {
  height: 120px;
  margin-bottom: 1rem;
  margin-top: 0;
  margin-left: -1rem;
  filter: brightness(0) invert(1);
  display: block;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-socials a {
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  transition: all var(--transition);
}
.footer-socials a:hover { color: white; background: rgba(255,255,255,0.1); }
.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }

.footer-lang .lang-toggle {
  border-color: rgba(255,255,255,0.25);
}
.footer-lang .lang-toggle button { color: rgba(255,255,255,0.65); }
.footer-lang .lang-toggle button.active { background: rgba(255,255,255,0.15); color: white; }
.footer-lang .lang-sep { color: rgba(255,255,255,0.3); }


/* ================================================================
   HERO — INICIO
   ================================================================ */
.hero {
  background: var(--gradient-hero);
  padding: 7rem 0 0;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-body { padding-bottom: 5rem; }
.hero-content { text-align: center; max-width: 780px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 0.7s ease 0.1s forwards;
}
.hero-headline {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 900;
  color: white;
  line-height: 1.08;
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFade 0.7s ease 0.3s forwards;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFade 0.7s ease 0.5s forwards;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 0.7s ease 0.7s forwards;
}
.hero-btn-dark {
  background: rgba(255,255,255,0.09);
  border: 1.5px solid rgba(255,255,255,0.28);
  color: white;
  padding: 0.9rem 2.1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  min-height: 52px;
}
.hero-btn-dark:hover { background: rgba(255,255,255,0.18); }
.hero-btn-light {
  background: rgba(255,255,255,0.16);
  border: 1.5px solid rgba(255,255,255,0.28);
  color: white;
  padding: 0.9rem 2.1rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  transition: all var(--transition);
  min-height: 52px;
}
.hero-btn-light:hover { background: rgba(255,255,255,0.26); transform: translateY(-2px); }

@keyframes heroFade {
  to { opacity: 1; transform: none; }
}

/* Ticker */
.ticker-wrap {
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,0.09);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: rgba(0,0,0,0.08);
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 24s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  white-space: nowrap;
}
.ticker-item span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.ticker-dot {
  color: rgba(255,255,255,0.2);
  font-size: 0.4rem;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ================================================================
   PROPUESTA — INICIO
   ================================================================ */
.propuesta {
  background: var(--bg-light);
  padding: 6rem 0;
  color: var(--text-dark);
}
.propuesta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.propuesta-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(43,43,156,0.18);
  aspect-ratio: 4/3;
}
.propuesta-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.propuesta-text .eyebrow { color: var(--primary); }
.propuesta-headline {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.propuesta-body {
  font-size: 0.98rem;
  color: #4a4a7a;
  line-height: 1.85;
  margin-bottom: 2rem;
}


/* ================================================================
   SOBRE NOSOTROS — INICIO
   ================================================================ */
.sobre {
  background: var(--gradient-sobre);
  padding: 6rem 0;
}
.sobre-eyebrow { margin-bottom: 3rem; }
.sobre-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
.sobre-headline {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
}
.sobre-text {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
}

.founder-card {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.75rem 1.4rem 1.4rem;
  backdrop-filter: blur(8px);
}
.founder-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2.5px solid rgba(255,255,255,0.25);
}
.founder-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.founder-name a { color: white; display: inline-flex; transition: opacity var(--transition); }
.founder-name a:hover { opacity: 0.7; }
.founder-name svg { width: 16px; height: 16px; fill: #0a66c2; }
.founder-role {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}


/* ================================================================
   PROYECTOS — INICIO
   ================================================================ */
.proyectos {
  background: var(--bg-light);
  padding: 6rem 0;
  color: var(--text-dark);
}
.proyectos-header { margin-bottom: 3rem; }
.proyectos-header .eyebrow { color: var(--primary); }
.proyectos-header .section-headline { color: var(--text-dark); }
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1.5px solid rgba(43,43,156,0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-7px);
  box-shadow: 0 20px 48px rgba(43,43,156,0.17);
}
.project-thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.project-thumb-1 { background: linear-gradient(135deg, #e0e0ff 0%, #c8c8f5 100%); }
.project-thumb-2 { background: linear-gradient(135deg, #d4e4ff 0%, #b8d0ff 100%); }
.project-thumb-3 { background: linear-gradient(135deg, #ddf0e8 0%, #c0e8d8 100%); }
.project-info { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.project-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.project-tag {
  display: inline-flex;
  width: fit-content;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0,0,0,0.1);
}


/* ================================================================
   SERVICIOS PAGE
   ================================================================ */
.servicios-hero {
  /* Background comes from .blue-canvas wrapper; transparent here for seamless gradient */
  background: transparent;
  min-height: 100vh;
  padding: 6rem 0 5rem;
}
.servicios-header { text-align: center; margin-bottom: 4.5rem; }
.servicios-header .section-sub { margin: 0.9rem auto 0; max-width: 600px; }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.service-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-xl);
  padding: 2rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.service-card:hover {
  border-color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.13);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.25);
}
.service-icon { font-size: 2.6rem; margin-bottom: 1.1rem; display: block; line-height: 1; }
.service-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.75rem; }
.service-short { font-size: 0.9rem; color: rgba(255,255,255,0.72); line-height: 1.65; }

.service-long {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
}
.service-card.expanded .service-long {
  max-height: 300px;
  opacity: 1;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.service-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  transition: opacity var(--transition);
}
.service-card.expanded .service-hint { opacity: 0; pointer-events: none; height: 0; margin: 0; overflow: hidden; }
.service-hint svg { width: 12px; height: 12px; fill: currentColor; }

.servicios-cta { text-align: center; }


/* ================================================================
   CAPACITAT PAGE
   ================================================================ */
.capacitat-hero {
  /* Background comes from .blue-canvas wrapper; transparent here for seamless gradient */
  background: transparent;
  min-height: 100vh;
  padding: 5.5rem 0 5rem;
}
.capacitat-header { text-align: center; margin-bottom: 3.5rem; }
.cap-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.3rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
}
.cap-headline {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 900;
  margin-bottom: 1.1rem;
  line-height: 1.1;
}
.cap-subtext { font-size: 1rem; color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* Training Cards */
.capacitat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}
.cap-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 580px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: all var(--transition);
}
.cap-card:hover {
  border-color: rgba(255,255,255,0.32);
  transform: translateY(-7px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.32);
}

/* Background image layer */
.cap-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Strong dark overlay for text readability */
.cap-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(20,20,80,0.33) 0%,
    rgba(30,30,100,0.40) 40%,
    rgba(10,10,50,0.50) 100%
  );
}

/* Content on top */
.cap-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Popular badge */
.cap-popular {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}

.cap-icon { font-size: 2.4rem; line-height: 1; margin-bottom: 0.8rem; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.cap-tag {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  color: rgba(255,255,255,0.88);
}
.cap-title { font-size: 1.15rem; font-weight: 900; margin-bottom: 0.75rem; line-height: 1.2; }
.cap-desc { font-size: 0.87rem; color: rgba(255,255,255,0.78); line-height: 1.65; margin-bottom: 1rem; }

.cap-tools-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 0.5rem; }
.cap-tools { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.1rem; }
.cap-tool {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  color: rgba(255,255,255,0.88);
}
.cap-features { margin-bottom: 1.5rem; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.cap-features li {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.82);
  padding: 0.25rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.cap-features li::before { content: '✓'; color: #4ade80; font-weight: 900; flex-shrink: 0; font-size: 0.85rem; }

.capacitat-note {
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3rem;
  font-style: italic;
}

/* Extra bottom padding so FAQ has breathing room before footer */
.faq-wrap { max-width: 740px; margin: 0 auto; padding-bottom: 5rem; }

/* FAQ */
.faq-title { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 1.75rem; }
.faq-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius-xl);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}
.faq-item.open { border-color: rgba(255,255,255,0.24); background: rgba(255,255,255,0.09); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  user-select: none;
}
.faq-arrow {
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  transition: transform var(--transition);
}
.faq-arrow svg { width: 18px; height: 18px; fill: currentColor; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-ans-inner {
  padding: 0 1.5rem 1.3rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}


/* ================================================================
   CONTACTO PAGE
   ================================================================ */
.contacto-hero {
  /* Background comes from .blue-canvas wrapper; transparent here for seamless gradient */
  background: transparent;
  min-height: 100vh;
  padding: 6rem 0 5rem;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 5rem;
  align-items: start;
}
.contacto-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.contacto-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.contacto-items { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.c-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
.contacto-item:hover .c-icon { background: rgba(255,255,255,0.16); }
.contacto-item-text { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.6; }
.contacto-item-text strong { color: white; display: block; font-size: 0.8rem; margin-bottom: 0.15rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.contacto-item-text a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.contacto-item-text a:hover { color: white; }

.contacto-socials-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 0.75rem; }
.contacto-socials { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.contacto-socials a {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition);
}
.contacto-socials a:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.contacto-socials svg { width: 18px; height: 18px; fill: currentColor; }

/* Form */
.contacto-form-wrap {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.45rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  color: white;
  font-size: 0.92rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.12);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255,255,255,0.5);
  pointer-events: none;
}
.select-wrap select { padding-right: 2.5rem; cursor: pointer; }
.form-group select option { background: #1e1e7a; color: white; }
.form-group textarea { resize: vertical; min-height: 110px; }
.otro-field { display: none; }
.otro-field.visible { display: block; }

.btn-submit {
  width: 100%;
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-pill);
  color: white;
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.1rem;
  transition: all var(--transition);
  margin-top: 0.5rem;
}
.btn-submit:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.form-success {
  display: none;
  text-align: center;
  padding: 1.75rem;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.28);
  border-radius: var(--radius-xl);
  margin-top: 1rem;
}
.form-success.visible { display: block; }
.form-success-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.form-success h3 { color: #4ade80; font-weight: 800; font-size: 1.1rem; margin-bottom: 0.5rem; }
.form-success p { font-size: 0.88rem; color: rgba(255,255,255,0.65); }


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .nav-links,
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  .sobre-grid { grid-template-columns: 1fr; gap: 2rem; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .capacitat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .contacto-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .hero { padding: 5rem 0 0; min-height: 85vh; }
  .propuesta-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .proyectos-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .capacitat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-bottom-right { flex-wrap: wrap; justify-content: center; }
  .section { padding: 4rem 0; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .container { padding: 0 1.1rem; }
  .cap-card { min-height: auto; }
  .contacto-form-wrap { padding: 1.5rem; }
}

.project-desc {
  font-size: 0.88rem;
  color: rgba(60,60,100,0.75);
  line-height: 1.6;
  margin: 0.75rem 0;
}

.project-btn {
  display: inline-block;
  margin-top: auto;
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.project-btn:hover {
  opacity: 0.85;
}
/* ================================================================
   HERO — RESPONSIVE MÓVIL
   ================================================================ */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    padding: 5rem 0 0;
    justify-content: space-between;  /* cambia flex-start por space-between */
  }
  .hero-body {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
