/* =========================================================
  ECISA - DESKTOP CSS
  Archivo principal para escritorio y estilos base.
========================================================= */

:root {
  --navy-950: #061f3d;
  --navy-900: #082b55;
  --navy-800: #0c3769;
  --navy-700: #123e72;
  --teal-700: #007f86;
  --teal-600: #00959b;
  --teal-500: #00a6ad;
  --teal-100: #e5f6f7;
  --text: #10264a;
  --muted: #657189;
  --line: #dbe4ee;
  --soft: #f5f8fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(7, 32, 62, .08);
  --shadow-soft: 0 10px 28px rgba(7, 32, 62, .07);
  --radius-lg: 20px;
  --radius-md: 15px;
  --radius-sm: 10px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.grecaptcha-badge {
  visibility: hidden;
}

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

button,
a,
input,
textarea,
select {
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid #f4b942;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 6px;
  color: var(--navy-950);
  background: var(--white);
  font-weight: 800;
  transform: translateY(-150%);
}

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

body.modal-open {
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

/* =========================================================
  BOTONES
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  box-shadow: 0 14px 24px rgba(0, 149, 155, .22);
}

.btn-outline {
  color: var(--teal-700);
  background: var(--white);
  border: 1.5px solid var(--teal-600);
}

/* =========================================================
  MODAL DE CONTACTO
========================================================= */

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 20, 42, .78);
  backdrop-filter: blur(5px);
}

.contact-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 34px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
}

.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--navy-900);
  background: var(--soft);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-heading {
  padding-right: 42px;
  margin-bottom: 22px;
}

.contact-modal-heading h2 {
  margin: 4px 0 8px;
  color: var(--navy-900);
  font-size: clamp(25px, 4vw, 34px);
}

.contact-modal-heading > p:last-child {
  color: var(--muted);
}

.contact-modal-eyebrow {
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-modal .ambiental-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-modal .ambiental-form label {
  display: grid;
  gap: 6px;
}

.contact-modal .ambiental-form label:has(textarea),
.contact-modal .ambiental-form label:has(select),
.contact-modal .ambiental-form button,
.contact-modal .form-message,
.contact-modal .recaptcha-notice {
  grid-column: 1 / -1;
}

.form-label {
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 700;
}

.contact-modal .ambiental-form input,
.contact-modal .ambiental-form textarea,
.contact-modal .ambiental-form select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  color: var(--text);
  background: var(--white);
}

.contact-modal .ambiental-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-modal .ambiental-form input:focus,
.contact-modal .ambiental-form textarea:focus,
.contact-modal .ambiental-form select:focus {
  border-color: var(--teal-600);
  outline: 3px solid rgba(0, 149, 155, .2);
}

.contact-modal .ambiental-form button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  font-weight: 800;
  cursor: pointer;
}

.contact-modal .ambiental-form button:disabled {
  opacity: .65;
  cursor: wait;
}

.contact-modal .form-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.form-message {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 14px;
}

.form-message-ok {
  color: #075f3d;
  background: #e5f7ef;
}

.form-message-error {
  color: #8a2020;
  background: #fdecec;
}

/* =========================================================
  HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.site-header a.brand img{
	width:150px;
	height:auto;
}

.header-inner {
  height: 94px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
  min-width: 180px;
}

.brand-title {
  display: block;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -2px;
}

.brand-title span {
  color: var(--white);
  position: relative;
}

.brand small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  opacity: .94;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  color: rgba(255,255,255,.96);
  font-size: 14px;
  font-weight: 700;
  padding: 36px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 23px;
  height: 2px;
  background: var(--teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.nav-caret {
  font-size: 12px;
  opacity: .9;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 120;
  display: grid;
  min-width: 250px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(0, 87, 118, .14);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 32, 71, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--navy-950);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 6px;
}

.nav-dropdown-menu a:hover {
  color: var(--teal-700);
  background: rgba(0, 137, 151, .08);
}

.nav-dropdown-menu a::after {
  display: none;
}

.header-cta {
  min-width: 220px;
  height: 46px;
}

.nav-toggle {
  display: none;
}

/* =========================================================
  HERO
========================================================= */

