/*
  Safety Sur Gestión S.R.L. - Stylesheet
  ======================================
*/

/* Self-hosted fonts (latin subset) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-700.woff2') format('woff2');
}

:root {
  /* Colors */
  --c-primary: #264010;
  --c-secondary: #337013;
  --c-accent: #E56105;
  --c-text-dark: #1E2619;
  --c-text-muted: #525E4D;
  --c-bg-light: #F4F7F2;
  --c-white: #FFFFFF;
  --c-border: #D8E0D5;

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--c-text-dark);
  background-color: var(--c-bg-light);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--c-primary);
  margin-bottom: var(--sp-sm);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--c-primary);
  transition: color var(--transition);
}

a:hover {
  color: var(--c-accent);
}

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

ul {
  list-style: none;
}

/* Layout Classes */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: var(--sp-xl) 0;
  background-color: var(--c-white);
}

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

.grid {
  display: grid;
  gap: var(--sp-md);
}

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

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Components: Typography */
.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--sp-md);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--c-accent);
  border-radius: 2px;
}

.section-title.left::after {
  left: 0;
  transform: none;
}

.section-subtitle {
  color: var(--c-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto var(--sp-lg);
}

.section-subtitle.left {
  margin-left: 0;
}

/* Components: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background-color: var(--c-accent);
  color: var(--c-white);
}

.btn--primary:hover {
  background-color: #c95504;
  /* Slightly darker orange */
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 97, 5, 0.3);
}

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

.btn--secondary:hover {
  background-color: var(--c-primary);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 64, 16, 0.3);
}

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

.btn--outline:hover {
  background-color: var(--c-primary);
  color: var(--c-white);
}

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

.btn--white:hover {
  background-color: var(--c-bg-light);
  color: var(--c-primary);
  transform: translateY(-2px);
}

/* Components: Header & Navbar */
.header {
  background-color: var(--c-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height 0.3s ease;
}

.nav__logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

.nav__menu {
  display: flex;
  gap: var(--sp-md);
}

.nav__link {
  font-weight: 500;
  color: var(--c-text-dark);
  font-family: var(--font-heading);
}

.nav__link:hover,
.nav__link.active {
  color: var(--c-accent);
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--c-primary);
  background: none;
  border: none;
}

@media (min-width: 768px) {
  .nav__cta {
    display: block;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--c-white);
    flex-direction: column;
    align-items: center;
    padding-top: var(--sp-lg);
    transition: left var(--transition), top 0.3s ease, height 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .header.scrolled .nav__menu {
    top: 65px;
    height: calc(100vh - 65px);
  }

  .nav__menu.active {
    left: 0;
  }

  .nav__menu li {
    font-size: 1.2rem;
  }

  .nav__toggle {
    display: block;
  }
}

/* Components: Hero */
.hero {
  background-color: #1a2e08;
  color: var(--c-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, transparent 20%, var(--c-secondary) 80%);
  opacity: 0.25;
  z-index: 0;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

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

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  max-width: 620px;
}

