:root {
  --bg: #fff;
  --bg2: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --muted2: #64748b;

  --primary: #1e40af;
  --primary2: #1d4ed8;
  --teal: #0f766e;

  --ring: rgba(30, 64, 175, 0.18);
  --border: #e2e8f0;
  --shadow: 0 12px 28px rgba(2, 6, 23, 0.08);

  --radius: 18px;
  --container: 1120px;

  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(900px 540px at 20% -10%, rgba(30,64,175,.10), transparent 60%),
    radial-gradient(900px 540px at 90% 10%, rgba(15,118,110,.08), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 18px; }

.main {
     
    display: flex;
    flex-direction: column;
    gap: 150px;

}

/* ======================
   Header / Nav
====================== */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand__logo {
  height: 70px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__link {
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 750;
}

.nav__link:hover {
  color: #06405e;
  background: #ffffff;
}

.nav--desktop { display: flex; }

/* Hamburger */
.hamburger {
  display: none;
  width: 65px;
  height: 44px;
  border-radius: 14px;
  border: 2px solid #06405e;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.hamburger:hover {
  border: 2px solid #06405e;
  background: #06405e;
  color: #ffffff;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #0f172a;
  margin: 7px 11px;
  opacity: 0.92;
}

.hamburger:hover span{
  border: 1px solid #ffffff;
  background: #ffffff;
  cursor: pointer;
}

/* Offcanvas */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.40);
  z-index: 70;
}

.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100vh;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-left: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transform: translateX(102%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
}

.offcanvas.is-open { transform: translateX(0); }

.offcanvas__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.iconBtn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.nav--mobile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 10px;
}

.nav--mobile .nav__link {
  padding: 12px 12px;
  border-radius: 14px;
}

.offcanvas__footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* ======================
   Buttons
====================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 900;
  color: #fff;
  border: 1px solid rgba(30, 64, 175, 0.20);
  background: #0e77bd;
  box-shadow: var(--shadow);
}

.btn:hover { filter: brightness(1.03); }

.btn--ghost {
  background: #fff;
  color: #0e77bd;
  border: 2px solid #0e77bd;
  box-shadow: none;
}

.btn--ghost:hover { 
    filter: brightness(1.03);
    background: #0e77bd;
    color: #fff; }

.btn--sm { padding: 10px 14px; border-radius: 12px; }
.btn--full { width: 100%; }

.btn--teal {
  background: #06405e;
  border-color: rgba(15,118,110,.20);
}

/* ======================
   Typography helpers
====================== */

h1, h2 { 
    font-family: var(--serif);
    color: #0e77bd;
}
.hero h1, .hero h2 { 
    color: #ffffff;
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.3px;
}
h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}
h3 { 
  font-family: var(--serif);
    color: #0e77bd; }
.muted { color: var(--muted); }


.container-full h3 {
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
}

.container-full p {
  color: #ffffff;

}
/* ======================
   Hero + Slider
====================== */

.hero { position: relative; min-height: 78vh; }
.hero__slider { position: relative; min-height: 78vh; overflow: hidden; }

.hero__track {
  height: 78vh;
  display: flex;
  transform: translateX(0%);
  transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
}

.hero__slide {
  position: relative;
  flex: 0 0 100%;
  height: 78vh;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -10px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero__slide { background-image: url("/assets/img/slider1.webp"); }
.hero__slide .hero__bg { background-image: var(--bg); }

.hero__overlay {
  position: absolute;
  inset: 0;
  /*background: linear-gradient(
    90deg,
    rgba(255,255,255,.92),
    rgba(255,255,255,.45),
    rgba(255,255,255,.88)
  );*/
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 96px 0 72px;
    max-width: 860px;
    height: 100%;
    align-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #0e77bd;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: #0e77bd;
  margin: 0 0 14px;
  font-weight: 850;
}

.lead {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
}

.hero .lead {
  color: #fff;
}


.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.badge {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(15, 23, 42, 0.03);
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
}

.hero .badge {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(15, 23, 42, 0.03);
  color: #ffffff;
  font-weight: 850;
  font-size: 13px;
}

.hero__mini {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
}

.mini {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06);
}

.mini__t { font-weight: 950; font-size: 13px; }
.mini__d { color: var(--muted2); font-size: 12px; margin-top: 4px; }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-size: 32px;
  line-height: 42px;
  z-index: 3;
  cursor: pointer;
}

.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }

.hero__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.22);
  background: rgba(2, 6, 23, 0.10);
  cursor: pointer;
}

.hero__dot.is-active {
  background: var(--primary);
  border-color: rgba(30, 64, 175, 0.35);
}

/* ======================
   Sections / Layout
====================== */

.section { padding: 150px 0; }

.section--alt {
  background: linear-gradient(180deg, rgba(248,250,252,1), rgba(255,255,255,1));
}

.section__head {
  margin-bottom: 18px;
  max-width: 760px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.contenedor__card {
    width: 100%;
}

.hero__arrow--prev  span,
.hero__arrow--next span {

   padding: 0px !important;
    display: flex;
    justify-content: center;
    margin: 1px !important;
    padding: 0px;
    height: 100%;
    align-items: center;
    transform: translateY(-14%);
}




/* Cards grids */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cards2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* Card base */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-full {
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow);
   background-image: url(/assets/img/contacto.webp);
   display: flex;
  flex-direction: column;
  height: 500px;
  align-items: center;
    justify-content: center;
    text-align: center;
}