.section-soft {
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 166, 173, .06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.hero {
  padding: 58px 0 28px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 49% 51%;
  align-items: center;
  min-height: 420px;
  gap: 14px;
  
}

.hero.section-soft{
	background: url(../img/hero/hero-image.webp) right top;
	background-size: contain;
	background-repeat: no-repeat;
}

.hero-copy {
  max-width: 450px;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 650px;
  font-size: clamp(44px, 4.8vw, 50px);
  line-height: 1.08;
  letter-spacing: -2.4px;
  color: var(--navy-950);
  font-weight: 600;
  margin-bottom: 30px;
}

.hero-copy p {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.hero-media {
  position: relative;
  height: 408px;
  min-width: 0;
}

.hero-dot-pattern {
  position: absolute;
  width: 140px;
  height: 110px;
  left: 4%;
  top: 84px;
  opacity: .36;
  background-image: radial-gradient(var(--teal-500) 1.2px, transparent 1.2px);
  background-size: 10px 10px;
}

.hero-shape {
  position: absolute;
  left: -2%;
  bottom: 18px;
  width: 118px;
  height: 170px;
  border-radius: 28px;
  background: rgba(0, 149, 155, .13);
  transform: skewX(-17deg);
}

.photo-placeholder {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 4px solid var(--white);
  background:
    linear-gradient(135deg, rgba(6,31,61,.78), rgba(0,149,155,.54)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 8px, rgba(255,255,255,.04) 8px 16px);
  color: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder figcaption {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 18px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .2px;
  background: rgba(6,31,61,.36);
}

.photo-placeholder small {
  font-size: 10px;
  font-weight: 600;
  opacity: .85;
}

.photo-main {
  left: 8%;
  top: 0;
  width: 58%;
  height: 100%;
  border-radius: 0 54px 0 0;
  clip-path: polygon(22% 0, 100% 0, 84% 100%, 0 100%);
}

.photo-top {
  right: 0;
  top: 0;
  width: 42%;
  height: 35%;
  border-radius: 0 0 0 0;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.photo-middle {
  right: 0;
  top: 34%;
  width: 42%;
  height: 31%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%);
}

.photo-bottom {
  right: 0;
  bottom: 0;
  width: 42%;
  height: 36%;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

/* =========================================================
  MÃ‰TRICAS
========================================================= */

.metrics-section {
  position: relative;
  z-index: 5;
  margin-top: -4px;
  padding-bottom: 28px;
}

.metrics-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.metric-item {
  min-height: 124px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 36px;
  border-right: 1px solid var(--line);
}

.metric-item.last {
  border-right: 0;
}

.metric-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  font-size: 34px;
  line-height: 1;
}

.metric-eyebrow {
  display: block;
  color: #40516f;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
}

.metric-eyebrow.block {
  margin-top: -4px;
}

.metric-item strong {
  display: block;
  color: var(--navy-950);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1px;
}

.metric-item .metric-title-small {
  font-size: 18px;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.metric-item p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* =========================================================
  SECCIONES REUTILIZABLES
========================================================= */

.section-heading {
  text-align: center;
  margin: 0 auto 26px;
}

.section-heading span,
.section-heading h2 {
  display: inline-block;
  margin: 0;
  color: var(--teal-700);
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .28em;
}

.services-section,
.why-section,
.clients-section,
.sectors-section {
  padding: 0 0 28px;
}

/* =========================================================
  SERVICIOS
========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 238px;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(7, 32, 62, .035);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(0,149,155,.28);
}

.service-card .line-icon{
	
}

.service-card .line-icon img{
	height:auto;
	margin: 0 auto;
}

.line-icon {
  height: 55px;
  margin-bottom: 18px;
  color: var(--teal-700);
  font-size: 43px;
  line-height: 1;
  font-weight: 400;
  display: flex;
}

.service-card h3 {
  color: var(--navy-950);
  font-size: 19px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.48;
  padding-right: 4px;
}

.service-card a {
  position: absolute;
  right: 20px;
  bottom: 0;
  color: var(--teal-700);
  font-size: 27px;
  font-weight: 300;
}

/* =========================================================
  POR QUÃ‰ ELEGIR
========================================================= */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  min-height: 130px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 9px 24px rgba(7, 32, 62, .035);
}

.why-card .round-icon img{
	filter: brightness(0) invert(1);
	padding: 7px;
}

.round-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  color: var(--white);
  font-size: 27px;
  font-weight: 700;
}

.why-card h3 {
  color: var(--navy-950);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.2px;
  margin-bottom: 7px;
}

.why-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.42;
}

/* =========================================================
  CLIENTES
========================================================= */

.clients-carousel {
  position: relative;
}

.clients-carousel__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.clients-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.clients-carousel__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.clients-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 100px);
  grid-auto-columns: 222px;
  gap: 20px 22px;
  width: max-content;
  padding: 2px 0 6px;
}

