:root{
  /* ============ Brand / base ============ */
  --tansa-navy:#041a3a;
  --tansa-navy-2:#07142b;
  --tansa-white:#ffffff;
  --tansa-text:rgba(255,255,255,0.92);
  --tansa-muted:rgba(255,255,255,0.68);
  --tansa-gray:rgba(132,148,162,0.85);

  /* Grises TANSA */
  --tansa-s1:rgba(132,148,162,0.28);
  --tansa-s2:rgba(132,148,162,0.55);

  /* Bordes / superficies */
  --tansa-border:rgba(132,148,162,0.28);
  --tansa-border-soft:rgba(255,255,255,0.12);
  --tansa-border-strong:rgba(255,255,255,0.18);
  --tansa-border-hover:rgba(255,255,255,0.35);

  /* Tarjetas / cards */
  --tansa-card-bg:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  --tansa-card-border:rgba(255,255,255,0.12);
  --tansa-shadow-1:0 18px 60px rgba(0,0,0,0.35);
  --tansa-shadow-2:0 18px 60px rgba(0,0,0,0.25);

  /* Vidrio / overlays */
  --tansa-glass-1:rgba(130,148,162,0.18);
  --tansa-glass-2:backdrop-filter blur(60px);

  /* Typography */
  --tansa-radius-lg:18px;
  --tansa-radius-md:16px;
  --tansa-radius-sm:14px;
  --tansa-radius-pill:999px;

  /* CTAs */
  --tansa-cta-border:rgba(255,255,255,0.18);
  --tansa-cta-text:#fff;
  --tansa-cta-bg:linear-gradient(180deg, rgba(132,148,162,0.55), rgba(4,26,58,0.92));
  --tansa-cta-shadow:0 16px 50px rgba(4,26,58,0.55);
  --tansa-cta-ring:rgba(132,148,162,0.35);
  --tansa-cta-bg-hover:0 22px 65px rgba(4,26,58,0.68);

  /* Otros tonos */
  --tansa-white-opacity: rgba(255,255,255,0.7);
  --tansa-white-opacity-strong: rgba(255,255,255,0.92);

  --tansa-cta-shimmer:linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);

  /* Material cards */
  --tansa-material-overlay:rgba(4,26,58,0.05);
  --tansa-material-overlay-hover:rgba(4,26,58,0.62);
  --tansa-material-title-bg:rgba(4,26,58,0.25);
  --tansa-material-title-bd:rgba(255,255,255,0.16);

  /* Botones “política” */
  --tansa-politica-bg:var(--tansa-navy);
  --tansa-politica-border:var(--tansa-navy);
  --tansa-politica-hover-bg:rgba(132,148,162,0.85);
  --tansa-politica-hover-bd:rgba(132,148,162,0.85);

  /* Inputs */
  --tansa-input-underline:#cccccc;
  --tansa-input-highlight:#007bff;

  /* WhatsApp */
  --tansa-whatsapp:#25D366;
  --tansa-whatsapp-hover:#1ebe5d;

  /* Carrusel clientes */
  --tansa-fade:rgba(255,255,255,1);

  /* Social buttons */
  --tansa-social-ring:rgba(255,255,255,0.2);
  --tansa-social-text:rgba(255,255,255,0.7);
}

@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

a{color:inherit}

.nav-link {
  position: relative;
  text-decoration: none !important;
  font-size:1rem;
  letter-spacing: 0.01em;  
  font-weight:500;
    -webkit-text-stroke: 0px currentColor;
  transition: -webkit-text-stroke 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.2s ease-in;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  -webkit-text-stroke: 0.3px currentColor;
}

.h1 em{
  font-family: 'Fraunces', serif !important;
  font-style: italic;   
  font-weight: 700;
}

h2{
  font-weight:700;
  font-family: 'Fraunces', serif !important;
  font-size:3rem;
  letter-spacing:-.02em;
  text-align: center;
}

h2 em{
  font-family: 'Fraunces', serif !important;
  font-style: italic;   
  font-weight: 700;
}

