:root {
  --blue: #1B7FC9;
  --blue-dark: #0E4D7A;
  --charcoal: #1A1A1A;
  --gray: #A8AFB5;
  --light: #F4F6F8;
  --white: #FFFFFF;
  --line: #DDE4EA;
  --shadow: 0 18px 44px rgba(14, 77, 122, 0.12);
  --radius: 8px;
  --header-height: 78px;
}

/* ---------- LANGUAGE TOGGLE ---------- */
html[lang="en"] .lang-es { display: none; }
html[lang="es"] .lang-en { display: none; }

/* ---------- RESET ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue-dark);
  border-radius: var(--radius);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(221, 228, 234, 0.8);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1200px, calc(100% - 40px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { width: 248px; height: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #323844;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-menu a {
  position: relative;
  padding: 8px 0;
}

.nav-menu a::after {
  position: absolute;
  right: 0; bottom: 0; left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after { transform: scaleX(1); }

.lang-toggle {
  padding: 6px 12px;
  color: var(--blue-dark);
  background: transparent;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: var(--blue);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--charcoal);
}

/* ---------- COMMON ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--light); }

.section-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin: 0; line-height: 1.08; }

h1 {
  display: grid;
  gap: 4px;
  max-width: 660px;
  font-size: clamp(2.45rem, 5.8vw, 4.35rem);
}

h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; }
h3 { font-size: 1.16rem; }
.no-break { white-space: nowrap; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(8, 127, 193, 0.22);
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
}

.button-outline {
  color: var(--blue-dark);
  background: transparent;
  box-shadow: none;
}

.button-outline:hover,
.button-outline:focus-visible { color: var(--white); }

.button-small {
  min-height: 42px;
  padding: 10px 16px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 54px;
  align-items: center;
}

.hero-copy { max-width: 640px; }

.hero-text {
  max-width: 610px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

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

.trust-line {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
}

.hero .eyebrow { color: rgba(255, 255, 255, 0.7); }

.hero .button-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .button-outline:hover,
.hero .button-outline:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue-dark);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.hero-dot.is-active {
  background: var(--white);
  border-color: var(--white);
}

/* ---------- ABOUT ---------- */
#about { background: #E2E8EF; }

.about-intro {
  max-width: 900px;
  margin-bottom: 42px;
}

.about-intro-flex {
  display: flex;
  align-items: center;
  gap: 48px;
}

.about-intro-flex > p {
  flex: 1;
  min-width: 0;
}

.about-intro p {
  font-size: 1.1rem;
  color: #4B5360;
  line-height: 1.7;
  margin: 0;
}

.since-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  user-select: none;
  color: var(--blue-dark);
  opacity: 0.2;
}

.since-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.since-year {
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 0.9;
}

.about-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.about-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 19, 24, 0.06);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.about-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 34px rgba(27, 127, 201, 0.12);
}

.about-card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: #EFF7FC;
  color: var(--blue);
}

.about-card-icon svg { width: 24px; height: 24px; }

.about-card p { color: #4B5360; margin: 8px 0 0; }

/* ---------- SERVICES ---------- */
#services { background: var(--white); }
.card-grid { display: grid; gap: 22px; }

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

.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 19, 24, 0.06);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 34px rgba(27, 127, 201, 0.12);
}

.service-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
}

.service-icon svg { width: 24px; height: 24px; }

.card p { color: #4B5360; margin: 8px 0 0; }

/* ---------- EQUIPMENT ---------- */
.dark-section {
  color: var(--white);
  background: #155A96;
}

.dark-section .eyebrow { color: rgba(255, 255, 255, 0.7); }

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.equipment-item {
  padding: 36px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.equipment-item:last-child { border-right: none; }

.equipment-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin-bottom: 20px;
}

.equipment-photo img {
  max-height: 180px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.equipment-info h3 { color: var(--white); margin-bottom: 8px; }
.equipment-info p { color: rgba(255, 255, 255, 0.75); margin: 0; font-size: 0.95rem; }

/* ---------- CREDENTIALS ---------- */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.credential-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 19, 24, 0.06);
  text-align: center;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.credential-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 34px rgba(27, 127, 201, 0.12);
}

.credential-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #EFF7FC;
  color: var(--blue);
}

.credential-icon svg { width: 28px; height: 28px; }

