  html, body { margin: 0; padding: 0; }
    header{
    position:relative;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background-image: url(../img/backgrounds/splash.jpg);
    background-size: cover;
    /* background-size: 100% 100%; */
    
    z-index:5;
  }
/* ===== Anti-overflow global ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;           /* corta cualquier desborde horizontal */
}
*,*::before,*::after { box-sizing: border-box; }
img,video,svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }           /* evita el margen por defecto que “empuja” */

  :root{
  --font-heading: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Base */
html{
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Títulos (incluye tus títulos grandes con gradiente) */
h1,h2,h3,h4,h5,h6,
.section-title{
  font-family: var(--font-heading);
  font-weight: 800;          /* fuerte para headers */
  letter-spacing: .2px;
}

/* Texto general */
p, li, label, input, textarea, small{
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
}

/* Opcional: afinar tamaños/espaciados */
h1 { line-height: 1.05; margin: 0 0 .45em; }
h2 { line-height: 1.10; margin: 0 0 .55em; }
h3 { line-height: 1.18; margin: .6em 0 .4em; }

/* Si usas contadores */
.about-stats .num{
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}



     /* ---------------------------------------------------------------------------------Navbar------------------------------------------- */
  

/* ========== NAVBAR ========== */
.navbar {
  position: relative;   /* permite moverla con top */
  top: -110px;           /* súbela, ajusta el valor según lo necesites */
  z-index: 1000;        /* asegura que quede por encima de otros elementos */
}

/* ========== NAVBAR HORIZONTAL ========== */
.navbar .nav {
  display: flex;               /* fila horizontal */
  align-items: center;
  gap: 18px;                   /* espacio entre items */
  list-style: none;            /* sin viñetas */
  margin: 0;
  padding: 0;
}

.navbar .nav > li { margin: 0; }

.navbar .nav > li > a {
  display: inline-block;       /* para padding y hover */
  font-family: "Lobster", sans-serif;
  font-size: 18px;
  color: #ffffff;
  text-shadow: 0 0 4px #162952;
  background-color: #003874;
  border-radius: 10px 30px;
  box-shadow: 0 25px 15px 0 rgba(255,255,255,.15) inset, 
              0 1px 5px 0 rgba(4,2,2,.2);
  padding: 10px 30px;
  transition: .2s;
  text-decoration: none;
}

.navbar .nav > li > a:hover {
  background-color: #dfdfdfcf;
  color: #333333;
  text-decoration: none;
  box-shadow: 0 25px 15px 0 rgba(255,255,255,.75) inset, 
              0 1px 5px 0 rgba(4,2,2,.2);
  text-shadow: 1px 1px white;
}

/* El separador del bullet que pones como <li><span>●</span></li> */
.navbar .nav > li > span {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: #261d48;
  font-size: 14px;
}

/* Logo del centro */
.navbar .nav > li img {
  width: 100px;
  height: auto;
  display: block;
}

/* Asegura que el contenedor no obligue a columna */
.menu_pp { 
  position: absolute;
  z-index: 20;
  display: flex;
  justify-content: center;
  width: 100% !important;
}

/* Si no estás usando el JS de Bootstrap para collapse, muéstralo siempre */
#menu.nav-collapse_ { display: block; }

.navbar .nav > li:nth-child(5) img {
  width: 160px;
  padding-top: 80px;
  transform: translateY(-6px);
}
.navbar .nav > li:nth-child(5) { 
  position: relative; 
  line-height: 0; 
}


    /* ------------------------------------------------------------------------------------End Navbar------------------------------------------- */


     /* ------------------------------------------------------------------------------------Home------------------------------------------- */



/* ====== SLOG (hero card) ====== */
.slog{
  position: absolute;

  /* Layout en columna */
  display: flex;
  flex-direction: column;      /* H1 -> P -> A */
  align-items: stretch;
  gap: 12px;

  /* Caja / estética (tus estilos) */
  background-color: rgba(205,205,205,0.616);
  background: linear-gradient(rgba(215,215,215,0.78), rgba(189,189,189,0.78));
  box-shadow: inset 4px 4px 12px #ffffff;
  border-radius: 26px 56px;
  padding: 24px 20px;
  z-index: 5;

  /* Tamaño */
  width: 428px;
  max-width: calc(100vw - 40px);

  /* Posición a la izquierda como en la captura */
  top: 57%;
  left: 14%;                   /* << ajusta este % si la quieres más/menos a la izquierda */
  transform: translateY(-110%); /* solo centrado vertical, anclado a la izquierda */
}

/* Título */
.slog h1{
  font-size: 47px;
  margin: px 0 4px;
  text-align: end;
  color: #000;
  text-shadow: 4px 1px 4px #fff;
  background: none;
  box-shadow: none;
  line-height: 1.15;
 
}

/* Párrafo */
.slog p{
  margin: 0 0 12px;
  padding: 0 4px;
  color: #000;
  text-shadow: 1px 1px 1px #fff, 1px 1px 4px #846c6c, 0 2px 10px #fff;
  text-align: justify;
  line-height: 1.6rem;
  font-size: 18px;
}

/* Botón dentro de .call-to-action */
.slog .call-to-action{
  text-align: center;
}
.slog .call-to-action a{
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  background: #003874;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 25px 15px rgba(255,255,255,.15) inset, 0 1px 5px rgba(4,2,2,.2);
  transition: .2s;
  font-size: 24px;
}
.slog .call-to-action a:hover{
  background: #dfdfdfcf;
  color: #333;
  box-shadow: 0 25px 15px rgba(255,255,255,.75) inset, 0 1px 5px rgba(4,2,2,.2);
}

/* Titular dentro de .slog usando TU HTML (versión compacta) */
.slog h1{
  margin: 2px 0 2px;
  text-align: end;
  line-height: 1.04;
  font-family: var(--font-heading, "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial);
  font-weight: 900;
/

  /* legible sobre foto */
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35), 0 0 1px rgba(0,0,0,.5);
  -webkit-text-stroke: .5px rgba(16,33,54,.25);
  position: relative;   /* para el subrayado */
}

/* aplica el “look” al <strong> que ya tienes */
.slog h1 > strong{
  display: inline-block;
  background: linear-gradient(180deg,#ffd36b,#ff5a3c); /* dorado → naranja */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* subrayado animado, alineado a la derecha (más sutil) */
.slog h1::after{
  content:"";
  display:block;
  width: 0;                       /* animado */
  height: 5px;                    /* ↓ más fino */
  margin: 8px 0 0 auto;           /* pegado a la derecha */
  border-radius: 999px;
    background: linear-gradient(90deg, #1e90ff, #ffffff, #1e90ff);

  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  animation: headlineLine .8s .15s cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes headlineLine{
  to { width: clamp(96px, 26vw, 240px); } /* ↓ subrayado más corto */
}

/* pequeño brillo al pasar el mouse */
.slog h1:hover > strong{ filter: brightness(1.08); }

    /* ---------------------------------------------------------------------------------- End  Home------------------------------------------- */


  /* ---------------------------------------------------------------------------------- Hero------------------------------------------- */
  .hero {
  position: relative;
  overflow: hidden;  
  background-image: url(../images/home.png);
  background-size: cover;
  background-position: center; /* centra la imagen */
  height: 850px; /* ajusta a la altura que quieras */
}


  /* ----------------------------------------------------------------------------------End Hero------------------------------------------- */

   /* ---------------------------------------------------------------------------------- About-------------------------------------------  --color-dark: #202330;  */

  #about{

    background:#1E2433;
    color: white

  }

  /* ===== About (layout) ===== */
.about{
  position: relative;
 
}

/* Asegura contexto para el decor */
#about{ position: relative; }

/* --- ABOUT: motor debajo del título, más arriba --- */
#about .about-decor-ac {
  position: relative;
  display: block;
  margin: 0 auto 8px;
  width: clamp(260px, 34vw, 520px);
  transform: translateY(-60px) !important; /* ↓ antes -80px */
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.18));
  pointer-events: none;
  z-index: 1;
}


/* un pelín más en pantallas grandes */
@media (min-width: 1200px){
  #about .about-decor-ac{
    transform: translateY(-120px);
  }
}



/* opcional: un poco más de aire arriba */
.about{ padding-top: 72px; }


#about .about-wrap{
  width: min(96vw, 1500px);       /* súbelo a 1440/1500 si quieres más */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr; /* más espacio a la imagen */
  gap: 40px;
  padding-inline: clamp(16px, 4vw, 48px);
  height: 740px ;
row-gap: 15px;
}