h3{
  font-weight:700;
  font-family: 'Fraunces', serif !important;
  letter-spacing:-.02em;
  text-align: left;
}

h4{
  font-weight:700;
  font-family: 'Fraunces', italic !important;
  letter-spacing:-.02em;
  text-align: left;
} 

.footer-title{
  color:white;
}

h5{
  font-weight:600;
  font-family: 'Fraunces', italic !important;
  letter-spacing:-.02em;
  text-align: left;
  color:var(--tansa-navy);
} 

.tansa-navbar{
  background: rgba(130, 148, 162, 0.18);
  border-bottom: 1px solid rgba(132,148,162,0.28);
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(16px);
}

.tansa-navbar .navbar-brand{
  font-weight:500;
  letter-spacing:.4px;
}

.tansa-navbar .navbar-brand img{
  width:100%;
  max-width:70px;
}

.tansa-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: url('../images/varios/BannerInicio.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}

.tansa-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 26, 58, 0.72);
  z-index: 0;
}

.tansa-hero > * {
  position: relative;
  z-index: 1;
}

.tansa-hero h1{
  font-weight:700;
  font-family: 'Fraunces', serif !important;
  font-size:4rem;
  letter-spacing:-.02em;
  color:white;
}

.tansa-eyebrow{color:rgba(255,255,255,.72); font-weight:650; margin:0 0 10px;}

.tansa-cta-info{
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, rgba(132, 148, 162, 0.9) 0%, rgba(110, 128, 144, 0.9) 100%);
    border: 1px solid rgba(132, 148, 162, 0.9);
    padding: 0.375rem 1.5rem;
    font-size: 1.3rem;
    letter-spacing: 0.3px;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(132, 148, 162, 0.25), 0 1px 2px rgba(132, 148, 162, 0.15);
    transition: color 0.2s ease-in-out,
                background-color 0.2s ease-in-out,
                border-color 0.2s ease-in-out,
                box-shadow 0.25s ease-in-out,
                transform 0.2s ease-in-out;
}

.tansa-cta-info:hover {
  color: #fff;
  background: linear-gradient(135deg, #041a3a 0%, #0a2c5c 100%);
  border-color: #041a3a;
  box-shadow: 0 6px 16px rgba(4, 26, 58, 0.3), 0 2px 4px rgba(4, 26, 58, 0.2);
  transform: translateY(-2px);
}

.tansa-cta-info:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(4, 26, 58, 0.25);
}

.tansa-cta-info:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(4, 26, 58, 0.35), 0 2px 6px rgba(4, 26, 58, 0.25);
}

.tansa-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border:1px solid rgba(255,255,255,0.12);
  border-radius:18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.tansa-service-card{
  background: transparent;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}

.tansa-service-media{
  background: rgba(4,26,58,0.25);
}

.tansa-service-img{
  width:100%;
  height: 185px;
  object-fit: cover;
  display:block;
}

