/* ============================================================
   TalentiHR — Shared Stylesheet
   "Tu empresa cumple, tu equipo crece"
   Primary: #4a6741 | Accent: #c9a96e
   Fonts: Cormorant Garamond (headings) · DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

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

:root {
  --green: #4a6741;
  --green-dark: #3a5232;
  --green-light: #6a8760;
  --green-pale: #eef2ec;
  --gold: #c9a96e;
  --gold-dark: #b08d52;
  --gold-light: #e4cfa4;
  --gold-pale: #fdf8f0;
  --white: #ffffff;
  --bg: #fafaf8;
  --bg-alt: #f4f4f0;
  --text: #1c1c1a;
  --text-muted: #6b6b65;
  --text-light: #9a9a92;
  --border: #e4e4de;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --max-w: 1200px;
  --nav-h: 72px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { max-width: 68ch; }

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

section {
  padding-block: clamp(4rem, 8vw, 5.5rem);
}

.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 3rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(74,103,65,.35);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 4px 14px rgba(201,169,110,.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}

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

.btn-sm {
  font-size: .82rem;
  padding: .55rem 1.25rem;
}

.btn-lg {
  font-size: 1rem;
  padding: .9rem 2.2rem;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

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

.card h3 {
  font-size: 1.3rem;
  margin-bottom: .6rem;
}

.card p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.card-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--transition), color var(--transition);
}

.card-link:hover {
  color: var(--gold);
  gap: .55rem;
}

/* ── Grid helpers ─────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

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

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(250,250,248,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition),
              background var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.nav-logo-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -.02em;
}

.nav-logo-tag {
  font-size: .67rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: var(--green-pale);
}

.nav-links a.active {
  font-weight: 600;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: .25rem;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--green);
  background: var(--green-pale);
}

.nav-dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: .6rem .9rem;
  font-size: .88rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-menu a:hover {
  background: var(--green-pale);
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius-sm);
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: 1rem;
  flex-direction: column;
  gap: .25rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a,
.nav-mobile-services-toggle {
  display: block;
  padding: .7rem 1rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.nav-mobile a:hover,
.nav-mobile-services-toggle:hover {
  background: var(--green-pale);
  color: var(--green);
}

.nav-mobile-sub {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  gap: .15rem;
}

.nav-mobile-sub.open {
  display: flex;
}

.nav-mobile-sub a {
  font-size: .86rem;
  padding: .5rem .9rem;
}

.nav-mobile .btn {
  margin-top: .5rem;
  width: 100%;
  justify-content: center;
}

/* ── Page top offset ──────────────────────────────────────── */
.page-top {
  padding-top: var(--nav-h);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, var(--green-pale) 0%, var(--white) 55%, var(--gold-pale) 100%);
  padding-block: clamp(3rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,103,65,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.hero h1 {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 50ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 320px;
  height: 340px;
}

.hero-stat-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
}

.hero-stat-card:nth-child(1) {
  top: 0; left: 0;
  width: 200px;
}

.hero-stat-card:nth-child(2) {
  top: 80px; right: 0;
  width: 190px;
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.hero-stat-card:nth-child(3) {
  bottom: 0; left: 30px;
  width: 210px;
}

.hero-stat-card .stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  display: block;
  margin-bottom: .25rem;
}

.hero-stat-card:nth-child(2) .stat-num {
  color: var(--gold);
}

.hero-stat-card .stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-stat-card:nth-child(2) .stat-label {
  color: rgba(255,255,255,.75);
}

/* ── Page hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding-block: clamp(3rem, 7vw, 5rem);
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: .75rem;
}

.page-hero .lead {
  color: rgba(255,255,255,.8);
  max-width: 56ch;
  margin-inline: auto;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.25rem;
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}

.page-hero .breadcrumb a:hover {
  color: var(--white);
}

.page-hero .breadcrumb-sep {
  opacity: .5;
}

/* ── Services section ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}

/* ── About / Value strip ──────────────────────────────────── */
.values-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.value-icon {
  font-size: 1.75rem;
  margin-bottom: .25rem;
}

.value-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
}

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

/* ── Trust / Feature section ──────────────────────────────── */
.trust-section {
  background: var(--green);
  color: var(--white);
}

.trust-section .section-label {
  color: var(--gold-light);
}

.trust-section h2 {
  color: var(--white);
}

.trust-section .section-intro {
  color: rgba(255,255,255,.75);
}

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

.trust-item {
  padding: 1.75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.trust-item:hover {
  background: rgba(255,255,255,.12);
}

.trust-item .t-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.trust-item h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.trust-item p {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  max-width: none;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--green-pale) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: .75rem;
}

.cta-banner p {
  color: var(--text-muted);
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── About preview ────────────────────────────────────────── */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-text .section-label {
  display: inline-block;
  margin-bottom: .75rem;
}

.about-preview-text h2 {
  margin-bottom: 1rem;
}

.about-preview-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about-visual {
  background: linear-gradient(145deg, var(--green-pale), var(--gold-pale));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.about-stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  min-width: 3rem;
}

.about-stat-text {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Service detail ───────────────────────────────────────── */
.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.service-body h2 {
  margin-bottom: 1rem;
}

.service-body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-includes {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
}

.service-includes h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.service-includes ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.service-includes li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .92rem;
  color: var(--text-muted);
}

.service-includes li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05em;
}

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