.credential-card h3 { margin-bottom: 8px; }
.credential-card p { color: #4B5360; margin: 0; font-size: 0.95rem; }

/* ---------- CONTACT ---------- */
.contact-section {
  color: var(--charcoal);
  background: #E2E8EF;
}

.contact-section .eyebrow { color: var(--blue); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}

.contact-col-left { padding-right: 48px; }
.contact-col-right {
  padding-left: 48px;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  align-self: stretch;
}

.contact-col h2 { margin-bottom: 16px; }

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

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--charcoal);
}

.contact-list li:first-child { border-top: 1px solid rgba(0, 0, 0, 0.1); }

.contact-icon {
  display: flex;
  flex-shrink: 0;
  color: var(--blue);
}

.contact-icon svg { width: 18px; height: 18px; }

.contact-list a {
  color: var(--charcoal);
  transition: color 180ms ease;
}

.contact-list a:hover { color: var(--blue); }

.contact-broker-text {
  color: #4B5360;
  margin: 0 0 20px;
}

/* ---------- BROKER BTN (used in Contact right col) ---------- */
.broker-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.95rem;
  transition: background 180ms ease, color 180ms ease;
}

.broker-btn:hover,
.broker-btn:focus-visible {
  background: var(--blue);
  color: var(--white);
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 34px 0 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 34px;
  align-items: start;
  padding-bottom: 28px;
}

.footer-logo { width: 246px; height: auto; margin-bottom: 12px; }

.footer-desc { margin: 0; color: #3D4551; }

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social a {
  display: flex;
  color: #3D4551;
  transition: color 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible { color: var(--blue); }

.footer-social svg { width: 26px; height: 26px; }

.footer-links { display: grid; gap: 10px; }

.footer-links a { color: #3D4551; font-weight: 700; }

.footer-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer-copyright {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #3D4551;
}

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 19, 24, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.modal-header h2 { font-size: 1.4rem; }

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 180ms ease;
}

.modal-close:hover { background: var(--light); }

.quote-form { padding: 26px; }

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

label, legend {
  color: #2F3642;
  font-size: 0.92rem;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  margin-top: 7px;
  padding: 11px 13px;
  color: var(--charcoal);
  border: 1px solid #BCCAD6;
  border-radius: var(--radius);
  background: var(--white);
}

textarea { resize: vertical; }

input:focus,
select:focus,
textarea:focus,
.nav-toggle:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(8, 127, 193, 0.28);
  outline-offset: 2px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.full-width { grid-column: 1 / -1; }

.quote-form .button {
  width: 100%;
  margin-top: 20px;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.form-message.error { color: #9A321F; }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1120px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid-cards { grid-template-columns: repeat(2, 1fr); }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-menu { gap: 14px; }
}

@media (max-width: 900px) {
  :root { --header-height: 72px; }

  .nav { width: min(100% - 28px, 1180px); }
  .brand img { width: 206px; }

  .nav-toggle { display: block; }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
    align-items: stretch;
  }

  .nav-menu .button { width: 100%; }

  .section { padding: 64px 0; }

  .hero { min-height: 420px; padding-top: 42px; }

  .hero-slide {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #000;
  }

  .hero-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .footer-col-right { align-items: flex-start; text-align: left; }

  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
  .equipment-item { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .equipment-item:nth-child(even) { border-right: none; }
  .equipment-item:nth-last-child(-n+2) { border-bottom: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-col-left { padding-right: 0; }
  .contact-col-right { padding-left: 0; border-left: none; border-top: 1px solid rgba(0, 0, 0, 0.1); padding-top: 28px; margin-top: 8px; }
}

@media (max-width: 640px) {
  .section-inner { width: min(100% - 28px, 1180px); }

  h1 { font-size: clamp(2.3rem, 15vw, 3.3rem); }
  h2 { font-size: clamp(1.65rem, 7vw, 2.3rem); }

  .services-grid,
  .about-grid-cards,
  .credentials-grid,
  .form-grid { grid-template-columns: 1fr; }

  .equipment-grid { grid-template-columns: 1fr; }
  .equipment-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .equipment-item:last-child { border-bottom: none; }

  .about-intro-flex { flex-direction: column; gap: 16px; }
  .since-badge { flex-direction: row; gap: 10px; align-items: baseline; opacity: 0.15; }
  .since-year { font-size: 3.5rem; }

  .brand img { width: 184px; }
  .quote-form { padding: 18px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .footer-grid { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal { opacity: 1; transform: none; }
}