.tansa-service-body{
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.tansa-service-title{
  margin:0;
  font-size: 1.25rem;
  font-family: 'Fraunces', serif !important;
  font-weight: 800;
}

.tansa-service-desc{
  margin:0;
  font-size: .98rem;
  color: rgba(255,255,255,0.82);
}

.btn-tansa-primary{
  background: linear-gradient(180deg, rgba(132,148,162,0.35), rgba(4,26,58,0.9));
  color:#fff;
  border:1px solid rgba(255,255,255,0.14);
  border-radius:14px;
  padding:12px 16px;
  font-weight:800;
}

.btn-tansa-primary:hover{
  transform: translateY(-1px);
  color:#fff;
}

.btn-tansa-ghost{
  background:rgba(255,255,255,0.05);
  color:rgba(255,255,255,0.9);
  border:1px solid rgba(255,255,255,0.14);
  border-radius:14px;
  padding:12px 16px;
  font-weight:800;
}

.btn-tansa-ghost:hover{
  color:#fff;
}

.tansa-footer{
  padding:40px 0;
  margin-top:10px;
  background:
    radial-gradient(900px 260px at 10% -20%, rgba(132,148,162,0.18), transparent 60%),
    radial-gradient(900px 260px at 90% -20%, rgba(132,148,162,0.14), transparent 60%),
    linear-gradient(180deg, var(--tansa-navy), var(--tansa-navy-2));
  border-top:1px solid rgba(132,148,162,0.28);
  color:#fff;
}

.tansa-footer h3{font-size:1rem; letter-spacing:.2px; margin:0 0 12px;}

.tansa-footer .tansa-muted{color:rgba(255,255,255,.72)}

.tansa-footer .tansa-footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.tansa-footer .tansa-footer-links a{
  text-decoration:none;
  border-bottom:1px solid var(--tansa-border);
  padding-bottom:0px;
}

.tansa-footer .tansa-footer-links a:hover{
  color:#fff;
  border-bottom-color:rgba(255,255,255,.55);
}

.tansa-social{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tansa-social .tansa-social-btn{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--tansa-border);
  color:rgba(255,255,255,0.85);
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
}

.tansa-social .tansa-social-btn:hover{
  border-color:rgba(255,255,255,.55);
  background:rgba(255,255,255,0.08);
  color:#fff;
  transform: translateY(-1px);
}

.tansa-footer .btn-dark, .btn-dark{
  background: rgba(0,0,0,0.2) !important;
  color: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}

.tansa-footer .btn-dark:hover, .btn-dark:hover{
  background: rgba(0,0,0,0.35) !important;
  color:#fff !important;
}

.material-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:10px;
}

.material-card{
  position:relative;
  overflow:hidden;
  cursor:pointer;
  border-radius:18px;
  min-height:240px;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
  background:#07142b;
}

.material-card .material-image{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.01);
  transition: transform 360ms ease;
  display:block;
}

.material-overlay{
  position:absolute;
  inset:0;
  background: rgba(4,26,58,0.05);
  transition: background 360ms ease;
}

.material-title{
  position:absolute;
  left:14px;
  top:14px;

  font-weight:900;
  letter-spacing:.04em;
  font-size:1.05rem;

  color: rgba(255,255,255,0.98);
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);

  background: rgba(4,26,58,0.25);
  border:1px solid rgba(255,255,255,0.16);
  padding:10px 12px;
  border-radius:999px;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  z-index:2;
}

.material-description{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;

  margin:0;
  z-index:2;

  font-size:0.95rem;
  line-height:1.25;
  font-weight:650;
  color: rgba(255,255,255,0.92);

  opacity:0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.material-card:hover .material-overlay, .material-card:focus-within .material-overlay{
  background: rgba(4,26,58,0.62);
}

.material-card:hover .material-image, .material-card:focus-within .material-image{
  transform: scale(1.06);
}

.material-card:hover .material-description, .material-card:focus-within .material-description{
  opacity:1;
  transform: translateY(0);
}

.btn-politica {
  display: inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: #041a3a;
  border: 1px solid #041a3a;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: color 0.15s ease-in-out,
              background-color 0.15s ease-in-out,
              border-color 0.15s ease-in-out,
              box-shadow 0.15s ease-in-out;
}

.btn-politica:hover {
  color: #fff;
  background-color: rgba(132, 148, 162, 0.85);
  border-color: rgba(132, 148, 162, 0.85);
}

.btn-politica--gray{
  background-color: var(--tansa-gray); 
  border-color: var(--tansa-gray);
}

.btn-politica--gray:hover{
  background-color: var(--tansa-navy) !important;
  border-color: var(--tansa-navy) !important;
  color:#fff !important;
}

.btn-politica--blue{
  background-color: var(--tansa-navy);
  border-color: var(--tansa-navy);
}

.btn-politica--blue:hover{
  background-color: var(--tansa-gray) !important;
  border-color: var(--tansa-gray) !important;
  color:#fff !important;
}

.btn-politica:focus, .btn-politica:focus-visible {
  color: #fff;
  background-color: rgba(132, 148, 162, 0.85);
  border-color: rgba(132, 148, 162, 0.85);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(4, 26, 58, 0.5);
}

.btn-politica:active, .btn-politica.active {
  color: #fff;
  background-color: rgba(132, 148, 162, 0.85);
  border-color: rgba(132, 148, 162, 0.85);
}

.btn-politica:disabled, .btn-politica.disabled {
  color: #fff;
  background-color: #041a3a;
  border-color: #041a3a;
  opacity: 0.65;
  pointer-events: none;
}

.input-container {
  position: relative;
  margin: 20px;
}

.input-field {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
  background-color: transparent;
}

.input-label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 16px;
  color: rgba(204, 204, 204, 0);
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #007bff;
  transition: all 0.3s ease;
}