.benefit-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.benefit-card .b-icon {
  font-size: 1.6rem;
  margin-bottom: .75rem;
}

.benefit-card h4 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
}

.benefit-card p {
  font-size: .88rem;
  color: var(--text-muted);
  max-width: none;
}

/* ── Contact form ─────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
}

.contact-detail-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  font-weight: 600;
}

.contact-detail-value {
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74,103,65,.12);
  background: var(--white);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  width: 100%;
  justify-content: center;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 740px;
  margin-inline: auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--green);
  transition: transform var(--transition);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 1.4rem 1.25rem;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Training cards ───────────────────────────────────────── */
.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--gold-pale);
  color: var(--gold-dark);
  border: 1px solid var(--gold-light);
  align-self: flex-start;
}

.course-card h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}

.course-card .course-desc {
  color: var(--text-muted);
  font-size: .95rem;
}

.course-card .course-highlight {
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  font-size: .9rem;
  color: var(--green-dark);
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

.course-card .course-highlight::before {
  content: '★';
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Legal pages ──────────────────────────────────────────── */
.legal-body {
  max-width: 780px;
  margin-inline: auto;
}

.legal-body h2 {
  font-size: 1.55rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}

.legal-body h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.legal-body p {
  color: var(--text-muted);
  margin-bottom: .9rem;
  max-width: none;
}

.legal-body ul {
  padding-left: 1.25rem;
  margin-bottom: .9rem;
}

.legal-body ul li {
  list-style: disc;
  color: var(--text-muted);
  margin-bottom: .4rem;
  font-size: .95rem;
}

.legal-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-updated {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  display: block;
}

/* ── Portal ───────────────────────────────────────────────── */
.portal-hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--green-pale) 0%, var(--white) 60%, var(--gold-pale) 100%);
  text-align: center;
}

.portal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}

.portal-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: .25rem;
}

.portal-subtitle {
  font-size: .82rem;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2rem;
}

.portal-notice {
  background: var(--green-pale);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  font-size: .88rem;
  color: var(--green-dark);
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.75);
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}

.footer-brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: .25rem;
}

.footer-brand-tag {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.65;
  max-width: 36ch;
  color: rgba(255,255,255,.6);
}

.footer-col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: rgba(255,255,255,.8);
}

/* ── Floating WhatsApp ────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}

.wa-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.wa-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37,211,102,.5);
}

.wa-float-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.wa-float-tooltip {
  background: var(--text);
  color: var(--white);
  font-size: .78rem;
  padding: .35rem .75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition);
}

.wa-float:hover .wa-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── Cookie banner ────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform var(--transition);
}

.cookie-banner.hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.cookie-banner p {
  font-size: .88rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
}

.cookie-banner p a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}

/* ── Chatbot widget ───────────────────────────────────────── */
.chatbot-launcher {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 890;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.chatbot-bubble-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.chatbot-bubble-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

.chatbot-bubble-btn svg {
  width: 22px;
  height: 22px;
}

.chatbot-window {
  position: fixed;
  bottom: 9rem;
  right: 1.5rem;
  z-index: 905;
  width: 340px;
  max-width: calc(100vw - 2rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.97);
  transition: opacity var(--transition), transform var(--transition);
}

.chatbot-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: var(--green);
  color: var(--white);
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.chatbot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
}

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

.chatbot-name {
  font-weight: 600;
  font-size: .9rem;
}

.chatbot-status {
  font-size: .72rem;
  opacity: .75;
}

.chatbot-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  font-size: 1.1rem;
}

.chatbot-close:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.chatbot-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  max-height: 300px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-bubble {
  padding: .65rem .9rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  line-height: 1.55;
}

.chat-msg.bot .chat-bubble {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-bubble {
  background: var(--green);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .25rem;
}

.chat-quick-reply {
  padding: .35rem .75rem;
  border: 1.5px solid var(--green);
  border-radius: var(--radius-full);
  background: none;
  color: var(--green);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition), color var(--transition);
}

.chat-quick-reply:hover {
  background: var(--green);
  color: var(--white);
}

.chatbot-footer {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
}

.chatbot-wa-cta {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .65rem;
  border-radius: var(--radius-md);
  background: #25d366;
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--transition);
}

.chatbot-wa-cta:hover {
  background: #1ebe5b;
}

/* ── Nosotros ─────────────────────────────────────────────── */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mv-card {
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.mv-card.mission {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.mv-card.vision {
  background: var(--white);
}

.mv-card h3 {
  font-size: 1.35rem;
  margin-bottom: .75rem;
}

.mv-card.mission h3 {
  color: var(--white);
}

.mv-card p {
  font-size: .95rem;
  line-height: 1.7;
  max-width: none;
}

.mv-card.mission p {
  color: rgba(255,255,255,.85);
}

.mv-card.vision p {
  color: var(--text-muted);
}

/* ── Dividers ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin-block: 0;
}

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }

.bg-alt { background: var(--bg-alt); }
.bg-pale { background: var(--green-pale); }

.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }

.gap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .portal-card {
    padding: 2rem 1.5rem;
  }

  .cta-banner-actions {
    flex-direction: column;
    align-items: center;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

.nav-logo img { height: 45px; width: auto; }
.chatbot-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; margin-right: 8px; }
