/* =========================================================
BASE + TOKENS (Responsive-first)
========================================================= */

:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #5b6b7a;

  --primary: #097E81;
  --primary-2: rgba(23, 74, 82, 0.88);

  --card: #ffffff;
  --card-soft: #f6f8fa;
  --border: #e7edf1;

  --accent: #c79d9d;

  --shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
  --shadow2: 0 18px 50px rgba(2, 6, 23, 0.12);

  --radius: 18px;
  --radius-sm: 14px;

  --max: 1200px;

  /* Altura de header “fluida” */
  --header-h: clamp(68px, 7vw, 88px);

  /* Spacing fluido */
  --pad-x: clamp(14px, 3vw, 24px);
  --section-y: clamp(36px, 6vw, 62px);

  --font-body: "Montserrat", sans-serif;

}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; height: auto; }

.container{
  width: min(calc(100% - (var(--pad-x) * 2)), var(--max));
  margin: 0 auto;
  padding: 22px 0 76px;
}

.section {
  padding: var(--section-y) 0;
  scroll-margin-top: calc(var(--header-h));
  margin: 2rem 0;

}

.section__head{
  text-align: center;
  margin-bottom: 26px;
  padding: 0 4px;
}
.section__title {
  margin: 0 auto 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: clamp(1.45rem, 2.6vw, 2.4rem);
  display: inline-block;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(9,126,129,0.45);
}

.section__kicker{
  margin: 0;
  color: var(--muted);
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 8px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 99999;
}
.skip-link:focus{ left: 10px; }

/* =========================================================
   HEADER (Desktop / Tablet / Mobile)
========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgb(16,52,58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.header__inner{
  width: min(calc(100% - (var(--pad-x) * 2)), 1300px);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand{
  display: inline-flex;
  align-items: center;
  height: 100%;
  flex: 0 0 auto;
}
.brand__logo{
  width: clamp(120px, 14vw, 160px);
  height: clamp(44px, 6vw, 64px);
  object-fit: contain;
}

.menu{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.menu__link{
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}
.menu__link:hover{
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.social{
  display: flex;
  gap: 10px;
  margin-left: 6px;
}
.social__link{
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
}
.social__link:hover{ background: rgba(255,255,255,0.14); }
.social__link img{ width: 20px; height: 20px; }

/* Mobile nav button */
.navbtn{
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  position: relative;
}
.navbtn__lines{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
  transform: translate(-50%,-50%);
}
.navbtn__lines::before,
.navbtn__lines::after{
  content:"";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
}
.navbtn__lines::before{ top: -6px; }
.navbtn__lines::after{ top: 6px; }

/* =========================================================
HERO (se adapta mejor a pantallas pequeñas)
========================================================= */
.hero{
  position: relative;
  height: clamp(460px, 78vh, 920px);
  overflow: hidden;
  background: #000;
  width: 100%;
}
.hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.247), rgba(0, 0, 0, 0.81));
}
.hero__content{
  position: absolute;
  inset: 0;
  width: min(calc(100% - (var(--pad-x) * 4)), var(--max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 0 54px;
  color: #fff;
}
.hero__title{
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.65rem, 3.4vw, 3.15rem);
  line-height: 1.15;
  max-width: 28ch;
  text-transform: capitalize;
}

.hero__subtitle{
  margin: 12px 0 0;
  color: rgba(255,255,255,0.92);
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  max-width: 58ch;
}

.hero__chips{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.92);
  font-weight: 400;
  font-size: .8rem;
  text-transform: uppercase;
}

.chip i{ 
  font-size: 1rem; 
}