.client-logo-card {
  height: 100px;
  display: grid;
  place-items: center;
  padding: 16px 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: #5e6065;
  font-size: 16px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.35px;
  box-shadow: 0 10px 24px rgba(7, 32, 62, .035);
  user-select: none;
}

.client-logo-card img {
  max-width: 164px;
  max-height: 64px;
  object-fit: contain;
  opacity: .95;
  pointer-events: none;
}

.client-logo-card span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* =========================================================
  SECTORES
========================================================= */

.sectors-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}

.sector-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #40516f;
  font-size: 13px;
  font-weight: 800;
  border-right: 1px solid var(--line);
  padding: 30px 0;
}

.sector-item img{
	width:40px;
}

.sector-item:last-child {
  border-right: 0;
}

.sector-item span {
  color: var(--teal-700);
  font-size: 30px;
  line-height: 1;
}

/* =========================================================
  CTA FINAL
========================================================= */

.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(6,31,61,.98), rgba(8,43,85,.96));
}

.cta-bg-placeholder {
  position: absolute;
  inset: 0;
  opacity: .16;
  background:
    linear-gradient(135deg, rgba(6,31,61,.75), rgba(0,149,155,.4)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 80px);
}

.cta-bg-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-inner {
  position: relative;
  z-index: 1;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
}

.cta-copy {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--white);
}

.cta-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  /* border: 2px solid var(--teal-600); */
  border-radius: 9px;
  color: var(--teal-500);
  font-size: 34px;
}

.cta-copy h2 {
  font-size: 33px;
  line-height: 1.05;
  letter-spacing: -.8px;
  margin-bottom: 7px;
}

.cta-copy p {
  color: rgba(255,255,255,.86);
  font-size: 17px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cta-contact {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.cta-contact i {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.36);
}

/* =========================================================
  FOOTER
========================================================= */

.site-footer {
  background: linear-gradient(135deg, var(--navy-950), #05284d);
  color: var(--white);
}

.site-footer a.brand img{
	width:150px;
	height:auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr .9fr .9fr .9fr 1fr;
  gap: 58px;
  padding: 34px 0 38px;
}

.footer-logo .brand-title {
  font-size: 48px;
}

.footer-brand p {
  max-width: 245px;
  margin-top: 18px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.5;
}

.footer-col.offices{
	
}

.footer-col.offices p{
	font-size:14px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 19px;
}

.socials a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: rgba(255,255,255,.92);
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 900;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-col h3 {
  margin-bottom: 8px;
  color: rgba(255,255,255,.86);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.footer-col a {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.25;
  transition: color .2s ease;
}

.footer-col a:hover {
  color: var(--teal-500);
}

.footer-btn {
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid var(--teal-600);
  border-radius: 5px;
  color: var(--white) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-bottom-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.64);
  font-size: 12px;
}

.footer-bottom-inner div {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

/* =========================================================
  ACCESIBILIDAD / UTILIDADES
========================================================= */

::selection {
  color: var(--white);
  background: var(--teal-700);
}