.input-field:focus + .input-label {
  top: -20px;
  font-size: 12px;
  color: #007bff;
}

.input-field:focus + .input-label + .input-highlight {
  width: 100%;
}

.textarea-field {
  min-height: 100px; 
  resize: vertical; 
}

.textarea-field:focus + .input-label, .textarea-field:not(:placeholder-shown) + .input-label {
  top: -20px;
  font-size: 12px;
  color: #007bff;
}

.textarea-field:focus + .input-label + .input-highlight {
  width: 100%;
}

.btn-whatsapp {
  background-color: #25D366;  
  color: #fff;               
  border: none;
  padding:10px;
  font-size:18px;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;  
  color: #fff;
}

.whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--tansa-whatsapp);
  border: 2px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.35), 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  animation: whatsapp-bounce 15s ease-in-out infinite;
}


@keyframes whatsapp-bounce{
  0%, 60%, 100%{ transform: translateY(0); }

  66%{ transform: translateY(-6px); }
  70%{ transform: translateY(0); }

  82%{ transform: translateY(-6px); }
  86%{ transform: translateY(0); }
}

.whatsapp-float i{
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible{
  background: var(--tansa-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 55px rgba(37, 211, 102, 0.45), 0 10px 30px rgba(0,0,0,0.25);
}

.section-main {
scroll-margin-top:40px;
}

#nosotros{
  min-height: 100vh;
  height: 100vh;
  /* padding-top: 70px !important;  */
  padding-bottom: 0px !important;
  display:flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#nosotros .container{
  width: 100%;
}

#calidad .row {
  align-items: flex-start;
}

#calidad .btn-politica {
  display: inline-flex;
  align-items: center;
}

#clientes {
  padding-top: 130px !important;
  padding-bottom: 30px !important;
}

.clients-track-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.clients-track-wrap::before, .clients-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.clients-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent); 
}

.clients-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

#clientes .clients-track-wrap {
  min-height: 180px;
  padding: 18px 0;
}

#clientes .clients-track {
  align-items: center;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.logo-item img {
  max-width: 100%;
  min-width: 90px;
  height: auto;
  filter: grayscale(10%) opacity(0.8); 
  transition: filter 0.3s ease, transform 0.3s ease;
  transform: scale(1.3);
}

.logo-item:hover img {
  filter: grayscale(0%) opacity(1); 
  transform: scale(1.60); 
  cursor: pointer;
}

.tansa-other-services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.tansa-other-service {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--tansa-border);
  background: #fff;
  box-shadow: 0 2px 10px rgba(4, 26, 58, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tansa-other-service:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 26, 58, 0.1);
  border-color: rgba(132, 148, 162, 0.55);
}

.tansa-other-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 26, 58, 0.06);
  border: 1px solid rgba(4, 26, 58, 0.08);
  flex: 0 0 auto;
}

.tansa-other-icon i {
  font-size: 18px;
  color: var(--tansa-navy);
}

.tansa-other-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tansa-navy);
  letter-spacing: 0.01em;
}

/* .cards-servicios{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:24px;
} */

.cards-servicios > .tansa-service-card{
  width:100%;
  margin:0;
}

.cards-servicios > .tansa-service-card.col-12, .cards-servicios > .tansa-service-card.col-lg-3{
  flex:initial;
}

.tansa-service-desc{
  color:var(--tansa-navy);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 10px;
  transition: 0.3s;
}

.social-links a:hover {
  color: #fff;
  border-color: #fff;
}