/* Columna izquierda (opcional) */
.about-left{
  flex: 1 1 62%;                /* antes 55–60%; ahora 62% */
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  background: url("assets/images/about.jpg") center/cover no-repeat;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

#about .about-left img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== About (card) ===== */
.about-card{
  margin-top: 60px;
  flex: 1 1 38%;                /* antes 40% aprox.; mantenlo fluido */

  padding: 28px 28px 32px;
  border-radius: 24px;
  background: linear-gradient(180deg,#ffffffcc,#f7f7f7cc);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
 
  max-width: none;                /* quita topes que la estrechan */
  height: 530px;
    margin-bottom: 0;
  text-align: justify;

}

.about-card h2{
  margin: 0 0 10px 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f1e36; /* azul oscuro */
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

.about-card h3{
  margin: 14px 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #113b73; /* acento */
}

.about-card p{
  margin: 0 0 12px 0;
  line-height: 1.65;
  font-size: 18px;
  color: black;
}

/* Botón */
.about-btn{
  display: inline-block;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 12px 24px;
  background: #003874;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.about-btn:hover{
  background: #1a4d8b;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.22);
}

/* Asegura posiciones: imagen a la izquierda ocupando 2 filas;
   card en col 2 fila 1; counters en col 2 fila 2 */
#about .about-left{ grid-column: 1; grid-row: 1 / span 2; }
#about .about-card{ grid-column: 2; grid-row: 1; }
#about .about-stats{ grid-column: 2; grid-row: 2; }
/* Estilo de los counters */
.about-stats{
  display: flex;
  gap: 20px;
  margin-top: -25px;
  height: 160px;
}

.about-stats .stat{
  flex: 1 1 0;
  padding: 24px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.08));
  backdrop-filter: blur(3px);
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.about-stats .num{
  display: block;
  font-weight: 900;
  line-height: 1;
  font-size: clamp(36px, 6.2vw, 72px);
background: linear-gradient(180deg,#67e8f9,#38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

.about-stats .label{
  display: block;
  margin-top: 6px;
  font-size: 21px;
  letter-spacing: .3px;
  opacity: .9;
}








     /* ---------------------------------------------------------------------------------- End About------------------------------------------- */

      /* ---------------------------------------------------------------------------------- Services------------------------------------------- */


.services-steps{

  background-image: url("../images/snowflakes.jpg");
}
/* ===== Services layout y etapas ===== */
.services-steps {
  position: relative;
}
.services-steps{
  position: relative;
  isolation: isolate;          /* que el decor no se mezcle con sombras */
}

/* Sube el split MUCHO más (ajustable) */
.services-steps{
  /* móvil  →  desktop muy grandes */
  --ac-lift: clamp(-160px, -22vw, -420px);
}

.services-steps .ac-decor-title,
.services-steps .ac-decor-services{
  position: relative;
  z-index: 1;
  display: block;
  width: min(560px, 60vw);
  height: auto;
  margin: var(--ac-lift) auto 10px;  /* ← sube con margen negativo */
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.18));
}

/* en pantallas enormes, súbelo todavía más si quieres */
@media (min-width: 1600px){
  .services-steps{ --ac-lift: -520px; }
}

/* por si en móviles se pasa, suavízalo */
@media (max-width: 600px){
  .services-steps{ --ac-lift: -60px; }
}


.services-steps .svc{
  min-height: 78vh;                 /* antes ~95vh: menos “aire” vertical */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;      /* ¡importante! ya no centrado vertical */
  gap: 12px;                        /* espacio compacto entre bloques */
  padding: 24px 16px 36px;
}

.services-steps .svc-visual{ margin-bottom: 6px; }  /* icono + h3 */
.services-steps .svc-copy{   margin-top: 6px; }     /* párrafo */
/* Aparición escalonada */
.svc-visual{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .5s ease, transform .5s ease;
}
.svc-copy{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .5s ease .08s, transform .5s ease .08s;
}

/* Estados activados por JS */
.svc.is-visual .svc-visual{ opacity:1; transform:none; }
.svc.is-copy   .svc-copy  { opacity:1; transform:none; }

/* ===== Icono “principal” ===== */
.services-steps .svc-visual{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
}
.services-steps .svc-icon{
  --icon-bg: linear-gradient(135deg,#ffb84a,#ff5a3c);
  display:grid;
  place-items:center;
  width:110px; height:110px;
  border-radius:50%;
  background: var(--icon-bg);
  color:#fff;
  border:4px solid #fff;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}
.services-steps .svc-icon--xl{
  width:190px; height:190px;
  font-size:48px;
}

/* Paletas por servicio (para diferenciarlos) */
.svc--gold .svc-icon { --icon-bg: linear-gradient(135deg,#ffd36b,#ff7b3d); }
.svc--red  .svc-icon { --icon-bg: linear-gradient(135deg,#ff6a4a,#d61d2f); }
.svc--blue .svc-icon { --icon-bg: linear-gradient(135deg,#0b3a6a,#0090c1); }

/* ===== Título y texto bonitos ===== */
.services-steps h3{
  margin: 8px 0 0;
  font-weight: 900;
  letter-spacing: .3px;
  color:#0f1e36;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
  font-size: clamp(34px, 3.6vw, 32px);
  position: relative;
}
.services-steps h3::after{
  content:"";
  display:block;
  width: 64px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg,#ffb84a,#ff5a3c);
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  margin: 8px auto 0;
}

.services-steps .svc-copy p{
  max-width: min(70ch, 92vw);
  background: linear-gradient(180deg,#ffffffcc,#f6f6f6cc);
  backdrop-filter: blur(3px);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
  color:#0f2036;
  line-height: 1.7;
  font-size: clamp(16px, 1.9vw, 18px);
}

/* (Opcional) separar visualmente los pasos */
.services-steps .svc + .svc{
  border-top: 1px dashed rgba(0,0,0,.08);
}

/* ===== Carousel (Services Gallery) ===== */
.svc-carousel{
  /* Paleta */
  --accent: #003874;            /* color principal */
  --dot: rgba(0,0,0,.35);       /* base de puntitos (en fondos claros) */
  --dot-active: #ff7b3d;        /* punto activo */
  --cap-bg: rgba(0,0,0,.35);    /* fondo caption */

  width: min(1050px, 100%);
  margin-inline: auto;
  position: relative;
  user-select: none;
  margin-bottom: 50px;
}

/* Viewport & sombra */
.svc-viewport{
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

/* Pista de slides */
.svc-track{
  display: flex;
  will-change: transform;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}

/* Fix de margen por defecto del <figure> (quita “columna blanca”) */
.svc-track, .svc-slide{ margin: 0; }

/* Slide */
.svc-slide{
  position: relative;
  min-width: 100%;
  aspect-ratio: 16/9;
  background: #111; /* fallback mientras carga la imagen */
}

.svc-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption */
.svc-slide figcaption{
  position: absolute;
  left: 10px; bottom: 10px;
  margin: 0;
  font-weight: 700;
  color: #fff;
  background: var(--cap-bg);
  padding: 8px 12px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

/* Flechas */
.svc-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: none; cursor: pointer;
  color: #fff; background: var(--accent);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
  z-index: 2;
}
.svc-nav:hover{
  transform: translateY(-50%) scale(1.06);
  filter: brightness(1.05);
}
.svc-prev{ left: 10px; }
.svc-next{ right: 10px; }

/* Puntitos (indicadores) */
.svc-dots{
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 12px 8px 0;
}
.svc-dots button{
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 0;
  background: var(--dot);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.svc-dots button[aria-selected="true"]{
  background: var(--dot-active);
  transform: scale(1.25);
}

/* Accesibilidad: foco visible */
.svc-nav:focus-visible,
.svc-dots button:focus-visible{
  outline: 2px dashed #fff;
  outline-offset: 3px;
}

/* Responsive: caption más pequeño en móvil */
@media (max-width: 560px){
  .svc-slide figcaption{
    font-size: 14px;
    padding: 6px 10px;
  }
}


            /* ----------------------------------------------------------------------------- End  Services------------------------------------------- */




    .footer{
  background:#1E2433;
  color:white;
  padding:48px 16px 18px;
  
}
/* Footer pegado sin espacio extra */
/* Quitar márgenes/paddings extra */
html, body {
  margin: 0;
  padding: 0;
  height: auto;
  overflow-x: hidden; /* evita scroll horizontal indeseado */
  background: #0b0f1a; /* mismo color que tu background */
}

/* Footer pegado sin espacio extra */
.footer {
  margin: 0;
  padding-bottom: 24px; /* solo el espacio necesario dentro */
}

/* Elimina posibles espacios fantasmas */
body > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer a{
  color:white;
  text-decoration:none;
}
.footer a:hover{ color:white; }

.footer-wrap{
  width:min(96vw, 1200px);
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr; /* brand | nav | contact | social */
  gap:28px;
  align-items:start;
}

.footer-brand img{
  width:150px;
  height:auto;
  display:block;
  margin-bottom:12px;
}
.footer-brand .brand-name{
  margin:0;
  font-weight:700;
  line-height:1.2;
}

.footer-nav h4,
.footer-contact h4,
.footer-social h4{
  margin:25px 0 22px;
  font-size:20px;
  letter-spacing:.5px;
  color:white;
  text-transform:uppercase;
}

.footer-nav ul,
.footer-contact ul{
  list-style:none;
  margin:8px 0 0;
  padding:0;
}
.footer-nav li,
.footer-contact li{ margin:8px 0; }

.footer-contact i{ margin-right:8px; }

.footer-social .socials{
  display:flex;
  flex-direction:column;    /* uno debajo del otro */
  gap:12px;
}

.footer-social .socials a{
  width:42px; height:42px;
  border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; text-decoration:none;
  box-shadow:0 6px 14px rgba(0,0,0,.25);
  transition:.15s transform,.15s box-shadow,.15s filter;
  background:#0f1e36;       /* color base si no pones por red */
}

.footer-social .socials a i{ font-size:18px; }

/* Colores por red (opcional) */
.footer-social .socials a[aria-label="Facebook"]  { background:#1877F2; }
.footer-social .socials a[aria-label="Instagram"] { background:#E1306C; }
.footer-social .socials a[aria-label="TikTok"]    { background:#000; }
.footer-social .socials a[aria-label="YouTube"]   { background:#FF0000; }

.footer-social .socials a:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(0,0,0,.28);
  filter:saturate(1.1);
}


.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.12);
  margin-top:28px; padding-top:14px;
  text-align:center; font-size:14px; color:white;
}




/* =====------------------------------------------------------------------- Testimonials ==---------------------------------------------------------------------------------------------=== */
.testimonials{
  background:#1E2433;
  color:#0f1e36;
  padding: 72px 0;
}


/* Carrusel / grid responsivo */
.ts-wrap{
  position:relative;
   width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(12px, 4vw, 32px);
}

.ts-list{
  display:flex;
  gap:20px;
  overflow:auto;
   scroll-snap-type: x proximity;  
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.ts-list::-webkit-scrollbar{ height: 8px; }
.ts-list::-webkit-scrollbar-thumb{ background:#c9d1e4; border-radius:999px; }
.ts-list:focus{ outline: 2px dashed rgba(0,0,0,.25); outline-offset: 4px; }

/* Tarjeta */
.ts-card{
    scroll-snap-align: start;
  flex: 0 0 88%;
  max-width: 88%;
  background:#fff;
  border-radius:18px;
  box-shadow:0 10px 26px rgba(0,0,0,.12);
  padding:18px 18px 20px;
}
@media (min-width: 720px){
  .ts-card{ flex-basis: 48%; max-width:48%; }
}
@media (min-width: 1080px){
  .ts-card{ flex-basis: 31%; max-width:31%; }
}

/* Head (avatar + nombre + estrellas) */
.ts-head{
  display:flex; align-items:center; gap:12px; margin-bottom: 10px;
}
.ts-head img{
  width:56px; height:56px; object-fit:cover; border-radius:50%;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.ts-head h3{
  margin:0 0 4px; font-size:18px; font-weight:800; color:#0f1e36;
}
.ts-stars{ color:#ffb84a; font-size:14px; }

/* Texto */
.ts-card p{
  margin:0;
  color:#1c2640;
  line-height:1.65;
  font-size:16px;
}

/* Flechas */
.ts-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border-radius:50%; border:none;
  display:grid; place-items:center;
  background:#003874; color:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.22);
  cursor:pointer;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.ts-nav:hover{ transform:translateY(-50%) scale(1.05); filter:brightness(1.1); }
.ts-nav:disabled{ opacity:.45; cursor:not-allowed; }

.ts-nav.prev{ left: 8px; }
.ts-nav.next{ right: 8px; }

/* Reveal suave al entrar en viewport */
.reveal{ opacity:0; transform:translateY(14px); filter:blur(6px);
  transition: opacity .5s ease, transform .5s ease, filter .5s ease; }
.reveal.in{ opacity:1; transform:none; filter:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; filter:none; transition:none; }
}

/* -------- Testimonials: termómetro centrado y un poco más pequeño -------- */
#testimonials .decor-thermo{
  display: block;                 /* asegura centrado con left/translate */
  position: relative;
  left: 50%;
  width: clamp(300px, 40vw, 660px); /* ↓ más pequeño */
  transform: translate(-50%, -130px); /* centro exacto + lo subimos */
  margin-bottom: -220px;            /* acerca las cards */
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.20));
}

/* Carrusel ligeramente más arriba y centrado */
#testimonials .ts-wrap{
  width: min(96vw, 1200px);
  margin-inline: auto;
  padding-inline: 32px;
  margin-top: -72px;               /* súbelo un toque más */
  position: relative;
  z-index: 1;
}

/* Mobile: proporciones cómodas */
@media (max-width: 560px){
  #testimonials .decor-thermo{
    width: clamp(240px, 62vw, 440px);
    transform: translate(-50%, -60px);
    margin-bottom: -120px;
  }
}


/* =====--------------------------------------------------------------------- Contact section -------------------------------------------------------------------------------------------===== */
.contact{
  background-image: url("../images/fondo.png");
  color:#0f1e36;
  padding: 72px 0;

}



.contact-wrap{
  width: min(96vw, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
  color: white;
}
@media (max-width: 880px){
  .contact-wrap{ grid-template-columns: 1fr; }
}

/* Info */
.contact-info p{ margin: 6px 0 14px; font-size: 22px; color: white;}
.contact-list{ list-style: none; padding: 0; margin: 0; display: grid; gap: 10px;color: white; }
.contact-list a{ color:#0f1e36; text-decoration: none; color: white;}
.contact-list a:hover{ text-decoration: underline;color: white; }
.contact-list i{ width: 32px; text-align: center; color:#003874; margin-right: 8px;color: white; }

/* Card (form) */
.contact-card{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

@media (max-width: 700px){
  .contact-card{ grid-template-columns: 1fr; }
}
/* Campo honeypot oculto */
.hp-field{ position: absolute; left: -9999px; visibility: hidden; }

/* Layout de los campos */
.field{ display: grid; gap: 6px; }
.field:nth-last-child(3){ grid-column: 1 / -1; } /* fila del textarea */

/* Etiquetas (pensado para fondo oscuro/imagen detrás) */
.field label{
  font-weight: 700;
  font-size: 14px;
  color: #fff; /* si tu fondo es claro, cámbialo a #0f1e36 */
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

/* Inputs “glass” translúcidos */
.field input,
.field select,
.field textarea{
  font: inherit;
  background: rgba(255,255,255,.14);                /* translúcido */
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px;
  padding: 12px 12px;
  color: #fff;                                       /* texto */
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

/* Placeholders legibles */
.field input::placeholder,
.field textarea::placeholder{ color: rgba(255,255,255,.75); }

/* Textarea */
.field textarea{ resize: vertical; min-height: 140px; }

/* Enfoque */
.field input:focus,
.field select:focus,
.field textarea:focus{
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.90);
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}

/* Opciones del select: cuando se despliega, fondo sólido para legibilidad */
.field option{
  color: #0f1e36;
  background: #fff;
}

/* Fallback si no hay soporte de backdrop-filter */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .field input,
  .field select,
  .field textarea{
    background: rgba(255,255,255,.25);
  }
}

.error{
  color:#b3002a;
  font-size: 12px;
  min-height: 14px;
}

/* Button */
.btn{
  grid-column: 1 / -1;
  justify-self: start;
  display:inline-grid;
  grid-auto-flow: column;
  align-items:center;
  gap:10px;

  background:#003874;
  color:#fff;
  border:none;
  border-radius: 12px 24px;
  padding: 12px 18px;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btn:disabled{ opacity:.7; cursor:not-allowed; }

.btn__spinner{
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
  display: none;
}
.btn.loading .btn__spinner{ display: inline-block; }
.btn.loading .btn__label{ opacity: .85; }

@keyframes spin{ to { transform: rotate(360deg); } }

/* Alert */
.alert{
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  display: none;
}
.alert.show{ display:block; }
.alert.ok{
  background: #e8fff1; color:#064b2d; border:1px solid #8ee1b7;
}
.alert.err{
  background: #fff0f3; color:#7a0f22; border:1px solid #f3a3b2;
}



/* =====--------------------------------------------------------------------- titulos -------------------------------------------------------------------------------------------===== */


/* Título de sección mejorado */
.section-title{
  
  --accent1:#0F1E36; /* navy profundo */
  --accent2:#174A8C; /* azul corporativo */
  --accent3:#2D87C8; /* azul medio */
  --accent4:#A3C7E8; /* azul claro sobrio */



  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  text-align: center;
  letter-spacing: .5px;
  margin: 0 auto 32px;

  /* Tamaño grande responsivo */
  font-size: clamp(48px, 8vw, 110px);
  line-height: 1.02;

  /* Gradiente en texto */
  background: linear-gradient(90deg, var(--accent1), var(--accent2) 35%, var(--accent3) 65%, var(--accent4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* Sombra sutil */
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.15));

  /* Estado inicial (reveal) */
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition:
    opacity .6s ease,
    transform .6s cubic-bezier(.2,.7,.2,1);
}



/* agrega una variable para controlar el ancho del subrayado */
.section-title{
  --underline-w: clamp(100px, 18vw, 300px); /* ← ajusta a gusto */
}

/* (sin cambio) */
.section-title::after{
  content:"";
  display:block;
  height: 6px;
  border-radius: 999px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--accent3), var(--accent4));
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  width: 0;
  transition: width .6s cubic-bezier(.2,.7,.2,1) .1s;
}

/* Cuando entra al viewport */
.section-title.in{
  opacity: 1;
  transform: none;
}
.section-title.in::after{
  width: var(--underline-w); /* ← ahora usa la variable */
}


/* Escritorio: ocultar la hamburguesa y dejar el menú siempre visible */
@media (min-width: 992px){
  header .navbar .btn.btn-navbar.btn-navbar_ { display: none !important; }
  #menu.nav-collapse_ { display: block !important; }
}

/* Móvil/Tablet: mostrar hamburguesa y colapsar menú por defecto */
@media (max-width: 991.98px){
  header .navbar .btn.btn-navbar.btn-navbar_{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  #menu.nav-collapse_{ display: none; }
  body.nav-open #menu.nav-collapse_{ display: block; }
}


/* ===== Efecto hielo al hover (plug & play) ===== */
.freeze-on-hover{
  position: relative;
  overflow: hidden;
  isolation: isolate;                 /* para que la capa de hielo no escape */
  transition: transform .25s ease, filter .25s ease;
}

/* Borde helado + brillo interior */
.freeze-on-hover::before{
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgba(185,225,255,0),       /* borde “cristal” apagado */
    inset 0 0 40px rgba(140,200,255,0);        /* glow frío */
  opacity:0;
  transition: opacity .25s ease, box-shadow .25s ease;
  pointer-events:none;
}

/* Capa de escarcha / brillos */
.freeze-on-hover::after{
  content:"";
  position:absolute; inset:-2px;
  border-radius: inherit;
  background:
    radial-gradient(120px 80px at 20% -10%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(160px 100px at 80% 0%, rgba(200,230,255,.35), transparent 65%),
    repeating-linear-gradient(135deg, rgba(220,240,255,.12) 0 4px, rgba(255,255,255,0) 4px 8px);
  backdrop-filter: blur(2px) contrast(1.05) saturate(.9);
  -webkit-backdrop-filter: blur(2px) contrast(1.05) saturate(.9);
  mix-blend-mode: screen;                 /* integra los brillos sobre el contenido */
  opacity:0;
  transform: scale(1.05);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events:none;
}

/* Estado “congelado” */
.freeze-on-hover:hover{
  transform: translateY(-2px);
  filter: saturate(1.04);
}
.freeze-on-hover:hover::before{
  opacity:1;
  box-shadow:
    inset 0 0 0 2px rgba(185,225,255,.95),
    inset 0 0 60px rgba(120,190,255,.35);
}
.freeze-on-hover:hover::after{
  opacity:1;
  transform:none;
  animation: frost-sparkle 1.8s ease-in-out infinite;
}

/* Destellos suaves */
@keyframes frost-sparkle{
  0%,100% { opacity: .85; filter: blur(.5px); }
  50%     { opacity: 1;   filter: blur(0); }
}

/* Respeto accesibilidad */
@media (prefers-reduced-motion: reduce){
  .freeze-on-hover,
  .freeze-on-hover::after{ transition: none; animation: none; }
}

/* =====--------------------------------------------------------------------- GO TOP -------------------------------------------------------------------------------------------===== */

/* Botón Go to Top */
.go-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #003874;         /* color marca */
  color: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,.22);
  cursor: pointer;
  z-index: 1000;

  /* animación de aparición */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.go-top.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-top:hover{ filter: brightness(1.06); transform: translateY(-1px); }
.go-top:active{ transform: translateY(0); }
.go-top i{ font-size: 18px; }

.go-top:focus-visible{
  outline: 2px dashed #ffd36b;
  outline-offset: 3px;
}

@media (max-width: 560px){
  .go-top{ right: 12px; bottom: 12px; width: 42px; height: 42px; }
  .go-top i{ font-size: 16px; }
}


.about-decor-ac,
.ac-decor-services,
#testimonials .decor-thermo {
  max-width: 100%;
  height: auto;
}

/* ===== Navbar: evita que cree scroll horizontal en anchos intermedios ===== */
.navbar .nav {
  flex-wrap: wrap;              /* permite salto de línea si no cabe */
  justify-content: center;
}

/* ===== Ajustes móviles extra (opcional) ===== */
@media (max-width: 560px){
  /* reduce paddings para que nada “respire” fuera del viewport */
  .ts-wrap,
  .footer-wrap { padding-inline: 16px; }
  .slog { left: 50%; transform: translate(-50%, -50%); }
}

/* === Fix clics en Services → Form === */

/* 1) La imagen decorativa no debe "comerse" los clics */
.ac-decor-services {
  pointer-events: none !important;
  z-index: 0 !important;
}

/* 2) Asegura que las cards estén por encima y sean clicables */
.services-steps { position: relative; z-index: 1 !important; }
.services-steps .svc {
  position: relative !important;
  z-index: 2 !important;
  cursor: pointer !important;
}

/* 3) (Defensivo) Rehabilita eventos dentro de las cards, por si algún reset previo los anuló */
.services-steps .svc,
.services-steps .svc * {
  pointer-events: auto !important;
}

/* 4) (Opcional) Si el carrusel de servicios llega a cubrir algo, bájalo */
.svc-carousel {
  position: relative !important;
  z-index: 1 !important;
}

/* 5) (Seguridad) Cuando el menú móvil esté oculto, que no bloquee clics por accidente */
.m-overlay[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}


/* ===== Variables y utilidades ===== */
:root{
  --ts-primary: #111827;      /* textos fuertes */
  --ts-accent:  #0ea5e9;      /* acento (focus/botón) */
  --ts-border:  #e5e7eb;
  --ts-muted:   #6b7280;
  --ts-bg:      #ffffff;
  --ts-shadow:  0 20px 50px rgba(0,0,0,.15);
}

/* Encabezado con botón */

/* Centrar el botón sin tocar su estilo */
#testimonials .ts-add-btn{
  display: block;           /* deja de ser inline-flex para que el margen funcione */
  width: fit-content;       /* opcional, que solo ocupe su contenido */
  margin: 14px auto 0;      /* ← centra horizontalmente */
}

/* ===== Variables y utilidades ===== */
:root{
  --ts-primary: #111827;      /* textos fuertes */
  --ts-accent:  #0ea5e9;      /* acento (focus/botón) */
  --ts-border:  #e5e7eb;
  --ts-muted:   #6b7280;
  --ts-bg:      #ffffff;
  --ts-shadow:  0 20px 50px rgba(0,0,0,.15);
}

/* Encabezado con botón */

.ts-add-btn{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--ts-primary); color:#fff; border:0; border-radius:10px;
  padding:10px 14px; font-weight:700; cursor:pointer; transition:transform .15s ease, opacity .15s;
}
.ts-add-btn:hover{ transform:translateY(-1px); opacity:.95; }
.ts-add-btn i{ font-size:14px; }

/* ===== Modal ===== */
.ts-modal{ position:fixed; inset:0; z-index:4000; opacity:0; pointer-events:none; transition:opacity .25s ease; }
.ts-modal.is-open{ opacity:1; pointer-events:auto; }
.ts-modal__overlay{ position:absolute; inset:0; background:rgba(17,24,39,.55); }
.ts-modal__dialog{
  position:relative; width:min(680px, 92vw); max-height:86vh; overflow:auto;
  margin:6vh auto 0; background:var(--ts-bg); border-radius:18px; box-shadow:var(--ts-shadow);
  padding:22px 20px 20px; transform:translateY(10px) scale(.98); transition:transform .25s ease;
}
.ts-modal.is-open .ts-modal__dialog{ transform:none; }
.ts-modal__title{ font:700 22px/1.2 Roboto, system-ui; color:var(--ts-primary); margin:0 32px 12px 0; }
.ts-modal__close{
  position:absolute; top:12px; right:12px; width:36px; height:36px; border-radius:10px;
  border:1px solid var(--ts-border); background:#fff; font-size:22px; line-height:1; cursor:pointer;
}
.ts-modal__close:hover{ background:#f9fafb; }

/* ===== Formulario ===== */
.ts-form{ margin-top:8px; }
.hp-field{ position:absolute; left:-9999px; opacity:0; height:0; width:0; }

.ts-grid{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;
}
.ts-form input, .ts-form select, .ts-form textarea{
  width:100%; border:1px solid var(--ts-border); border-radius:12px;
  padding:12px 14px; font:400 14px/1.35 Roboto, system-ui; color:#111;
  background:#fff; transition:border-color .15s, box-shadow .15s, transform .03s;
}
.ts-form textarea{ grid-column:1/-1; resize:vertical; min-height:110px; }
.ts-form input::placeholder, .ts-form textarea::placeholder{ color:#9ca3af; }
.ts-form input:focus, .ts-form select:focus, .ts-form textarea:focus{
  outline:0; border-color:var(--ts-accent);
  box-shadow:0 0 0 3px rgba(14,165,233,.15);
}
.ts-form input:active, .ts-form select:active, .ts-form textarea:active{ transform:translateY(0); }

.ts-help{ display:block; margin-top:8px; color:var(--ts-muted); font-size:12px; }
.ts-msg{ margin-top:10px; min-height:18px; font-size:14px; }

/* Botón primario (fallback si no tienes .btn-ghost) */
.ts-btn-primary{
  margin-top:10px; background:var(--ts-accent); color:#fff; border:0; border-radius:12px;
  padding:12px 16px; font-weight:700; cursor:pointer; box-shadow:0 8px 20px rgba(14,165,233,.25);
}
.ts-btn-primary:hover{ filter:brightness(.98); }
.ts-btn-primary:active{ transform:translateY(1px); }

@media (max-width: 720px){
  .ts-grid{ grid-template-columns:1fr; }
  .ts-modal__dialog{ margin:4vh auto 0; }
}
