:root {
  --green: #02884f;
  --blue: #0956a5;
  --ink: #172033;
  --muted: #5d687a;
  --line: #dfe6ee;
  --soft: #f4f8fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(12, 28, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

/* Rate Ticker */
#me-rate {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-family: 'Inter', monospace;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  position: relative;
}

#me-rate p {
  display: inline-block;
  margin: 0;
  padding: 0;
  animation: ticker 40s linear infinite;
}

#me-rate span {
  display: inline-block;
  margin-right: 48px;
  font-weight: 500;
}

.rate-up {
  color: #00e676;
  font-weight: 700;
}

.rate-down {
  color: #ff1744;
  font-weight: 700;
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid rgba(9, 86, 165, 0.24);
  border-radius: 6px;
  color: var(--blue);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(9, 86, 165, 0.05);
  transition: color 0.2s ease,
              border-color 0.2s ease,
              background-color 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.2s ease;
}

.nav-access:hover {
  color: var(--green);
  border-color: rgba(2, 136, 79, 0.35);
  background: rgba(2, 136, 79, 0.03);
  box-shadow: 0 6px 16px rgba(9, 86, 165, 0.1);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(9, 86, 165, 0.18);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.login-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  box-shadow: var(--shadow);
}

.login-dialog::backdrop {
  background: rgba(12, 28, 48, 0.48);
  backdrop-filter: blur(5px);
}

.login-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid rgba(223, 230, 238, 0.9);
  border-radius: 8px;
  background: var(--white);
}

.login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
}

.login-close:hover {
  color: var(--blue);
  border-color: rgba(9, 86, 165, 0.28);
}

.login-close span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.login-close span:first-child {
  transform: rotate(45deg);
}

.login-close span:last-child {
  transform: rotate(-45deg);
}

.login-logo {
  width: 148px;
  margin: 0 auto 4px;
}

.login-heading {
  text-align: center;
}

.login-heading h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.login-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  font: 400 16px/1.4 'Inter', system-ui, -apple-system, sans-serif;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.login-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(9, 86, 165, 0.15);
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.login-help {
  justify-self: center;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: default;
}

.login-help:hover {
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  min-height: calc(100vh - 112px);
  padding: 72px clamp(20px, 5vw, 72px) 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(2, 166, 79, 0.13), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #eef7f4 52%, #eaf2fb 100%);
}

.hero-content {
  max-width: 680px;
}

.hero-logo {
  width: 160px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-weight: 800;
}

h1 {
  margin-bottom: 18px;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-text {
  max-width: 560px;
  color: var(--muted);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.2s ease,
              border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 4px 14px rgba(2, 166, 79, 0.2);
}

.button.primary:hover {
  background: linear-gradient(90deg, #02b557, #0b61ba);
  box-shadow: 0 6px 20px rgba(2, 166, 79, 0.35);
}

.button.secondary {
  color: var(--blue);
  background: var(--white);
  border-color: rgba(9, 86, 165, 0.24);
  box-shadow: 0 4px 12px rgba(9, 86, 165, 0.05);
}

.button.secondary:hover {
  border-color: var(--blue);
  background: rgba(9, 86, 165, 0.02);
  box-shadow: 0 6px 16px rgba(9, 86, 165, 0.1);
}

@keyframes floatBull {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 460px;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  right: 3%;
  bottom: 8%;
  z-index: -1;
  width: min(680px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9, 86, 165, 0.13), rgba(2, 166, 79, 0.08) 46%, transparent 68%);
}

.hero-visual .bull {
  width: min(860px, 126%);
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 34px rgba(9, 86, 165, 0.22));
  animation: floatBull 5s ease-in-out infinite alternate;
}

.service-cards,
.section,
.split-section {
  padding-right: clamp(20px, 5vw, 72px);
  padding-left: clamp(20px, 5vw, 72px);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 64px;
  padding-bottom: 64px;
  background: var(--white);
}

.service-cards article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(12, 28, 48, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}

.service-cards article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(12, 28, 48, 0.12);
  border-color: rgba(9, 86, 165, 0.18);
}

.service-cards article .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-cards article .icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.service-cards article:hover .icon {
  background-color: var(--green);
  transform: scale(1.1);
}

.service-cards h2 {
  font-size: 25px;
  line-height: 1.18;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding-top: 86px;
  padding-bottom: 86px;
}

.image-panel img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.values-image-panel {
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.values-image-panel img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  filter: none;
  box-shadow: none;
}

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

.copy-panel p,
.service-cards p,
.services-grid p,
.site-footer p {
  color: var(--muted);
}

.copy-panel .button {
  margin-top: 12px;
}

.section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.muted,
.values-section {
  background: var(--soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

/* Unified Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.services-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(12, 28, 48, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}

.services-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(12, 28, 48, 0.12);
  border-color: rgba(9, 86, 165, 0.18);
}

.service-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  color: var(--blue);
  background: rgba(9, 86, 165, 0.08);
  margin-bottom: 20px;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.service-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.services-grid article:hover .service-icon-wrapper {
  background-color: var(--green);
  color: var(--white);
  transform: scale(1.1);
}

/* Values section details */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.values-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(12, 28, 48, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
  gap: 16px;
}

.values-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(12, 28, 48, 0.12);
  border-color: rgba(9, 86, 165, 0.18);
}

.value-icon {
  width: 42px;
  height: 42px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease, transform 0.3s ease;
}

.values-grid article:hover .value-icon {
  stroke: var(--blue);
  transform: scale(1.1);
}

/* Contact */
/* Subtitle */
.section-subtitle {
  color: var(--muted);
  font-size: 18px;
  margin-top: 10px;
  margin-bottom: 0;
  max-width: 700px;
}

/* Contact layout wrapper */
.contact-columns-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.contact-columns {
  display: grid;
  grid-template-columns: minmax(0, 3.6fr) minmax(0, 6.4fr);
  gap: 28px;
  margin-bottom: 0;
  align-items: start;
}

/* Cards shared design */
.contact-info-card,
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(12, 28, 48, 0.04);
}