.social-links a.twitter:hover {
  background: linear-gradient(45deg, #1DA1F2, #0d8ddb);
  color: #fff;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #fff;
  border-color: transparent;
  box-shadow: 0 0 8px 2px #1DA1F2;
  border-radius: 50%;
}

.social-links a.facebook:hover {
  background: linear-gradient(45deg, #1877F2, #0f5ecb);
  color: #fff;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #fff;
  border-color: transparent;
  box-shadow: 0 0 8px 2px #1877F2;
  border-radius: 50%;
}

.social-links a.instagram:hover {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  color: #fff;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #fff;
  border-color: transparent;
  box-shadow: 0 0 8px 2px #962fbf;
  border-radius: 50%;
}

.social-links a.linkedin:hover {
  background: linear-gradient(45deg, #0A66C2, #084a8a);
  color: #fff;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #fff;
  border-color: transparent;
  box-shadow: 0 0 8px 2px #0A66C2;
  border-radius: 50%;
}

.social-links a.tiktok:hover {
  background: linear-gradient(45deg, #000000, #333333);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 8px 2px #000000;
  border-radius: 50%;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

.logo-item {
  width: 125px;
  height: 125px;
  flex-shrink: 0;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;  
  color: var(--tansa-gray);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.contact-divider::before, .contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tansa-border);
}

.contact-alt {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-alt-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  color: #fff;
  background: var(--tansa-navy);
  border: 1px solid var(--tansa-navy);
  box-shadow: 0 4px 16px rgba(4, 26, 58, 0.18);
}

.btn-alt-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 26, 58, 0.28);
  background: var(--tansa-navy-2);
  color: #fff;
}

.btn-alt-contact:last-child {
  background: var(--tansa-gray);
  border-color: var(--tansa-gray);
  box-shadow: 0 4px 16px rgba(132, 148, 162, 0.2);
}

.btn-alt-contact:last-child:hover {
  transform: translateY(-2px);
  background: rgba(132, 148, 162, 1);
  border-color: rgba(132, 148, 162, 1);
  box-shadow: 0 8px 24px rgba(132, 148, 162, 0.32);
  color: #fff;
}

.cards-servicios {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}

.cards-servicios > .tansa-service-card {
  width: 100%;
  margin: 0;
}

.cards-servicios > .tansa-service-card.col-12, .cards-servicios > .tansa-service-card.col-lg-3 {
  flex: initial;
}

.section-subtitle {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tansa-gray);
  margin: 0;
}

.nosotros-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--tansa-navy);
  margin-bottom: 16px;
}

.nosotros-pillar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--tansa-navy);
  border-radius: 10px;
  padding: 15px;
  transition: border-color 260ms ease, transform 200ms ease;
  flex: 1;
  margin:0.25rem;
}

.nosotros-pillar:hover {
  border-color: rgba(132,148,162,.5);
  transform: translateX(4px);
}

.nosotros-pillar-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tansa-navy);
}

.nosotros-pillar-icon svg {
  width: 22px;
  height: 22px;
}

.nosotros-pillar-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--tansa-navy);
  margin-bottom: 4px;
}

.nosotros-pillar-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--tansa-gray);
  margin: 0;
}

.section-reveal {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#nosotros {
  background-image: url('../images/varios/hero-scaled-1.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  position: relative;
}

#nosotros::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 26, 58, 0.72); 
  z-index: 0;
}

#nosotros .container {
  position: relative;
  z-index: 1;
}

#nosotros h2,
#nosotros li,
#nosotros p,
#nosotros div {
  color: #fff;
}

#nosotros ~ header .nav-link,
#nosotros ~ .tansa-navbar .nav-link,
#nosotros header .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

#nosotros .nav-link{
  color: rgba(255, 255, 255, 0.92) !important;
}

#nosotros .nav-link:hover{
  color: #fff !important;
}

#nosotros ~ header .nav-link:hover,
#nosotros ~ .tansa-navbar .nav-link:hover,
#nosotros header .nav-link:hover {
  color: #fff !important;
}