.card--form { padding: 20px; }

/* Media cards */
.mediaCard { padding: 0; overflow: hidden; }
.mediaCard img { width: 100%; height: auto; display: block; }
.mediaCard__body { padding: 16px 18px; }

.sectionMedia img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}

/* ======================
   Who we are (Team)
====================== */

.team {
  display: grid;
    gap: 12px;
    margin-top: 14px;
    grid-template-columns: repeat(3, 1fr);
}

.person {
     align-content: center;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(2, 6, 23, 0.08);
    background: rgba(15, 23, 42, 0.02);
    border-radius: 16px;
    flex-direction: column;
}

.avatar {
      width: 150px;
    height: 150px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30,64,175,.16), rgba(15,118,110,.12));
  border: 1px solid rgba(2, 6, 23, 0.08);
}

.person__name { font-weight: 950; }
.person__role { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ======================
   Services
====================== */

.service {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: rgba(30, 64, 175, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ico svg { width: 22px; height: 22px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.10);
  border: 1px solid rgba(15, 118, 110, 0.22);
  color: #065f46;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 8px;
}

.checklist {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.checklist li { margin: 8px 0; }

/* details / accordion */
.details { margin-top: 10px; }

details {
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: 16px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.02);
}

details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 950; }
details p { margin: 10px 0 0; color: var(--muted); }

/* ======================
   Testimonials
====================== */

.tTrack {
  display: flex;
  gap: 14px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 44px 0;
}

.tCard {
  min-width: min(360px, 86vw);
  flex: 0 0 auto;
}

.quote {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.qBy { margin-top: 10px; font-weight: 950; }
.qMeta { color: var(--muted2); font-size: 12px; margin-top: 2px; }

.tNav {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}

.tBtn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

/* ======================
   Contact / Form
====================== */

.quickBtns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.contactInfo {
  display: grid;
  gap: 10px;
  color: var(--muted);
  margin-top: 14px;
}

.infoRow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.infoRow svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--primary);
}

.map {
  width: 100%;
  height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Fields */
.field { margin-bottom: 14px; }

label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #0f172a;
  font-weight: 950;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.req { color: #ef4444; }

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}

input::placeholder,
textarea::placeholder { color: #94a3b8; }

input:focus,
textarea:focus {
  border-color: rgba(30, 64, 175, 0.75);
  box-shadow: 0 0 0 4px var(--ring);
}

.error {
  display: block;
  min-height: 18px;
  color: #ef4444;
  margin-top: 6px;
  font-size: 12px;
}

.formMsg {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(15, 23, 42, 0.02);
  color: var(--muted);
}

.formMsg.is-ok {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.08);
  color: #065f46;
}

.formMsg.is-err {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #7f1d1d;
}

.tiny { font-size: 12px; }

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ======================
   Footer
====================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.82);
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sectionMedia {
   background-image: url("/assets/img/contacto.webp");  
       width: 100%;
    height: 350px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: block;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
}

.sectionMedia h2  {
  color: #ffffff;
}

.sectionMedia p  {
  color: #ffffff;
}
/* ======================
   Responsive
====================== */

@media (max-width: 1040px) {
 .hero__content {  padding: 96px 60px 72px;}
}

@media (max-width: 980px) {
  .grid2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cards2 { grid-template-columns: 1fr; }
  .hero__mini { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav--desktop { display: none; }
  .hamburger { display: inline-block; }
  .hero__content { padding: 88px 70px 64px; }
}





.valor-slider{
 background-image: url(/assets/img/contacto.webp);
    width: 100%;
    height: 700px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: block;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    margin-top: 100px;
}

/* Caja estilo “card” */
.valor-card{
  max-width: 720px;
     background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.valor-title{
  margin: 0 0 16px 0;
  line-height: 1.1;
  font-weight: 800;
  font-family: var(--serif);
    color: #0e77bd;
}

.valor-fader{
  position: relative;
  height: 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.valor-fader .item{
  position:absolute;
  left:50%;
  top:50%;
  white-space: nowrap;

  font-size: 18px;
  font-weight: 700;

  opacity:0;
  transform: translate(-50%, -50%) translateX(-60px);

  /* Loop total: 9s (3 palabras x 3s) */
  animation: palabraSolo 9s linear infinite;
  pointer-events:none;
}

/* Ventanas: 0-3s, 3-6s, 6-9s */
.valor-fader .i1{ animation-delay: 0s; }
.valor-fader .i2{ animation-delay: 3s; }
.valor-fader .i3{ animation-delay: 6s; }

/*
  IMPORTANTÍSIMO:
  - Visible solo del 0% al 25% (o sea, solo durante su ventana)
  - Desde 25% hasta 100%: SIEMPRE invisible
  => nunca se superponen
*/
@keyframes palabraSolo{
  /* entra desde izquierda */
  0%   { opacity:0; transform:translate(-50%, -50%) translateX(-60px); }
  8%   { opacity:1; transform:translate(-50%, -50%) translateX(0); }

  /* se queda */
  18%  { opacity:1; transform:translate(-50%, -50%) translateX(0); }

  /* sale hacia derecha */
  25%  { opacity:0; transform:translate(-50%, -50%) translateX(60px); }

  /* pausa invisible */
  100% { opacity:0; transform:translate(-50%, -50%) translateX(60px); }
}