:root {
  --navy-950: #061423;
  --navy-900: #0B2239;
  --navy-800: #133454;
  --slate-steel: #617382;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --amber-brand: #B87A14;
  --amber-hover: #9A650E;
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--slate-50);
  color: #0F172A;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  background-color: var(--slate-50);
  color: #0F172A;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

.font-mono, .tabular-nums {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.headline-balance {
  text-wrap: balance;
}

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

a {
  color: inherit;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .header-inner {
    height: 6rem;
    gap: 2rem;
  }
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 0.25rem;
  text-decoration: none;
}

.brand-logo {
  height: 54px;
  width: auto;
  max-width: 252px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .brand-logo {
    height: 60px;
    max-width: 312px;
  }
}

@media (min-width: 768px) {
  .brand-logo {
    height: 68px;
  }
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  color: var(--slate-600);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
  background: transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: inherit;
}

.nav-link:hover {
  color: var(--navy-900);
  border-bottom-color: var(--slate-300);
}

.nav-link.active {
  color: var(--navy-900);
  border-bottom-color: var(--amber-brand);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.5rem;
  width: 20rem;
  z-index: 50;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown.open .dropdown-panel {
  display: block;
}

.dropdown-box {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(11, 34, 57, 0.1);
  padding: 0.5rem 0;
}

.dropdown-all {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-500);
  text-decoration: none;
  border-bottom: 1px solid var(--slate-100);
}

.dropdown-all:hover {
  background: var(--slate-50);
  color: var(--navy-900);
}

.dropdown-item {
  display: block;
  padding: 0.625rem 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background: var(--slate-50);
}

.dropdown-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-brand);
}

.dropdown-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.35;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--slate-200);
  background: #fff;
}

.mobile-drawer.open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-drawer.open {
    display: none;
  }
}

.mobile-nav {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
}

.mobile-nav-link.active {
  background: var(--slate-100);
  color: var(--navy-900);
}

.mobile-sublinks {
  padding-left: 1rem;
  border-left: 1px solid var(--slate-200);
  margin-left: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-sublinks a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-600);
  text-decoration: none;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--amber-brand);
  border: 0;
  border-radius: 0.375rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--amber-hover);
}

.btn-primary-lg {
  padding: 0.75rem 1.5rem;
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy-900);
  border: 0;
  border-radius: 0.375rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
  font-family: inherit;
}

.btn-navy:hover {
  background: var(--navy-800);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: 0.375rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--navy-900);
  background: var(--slate-50);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.375rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Full-Width Hero Carousel */
.hero-section-wrap {
  background: var(--navy-950);
  border-bottom: 1px solid var(--slate-200);
}

.hero-carousel-full {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  user-select: none;
}

@media (min-width: 640px) {
  .hero-carousel-full {
    min-height: 560px;
  }
}

@media (min-width: 1024px) {
  .hero-carousel-full {
    min-height: 600px;
  }
}

.hero-slides-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.7s ease-out;
}

.hero-slide-bg {
  position: relative;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 20, 35, 0.85) 0%, rgba(6, 20, 35, 0.75) 55%, rgba(6, 20, 35, 0.92) 100%);
}

@media (min-width: 1024px) {
  .hero-overlay {
    background: linear-gradient(90deg, rgba(6, 20, 35, 0.95) 0%, rgba(6, 20, 35, 0.75) 55%, rgba(6, 20, 35, 0.35) 100%);
  }
}

.hero-content-grid {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2.5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .hero-copy {
    grid-column: span 7 / span 7;
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  color: #FBBF24;
  letter-spacing: 0.025em;
}

@media (min-width: 640px) {
  .hero-eyebrow {
    font-size: 0.875rem;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 2.95rem;
  }
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.65;
  color: #E2E8F0;
  max-width: 42rem;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}

.hero-card-col {
  display: flex;
}

@media (min-width: 1024px) {
  .hero-card-col {
    grid-column: span 5 / span 5;
    justify-content: flex-end;
  }
}

.hero-service-card {
  width: 100%;
  max-width: 28rem;
  background: rgba(6, 20, 35, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  padding: 1.25rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  .hero-service-card {
    padding: 1.5rem;
  }
}

.hero-service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-service-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #FBBF24;
}

.hero-arrows {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-arrow-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hero-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  color: #fff;
}

.hero-service-desc {
  font-size: 0.875rem;
  color: #E2E8F0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FBBF24;
  text-decoration: none;
}

.hero-service-link:hover {
  color: #FCD34D;
}

.hero-dots-wrap {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  z-index: 10;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-dot {
  height: 6px;
  width: 20px;
  border-radius: 2px;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
  width: 40px;
  background: var(--amber-brand);
}

/* Trust Strip */
.trust-strip {
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
}

.trust-grid {
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

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

.trust-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-900);
}

.trust-desc {
  font-size: 0.75rem;
  color: var(--slate-600);
  margin-top: 0.125rem;
}

/* Editorial Sections */
.section-pad {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .section-pad {
    padding: 5rem 0;
  }
}

.section-white {
  background: #fff;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-white-bottom {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
}

.section-white-top {
  background: #fff;
  border-top: 1px solid var(--slate-200);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-brand);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.875rem;
  }
}

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy-900);
}