.navbar-over-dark .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

.navbar-over-dark .nav-link:hover {
  color: #fff !important;
}

.navbar-over-dark .navbar-toggler-icon {
  filter: invert(1);
}

.scroll-to-top-float {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: #041a3a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 1029;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.scroll-to-top-float:hover {
  background-color: #0a2850;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-float.show {
  opacity: 1;
  visibility: visible;
}

#servicios {
  background: linear-gradient(
    135deg,
    var(--tansa-navy) 0%,
    var(--tansa-navy-2) 50%,
    #05172a 100%
  );
  padding-top: 100px !important;
  padding-bottom: 100px !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#servicios::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(132, 148, 162, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% -20%, rgba(132, 148, 162, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(132, 148, 162, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

#servicios::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

#servicios .container {
  position: relative;
  z-index: 10;
}

#servicios h2 {
  color: var(--tansa-white) !important;
  font-size: 2.8rem;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

#servicios h5 {
  color: var(--tansa-gray) !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.9;
}

#servicios .section-subtitle {
  color: var(--tansa-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
}

#servicios .tansa-service-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  ) !important;
  
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
  
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  
  border-radius: 16px !important;
  
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

#servicios .tansa-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  transition: none;
  pointer-events: none;
  z-index: 3;
}

#servicios .tansa-service-card:hover::before {
  left: 0;
}

#servicios .tansa-service-card:hover {
  transform: none;
  box-shadow: inherit;
  border-color: rgba(255, 255, 255, 0.15) !important;
  border-top-color: rgba(255, 255, 255, 0.25) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  ) !important;
}

#servicios .tansa-service-card:active {
  transform: none;
}

#servicios .tansa-service-media {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.2) 100%
  ) !important;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#servicios .tansa-service-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(132, 148, 162, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

#servicios .tansa-service-img {
  width: 100%;
  height: 250px !important;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 400ms ease, transform 400ms ease;
  filter: brightness(1.05) contrast(1.1);
}

#servicios .tansa-service-card:hover .tansa-service-img {
  opacity: 0.85;
  transform: none;
  filter: brightness(1.05) contrast(1.1);
}

#servicios .tansa-service-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

#servicios .tansa-service-title {
  color: var(--tansa-white) !important;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

#servicios .tansa-service-desc {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

#servicios .tansa-other-services {
  background: rgba(132, 148, 162, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  gap: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#servicios .tansa-other-service {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px;
  color: var(--tansa-white);
  padding: 14px 16px;
  transition: all 260ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

#servicios .tansa-other-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--tansa-gray),
    transparent
  );
  opacity: 0;
  transition: opacity 260ms ease;
}

#servicios .tansa-other-service:hover::before {
  opacity: 1;
}

#servicios .tansa-other-service:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

#servicios .tansa-other-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  flex: 0 0 auto;
  transition: all 260ms ease;
}

#servicios .tansa-other-service:hover .tansa-other-icon {
  background: rgba(132, 148, 162, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.1);
}

#servicios .tansa-other-icon i {
  font-size: 18px;
  color: var(--tansa-white) !important;
}

#servicios .tansa-other-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tansa-white) !important;
  letter-spacing: 0.01em;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#servicios h2 {
  animation: fadeInUp 0.7s ease-out 0.1s both;
}

#servicios h5 {
  animation: fadeInUp 0.7s ease-out 0.2s both;
}

#servicios .tansa-service-card:nth-child(1) { animation-delay: 0.3s; }
#servicios .tansa-service-card:nth-child(2) { animation-delay: 0.4s; }
#servicios .tansa-service-card:nth-child(3) { animation-delay: 0.5s; }
#servicios .tansa-service-card:nth-child(4) { animation-delay: 0.6s; }
#servicios .tansa-service-card:nth-child(5) { animation-delay: 0.7s; }

.col-12:has(+ .tansa-other-services) #servicios .tansa-other-services {
  animation: fadeInUp 0.7s ease-out 0.8s both;
}