.hero__cta{
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn--primary{
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover{ background: #b98888; }
.btn--ghost{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}
.btn--ghost:hover{ background: rgba(255,255,255,0.16); }





/* =========================================================
   ABOUT
========================================================= */
.about{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px 28px;
  align-items: center;
  margin-top: 14px;
}
.about__img{
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  opacity: 0.95;
}
.about__text{
  margin: 0;
  color: #274255;
}


/* =========================================================
   SERVICES (Grid optimizado + Cards premium con imagen)
========================================================= */

.services{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

/* Responsive grid */
.services .card{
  grid-column: span 12;
}

@media (min-width: 700px){
  .services .card{ grid-column: span 6; }
}
@media (min-width: 1024px){
  .services .card{ grid-column: span 4; }
}

/* Card base */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Hover elegante */
.card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow2);
  border-color: rgba(9,126,129,.25);
}

/* Imagen controlada */
.card__img{
  width: 100%;
  height: clamp(180px, 18vw, 230px);
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

/* Zoom suave al hover */
.card:hover .card__img{
  transform: scale(1.06);
  filter: contrast(1.05) saturate(1.05);
}

/* Body */
.card__body{
  padding: 20px;
}

/* Título */
.card__title{
  margin: 0 0 8px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .03em;
  font-size: 1.05rem;
}

/* Texto */
.card__text{
  margin: 0;
  color: #345061;
  line-height: 1.55;
  font-size: 0.98rem;
}


/* =========================================================
CONTACT (UI/UX mejorado)
========================================================= */

.section--contact{ 
  padding-top: 30px;
  margin: 7rem;
}

.contact__intro{
  margin: 0 auto 18px;
  max-width: 70ch;
  text-align: center;
  color: var(--muted);
  padding: 0 4px;
}

/* Contenedor del form */
.form{
  border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 36px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 42, 42, 0.129);

  /* look más premium que el sólido */
  background:
    radial-gradient(900px 420px at 90% 20%, rgba(238, 167, 167, 0.575), transparent 55%),
    #ddaab1bb;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Grid */
.form__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field--full{ grid-column: 1 / -1; }

/* Labels */
.field__label{
  font-weight: 800;
  letter-spacing: .09em;
  color: rgba(10, 64, 66, 0.886);
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Inputs */
.field__control{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255,255,255,0.94);
  padding: 12px 14px;
  font-size: 0.88rem;
  outline: none;
  color: rgba(15, 23, 42, 0.92);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.field__control::placeholder{
  color: rgba(15, 23, 42, 0.45);
}

/* Focus y accesibilidad */
.field__control:focus{
  border-color: rgba(9,126,129,0.70);
  box-shadow: 0 0 0 4px rgba(9,126,129,0.16);
  background: rgba(255,255,255,0.98);
}

/* Hover sutil */
.field__control:hover{
  border-color: rgba(9,126,129,0.22);
}

/* Textarea */
.field__control--textarea{
  border-radius: 18px;
  resize: vertical;
  min-height: 150px;
  line-height: 1.55;
}

/* Actions */
.form__actions{
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Si tu botón usa .btn, aquí lo hace más consistente dentro del form */
.form__actions .btn{
  height: 46px;
  padding: 0 22px;
}

/* Responsive */
@media (max-width: 767px){
  .form__grid{ grid-template-columns: 1fr; }
  .form__actions{
    justify-content: stretch;
  }
  .form__actions .btn{
    width: 100%;
  }

  .section--contact{
    margin: 3rem 1.5rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .field__control{
    transition: none;
  }
}

/* =========================================================
FOOTER
========================================================= */

.site-footer{
  margin-top: 40px;
  color: #ffffffd8;
  background:
    radial-gradient(900px 420px at 90% 20%, rgba(10, 125, 129, 0.1), transparent 55%),
    rgb(16,52,58);
}

/* barra superior tipo separator */
.site-footer__top{
  padding: 36px 0;
  border-top: 10px solid #d0aeac;
}

.site-footer__grid{
  width: min(calc(100% - (var(--pad-x) * 2)), var(--max));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

/* Responsive grid footer */
@media (max-width: 1199px){
  .site-footer__grid{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767px){
  .site-footer__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.f-title{
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 227, 226, 0.927);
}

/* Brand */
.f-brand__logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.f-brand__logo img{
  width: clamp(240px, 18vw, 275px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.488));
}

.f-brand__text{
  margin: 12px 0 0;
  color: rgba(255,255,255,0.80);
  max-width: 46ch;
  line-height: 1.55;
}

/* Links */
.f-links{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f-link{
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color .18s ease, transform .18s ease;
}

.f-link:hover{
  color: #ffc1c1;
  transform: translateX(2px);
  text-decoration: none;
}

.f-link:focus-visible{
  outline: 3px solid rgba(199,157,157,.55);
  outline-offset: 4px;
  border-radius: 10px;
}

/* Rows con icono + texto */
.f-row{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.f-ico{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(199, 157, 157, 0.092);
  border: 1px solid rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: transform .18s ease, background .18s ease;
}

.f-row:hover .f-ico{
  transform: translateY(-2px);
  background: rgba(127, 161, 157, 0.304);
}

.f-ico i{
  font-size: 22px;
  color: #d0aeac;
}

.f-row__text{
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.f-strong{
  font-size: 0.9rem;
  color: #fff;
  font-weight: 700;
}

.f-muted{
  color: rgba(255, 255, 255, 0.576);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* bottom bar */
.site-footer__bottom{
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 14px 0 18px;
  background: rgba(15, 50, 56, 0.96);
}

.site-footer__copy{
  width: min(calc(100% - (var(--pad-x) * 2)), var(--max));
  margin: 0 auto;
  color: #ffffff75;
  font-size: 0.78rem;
  text-align: center;
}


/* =========================================================
   RESPONSIVE BREAKPOINTS
   Desktop: >= 1200px
   Tablet: 768px–1199px
   Mobile: <= 767px
========================================================= */

/* Tablet */
@media (max-width: 1199px){
  .services{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about{ grid-template-columns: 180px 1fr; }

  /* Footer nuevo */
  .site-footer__grid{ grid-template-columns: 1fr 1fr; }

  /* Footer viejo */
  .footer__inner{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 767px){
  .navbtn{ display: inline-flex; }
  .social{ display: none; }

  /* Menu en dropdown */
  .menu{
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(var(--header-h) + 10px);
    background: rgba(23, 74, 82, 0.96);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    padding: 12px;
    flex-direction: column;
    gap: 6px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .menu.is-open{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .menu__link{
    width: 100%;
    justify-content: center;
    font-size: 16px;
  }

  .hero{ height: clamp(420px, 70vh, 720px); }
  .hero__content{ padding-bottom: 42px; }
  .hero__title{ max-width: 26ch; }
  .btn{ width: 100%; }

  .services{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; text-align: center; }
  .about__text{ text-align: left; }

  .form__grid{ grid-template-columns: 1fr; }
  .form__actions{ justify-content: stretch; }
  .form__actions .btn{ width: 100%; }

  /* Footer nuevo */
  .site-footer__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .f-row{ margin-bottom: 10px; }

  /* Footer viejo */
  .footer__inner{ grid-template-columns: 1fr; }
}

/* Small phones */
@media (max-width: 390px){
  .brand__logo{ width: 112px; }
  .navbtn{ width: 42px; height: 42px; }
  .hero__cta{ gap: 10px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn, .menu{ transition: none; }
}


/* =========================
   HERO variants
========================= */
.hero--primary{
  height: clamp(580px, 44vh, 980px);
}

.hero--secondary{
  height: clamp(420px, 54vh, 520px);
  margin-top: 10px;
  border-radius: 0; /* si quieres que se vea full-width */
}

/* badges del hero */
.hero__badges{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.badge{
  display: inline-flex;
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  color: rgb(255, 250, 253);
  font-size: 0.95rem;
  font-weight: 900;
}

/* En mobile, que el contenido no se pegue abajo */
@media (max-width: 767px){
  .hero--secondary .hero__content{
    padding-bottom: 34px;
  }
}


/* =========================
   VIDEO HERO – ajuste fino
========================= */
.hero{
  position: relative;
  overflow: hidden;
}

.hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 8%; /* 🔑 sube el encuadre */

  transform: scale(1);      /* 🔑 reduce el “zoom” */
  z-index: 0;
}



@media (max-width: 767px){
  .hero__video{
    object-position: center 65%;
    transform: scale(1); /* sin zoom extra en mobile */
  }
}