@media (min-width: 640px) {
  .page-title {
    font-size: 2.25rem;
  }
}

.section-header-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .section-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.text-link:hover {
  color: var(--amber-brand);
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

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

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.split-12 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .split-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3rem;
  }
  .col-span-5 {
    grid-column: span 5 / span 5;
  }
  .col-span-6 {
    grid-column: span 6 / span 6;
  }
  .col-span-7 {
    grid-column: span 7 / span 7;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  padding: 1.75rem;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber-brand);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--navy-900);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.body-copy {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.65;
}

.media-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.media-card-alt {
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: var(--slate-200);
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--slate-100);
  position: relative;
}

.aspect-16-9 img,
.aspect-4-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-body {
  padding: 1.5rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.meta-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-500);
}

.card-footer-line {
  padding-top: 0.75rem;
  border-top: 1px solid var(--slate-100);
  font-size: 0.75rem;
}

/* Horizontal Service Row (servicios.php) */
.service-row-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .service-row-card {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.service-row-media {
  min-height: 240px;
  background: var(--slate-100);
}

.service-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-row-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .service-row-content {
    padding: 2.25rem;
  }
}

.deliverables-mini-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
}

@media (min-width: 640px) {
  .deliverables-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.deliverables-mini-grid li {
  border-top: 1px solid var(--slate-100);
  padding-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
}

/* Conversion Band */
.cta-band {
  background: var(--navy-900);
  color: #fff;
  padding: 3.5rem 0;
}

.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cta-band-inner {
    flex-direction: row;
    align-items: center;
  }
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  color: #fff;
}

@media (min-width: 640px) {
  .cta-band h2 {
    font-size: 1.875rem;
  }
}

.cta-band p {
  color: var(--slate-300);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Filter Bar & Lightbox (proyectos.php) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  margin-bottom: 2.5rem;
  width: fit-content;
  max-width: 100%;
}

.filter-tab {
  padding: 0.5rem 0.875rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  color: var(--slate-600);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.filter-tab:hover {
  color: var(--navy-900);
}

.filter-tab.active {
  background: #fff;
  color: var(--navy-900);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.project-zoom-btn {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.project-zoom-btn img {
  transition: transform 0.3s ease;
}

.project-zoom-btn:hover img {
  transform: scale(1.03);
}

.zoom-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(11, 34, 57, 0.85);
  color: #fff;
  padding: 0.5rem;
  border-radius: 0.375rem;
  display: inline-flex;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 20, 35, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  max-width: 48rem;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-900);
  border: 1px solid var(--slate-200);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Contact & Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.375rem;
  background: #fff;
  color: #0F172A;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--amber-brand);
  box-shadow: 0 0 0 2px rgba(184, 122, 20, 0.25);
}

.alert-success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.375rem;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #064E3B;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.alert-error {
  padding: 1rem;
  border-radius: 0.375rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #7F1D1D;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-300);
  border-top: 1px solid var(--navy-800);
}

.footer-grid {
  padding: 3.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .footer-col-4 { grid-column: span 4 / span 4; }
  .footer-col-3 { grid-column: span 3 / span 3; }
  .footer-col-2 { grid-column: span 2 / span 2; }
}

.footer-logo-box {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
}

.footer-logo-img {
  height: 58px;
  width: auto;
  max-width: 276px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .footer-logo-img {
    height: 68px;
  }
}

.site-footer h3 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--navy-800);
}

.footer-bottom-inner {
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #94A3B8;
}

@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
  }
}

/* Floating WhatsApp Button */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
}

.whatsapp-fab:hover {
  background: #1EBE5D;
  transform: scale(1.06);
}

.whatsapp-tooltip {
  display: none;
  position: absolute;
  right: 64px;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
  .whatsapp-fab:hover .whatsapp-tooltip {
    display: block;
  }
}