@media (prefers-reduced-motion: reduce) {
  #servicios .tansa-service-card,
  #servicios .tansa-other-service,
  #servicios h2,
  #servicios h5 {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  #servicios .tansa-service-card {
    border-color: rgba(255, 255, 255, 0.3) !important;
  }

  #servicios .tansa-service-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  }
}
@media (max-width: 480px) {
  .nosotros-pillar {
    flex: 1 1 100%;
  }
}

@media (max-width: 575.98px) {
  
  #nosotros{
    height: auto;
  }

  #nosotros::before{
    height: 100%;
  }

    #calidad{
    padding: 16px !important;
    height: auto; 
    min-height: 100vh;
  }

  .whatsapp-float{
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float i{
    font-size: 24px;
  }

  #servicios h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  #servicios .tansa-other-services {
    grid-template-columns: repeat(2, 1fr);
  }

  #servicios .tansa-service-img {
    height: 160px;
  }

    .tansa-service-img{ height:185px; }
  .material-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material-card{ min-height:230px; }
  .section-main {
    scroll-margin-top:70px;
    margin-top: 0rem;
    margin-bottom: 0rem;
  }

  .container-inicio{
    text-align: center;
  }

  #servicios{
    margin-top: 0 !important;
  }

  #calidad{
    padding:16px !important;
    height:100vh;
    min-height:100vh;
  }

  h1{
    margin-top:4rem;
    font-size:1rem;
  }
  
  .location-container{
    margin-top:3rem;
  }

  .tansa-navbar .navbar-brand img{
    width:100%;
    max-width:60px;
  }
    .tansa-other-services {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px) {
  .tansa-other-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scroll-to-top-float {
    bottom: 90px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  #servicios {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  #servicios h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  #servicios h5 {
    font-size: 0.7rem;
  }

  #servicios .tansa-service-card {
    border-radius: 14px;
  }

  #servicios .tansa-service-card:hover {
    transform: translateY(-3px);
  }

  #servicios .tansa-other-services {
    padding: 16px;
    gap: 10px;
  }

  #servicios .tansa-other-service {
    padding: 12px 14px;
  }

  #servicios .tansa-service-title {
    font-size: 1.05rem;
  }

  #servicios .tansa-service-desc {
    font-size: 0.7rem;
  }

  .nosotros-text {
    font-size: .8rem;
    line-height: 1.8;
    color: var(--tansa-navy);
    margin-bottom: 16px;
  }
   #servicios .section-subtitle{
    margin-bottom:1rem;
  }

  #nosotros{
  padding-top: 70px !important; 
}
.nosotros-pillar-title {
  font-size: 0.7rem;
  font-weight: 800;
}

  .nosotros-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;
    max-width: 100%; 
    box-sizing: border-box;
  }

  #nosotros li{
    font-size:0.8rem;
  }

  .nosotros-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; 
    border-radius: 8px;
    padding: 10px;
    overflow: hidden; 
  }

  .nosotros-pillar-text {
    display: none;
  }

  .nosotros-pillar:hover {
    transform: translateY(-2px);
  }

  /* .cards-servicios {
    display: block !important;
    position: relative;
    height: 380px;
    overflow: hidden !important;  
    padding: 0 1rem;
    margin-bottom: 0rem;
  } */

  /* .cards-servicios > .tansa-service-card {
    position: absolute !important;
    width: calc(100% - 2rem) !important;
    flex: none !important;
    max-width: none !important;
    top: 0;
    left: 1rem;
    transform-origin: bottom center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s ease,
                box-shadow 0.4s ease;
    cursor: grab;
    user-select: none;
    touch-action: pan-y; 
  } */

  /* .cards-servicios > .tansa-service-card:active {
    cursor: grabbing;
  }
  
  .cards-servicios > .tansa-service-card {
   background: #fff !important;
  } */

  /* .stack-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    position: relative;
    z-index: 10;
  }

  .stack-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .stack-dot.active {
    background: white;
    transform: scale(1.3);
  } */

  .material-grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap:10px;
  }

  .material-card{
    position:relative;
    overflow:hidden;
    cursor:pointer;
    border-radius:18px;
    min-height:200px;
    border:1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 60px rgba(0,0,0,0.18);
    background:#07142b;
  }

  .material-card .material-image{
    width:100%;
    height:100%;
    object-fit:cover;
    transform: scale(1);
    transition: transform 360ms ease;
    display:block;
  }

  .material-overlay{
    position:absolute;
    inset:0;
    background: rgba(4,26,58,0.05);
    transition: background 360ms ease;
  }

  .material-title{
    position:absolute;
    left:0px;
    top:0px;

    font-weight:900;
    letter-spacing:.04em;
    font-size:.75rem;

    color: rgba(255,255,255,0.98);
    text-shadow: 0 10px 30px rgba(0,0,0,0.45);

    background: rgba(4,26,58,0.25);
    border:1px solid rgba(255,255,255,0.16);
    padding:10px 12px;
    border-radius:999px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    z-index:2;
  }

  .material-description{
    position:absolute;
    left:10px;
    right:10px;
    bottom:14px;

    margin:0;
    z-index:2;

    font-size:0.95rem;
    line-height:1.25;
    font-weight:650;
    color: rgba(255,255,255,0.92);

    opacity:0;
    transform: translateY(10px);
    transition: opacity 260ms ease, transform 260ms ease;
  }

  .section-main {
  scroll-margin-top:30px;
  }
  
  .tansa-other-services {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .tansa-other-services li:last-child {
    grid-column: span 2;
  }

  .tansa-other-service {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 12px;
    gap: 10px;
    background: linear-gradient(135deg, rgba(4,26,58,0.04), rgba(132,148,162,0.08));
    border: 1px solid rgba(4,26,58,0.1);
    border-radius: 16px;
    min-height: 100px;
  }

  .tansa-other-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(4,26,58,0.08);
    border: 1px solid rgba(4,26,58,0.12);
  }

  .tansa-other-icon i {
    font-size: 22px;
  }

  .tansa-other-text {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tansa-navy);
  }

  .cards-servicios{ grid-template-columns: repeat(1, minmax(0, 1fr)); gap:10px; }
  .tansa-other-services{ grid-template-columns: 1fr; }
  .material-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material-card{ min-height:220px; }
  .tansa-hero{ padding:0px; height: 90vh}
  .section-main {
    scroll-margin-top:70px;
    margin-top: 0rem;
    margin-bottom: 0rem;
  }

  h1{
    margin-top:0rem;
    font-size: 2.4rem !important;
  }

  h2{
    font-size: 1.75rem !important;
  }

  .section-subtitle {
  text-align: center;
  font-size: 0.50rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tansa-gray);
  margin: 0;
  }

  .cards-servicios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px; /* o el gap que prefieras */
}

