/* ============================
   LumiSmart Consulting & Academy
   Design system
   ============================ */

:root {
  --navy-900: #001A35;
  --navy-800: #072544;
  --navy-700: #0F3358;
  --blue-accent: #1B5175;
  --gold: #FFBE00;
  --gold-dark: #E0A600;
  --ink: #1C2B3A;
  --gray-600: #5B6B7A;
  --gray-300: #E3E8ED;
  --gray-100: #F6F8FA;
  --white: #FFFFFF;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(0, 26, 53, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 26, 53, 0.14);
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--navy-900);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 16px;
  color: var(--gray-600);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-accent);
  background: rgba(27, 81, 117, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.05rem;
}

.nav-brand img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--gray-100);
}

.nav-links a.active {
  background: var(--navy-900);
  color: var(--white);
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow);
    display: none;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    padding: 12px 16px;
  }

  .nav-cta {
    margin: 8px 0 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 85% 15%, rgba(255, 190, 0, 0.16), transparent 45%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 65%, var(--blue-accent) 130%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero .container {
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow {
  background: rgba(255, 190, 0, 0.15);
  color: var(--gold);
}

.hero-copy h1 {
  color: var(--white);
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 1.6rem;
  color: var(--gold);
}

.hero-stats div span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

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

.hero-art .logo-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(6px);
}

.hero-art img {
  width: 260px;
  border-radius: var(--radius-sm);
}

.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 64px 0;
}

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

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
  margin: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--gray-100);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head p {
  margin: 0;
}

/* ---------- Pillar cards ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 36px 30px 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gray-300);
  transition: background 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 81, 117, 0.28);
}

.pillar-card:hover::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

/* Numeración "01 ————" que reemplaza al icono */
.pillar-number {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--blue-accent);
  margin-bottom: 18px;
}

.pillar-number::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.pillar-card > p {
  font-size: 0.95rem;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gray-300);
}

.pillar-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--gray-600);
}

.pillar-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.pillar-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 2px;
  background: var(--gold);
}

.pillar-card .pillar-more {
  margin-top: 22px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.pillar-card .pillar-more:hover {
  gap: 12px;
}

/* ---------- Detailed service block (servicios.html) ---------- */
.pillar-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-300);
}

.pillar-block:last-child {
  border-bottom: none;
}

.pillar-block .pillar-label {
  position: sticky;
  top: 96px;
  padding-left: 26px;
  border-left: 3px solid var(--gold);
}

.pillar-block .pillar-label .pillar-number {
  margin-bottom: 14px;
}

.pillar-block .pillar-label h2 {
  margin-bottom: 14px;
}

.pillar-block .pillar-label p {
  font-size: 0.98rem;
  margin: 0;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.service-card h4 {
  margin: 0 0 8px;
  color: var(--navy-900);
  font-size: 1rem;
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- About / mission ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.mission-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}

.mission-card::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--gold);
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}

.mission-card.no-quote::before {
  content: none;
}

.mission-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-style: italic;
  margin: 24px 0 0;
}

.mission-pillars {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.mission-pillars li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mission-pillars li:first-child {
  border-top: none;
  padding-top: 0;
}

.mission-pillars li > span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-top: 3px;
  flex-shrink: 0;
}

.mission-pillars strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 2px;
}

.mission-pillars div {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat-row .stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--navy-900);
}

.stat-row .stat span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-100);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes teamLinkedinPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 190, 0, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(255, 190, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 190, 0, 0); }
}

.team-linkedin {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-900);
  color: var(--white);
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: teamLinkedinPulse 2.2s ease-out infinite;
  transition: transform 0.15s ease, background 0.15s ease;
}

.team-linkedin:hover {
  background: var(--blue-accent);
  transform: translateY(-2px) scale(1.04);
  animation-play-state: paused;
}

.team-linkedin svg {
  width: 15px;
  height: 15px;
  fill: var(--gold);
  flex-shrink: 0;
}

.team-info {
  padding: 20px;
}

.team-info h3 {
  margin-bottom: 2px;
  font-size: 1.05rem;
}

.team-role {
  color: var(--blue-accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  display: block;
}

.team-info ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.team-info li {
  margin-bottom: 6px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-accent));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--white);
  margin: 0 0 6px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

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

.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info-card h3 {
  color: var(--white);
}

.contact-channel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

a.contact-channel:hover {
  transform: translateX(4px);
}

a.contact-channel:hover .icon {
  background: var(--gold);
}

