:root {
  --navy: #252a82;
  --navy-dark: #141957;
  --cyan: #45b9ec;
  --pale: #dff5fc;
  --ink: #172052;
  --muted: #58617b;
  --line: #adbeeb;
  --white: #fff;
  --shadow: 0 18px 50px rgba(27, 34, 83, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #caeaf8;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 88px;
  background: rgba(20,25,87,.97);
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  width: min(1160px, calc(100% - 40px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;

}
.brand{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.brand img{
    height:90px;
    width:auto;
    max-width:none;
    display:block;
}
nav { display: flex; gap: 34px; align-items: center; }
nav a {
  position: relative;
  color: var(--white);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width .25s ease;
}
nav a:hover::after, nav a:focus-visible::after { width: 100%; }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--navy); }

.hero {
  min-height: 590px;
  display: grid;
  align-items: center;
  background: linear-gradient(90deg, rgba(225,247,253,.97) 0%, rgba(225,247,253,.77) 35%, rgba(225,247,253,.08) 64%), url('assets/hero.png') center/cover no-repeat;
}
.hero-content { width: min(1160px, calc(100% - 40px)); margin: auto; }
.hero-content > * { max-width: 560px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.08; }
h1 {
  max-width: 600px !important;
  margin: 0;
  color: var(--navy-dark);
  font-size: clamp(2.55rem, 5.6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
h1 span { display: block; color: var(--cyan); }
.hero-content > p:not(.eyebrow) { margin: 24px 0 28px; color: var(--muted); font-size: 1.02rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 10px 28px rgba(37,42,130,.22);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--cyan); }

.section { padding: 110px 20px; }
.section-grid {
  width: min(1050px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: .72fr 1.35fr;
  gap: 80px;
  align-items: start;
}
.section-heading { position: relative; padding-left: 28px; }
.section-heading::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 64px; background: var(--cyan); }
.section-heading span { color: #bcebf9; font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.section-heading h2, .services-intro h2, .contact-card h2 { margin: 4px 0 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.4rem); text-transform: uppercase; }
.about-copy > p { margin-top: 0; color: var(--muted); }
.about-copy strong { color: var(--navy); }
.stats { margin-top: 42px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats div { padding: 20px 16px; border-left: 2px solid var(--pale); }
.stats strong { display: block; color: var(--cyan); font-size: 1.7rem; }
.stats span { color: var(--muted); font-size: .72rem; font-weight: 600; }

.services {
  position: relative;
  min-height: auto;
  background: linear-gradient(145deg, #fff 8%, #fbfdff 100%);
  overflow: hidden;
}

.services-intro {
    position: relative;
    z-index: 2;
    width: min(1050px, 100%);
    margin: 0 auto 60px;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.services-intro h2 { margin-bottom: 16px; }
.services-intro > p:last-child { color: var(--muted); font-size: .9rem; }
.honeycomb{
    width:min(1080px,100%);
    z-index: 2;
    margin:46px auto 0;
    display:grid;
    grid-template-columns:repeat(4,240px);
    grid-template-rows:repeat(7,100px);
    justify-content:center;
    column-gap:4px;
    row-gap:0;
}
.hex {
  position: relative;
  width: 240px;
  height: 240px;
  padding: 46px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('assets/hexagono-redondeado.png') center / 100% 100% no-repeat;
  text-align: center;
  transition: transform .25s ease, filter .25s ease;
}
.hex:hover { transform: translateY(-5px); filter: drop-shadow(0 12px 16px rgba(23,32,82,.12)); }
.hex p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.hex h3 { margin: 13px 0 0; color: var(--navy); font-size: .83rem; }
.service-icon { width: 64px; height: 64px; display: block; object-fit: contain; }

/* Patrón escalonado de cuatro columnas, según la referencia aprobada. */
.hex:nth-child(1)  { grid-column: 1; grid-row: 2; }
.hex:nth-child(2)  { grid-column: 2; grid-row: 1; }
.hex:nth-child(3)  { grid-column: 3; grid-row: 2; }
.hex:nth-child(4)  { grid-column: 4; grid-row: 3; }
.hex:nth-child(5)  { grid-column: 1; grid-row: 4; }
.hex:nth-child(6)  { grid-column: 2; grid-row: 3; }
.hex:nth-child(7)  { grid-column: 3; grid-row: 4; }
.hex:nth-child(8)  { grid-column: 4; grid-row: 5; }
.hex:nth-child(9)  { grid-column: 1; grid-row: 6; }
.hex:nth-child(10) { grid-column: 2; grid-row: 5; }
.hex:nth-child(11) { grid-column: 3; grid-row: 6; }
.hex:nth-child(12) { grid-column: 4; grid-row: 7; }


.contact {
  min-height: 650px;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: linear-gradient(90deg, rgba(7,16,43,.38), rgba(7,16,43,.2)), url('assets/contacto.png') center/cover no-repeat;
}
.contact-card {
  width: min(480px, 100%);
  margin-right: max(4vw, calc((100vw - 1160px) / 2));
  padding: 38px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow);
}
.contact-mark { width: 44px; height: 44px; margin-bottom: 20px; display: grid; place-items: center; color: white; background: var(--navy); transform: rotate(45deg); font-weight: 800; }
.contact-mark::first-letter { transform: rotate(-45deg); }
.contact-card h2 { margin-bottom: 16px; font-size: 2rem; }
.contact-card > p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
form { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form label { color: var(--navy); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
form label:nth-child(3), form .button { grid-column: 1 / -1; }
input, textarea { width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; background: #fff; resize: vertical; outline: 0; }
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(69,185,236,.14); }
.email-link { display: block; margin-top: 18px; color: var(--navy); font-size: .75rem; font-weight: 700; text-align: center; }

footer {
  min-height: 130px;
  padding: 28px max(20px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background: var(--navy-dark);
}
footer > div { display: flex; align-items: center; gap: 24px; }
footer img { width: 132px; }
footer p { margin: 0; color: rgba(255,255,255,.7); font-size: .72rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hex.reveal.visible:nth-child(n) { transform: none; }

@media (max-width: 940px) {
  .hero { min-height: 520px; background-position: 58% center; }
  .section-grid { grid-template-columns: 1fr; gap: 30px; }
  .services { min-height: auto; }
  .services-intro { padding-left: 0; margin-bottom: 50px; }
  .honeycomb { grid-template-columns: repeat(3, 220px); grid-template-rows: none; grid-auto-rows: 220px; gap: 18px; }
  .hex { width: 220px; height: 220px; padding: 40px 34px; grid-column: auto; grid-row: auto; }
  .honeycomb .hex:nth-child(n) { grid-column: auto; grid-row: auto; }
  .hex, .hex:nth-child(n), .hex.reveal.visible:nth-child(n) { transform: none; }
  footer { gap: 30px; }
}

@media (max-width:1024px){
  .site-header { height: 76px; }
  .brand { width: 150px; }
  .brand img { height: 56px; }
  .menu-toggle { display: block; }
  nav {
    position: absolute;
    left: 0;
    top: 76px;
    width: 100%;
    padding: 24px;
    display: none;
    flex-direction: column;
    background: var(--navy-dark);
    box-shadow: 0 20px 30px rgba(23,32,82,.12);
  }
  
  nav.open { display: flex; }
  .hero { min-height: 600px; align-items: end; padding-bottom: 64px; background-position: 68% center; }
  .hero::before { content: ''; position: absolute; inset: 76px 0 0; background: linear-gradient(0deg, rgba(225,247,253,.98) 0 45%, rgba(225,247,253,.12) 80%); }
  .hero-content { position: relative; z-index: 1; }
  h1 { font-size: 2.6rem; }
  .section { padding: 80px 20px; }
  .stats { grid-template-columns: 1fr; }
 /*
  .honeycomb{
    display:grid;
    grid-template-columns:repeat(2,180px);
    justify-content:center;
    gap:16px;
}
    */
    @media (max-width: 900px) and (orientation: landscape) {

  .honeycomb{
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
  }

  .hex{
    width:220px;
    height:220px;
    max-width:220px;
  }

}
.honeycomb{
    display:grid !important;
    grid-template-columns:1fr !important;
    justify-items:center;
    gap:18px;
}
  .hex{
    width:220px;
    height:220px;
    max-width:220px;
}
  .hex h3{
    margin:0;
    margin-top:2px;
    font-size:clamp(.62rem,2.5vw,.78rem);
    line-height:1.15;
    text-align:center;
}
 .hex p{
    font-size:.72rem;
    line-height:1.25;
    margin:0;
    max-width:120px;
}
 .service-icon{
    width:34px;
    height:34px;
    margin-bottom:4px;
}
  .hex:nth-child(2) { order: 1; }
  .hex:nth-child(1) { order: 2; }
  .hex:nth-child(3) { order: 3; }
  .hex:nth-child(4) { order: 4; }
  .hex:nth-child(6) { order: 5; }
  .hex:nth-child(5) { order: 6; }
  .hex:nth-child(7) { order: 7; }
  .hex:nth-child(8) { order: 8; }
  .hex:nth-child(10) { order: 9; }
  .hex:nth-child(9) { order: 10; }
  .hex:nth-child(11) { order: 11; }
  .hex:nth-child(12) { order: 12; }
  .contact { justify-content: center; padding: 50px 16px; }
  .contact-card { margin: 0; padding: 28px 22px; }
  form { grid-template-columns: 1fr; }
  form label, form label:nth-child(3), form .button { grid-column: 1; }
  footer, footer > div { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.contact-card{
    max-width:520px;
}

.contact-info{
    margin:35px 0;
}

.info-item{
    margin-bottom:20px;
    padding-bottom:15px;
    border-bottom:1px solid #d9e5f2;
}

.info-item h3{
    margin:0 0 6px;
    color:var(--navy);
    font-size:1rem;
}

.info-item p{
    margin:0;
    color:var(--muted);
    font-size:.95rem;
}

.contact-buttons{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.contact-buttons .button{
    width:100%;
    justify-content:center;
    text-align:center;
}

.whatsapp{
    background:#25D366;
}

.whatsapp:hover{
    background:#1fb357;
}

.email{
    background:var(--cyan);
}

.email:hover{
    background:#2aa7dd;
}
