:root {
  --blue-dark: #0f3a5f;
  --blue-main: #1e6f9f;
  --blue-soft: #dcebf4;
  --steel: #5f6b73;
  --text: #1e2933;
  --muted: #617180;
  --bg: #f4f7fa;
  --white: #ffffff;
  --line: #d8e2ea;
  --shadow: 0 18px 50px rgba(15, 58, 95, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 226, 234, 0.8);
}

.header-inner {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(220,235,244,0.95), rgba(255,255,255,0.96));
  box-shadow: 0 12px 24px rgba(15, 58, 95, 0.16);
}

.brand-stack {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-text {
  font-size: 0.98rem;
  font-weight: 800;
}

.brand-rut {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(15, 58, 95, 0.62);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 58, 95, 0.18);
  border-radius: 999px;
  background: rgba(244, 247, 250, 0.9);
}

.lang-switch span {
  width: 1px;
  height: 18px;
  background: rgba(15, 58, 95, 0.25);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--blue-dark);
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-btn.active {
  background: var(--blue-main);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(30, 111, 159, 0.22);
}

.main-nav {
  display: flex;
  gap: 10px;
}

.main-nav a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.main-nav a:hover {
  background: var(--blue-soft);
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 130px 0 76px;
}

.hero-slider,
.slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slider {
  z-index: 0;
}

.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlider 25s infinite;
}

.slide-1 {
  background-image: url('img/banner-1.jpg');
}

.slide-2 {
  background-image: url('img/banner-2.jpg');
  animation-delay: 5s;
}

.slide-3 {
  background-image: url('img/banner-3.jpg');
  animation-delay: 10s;
}

.slide-4 {
  background-image: url('img/banner-4.jpg');
  animation-delay: 15s;
}

.slide-5 {
  background-image: url('img/banner-5.jpg');
  animation-delay: 20s;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 58, 95, 0.93) 0%, rgba(15, 58, 95, 0.72) 45%, rgba(15, 58, 95, 0.2) 100%),
    linear-gradient(0deg, rgba(15, 58, 95, 0.3), rgba(15, 58, 95, 0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 790px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  display: inline-block;
  color: #bfe4fb;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-text {
  margin: 26px 0 0;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.65;
  max-width: 710px;
  color: rgba(255,255,255,0.88);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  background: var(--blue-main);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(30, 111, 159, 0.3);
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.48);
  background: rgba(255,255,255,0.08);
}

.btn.full {
  width: 100%;
  border: none;
}

.section {
  padding: 86px 0;
}

.section-heading {
  text-align: center;
  max-width: 790px;
  margin: 0 auto 38px;
}

.services-section .section-kicker,
.contact-section .section-kicker,
.mini-gallery-copy .section-kicker,
.services-copy .section-kicker {
  color: var(--blue-main);
}

.section-heading h2,
.trust-box h2,
.contact-copy h2,
.mini-gallery-copy h3,
.services-copy h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.mini-gallery-copy h3,
.services-copy h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.section-heading p,
.trust-box p,
.contact-copy p,
.contact-highlight,
.mini-gallery-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.mini-gallery-block {
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(15, 58, 95, 0.07);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 34px;
}

.mini-gallery-copy {
  max-width: 820px;
  margin-bottom: 18px;
}

.mini-gallery {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 20px;
  background: #d7e6f1;
}

.mini-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px;
  opacity: 0;
  animation: miniGallery 16s infinite;
}

.mini-slide-2 { animation-delay: 4s; }
.mini-slide-3 { animation-delay: 8s; }
.mini-slide-4 { animation-delay: 12s; }

.mini-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #e8f0f6;
  border: 1px solid rgba(30, 111, 159, 0.14);
  box-shadow: 0 10px 26px rgba(15, 58, 95, 0.1);
}

.mini-card img {
  width: 100%;
  height: 192px;
  object-fit: cover;
}

.services-copy {
  margin-bottom: 18px;
}

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

.service-grid-four {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 35px rgba(15, 58, 95, 0.07);
  min-height: 270px;
}

.service-card.featured {
  border-color: rgba(30,111,159,0.35);
  box-shadow: var(--shadow);
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 900;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 1.35rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.trust-box {
  margin-top: 24px;
  background: linear-gradient(135deg, var(--blue-dark), #164c77);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.trust-box .section-kicker,
.trust-box h2,
.trust-box p {
  color: var(--white);
}

.trust-box p {
  margin: 0;
  color: rgba(255,255,255,0.86);
}

.contact-section {
  position: relative;
  overflow: hidden;
}

.map-bg,
.map-layer {
  position: absolute;
  inset: 0;
}

.map-bg {
  background: #d8e2ea;
  filter: saturate(0.8);
}

.map-bg iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transform: scale(1.08);
  filter: grayscale(0.18) contrast(1.05);
}

.map-layer {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(220, 235, 244, 0.78));
}

.contact-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-copy {
  color: var(--blue-dark);
  padding-top: 10px;
}

.contact-copy h2,
.contact-copy p,
.contact-copy .section-kicker {
  color: var(--blue-dark);
}

.contact-highlight {
  margin: 24px 0 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--blue-dark);
}

.contact-line {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text);
}

.contact-line strong {
  color: var(--blue-dark);
  font-size: 1.08rem;
}

