:root{
  --bg: #0b0c10;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.12);
--accent: #1D5878;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0,0,0,.45);
  --max: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 700px at 12% 0%, rgba(29,88,120,.14), transparent 55%),
    radial-gradient(900px 700px at 90% 10%, rgba(255,255,255,.06), transparent 55%),
    var(--bg);
  color: var(--text);
}
a{ color: inherit; text-decoration:none; }
.container{ width:min(var(--max), 100% - 40px); margin-inline:auto; }

/* HEADER */
.header{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,12,16,.72);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 240px;
}
.brand__mark{
  width:38px; height:38px;
  border-radius: 12px;
  background:
    url("images/Logo.jpeg") center/cover no-repeat,
    linear-gradient(135deg, rgba(29,88,120,.9), rgba(255,255,255,.2));
  box-shadow: 0 12px 30px rgba(29,88,120,.12);
}
.brand__text{ display:flex; flex-direction:column; line-height:1.1; }
.brand__name{ font-weight:900; letter-spacing:-0.01em; }
.brand__tag{ font-size: 12px; color: var(--muted); margin-top:2px; }

.nav{ display:flex; align-items:center; gap:16px; }
.nav__link{
  font-weight:800;
  font-size: 14px;
  color: rgba(255,255,255,.78);
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.nav__link:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
}
.nav__link.is-active{
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  background: linear-gradient(135deg, #1D5878, #2E6F9A);
  border-color: rgba(29,88,120,.45);
  color: #ffffff;
}

.btn--primary:hover{
  background: linear-gradient(135deg, #2A6E98, #3B86B3);
}

.btn--ghost:hover{ background: rgba(255,255,255,.06); }
.btn--full{ width:100%; padding: 14px 16px; }

.icon-btn{
  display:none;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  z-index: 100;
}

.burger span{
  display:block;
  width:18px; height:2px;
  background: rgba(255,255,255,.82);
  margin:4px auto;
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

/* Animación cuando el menú está abierto */
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: rgba(255,255,255,.95);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: rgba(255,255,255,.95);
}

/* MENÚ MOBILE - OVERLAY ESTILO APPLE */
.mobile-menu{
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: rgba(11,12,16,.97);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  z-index: 40;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: 
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s 0.6s;
  will-change: transform, opacity;
}

.mobile-menu:not([hidden]) {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: 
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s 0s;
}

.mobile-menu__inner{ 
  padding: 24px 0 28px;
  display: grid;
  gap: 8px;
}

.mobile-menu__link{
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
}

.mobile-menu:not([hidden]) .mobile-menu__link {
  animation: appleSlideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-menu:not([hidden]) .mobile-menu__link:nth-child(1) {
  animation-delay: 0.08s;
}

.mobile-menu:not([hidden]) .mobile-menu__link:nth-child(2) {
  animation-delay: 0.14s;
}

.mobile-menu__link:active{
  transform: scale(0.96);
  background: rgba(255,255,255,.06);
}

@keyframes appleSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-menu__cta{ width:100%; }

.pill{
  display:inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.80);
  font-weight: 900;
  font-size: 13px;
}

/* HERO */
.hero{ padding: 56px 0 22px; }
.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  align-items:center;
  gap: 26px;
}
.hero__title{
  margin: 16px 0 10px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero__subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
}
.hero__actions{ display:flex; gap: 12px; flex-wrap:wrap; margin-bottom: 18px; }

.mini-stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini-stat{
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.mini-stat__title{ font-weight: 900; }
.mini-stat__text{ color: var(--muted); font-weight: 700; margin-top: 4px; font-size: 13px; }

.hero__visual{ display:flex; justify-content:flex-end; }
.hero-card{
  width:100%;
  max-width: 420px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-card__top{
  display:flex; gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.hero-card__dot{
  width:10px; height:10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.hero-card__img{
  height: 280px;
background:
    url("images/Logo.jpeg") center/cover no-repeat,
    linear-gradient(135deg, rgba(29,88,120,.9), rgba(255,255,255,.2));
  box-shadow: 0 12px 30px rgba(29,88,120,.12);}
.hero-card__bottom{
  display:flex; gap:10px; flex-wrap:wrap;
  padding: 14px;
}
.tag{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  font-weight: 900;
  font-size: 12px;
  color: rgba(255,255,255,.84);
}

/* SERVICES: image carousel + text */
.svc{ padding: 10px 0 44px; }
.svc__top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.svc__title{ margin: 10px 0 6px; font-size: 28px; letter-spacing: -0.02em; }
.svc__subtitle{ margin:0; color: var(--muted); line-height:1.7; max-width: 65ch; }

.svc__wrap{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: stretch;
}
.svc__media{
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.svc__carousel{ 
  position:relative;
  isolation: isolate;
}
.svc__track{
  display:flex;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.svc__track::-webkit-scrollbar {
  display: none;
}

.svc__track.transitioning {
  scroll-behavior: smooth;
}

.svc__slide{
  min-width: 100%;
  width: 100%;
  height: 380px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  touch-action: pan-x pinch-zoom;
}

.svc__slide:nth-child(1) {
  background-image: url("images/1.jpeg");
}

.svc__slide:nth-child(2) {
  background-image: url("images/2.jpeg");
}

.svc__slide:nth-child(3) {
  background-image: url("images/3.jpeg");
}

.svc__slide:nth-child(4) {
  background-image: url("images/5.jpeg");
}

.svc__slide::after{
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.00) 0%,
    rgba(0,0,0,.10) 60%,
    rgba(0,0,0,.20) 100%
  );
}

.svc__arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.88);
  cursor:pointer;
  font-weight: 900;
  font-size: 18px;
  display:grid;
  place-items:center;
  backdrop-filter: blur(10px);
}
.svc__arrow:hover{ background: rgba(0,0,0,.40); }
.svc__arrow--left{ left: 12px; }
.svc__arrow--right{ right: 12px; }
.svc__dots{
  position:absolute;
  left: 14px;
  bottom: 14px;
  display:flex;
  gap: 8px;
}
.svc__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.10);
  cursor: pointer;
  transition: all 0.2s ease;
}

.svc__dot:hover{
  background: rgba(29,88,120,.60);
  transform: scale(1.2);
}

.svc__dot.is-active{
  background: rgba(29,88,120,.90);
  border-color: rgba(29,88,120,.45);
}

.svc__content{
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 14px;
}
.svc__tabs{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.svc__tab{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.80);
  font-weight: 900;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.svc__tab:hover{ background: rgba(255,255,255,.04); }
.svc__tab.is-active{
  background: rgba(29,88,120,.18);
  border-color: rgba(29,88,120,.30);
  color: rgba(255,255,255,.92);
}
.svc__panel{ padding: 6px 4px 0; }
.svc__h3{ margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.svc__p{ margin: 0 0 12px; color: var(--muted); line-height: 1.7; }
.svc__list{
  list-style:none;
  padding:0;
  margin:0 0 12px;
  display:grid;
  gap: 10px;
}
.svc__list li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  font-weight: 700;
  color: rgba(255,255,255,.86);
}
.svc__list li::before{
  content:"•";
  width: 12px;
  color: rgba(29,88,120,.9);
  margin-top: 2px;
}
.svc__meta{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}
.svc__badge{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  font-weight: 900;
  font-size: 12px;
  color: rgba(255,255,255,.84);
}
.svc__cta{ display:flex; gap: 12px; flex-wrap:wrap; }

/* SECTIONS */
.sections{ padding: 18px 0 44px; }
.section-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items:center;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  margin-bottom: 16px;
}
.section-row--reverse .media-box{ order: 2; }
.section-row--reverse .section-row__content{ order: 1; }
.media-box{
  height: 320px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
  position:relative;
  background: rgba(255,255,255,.03);
}
.media-box::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 0%, rgba(11,12,16,.15) 60%, rgba(11,12,16,.35) 100%);
}
.media-box--one{ background: url("images/section-1.jpg") center/cover no-repeat; }
.media-box--two{ background: url("images/section-2.jpg") center/cover no-repeat; }
.media-box--three{ background: url("images/section-3.jpg") center/cover no-repeat; }
.section-row__content h2{
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.section-row__content p{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}
.list{
  list-style:none;
  padding:0;
  margin:0 0 14px;
  display:grid;
  gap: 10px;
}
.list li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  font-weight: 700;
  color: rgba(255,255,255,.86);
}
.list li::before{
  content:"•";
  width: 12px;
  color: rgba(29,88,120,.9);
  margin-top: 2px;
}
.link{
  display:inline-flex;
  padding: 10px 0;
  font-weight: 900;
  border-bottom: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}