.hero__title {
  color: var(--c-white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: var(--sp-sm);
  line-height: 1.15;
  font-weight: 700;
}

.hero__title span {
  color: var(--c-accent);
}

.hero__text {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: var(--sp-md);
  max-width: 560px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero__btn {
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
}

.hero__btn--secondary {
  background-color: var(--c-white);
  color: var(--c-text-dark);
  border-color: var(--c-white);
}

.hero__btn--secondary:hover {
  background-color: #f0f0f0;
  color: var(--c-text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

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

@media (max-width: 900px) {
  .hero {
    padding: 3.5rem 0;
  }

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

  .hero__image {
    aspect-ratio: 16 / 10;
    max-width: 520px;
    width: 100%;
  }
}

/* Components: Cards */
.card {
  background-color: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(38, 64, 16, 0.12);
}

.card__icon {
  font-size: 1.7rem;
  color: #1a2e08;
  margin-bottom: 1rem;
  background-color: #ecece7;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.card.card--primary .card__icon {
  color: #1a2e08;
  background-color: #ecece7;
}

.card__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1a2e08;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.card__text {
  color: #6b6b6b;
  flex-grow: 1;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Misión / Visión / Valores — overrides de marca */
.mvv-section {
  background-color: #f7f6f1;
}

.mvv-section .card {
  border-radius: 12px;
}

.mvv-section .card__icon--accent {
  background-color: #fce8d8;
  color: #e8792c;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 1.7rem;
}

.card--dark {
  background-color: #25390f;
  border-color: #25390f;
  color: #ffffff;
  border-radius: 12px;
}

.card--dark .card__title {
  color: #ffffff;
}

.card--dark .card__text {
  color: #d8e0c9;
}

.card--dark .card__text strong {
  color: #ffffff;
}

.card--dark .card__icon--accent {
  background-color: #fce8d8;
  color: #e8792c;
}

.card--dark .bx-check {
  color: #e8792c;
}

/* NSC Authorized — hero badge & trust elements */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  margin-bottom: 1rem;
}

.hero__badge i {
  color: #e8792c;
  font-size: 1rem;
}

.nsc-trust {
  background: #fff;
  border-top: 1px solid #ecece7;
  border-bottom: 1px solid #ecece7;
  padding: 0.85rem 0;
}

.nsc-trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  text-align: center;
}

.nsc-trust__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #25390f;
  color: #fff;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nsc-trust__text {
  font-size: 0.84rem;
  color: #525E4D;
  font-weight: 500;
}

.nsc-trust__text strong {
  color: #25390f;
}

.card--nsc-featured {
  border-color: rgba(232, 121, 44, 0.35) !important;
  position: relative;
}

.card--nsc-featured::before {
  content: 'NSC AUTORIZADO';
  position: absolute;
  top: -10px;
  right: 14px;
  background: #e8792c;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.badge--nsc {
  background: #fce8d8 !important;
  color: #e8792c !important;
  border: 1px solid #f5c6a8;
}

.nsc-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fce8d8;
  color: #25390f;
  border: 1px solid #f5c6a8;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.nsc-seal i {
  color: #e8792c;
  font-size: 1.15rem;
}

.nsc-banner {
  background: #25390f;
  color: #fff;
}

.nsc-banner strong {
  color: #fff;
}

@media (max-width: 900px) {
  .hero__badge {
    font-size: 0.72rem;
  }
}

/* Features Block */
.features {
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  background-color: transparent;
  padding: 0 0 2.5rem;
}

.features .container {
  position: relative;
  z-index: 2;
}

/* Components: Footer */
.footer {
  background-color: var(--c-primary);
  color: var(--c-white);
  padding: var(--sp-lg) 0 var(--sp-md);
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.footer__logo {
  max-width: 150px;
  margin-bottom: var(--sp-sm);
  background-color: var(--c-white);
  padding: 10px;
  border-radius: var(--radius-sm);
}

.footer__text {
  color: #a0afa0;
  margin-bottom: var(--sp-sm);
}

.footer__title {
  color: var(--c-white);
  margin-bottom: var(--sp-sm);
  font-size: 1.2rem;
}

.footer__list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer__list i {
  color: var(--c-accent);
  margin-top: 5px;
}

.footer__link {
  color: #a0afa0;
}

.footer__link:hover {
  color: var(--c-white);
}

.footer__bottom {
  text-align: center;
  color: #a0afa0;
  font-size: 0.9rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--c-text-dark);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  background-color: var(--c-bg-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 3px rgba(51, 112, 19, 0.1);
  background-color: var(--c-white);
}

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

.form-message {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-weight: 500;
}

.form-message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Utility for Cursos filters */
.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--sp-lg);
}

.filter-btn {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--c-text-muted);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--c-secondary);
  color: var(--c-white);
  border-color: var(--c-secondary);
}

/* Course Card Details (Accordion) */
.course-card {
  display: flex;
  flex-direction: column;
}

.course-card.hide {
  display: none;
}

.course-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: var(--sp-sm);
}

.course-icon {
  font-size: 2rem;
  color: var(--c-primary);
  background-color: rgba(38, 64, 16, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.course-card[data-category="emergencias"] .course-icon {
  color: var(--c-accent);
  background-color: rgba(229, 97, 5, 0.1);
}

.course-card[data-category="salud"] .course-icon {
  color: #0b7285;
  background-color: rgba(11, 114, 133, 0.1);
}

.course-desc {
  color: var(--c-text-muted);
  margin-bottom: var(--sp-sm);
  flex-grow: 1;
}

.course-expand-btn {
  background: none;
  border: none;
  color: var(--c-secondary);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  font-family: var(--font-body);
  transition: color var(--transition);
}

.course-expand-btn:hover {
  color: var(--c-primary);
}

.course-expand-btn i {
  transition: transform 0.3s ease;
}

.course-expand-btn.active i {
  transform: rotate(180deg);
}

.course-detail {
  display: none;
  margin-top: var(--sp-sm);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--c-border);
}

.course-detail.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--c-text-dark);
}