.cards-servicios > .tansa-service-card:last-child {
  grid-column: 1 / -1;
}

 #servicios .tansa-service-img {
    height: 150px !important; 
  }

}

@media (max-width: 991.98px) {

    #servicios {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }

  #servicios h2 {
    font-size: 2.2rem;
  }

  #servicios .tansa-service-card:hover {
    transform: translateY(-4px);
  }

  .cards-servicios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .cards-servicios{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap:18px; }
  .material-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1199.98px) { 

  .section-main {
  scroll-margin-top:70px;
  margin-top: 5rem;
  margin-bottom: 5rem;
  }
}

@media (max-width: 1599.98px) { 
  .tansa-hero {
  display: flex;              
  align-items: center;        
  justify-content: center;    
  position: relative;
  overflow: hidden;          
  }
}

@media (min-width: 1600px) { 
  .section-main {
  scroll-margin-top:70px;
  /* margin-top: 7rem;
  margin-bottom: 7rem; */
  }
  .tansa-hero h1{
    font-size:4.5rem;
  }
}

#politicas {
  background-color: #0a2a4a; 
  color: #fff;
  padding: 20px;
}

.politicas-lista {
  list-style: none;
  padding: 0;
}

.politicas-lista li {
  margin: 0px 0;
  /* font-size: 0.em; */
}

.politicas-lista i {
  margin-right: 8px;
}