.contact-info-card {
  align-self: flex-start;
  height: fit-content;
  padding: clamp(18px, 2.4vw, 26px) clamp(22px, 3vw, 32px);
}

.contact-form-card {
  padding: clamp(24px, 4vw, 40px);
}

/* Titles inside cards */
.contact-info-card h3,
.contact-form-card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

/* Info Column Items */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-info-item:last-of-type {
  margin-bottom: 24px;
}

.contact-info-item h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-item a {
  color: var(--blue);
  font-weight: 700;
  font-size: 18px;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-info-item a:hover {
  color: var(--green);
}

.contact-info-item p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.info-icon-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(9, 86, 165, 0.08);
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.info-icon-card svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.contact-info-item:hover .info-icon-card {
  background-color: var(--green);
  color: var(--white);
}

/* Google Maps button in column */
.maps-button {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Form layouts */
.contact-form {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  display: grid;
  gap: 20px;
}

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

.form-group {
  display: grid;
  gap: 7px;
  position: relative;
}

.form-group label {
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(9, 86, 165, 0.15);
}

/* Smart Validation Styling */
.error-msg {
  display: none;
  color: #d93025;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

/* User invalid states (after interaction) */
.contact-form input:user-invalid,
.contact-form textarea:user-invalid,
.contact-form input.user-invalid-fallback,
.contact-form textarea.user-invalid-fallback {
  border-color: #d93025;
  background-color: #fff8f8;
}

.contact-form input:user-invalid:focus,
.contact-form textarea:user-invalid:focus,
.contact-form input.user-invalid-fallback:focus,
.contact-form textarea.user-invalid-fallback:focus {
  box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.15);
}

.contact-form input:user-invalid + .error-msg,
.contact-form textarea:user-invalid + .error-msg,
.contact-form input.user-invalid-fallback + .error-msg,
.contact-form textarea.user-invalid-fallback + .error-msg {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* User valid states */
.contact-form input:user-valid,
.contact-form textarea:user-valid,
.contact-form input.user-valid-fallback,
.contact-form textarea.user-valid-fallback {
  border-color: var(--green);
}

.contact-form input:user-valid:focus,
.contact-form textarea:user-valid:focus,
.contact-form input.user-valid-fallback:focus,
.contact-form textarea.user-valid-fallback:focus {
  box-shadow: 0 0 0 4px rgba(2, 166, 79, 0.15);
}

.contact-form button {
  width: fit-content;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #d93025;
}

/* ============================================================
   FOOTER — Multi-columna profesional
   ============================================================ */

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--green) 0%, #007a88 45%, var(--blue) 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding: 60px clamp(20px, 5vw, 72px) 44px;
}

.footer-brand img {
  width: 84px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
  max-width: 270px;
  margin: 0;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.footer-col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col address p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.footer-col address strong {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 3px;
}

.footer-col address a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.footer-placeholder {
  opacity: 0.6;
  font-style: italic;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--white);
}

@media (max-width: 980px) {
  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 38px;
  }

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

  .contact-columns {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 0;
  }

  .contact-form-card,
  .contact-info-card {
    width: 100%;
  }

  .contact-form-card {
    order: 1;
  }

  .contact-info-card {
    order: 2;
    align-self: stretch;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-visual .bull {
    width: min(620px, 108%);
  }

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

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

}

@media (max-width: 680px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .service-cards h2 {
    font-size: 24px;
  }

  .navbar {
    position: relative;
    justify-content: flex-end;
    min-height: 64px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: clamp(20px, 5vw, 72px);
    left: clamp(20px, 5vw, 72px);
    z-index: 20;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border: 0 solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px rgba(12, 28, 48, 0.14);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.25s ease,
                opacity 0.2s ease,
                transform 0.2s ease,
                border-width 0.2s ease;
  }

  .nav-links.is-open {
    max-height: 320px;
    border-width: 1px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a,
  .nav-access {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-access {
    justify-content: flex-start;
    width: 100%;
    min-height: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
  }

  .nav-links a:last-child,
  .nav-access:last-child {
    border-bottom: 0;
  }

  .hero {
    padding-top: 46px;
    padding-bottom: 56px;
  }

  .hero-logo {
    width: 128px;
  }

  .hero-visual {
    min-height: 260px;
    margin-top: 12px;
  }

  .hero-visual::before {
    right: auto;
    bottom: 4%;
    width: min(360px, 90%);
  }

  .hero-visual .bull {
    width: min(480px, 118%);
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-actions,
  .button,
  .contact-form button {
    width: 100%;
  }

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

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

  .section,
  .split-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .values-image-panel {
    min-height: 320px;
  }

  .values-image-panel img {
    min-height: 320px;
  }
}

/* ==========================================================================
   FOOTER — Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 480px;
  }
}

@media (max-width: 580px) {
  .footer-main {
    grid-template-columns: 1fr;
    padding-bottom: 36px;
  }
}

/* ==========================================================================
   ANIMACIONES AL SCROLL (Scroll-Driven Animations & Fallback)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Animaciones al scroll nativas en CSS */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .scroll-animate {
      animation: fadeInUp auto linear backwards;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }
  }

  /* Fallback por clases para navegadores sin View Timeline (con IntersectionObserver JS) */
  @supports not ((animation-timeline: view()) and (animation-range: entry)) {
    .scroll-animate {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                  transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .scroll-animate.visible {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