.course-meta span i {
  color: var(--c-secondary);
}

.course-detail h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--c-text-dark);
}

.course-bullets {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
  list-style: disc;
  color: var(--c-text-muted);
}

/* Utilities */
.mb-1 {
  margin-bottom: var(--sp-xs);
}

.mb-2 {
  margin-bottom: var(--sp-sm);
}

.mb-3 {
  margin-bottom: var(--sp-md);
}

.mb-4 {
  margin-bottom: var(--sp-lg);
}

.text-accent {
  color: var(--c-accent);
}

.text-primary {
  color: var(--c-primary);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--c-bg-light);
  color: var(--c-text-muted);
}

.badge.nsc {
  background-color: rgba(38, 64, 16, 0.1);
  color: var(--c-primary);
}

/* About Section Image */
.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-img-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(38, 64, 16, 0.8), transparent);
  z-index: 1;
}

/* About Slider - Training Gallery */
.about-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4 / 3;
  background: var(--c-border);
  height: 400px;
}

.about-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.about-slider__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.about-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: var(--c-primary);
  font-size: 1.4rem;
  transition: background 0.2s;
}

.about-slider__nav:hover {
  background: #fff;
}

.about-slider__nav--prev {
  left: 12px;
}

.about-slider__nav--next {
  right: 12px;
}

.about-slider__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.about-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.about-slider__dot.is-active {
  background: #fff;
}

.about-img-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: var(--sp-md);
  z-index: 2;
  color: var(--c-white);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.contact-info-card {
  background-color: var(--c-primary);
  color: var(--c-white);
  padding: var(--sp-md);
  border-radius: var(--radius-md);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--c-accent);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 300px;
  background-color: var(--c-border);
}

/* ==========================================================================
   ENHANCEMENTS & INTERACTIVE ELEMENTS
   ========================================================================== */

/* 1. Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary-light));
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* 2. Header Scrolled State */
.header.scrolled {
  height: 65px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.header.scrolled .nav {
  height: 65px;
}

.header.scrolled .nav__logo img {
  height: 44px;
}

/* 3. Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* 4. Animated Counters Section */
.counters-section {
  background-color: #ecece7;
  padding: 1.5rem 0 4.5rem;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .counters-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.counter-card {
  background-color: var(--c-white);
  border-radius: 16px;
  padding: 1.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  min-height: 140px;
}

.counter-card i {
  font-size: 1.65rem;
  color: var(--c-accent);
  margin-bottom: 0.6rem;
  line-height: 1;
}

.counter-number {
  font-size: 1.85rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #1a2e08;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.counter-label {
  font-size: 0.82rem;
  color: #6b6b6b;
  margin-top: 0.2rem;
  line-height: 1.35;
  font-weight: 400;
}

/* 5. Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers */
.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

/* 6. Course Search Bar */
.course-search-container {
  max-width: 500px;
  margin: 0 auto var(--sp-md);
  position: relative;
}

.course-search-input {
  width: 100%;
  padding: 0.85rem 1.2rem 0.85rem 2.8rem;
  border: 2px solid var(--c-border);
  border-radius: 30px;
  font-family: var(--ff-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.course-search-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 10px rgba(38, 64, 16, 0.15);
}

.course-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-muted);
  font-size: 1.2rem;
}

/* 7. Contact Form Tabs (Empresarial / Individual) */
.form-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--c-border);
  padding-bottom: 0.5rem;
}

.form-tab-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: transparent;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.form-tab-btn.active {
  background-color: var(--c-primary);
  color: var(--c-white);
}

.form-group.business-only {
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* 8. Client / Industry Logo Carousel */
.logo-carousel-section {
  padding: var(--sp-md) 0;
  background-color: var(--c-bg-light);
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.logo-carousel-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll-carousel 25s linear infinite;
}

.logo-carousel-track:hover {
  animation-play-state: paused;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--c-text-muted);
  font-size: 1.1rem;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
  color: var(--c-primary);
}

