/* ===== TOKENS ===== */
:root {
  --color-dark: #011D30;
  --color-mid: #005E85;
  --color-accent: #C9A96E;
  --color-light: #F5F2EE;
  --color-white: #FFFFFF;
  --color-text: #2C2C2C;
  --color-muted: #6B6B6B;
  --color-border: #E0DADA;
  --color-wa: #25D366;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --radius: 4px;
  --shadow: 0 4px 24px rgba(1, 29, 48, .12);
  --transition: .3s ease;

  --max-w: 1200px;
  --header-h: 72px;
}

/* ===== DARK MODE ===== */
:root.dark-mode {
  --color-dark: #F5F2EE;
  --color-text: #F5F2EE;
  --color-light: #1a1a1a;
  --color-white: #2C2C2C;
  --color-muted: #999999;
  --color-border: #404040;
}

body.dark-mode {
  background: #1a1a1a;
  color: #F5F2EE;
}

body.dark-mode .hero__overlay {
  background: linear-gradient(to right, rgba(26, 26, 26, .75) 0%, rgba(26, 26, 26, .3) 100%);
}

body.dark-mode .header {
  background: rgba(26, 26, 26, .92);
}

body.dark-mode .carousel,
body.dark-mode .carousel__img {
  background: #2C2C2C;
}

body.dark-mode .enterprise-section {
  background: #2C2C2C;
}

body.dark-mode .enterprises-list {
  background: #0f0f0f;
}

body.dark-mode .filters-bar {
  background: #2C2C2C;
  border-bottom-color: #404040;
}

body.dark-mode .custom-select__display,
body.dark-mode .custom-select__menu {
  background: #2C2C2C;
  border-color: #404040;
  color: #F5F2EE;
}

body.dark-mode .custom-option:hover {
  background: rgba(255, 255, 255, .1);
}

body.dark-mode .custom-select__display {
  color: #F5F2EE !important;
}

body.dark-mode .hero__title {
  color: #FFFFFF !important;
}

/* ===== ACCESSIBILITY ===== */
.skip-link,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  z-index: 1000;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 20px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: var(--color-dark);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
}

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

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

ul {
  list-style: none;
}

input,
select,
textarea,
button {
  font-family: inherit;
}

/* ===== UTILITIES ===== */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section-label {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 560px;
}

.section-header {
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: #b8924f;
  border-color: #b8924f;
}

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

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

.btn--ghost {
  background: rgba(255, 255, 255, .12);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, .5);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .25);
}

.btn--whatsapp {
  background: var(--color-wa);
  color: var(--color-white);
  border-color: var(--color-wa);
  margin-top: 24px;
}

.btn--whatsapp:hover {
  background: #1ebe5a;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--sm {
  padding: 10px 20px;
  font-size: .8rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(1, 29, 48, .92);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

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

.header__logo-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__logo {
  display: flex;
  align-items: center;
  width: 66px;
  height: 64px;
  cursor: pointer;
  flex-shrink: 0;
}

.header__creci {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF !important;
  letter-spacing: .05em;
  white-space: nowrap;
}

.header__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: transform .3s ease, box-shadow .3s ease;
}

.logo-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 499;
  display: none;
}

.logo-overlay.active {
  display: block;
}