.link:hover{ border-bottom-color: rgba(255,255,255,.32); }

/* CONTACT PAGE */
.page{ padding-bottom: 24px; }
.page-hero{ padding: 44px 0 30px; }
.page-hero__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items:start;
}
.page-hero__title{
  margin: 14px 0 10px;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.03em;
}
.page-hero__subtitle{
  margin:0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
}
.info-strip{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.info-strip__item{
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.info-strip__title{ font-weight: 900; }
.info-strip__text{ color: var(--muted); font-weight: 700; margin-top: 4px; font-size: 13px; }

.form-shell{
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}
.form{ padding: 18px; border-radius: 24px; }
.field{ display:flex; flex-direction:column; gap: 8px; }
.field label, .fieldset legend{ font-size: 13px; font-weight: 900; color: rgba(255,255,255,.88); }
.req{ color: rgba(29,88,120,.95); }
input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder, textarea::placeholder{ color: rgba(255,255,255,.42); }
input:focus, select:focus, textarea:focus{
  border-color: rgba(29,88,120,.55);
  box-shadow: 0 0 0 4px rgba(29,88,120,.14);
  background: rgba(0,0,0,.28);
}
textarea{ resize: vertical; min-height: 110px; }
.form__row{ display:grid; gap: 12px; margin-bottom: 12px; }
.form__row--two{ grid-template-columns: 1fr 1fr; }
.form__row--three{ grid-template-columns: 1fr 1fr 1fr; }
.fieldset{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,255,255,.02);
}
.fieldset legend{ padding: 0 6px; margin-left: 4px; }
.radio-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.radio{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  font-weight: 900;
  cursor:pointer;
}
.radio input{ width:auto; margin:0; }
.radio:hover{ background: rgba(255,255,255,.04); }
.divider{ height:1px; background: rgba(255,255,255,.10); margin: 14px 0 12px; }
.form__msg{ margin: 12px 0 0; font-weight: 900; min-height: 22px; }
.form__hint{ margin: 10px 0 0; font-size: 12px; color: rgba(255,255,255,.55); }

/* FOOTER */
.footer{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 22px 0 34px;
  background: rgba(11,12,16,.55);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}
.footer__left{ display:flex; flex-direction:column; gap:2px; }
.footer__brand{ font-weight: 900; }
.footer__small{ color: var(--muted); font-weight: 700; font-size: 12px; }
.footer__links{ display:flex; gap: 14px; font-weight: 900; color: rgba(255,255,255,.80); }
.footer__links a{ padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; }
.footer__links a:hover{ border-color: rgba(255,255,255,.10); background: rgba(255,255,255,.03); }
.footer__copy{ color: rgba(255,255,255,.55); font-weight: 800; font-size: 12px; }

/* RESPONSIVE */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__visual{ justify-content:flex-start; }
  .svc__wrap{ grid-template-columns: 1fr; }
  .svc__slide{ height: 320px; }
  .section-row{ grid-template-columns: 1fr; }
  .section-row--reverse .media-box{ order: 0; }
  .section-row--reverse .section-row__content{ order: 0; }
  .page-hero__grid{ grid-template-columns: 1fr; }
  .info-strip{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .nav{ display:none; }
  .icon-btn{ 
    display:inline-grid; 
    place-items:center;
    width: 46px;
    height: 46px;
    touch-action: manipulation;
  }
  
  .header__inner {
    padding: 10px 0;
  }

  .brand {
    min-width: auto;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    font-size: 15px;
  }

  .brand__tag {
    font-size: 10px;
  }
  
  .mini-stats{ grid-template-columns: 1fr; }
  .form__row--two{ grid-template-columns: 1fr; }
  .form__row--three{ grid-template-columns: 1fr; }
  .radio-grid{ grid-template-columns: 1fr; }
  .svc__arrow{ display:none; }
  
  .svc__carousel {
    touch-action: pan-x;
  }

  .svc__slide {
    height: 280px;
  }

  .svc__dot {
    width: 10px;
    height: 10px;
    touch-action: manipulation;
  }

  .svc__dots {
    gap: 10px;
  }
}

@media (max-width: 520px){

  /* HERO */
  .hero{
    padding: 32px 0 18px;
  }

  .hero__title{
    font-size: 30px;
    line-height: 1.15;
  }

  .hero__subtitle{
    font-size: 15px;
  }

  .hero__actions{
    flex-direction: column;
  }

  .hero__actions .btn{
    width: 100%;
  }

  /* TARJETA HERO */
  .hero-card{
    max-width: 100%;
  }

  .hero-card__img{
    height: 200px;
  }

  /* MINI STATS */
  .mini-stat{
    padding: 12px;
  }

  /* SERVICES */
  .svc__title{
    font-size: 24px;
  }

  .svc__tab{
    font-size: 13px;
    padding: 8px 10px;
  }

  .svc__slide{
    height: 240px;
  }

  /* SECTIONS */
  .section-row{
    padding: 16px;
  }

  .section-row__content h2{
    font-size: 22px;
  }

  /* FORM */
  .form{
    padding: 14px;
  }

  input, textarea, select{
    font-size: 16px; /* evita zoom en iOS */
  }
  
  /* Header ultra compacto */
  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .brand__name {
    font-size: 14px;
  }

  .brand__tag {
    display: none;
  }
  
  /* Ajuste posición menú móvil en pantallas muy pequeñas */
  .mobile-menu {
    top: 64px;
  }
}