.logo-item i {
  font-size: 1.8rem;
  color: var(--c-primary);
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* 9. Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 45px;
  height: 45px;
  background-color: var(--c-primary);
  color: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
}

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

.back-to-top:hover {
  background-color: var(--c-accent);
  transform: translateY(-3px);
}

/* 10. Quote Button inside Course Accordion */
.btn-quote-course {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* 11. Print CSS Rules */
@media print {

  .header,
  .footer,
  .whatsapp-float,
  .back-to-top,
  .scroll-progress,
  .cta-banner,
  .filter-bar,
  .course-search-container {
    display: none !important;
  }

  body {
    background-color: #FFF !important;
    color: #000 !important;
    font-size: 12pt;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .course-card {
    break-inside: avoid;
    border: 1px solid #CCC !important;
    box-shadow: none !important;
    margin-bottom: 1.5rem !important;
  }

  .course-detail {
    max-height: none !important;
    opacity: 1 !important;
    padding: 1rem !important;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}
/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* Utilities extracted from repeated inline styles */
.u-mt-1-right { margin-top:1rem!important;text-align:right!important; }
.u-mb-02 { margin-bottom:0.2rem!important; }
.u-mb-1 { margin-bottom:1rem!important; }
.u-mb-0 { margin-bottom:0!important; }
.u-no-underline { text-decoration:none!important; }
.nsc-logo-footer { height:30px!important;width:auto!important;background:#fff!important;border-radius:6px!important;padding:3px 5px!important; }
.nsc-seal--footer { margin-top:0.7rem!important;font-size:0.78rem!important;display:flex!important;align-items:center!important;gap:0.55rem!important;padding:0.45rem 0.7rem!important; }
.u-note { font-size:0.85rem!important;border-left:3px solid var(--c-accent)!important;padding-left:0.8rem!important; }
.u-caption-italic { font-size:0.72rem!important;color:#a0afa0!important;margin-top:0.3rem!important;font-style:italic!important; }

/* Accessibility: visible keyboard focus */
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .logo-carousel-track { animation: none !important; }
}

/* About page photo */
.about-img-wrapper--photo { min-height: 400px; height: 100%; }
.about-img-wrapper--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-wrapper--photo::before { display: none; }

/* Mobile: smaller floating buttons and compact hero actions */
@media (max-width: 600px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
    font-size: 26px;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 16px;
    left: 16px;
    font-size: 22px;
  }
  .hero__actions { gap: 0.6rem; }
  .hero__btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
}

/* Catalog: highlight NSC-certified courses */
.course-card--nsc {
  border-top: 3px solid var(--c-accent);
  background-color: #fffaf6;
}
.course-card--nsc .badge.nsc {
  background-color: var(--c-primary);
  color: var(--c-white);
}
.course-card--nsc .course-icon {
  color: var(--c-accent);
  background-color: rgba(229, 97, 5, 0.12);
}

/* Catalog: make "Ver detalles" read as a button */
.course-expand-btn {
  align-self: flex-start;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background-color: var(--c-white);
}
.course-expand-btn:hover {
  border-color: var(--c-secondary);
}

/* Counters: 3 cards, last one spans the row on 2-column mobile layout */
.counters-grid .counter-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .counters-grid .counter-card:last-child:nth-child(odd) { grid-column: auto; }
}

/* Contact form: consent checkbox and fallback link */
.form-check label { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--c-text-muted); cursor: pointer; }
.form-check input { margin-top: 0.25rem; flex-shrink: 0; }
.form-check a, .form-message a { text-decoration: underline; font-weight: 600; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.2rem; margin: var(--sp-md) 0 var(--sp-xs); color: var(--c-primary); }
.legal p { color: var(--c-text-muted); line-height: 1.7; margin-bottom: 0.8rem; }
.legal a { text-decoration: underline; }

/* Maps: click-to-load placeholder */
.map-consent { display: flex; align-items: center; justify-content: center; background-color: var(--c-border); }
.map-consent__box { text-align: center; padding: var(--sp-md); max-width: 460px; }
.map-consent__box p { margin-bottom: 0.5rem; }
.map-consent__note { font-size: 0.85rem; color: var(--c-text-muted); }
.map-consent__actions { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: var(--sp-sm); }
.map-consent__actions a { text-decoration: underline; font-weight: 600; }
.map-consent__frame { width: 100%; height: 100%; border: 0; }