.header__nav {
  margin-right: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__accessibility-icon {
  width: 20px;
  height: 20px;
  margin-right: 20px;
}

/* ===== DARK MODE TOGGLE ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 1.2rem;
}

.theme-toggle:focus,
.theme-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.theme-toggle__icon {
  font-size: 1.6rem;
  color: #FFFFFF !important;
}

.theme-toggle__switch {
  position: relative;
  width: 50px;
  height: 28px;
  background: rgba(255, 255, 255, .2);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background .3s ease;
  padding: 2px;
}

.theme-toggle__switch.active {
  background: var(--color-accent);
}

.theme-toggle__circle {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--color-white);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: left .3s ease;
}

.theme-toggle__switch.active .theme-toggle__circle {
  left: 24px;
}

.header__nav a {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  transition: var(--transition);
}

.header__nav a:hover,
.header__nav a:focus,
.header__nav a:focus-visible {
  color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 55vh;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__slide.active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(1, 29, 48, .75) 0%, rgba(1, 29, 48, .3) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 680px;
  padding-top: var(--header-h);
}

.hero__label {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero__dot:focus,
.hero__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.hero__dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* ===== FEATURES ===== */
.features {
  background: var(--color-dark);
  padding: 64px 0;
}

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

.feature-card {
  color: var(--color-white);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.6;
}

/* ===== ENTERPRISES ===== */
.enterprises {
  padding: 96px 0;
  background: var(--color-light);
}

.enterprises__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.enterprise-card {
  background: var(--color-white);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.enterprise-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(1, 29, 48, .16);
}

.enterprise-card__img {
  position: relative;
  height: 240px;
  background-size: cover;
  background-position: center;
}

.enterprise-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-mid);
  color: var(--color-white);
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
}

.enterprise-card__badge--gold {
  background: var(--color-accent);
  color: var(--color-dark);
}

.enterprise-card__body {
  padding: 24px;
}

.enterprise-card__body h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.enterprise-card__body p {
  font-size: .875rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.enterprise-card__props {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.enterprise-card__props li {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-mid);
  background: rgba(0, 94, 133, .08);
  padding: 4px 10px;
  border-radius: 2px;
}

/* ===== GALLERY ===== */
.gallery {
  padding: 96px 0;
  overflow: hidden;
}

.gallery__track {
  display: flex;
  gap: 16px;
  padding: 0 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__track img {
  height: 380px;
  width: auto;
  min-width: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.gallery__track img:hover {
  transform: scale(1.02);
}

.gallery__controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.gallery__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-dark);
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-dark);
  transition: var(--transition);
}

.gallery__btn:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

/* ===== ABOUT ===== */
.about {
  padding: 24px 0 96px;
  background: var(--color-light);
}

.about__content {}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: calc(var(--radius) * 2);
}

.about__content p {
  color: var(--color-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.stat span {
  font-size: .75rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* ===== CONTACT ===== */
.contact {
  padding: 96px 0;
  background: var(--color-dark);
}

.contact .section-label {
  color: var(--color-accent);
}

.contact .section-title {
  color: var(--color-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact__info>p {
  color: rgba(255, 255, 255, .7);
  line-height: 1.8;
}

.contact__form {
  background: var(--color-white);
  padding: 40px;
  border-radius: calc(var(--radius) * 2);
}

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

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
}

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

.form-group textarea {
  resize: vertical;
}

.form-note {
  font-size: .75rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
  background: #000D18;
  padding: 40px 0;
  color: rgba(255, 255, 255, .6);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
}

.footer__role {
  font-size: .75rem;
  color: var(--color-accent);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: .85rem;
  transition: var(--transition);
}

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

.footer__copy {
  font-size: .75rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-height: 85vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next,
.lightbox__start,
.lightbox__end {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: var(--color-white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__start:hover,
.lightbox__end:hover,
.lightbox__close:focus,
.lightbox__prev:focus,
.lightbox__next:focus,
.lightbox__start:focus,
.lightbox__end:focus {
  background: rgba(255, 255, 255, .25);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.lightbox__close {
  top: 20px;
  right: 20px;
}

.lightbox__start {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: 76px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 76px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__end {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__count {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .12);
  color: var(--color-white);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__image {
    display: none;
  }

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

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

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-dark);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

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

  .header__burger {
    display: flex;
  }

  .hero {
    height: 35vh;
    min-height: 220px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact__form {
    padding: 24px;
  }

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

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

  .gallery__track img {
    height: 260px;
    min-width: 220px;
  }
}