a.contact-channel:hover .icon svg {
  stroke: var(--navy-900);
}

.contact-channel .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 190, 0, 0.14);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel .icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-channel strong {
  display: block;
  color: var(--white);
}

.contact-channel span,
.contact-channel a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 4px;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.success {
  display: block;
  background: rgba(34, 168, 100, 0.12);
  color: #1a7a48;
}

.form-status.error {
  display: block;
  background: rgba(214, 62, 62, 0.1);
  color: #b23434;
}

/* ---------- Carrusel de LinkedIn ---------- */
.linkedin-section {
  display: none; /* JS lo muestra solo si encuentra imágenes */
}

.linkedin-section.is-ready {
  display: block;
}

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  margin: 0 -12px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 12px;
  min-width: 0;
}

.post-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.post-card .post-media {
  aspect-ratio: 1 / 1;
  background: var(--gray-100);
  overflow: hidden;
}

.post-card .post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card .post-caption {
  padding: 16px 18px;
  font-size: 0.9rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-card .post-caption span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .post-caption svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--blue-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-nav {
  position: absolute;
  top: calc(50% - 34px);
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 5;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.carousel-nav:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
}

.carousel-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.carousel-dots button.active {
  background: var(--gold);
  width: 26px;
  border-radius: 999px;
}

.linkedin-footer-cta {
  text-align: center;
  margin-top: 36px;
}

@keyframes followBtnPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 190, 0, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(255, 190, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 190, 0, 0); }
}

.follow-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.follow-btn {
  animation: followBtnPulse 2.4s ease-out infinite;
}

.follow-btn:nth-child(2) { animation-delay: 0.4s; }
.follow-btn:nth-child(3) { animation-delay: 0.8s; }

.follow-btn:hover {
  animation-play-state: paused;
}

.follow-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.follow-btn.btn-dark svg { fill: var(--gold); }
.follow-btn.btn-outline svg { fill: var(--navy-900); }

@media (max-width: 960px) {
  .carousel-slide { flex-basis: 50%; }
  .carousel-nav.prev { left: 0; }
  .carousel-nav.next { right: 0; }
}

@media (max-width: 620px) {
  .carousel-slide { flex-basis: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.social-links a:hover {
  background: var(--gold);
}

.social-links a svg {
  width: 17px;
  height: 17px;
  stroke: rgba(255, 255, 255, 0.8);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s ease;
}

.social-links a:hover svg {
  stroke: var(--navy-900);
}

/* ---------- Anclas de landing (una sola página) ---------- */
section[id] {
  scroll-margin-top: 84px;
}

/* ---------- Tabs de categorías de servicios ---------- */
.service-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.service-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-800);
  cursor: pointer;
  transition: all 0.15s ease;
}

.service-tab .tab-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--blue-accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.service-tab:hover {
  border-color: var(--blue-accent);
}

.service-tab.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.service-tab.active .tab-number {
  background: var(--gold);
  color: var(--navy-900);
}

.service-category {
  display: none;
}

.service-category.active {
  display: block;
}

.category-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.category-intro .pillar-number {
  justify-content: center;
}

/* ---------- Acordeón de servicios (con caso de uso visual) ---------- */
.service-accordion {
  display: grid;
  gap: 16px;
}

.service-item {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-item[open] {
  border-color: rgba(27, 81, 117, 0.3);
  box-shadow: var(--shadow);
}

.service-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.02rem;
}

.service-item summary::-webkit-details-marker {
  display: none;
}

.service-item summary .item-number {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--blue-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.service-item summary .item-title {
  flex: 1;
}

.service-item summary .item-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.service-item summary .item-chevron svg {
  width: 12px;
  height: 12px;
  stroke: var(--navy-800);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item[open] summary .item-chevron {
  background: var(--gold);
  border-color: var(--gold);
  transform: rotate(45deg);
}

.service-item-body {
  padding: 0 26px 28px 78px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
}

.service-item-body p.item-summary {
  margin: 0 0 16px;
  font-size: 0.94rem;
}

.item-col h5 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-accent);
}

.item-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-col li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--gray-600);
}

.item-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