.contact-line span {
  color: var(--text);
}

.contact-form-intro {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-card {
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.contact-card h3 {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: 1.4rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--blue-dark);
}

.contact-form label small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fbfdff;
}

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

.contact-form small {
  color: var(--muted);
  line-height: 1.5;
}

.instagram-float,
.whatsapp-float {
  position: fixed;
  right: 18px;
  z-index: 60;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
}

.instagram-float,
.whatsapp-float {
  position: fixed;
  right: 14px;
  z-index: 60;
  width: 66px;
  height: 66px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15, 58, 95, 0.10);
  box-shadow: 0 14px 28px rgba(15, 58, 95, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-float:hover,
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 58, 95, 0.24);
}

.instagram-float img,
.whatsapp-float img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.instagram-float {
  bottom: 94px;
}

.whatsapp-float {
  bottom: 18px;
}

.site-footer {

  background: #0b2f4d;
  color: rgba(255,255,255,0.8);
}

.footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}


.footer-credit a {
  color: #8fd8ff;
  font-weight: 900;
  text-decoration: none;
  animation: creditColor 4s infinite alternate;
}

.footer-credit a:hover {
  text-decoration: underline;
}

@keyframes creditColor {
  0% { color: #8fd8ff; }
  50% { color: #ffffff; }
  100% { color: #62c7ff; }
}

@keyframes heroSlider {
  0%, 16% { opacity: 1; }
  20%, 100% { opacity: 0; }
}

@keyframes miniGallery {
  0%, 21% {
    opacity: 1;
    transform: translateY(0);
  }
  25%, 100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 980px) {
  .service-grid,
  .service-grid-four,
  .contact-layout,
  .trust-box {
    grid-template-columns: 1fr;
  }

  .mini-slide {
    grid-template-columns: 1fr;
  }

  .mini-gallery {
    min-height: 560px;
  }

  .mini-card img {
    height: 168px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 86vh;
    padding-top: 150px;
  }

  .hero h1 {
    letter-spacing: -0.04em;
  }

  .section {
    padding: 70px 0;
  }

  .service-card,
  .contact-card,
  .mini-gallery-block,
  .trust-box {
    padding: 22px;
  }

  .mini-gallery {
    min-height: 520px;
  }

  .instagram-float,
  .whatsapp-float {
    right: 12px;
  }

  .instagram-float {
    bottom: 68px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float {
    bottom: 12px;
    padding: 12px 16px;
  }
}

.clients-box {
  margin-top: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 35px rgba(15, 58, 95, 0.07);
}

.clients-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 22px;
}

.clients-heading h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.clients-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.client-logo {
  min-height: 104px;
  display: grid;
  place-items: center;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.client-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 58, 95, 0.12);
  border-color: rgba(30,111,159,0.35);
}

.client-logo img {
  width: 100%;
  max-width: 240px;
  max-height: 82px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .client-logo-grid {
    grid-template-columns: 1fr;
  }
}


/* Ajustes finales responsive v12 */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(15, 58, 95, 0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 24px rgba(15, 58, 95, 0.10);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--blue-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 980px) {
  .header-inner {
    height: 84px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .service-grid,
  .service-grid-four {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout,
  .trust-box {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 86vh;
    padding-top: 126px;
  }
}

@media (max-width: 760px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    background: rgba(255,255,255,0.97);
  }

  .header-inner {
    height: 76px;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
  }

  .brand-stack {
    min-width: 0;
  }

  .brand-text {
    font-size: 0.82rem;
    max-width: 138px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-rut {
    font-size: 0.56rem;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .header-actions {
    position: absolute;
    top: calc(100% + 10px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 58, 95, 0.18);
  }

  .header-actions.open {
    display: flex;
  }

  .main-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .main-nav a {
    display: block;
    padding: 14px 16px;
    background: var(--blue-soft);
    border-radius: 14px;
  }

  .lang-switch {
    justify-content: center;
    width: 100%;
  }

  .hero {
    min-height: 82vh;
    padding: 120px 0 54px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(15, 58, 95, 0.94) 0%, rgba(15, 58, 95, 0.82) 62%, rgba(15, 58, 95, 0.48) 100%),
      linear-gradient(0deg, rgba(15, 58, 95, 0.32), rgba(15, 58, 95, 0.32));
  }

  .hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
    letter-spacing: -0.045em;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading,
  .clients-heading {
    text-align: left;
  }

  .service-grid,
  .service-grid-four,
  .client-logo-grid {
    grid-template-columns: 1fr;
  }

  .mini-gallery {
    min-height: 520px;
  }

  .mini-slide {
    grid-template-columns: 1fr;
  }

  .mini-card img {
    height: 160px;
  }

  .trust-box,
  .mini-gallery-block,
  .contact-card,
  .clients-box,
  .service-card {
    padding: 20px;
    border-radius: 18px;
  }

  .contact-copy h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .contact-line {
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0;
  }

  .instagram-float,
  .whatsapp-float {
    right: 12px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .instagram-float img,
  .whatsapp-float img {
    width: 42px;
    height: 42px;
  }

  .instagram-float {
    bottom: 82px;
  }

  .whatsapp-float {
    bottom: 14px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    max-width: 118px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }
}