/* Mini visual "caso de uso" (mockup CSS, sin fotos) */
.item-visual {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.item-visual .visual-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.item-visual svg {
  width: 100%;
  height: auto;
}

/* ---------- Escuelas de capacitación (Academia) ---------- */
.course-groups {
  display: grid;
  gap: 22px;
}

.course-group {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 30px;
}

.course-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.course-group-head .group-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(27, 81, 117, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.course-group-head .group-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue-accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-group-head h3 {
  margin: 0 0 2px;
}

.course-group-head p {
  margin: 0;
  font-size: 0.9rem;
}

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

.course-card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.course-card:hover,
.course-card[open] {
  border-color: var(--gold);
  background: rgba(255, 190, 0, 0.05);
}

.course-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.94rem;
}

.course-card summary::-webkit-details-marker {
  display: none;
}

.course-card .course-hours {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--white);
  background: var(--blue-accent);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.course-card .course-temario {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.exec-table,
.cert-cards {
  margin-top: 6px;
}

.exec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.92rem;
}

.exec-row:last-child {
  border-bottom: none;
}

.exec-row strong {
  color: var(--navy-900);
}

.exec-row span {
  color: var(--gray-600);
  font-size: 0.85rem;
}

.cert-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cert-card {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.cert-card strong {
  display: block;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.cert-card ul {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--gray-600);
}

.cert-card .cert-duration {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-accent);
}

/* ---------- WhatsApp flotante ---------- */
@keyframes whatsappPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: transform 0.15s ease;
  animation: whatsappPulseRing 2.2s ease-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  animation-play-state: paused;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
  animation: iconBounce 1.8s ease-in-out infinite;
}

/* ---------- Chatbot ---------- */
@keyframes chatbotPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(255, 190, 0, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(255, 190, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 190, 0, 0); }
}

.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy-900);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 200;
  transition: transform 0.15s ease, background 0.15s ease;
  animation: chatbotPulseRing 2.2s ease-out infinite 1.1s;
}

.chatbot-toggle:hover {
  background: var(--navy-700);
  transform: scale(1.1);
  animation-play-state: paused;
}

.chatbot-toggle.is-open {
  animation: none;
}

.chatbot-toggle svg {
  width: 26px;
  height: 26px;
}

.chatbot-toggle .chatbot-chat-icon {
  width: 24px;
  height: 24px;
  fill: var(--gold);
  stroke: none;
  animation: iconBounce 1.8s ease-in-out infinite, sparkleSpin 5s linear infinite;
}

.chatbot-toggle .chatbot-close-icon {
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes sparkleSpin {
  0%, 80%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(20deg); }
}

.chatbot-toggle .chatbot-close-icon {
  display: none;
}

.chatbot-toggle.is-open .chatbot-chat-icon { display: none; }
.chatbot-toggle.is-open .chatbot-close-icon { display: block; }

.chatbot-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 199;
  border: 1px solid var(--gray-300);
}

.chatbot-window.is-open {
  display: flex;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-accent));
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  position: relative;
  flex-shrink: 0;
}

.chatbot-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(255, 190, 0, 0.5);
}

@keyframes onlineDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  50% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); }
}

.chatbot-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #34D399;
  border: 2px solid var(--navy-900);
  animation: onlineDotPulse 1.8s ease-in-out infinite;
}

.chatbot-header strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.95rem;
}

.ia-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  padding: 2px 7px;
  border-radius: 999px;
}

.chatbot-header span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--gray-100);
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-msg.bot {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--navy-900);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: underline;
}

.chat-msg.bot a { color: var(--blue-accent); }

.chat-msg.typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-msg.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-accent);
  animation: typingDot 1.1s ease-in-out infinite;
}

.chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
  background: var(--gray-100);
}

.chat-quick-replies button {
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-quick-replies button:hover {
  border-color: var(--gold);
  background: rgba(255, 190, 0, 0.1);
}

.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--gray-300);
  background: var(--white);
}

.chatbot-input input {
  flex: 1;
  border: 1.5px solid var(--gray-300);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.88rem;
}

.chatbot-input input:focus {
  outline: none;
  border-color: var(--blue-accent);
}

.chatbot-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chatbot-input button svg {
  width: 18px;
  height: 18px;
  stroke: var(--navy-900);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

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

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-block {
    grid-template-columns: 1fr;
  }

  .pillar-block .pillar-label {
    position: static;
  }

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

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

  .service-item-body {
    grid-template-columns: 1fr;
    padding: 0 22px 24px 22px;
  }

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

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

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

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

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

  .exec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .chatbot-window {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 90px;
  }

  .whatsapp-float { left: 16px; bottom: 16px; }
  .chatbot-toggle { right: 16px; bottom: 16px; }
}
