/*
Theme Name: MT Moderna Tech
Theme URI: https://example.com
Author: Tu Nombre
Author URI: https://example.com
Description: Tema profesional para empresas de tecnología (estructura organizada).
Version: 2.7.1
License: GPL v2 or later
Text Domain: mt
*/

/* Estilos mínimos. El CSS principal está en /assets/css/main.css */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}


/* ===== Servicio: Beneficios (bullets) ===== */
.mt-service-benefits { margin-top: 28px; }
.mt-section-title { font-size: 28px; font-weight: 800; margin: 0 0 14px; }
.mt-benefits-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
.mt-benefits-list li {
  list-style: disc;
  color: #1f2937;
  line-height: 1.55;
}
@media (max-width: 768px){
  .mt-benefits-list { grid-template-columns: 1fr; }
}

/* ===== Servicio: Galería (2 imágenes en una fila) ===== */
.mt-service-gallery { margin-top: 34px; }
.mt-gallery-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.mt-gallery-item{
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  background: #fff;
}
.mt-gallery-item img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px){
  .mt-gallery-row{ grid-template-columns: 1fr; }
  .mt-gallery-item img{ height: 220px; }
}


/* ===== Servicio: Beneficios (PRO list - override) ===== */
.mt-service-benefits { margin-top: 28px; }
.mt-section-title { font-size: 28px; font-weight: 800; margin: 0 0 14px; }
.mt-benefits-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
.mt-benefits-list li{
  position: relative;
  padding-left: 18px;
  color: #1f2937;
  line-height: 1.55;
}
.mt-benefits-list li::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  position: absolute;
  left: 0;
  top: 0.72em;
  transform: translateY(-50%);
  background: var(--mt-topbar-social-icon-color, var(--mt-primary, #1d4ed8));
  opacity: .95;
}
@media (max-width: 768px){
  .mt-benefits-list { grid-template-columns: 1fr; }
}

/* ===== Servicio: Galería (2 imágenes en una fila - ensure no overflow) ===== */
.mt-gallery-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.mt-gallery-item{
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
}
.mt-gallery-item img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px){
  .mt-gallery-row{ grid-template-columns: 1fr; }
  .mt-gallery-item img{ height: 220px; }
}


/* === GRID SERVICIOS === */
.mt-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 992px) {
  .mt-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .mt-services-grid {
    grid-template-columns: 1fr;
  }
}

/* Badge icono */
.mt-service-badge {
  position: absolute;
  bottom: -20px;
  left: 30px;
  width: 70px;
  height: 70px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #f1f1f1;
  z-index: 2;
}

.mt-service-badge i {
  font-size: 26px;
  color: #2563eb;
}


/* === SERVICE ICON (aligned with single page style) === */
.mt-service-badge {
  position: absolute;
  bottom: -30px;
  left: 30px;
  z-index: 5;
}

.mt-service-icon-wrap {
  width: 80px;
  height: 80px;
  background: #f3f4f6;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.mt-service-icon-wrap i {
  font-size: 34px;
  color: #2563eb;
}

.mt-service-card:hover .mt-service-icon-wrap {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}



/* ==============================
   Servicios - Modelo (Archive)
   ============================== */
.mt-services-model{
  padding: 80px 0;
  background: #f6fbff;
}
.mt-services-model .container{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.mt-services-model__header{
  text-align: center;
  margin-bottom: 50px;
}
.mt-services-model__kicker{
  letter-spacing: .22em;
  font-weight: 700;
  font-size: 12px;
  color: var(--mt-primary, #2563eb);
}
.mt-services-model__title{
  margin: 12px 0 14px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}
.mt-services-model__divider{
  width: 70px;
  height: 4px;
  border-radius: 999px;
  background: var(--mt-primary, #2563eb);
  margin: 0 auto;
  position: relative;
}
.mt-services-model__divider:after{
  content: "";
  position: absolute;
  right: -18px;
  top: 0;
  width: 10px;
  height: 4px;
  border-radius: 999px;
  background: var(--mt-primary, #2563eb);
  opacity: .6;
}
.mt-services-model__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 60px;
}
@media (max-width: 992px){
  .mt-services-model__grid{ grid-template-columns: repeat(2, 1fr); gap: 46px 40px; }
}
@media (max-width: 600px){
  .mt-services-model{ padding: 60px 0; }
  .mt-services-model__grid{ grid-template-columns: 1fr; gap: 34px; }
}
.mt-services-model__item{
  position: relative;
}
/* línea vertical suave a la izquierda (como el modelo) */
.mt-services-model__item-inner{
  position: relative;
  padding-left: 36px;
}
.mt-services-model__item-inner:before{
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(37, 99, 235, .14);
  border-radius: 999px;
}
.mt-services-model__icon{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--mt-primary, #2563eb);
  margin-bottom: 14px;
}
.mt-services-model__icon i{
  font-size: 22px;
  color: var(--mt-primary, #2563eb);
}
.mt-services-model__item-title{
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}
.mt-services-model__item-title a{
  color: inherit;
  text-decoration: none;
}
.mt-services-model__item-title a:hover{
  color: var(--mt-primary, #2563eb);
}
.mt-services-model__excerpt{
  color: rgba(15, 23, 42, .72);
  line-height: 1.7;
  font-size: 15px;
  max-width: 36ch;
}
.mt-services-model__pagination{
  margin-top: 46px;
  display: flex;
  justify-content: center;
}




/* ==============================
   Animación servicios (fade + slide)
   ============================== */
.mt-services-model__item{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.mt-services-model__item.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .mt-services-model__item{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}




/* ==============================
   Hover Effect - Servicios (Premium)
   ============================== */

.mt-services-model__item-inner{
  transition: all .35s ease;
  border-radius: 16px;
  padding: 28px 28px 28px 36px;
}

.mt-services-model__item:hover .mt-services-model__item-inner{
  background: var(--mt-primary, #2563eb);
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.mt-services-model__item:hover .mt-services-model__item-title,
.mt-services-model__item:hover .mt-services-model__excerpt{
  color: #ffffff;
}

.mt-services-model__item:hover .mt-services-model__icon{
  background: #ffffff;
  border-color: #ffffff;
}

.mt-services-model__item:hover .mt-services-model__icon i{
  color: var(--mt-primary, #2563eb);
}




/* ==============================
   Clickable card + white text hover
   ============================== */

.mt-services-model__link{
  display:block;
  text-decoration:none;
  color:inherit;
  height:100%;
}

.mt-services-model__item:hover .mt-services-model__item-inner{
  background: var(--mt-primary, #2563eb);
}

.mt-services-model__item:hover .mt-services-model__item-title,
.mt-services-model__item:hover .mt-services-model__item-title a,
.mt-services-model__item:hover .mt-services-model__excerpt{
  color:#ffffff !important;
}

/* mantener icono con contraste */
.mt-services-model__item:hover .mt-services-model__icon{
  background:#ffffff;
  border-color:#ffffff;
}

.mt-services-model__item:hover .mt-services-model__icon i{
  color: var(--mt-primary, #2563eb) !important;
}




/* Fix layout overflow after making cards clickable */
.mt-services-model__grid{ align-items: start; }
.mt-services-model__item{ overflow: visible; }
.mt-services-model{ padding-bottom: 120px; }




/* ==============================
   Servicios - Cards misma altura
   ============================== */
.mt-services-model__grid{
  align-items: stretch;
}
.mt-services-model__item{
  display: flex;
}
.mt-services-model__link{
  display: flex;
  width: 100%;
  height: 100%;
}
.mt-services-model__item-inner{
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 250px;
}




/* ==============================
   Servicios - Botón Detalles
   ============================== */

.mt-services-model__item-inner{
  justify-content: space-between;
}

.mt-services-model__cta{
  text-align:center;
  margin-top:20px;
  font-weight:600;
  font-size:14px;
  letter-spacing:.5px;
  text-transform:uppercase;
  opacity:.8;
  transition: all .3s ease;
}

.mt-services-model__item:hover .mt-services-model__cta{
  opacity:1;
  transform: translateY(-2px);
}

.mt-services-model__item:hover .mt-services-model__cta span{
  color:#ffffff;
}




/* ==============================
   Servicios - CTA premium + móvil
   ============================== */

/* CTA "Detalles" estilo premium */
.mt-services-model__cta{
  margin-top: 22px;
}

.mt-services-model__cta span{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 6px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* línea animada */
.mt-services-model__cta span:before{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: currentColor;
  transform: scaleX(.25);
  transform-origin: left center;
  opacity: .55;
  transition: transform .35s ease, opacity .35s ease;
}

/* flecha */
.mt-services-model__cta span:after{
  content: "→";
  font-size: 16px;
  line-height: 1;
  transform: translateX(0);
  transition: transform .35s ease;
}

/* hover: línea se extiende + flecha se mueve */
.mt-services-model__item:hover .mt-services-model__cta span:before{
  transform: scaleX(1);
  opacity: .9;
}

.mt-services-model__item:hover .mt-services-model__cta span:after{
  transform: translateX(6px);
}

/* Mantener contraste: en hover (fondo azul) el CTA en blanco */
.mt-services-model__item:hover .mt-services-model__cta span{
  color: #ffffff !important;
}

/* ---- Mejor separación en móvil ---- */
@media (max-width: 600px){
  .mt-services-model__grid{
    gap: 22px;
  }

  /* Tarjeta tipo "card" en móvil para que no se vea todo junto */
  .mt-services-model__item-inner{
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    padding: 22px 20px 22px 28px; /* conserva look */
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
  }

  /* Ocultar la línea vertical interna en móvil (ya hay borde) */
  .mt-services-model__item-inner:before{
    display: none;
  }
}




/* ==============================
   CTA "Detalles" limpio (sin flechas/lineas duplicadas)
   ============================== */
.mt-services-model__cta span:before,
.mt-services-model__cta span:after,
.mt-services-model__cta:before{
  content: none !important;
}

.mt-services-model__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  position:relative;
  margin-top:22px;
  padding-bottom:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:700;
}

.mt-services-model__cta:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:38px;
  height:2px;
  border-radius:999px;
  background: currentColor;
  transform: translateX(-50%);
  transition: width .28s ease;
  opacity:.95;
}

.mt-services-model__cta-arrow{
  font-size:16px;
  line-height:1;
  transition: transform .28s ease;
}

.mt-services-model__item:hover .mt-services-model__cta:after{ width:74px; }
.mt-services-model__item:hover .mt-services-model__cta-arrow{ transform: translateX(4px); }




/* ==========================================
   SERVICIOS - MOBILE FULL SPACING FIX
   ========================================== */
@media (max-width: 768px){

  /* Fuerza layout en columna real */
  .mt-services-model__grid{
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* Aire lateral REAL */
  .mt-services-model .container{
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Card tipo bloque independiente */
  .mt-services-model__item{
    width: 100% !important;
  }

  .mt-services-model__item-inner{
    background: #ffffff !important;
    border-radius: 18px !important;
    padding: 22px 20px !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    margin: 0 !important;
  }

  /* Quitar línea vertical heredada */
  .mt-services-model__item-inner:before{
    display: none !important;
  }

  /* CTA como botón centrado */
  .mt-services-model__cta{
    margin-top: 18px !important;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    background: #f8fafc !important;
  }

  .mt-services-model__cta:after{
    display: none !important;
  }

  /* Hover en mobile más limpio */
  .mt-services-model__item:hover .mt-services-model__item-inner{
    background: var(--mt-primary, #2563eb) !important;
    box-shadow: 0 22px 50px rgba(0,0,0,0.15) !important;
  }

}




/* ==============================
   Servicios - Sección Consulta final
   ============================== */
.mt-services-consult{
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.mt-services-consult .container{
  position: relative;
  z-index: 3;
}
.mt-services-consult__bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}
.mt-services-consult__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
}
.mt-services-consult__inner{
  text-align:center;
  color:#fff;
}
.mt-services-consult__top{
  font-size: 18px;
  font-weight: 600;
  opacity: .95;
  margin-bottom: 14px;
}
.mt-services-consult__title{
  margin: 0 0 26px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.1;
  font-weight: 800;
  color:#fff;
}
.mt-services-consult__btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding: 14px 26px;
  border-radius: 10px;
  background: var(--mt-primary, #2563eb);
  color:#fff;
  text-decoration:none;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.mt-services-consult__btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(0,0,0,0.32);
  filter: brightness(1.03);
}
.mt-services-consult__btn-arrow{
  font-size: 18px;
  transform: translateX(0);
  transition: transform .25s ease;
}
.mt-services-consult__btn:hover .mt-services-consult__btn-arrow{
  transform: translateX(4px);
}
@media (max-width: 768px){
  .mt-services-consult{ padding: 78px 0; }
  .mt-services-consult__top{ font-size: 16px; }
  .mt-services-consult__btn{ width: 100%; justify-content:center; max-width: 360px; }
}
@media (prefers-reduced-motion: reduce){
  .mt-services-consult__btn,
  .mt-services-consult__btn-arrow{ transition: none !important; }
}




/* ==============================
   FIX: Mobile CTA button contrast (Servicios)
   ============================== */
@media (max-width: 768px){

  .mt-services-model__item{
    margin-bottom: 28px;
  }

  .mt-services-model__cta{
    margin-top: 20px;
  }

  /* Default (white cards) */
  .mt-services-model__cta-text{
    color: var(--mt-primary, #2563eb) !important;
    font-weight: 800;
  }

  .mt-services-model__cta-arrow{
    color: var(--mt-primary, #2563eb) !important;
  }

  /* When card is active/blue */
  .mt-services-model__item:hover .mt-services-model__cta-text,
  .mt-services-model__item:hover .mt-services-model__cta-arrow,
  .mt-services-model__item.is-active .mt-services-model__cta-text,
  .mt-services-model__item.is-active .mt-services-model__cta-arrow{
    color: #ffffff !important;
  }

}




/* ==============================
   FIX: Mobile hover keep CTA text blue
   ============================== */
@media (max-width: 768px){

  /* Even when card is hovered (blue background),
     keep CTA text in primary blue */
  .mt-services-model__item:hover .mt-services-model__cta-text,
  .mt-services-model__item:hover .mt-services-model__cta-arrow,
  .mt-services-model__item.is-active .mt-services-model__cta-text,
  .mt-services-model__item.is-active .mt-services-model__cta-arrow{
    color: var(--mt-primary, #2563eb) !important;
  }

}




/* ==============================
   FIX: Espaciado entre última tarjeta y sección consulta
   ============================== */

/* Agrega espacio inferior al grid de servicios */
.mt-services-model__grid{
  margin-bottom: 80px;
}

/* Asegura separación clara en móvil */
@media (max-width: 768px){
  .mt-services-model__grid{
    margin-bottom: 60px;
  }

  .mt-services-consult{
    margin-top: 20px;
  }
}




/* ==============================
   FINAL FIX: Mobile CTA color + spacing
   (Overrides older hover rules)
   ============================== */
@media (max-width: 768px){

  /* 1) Spacing between last card and consult section */
  .mt-services-model{
    padding-bottom: 72px !important;
  }
  .mt-services-model__grid{
    margin-bottom: 0 !important; /* use section padding instead */
  }
  .mt-services-consult{
    margin-top: 0 !important;
  }

  /* 2) CTA button: keep text BLUE even when card turns BLUE on hover */
  .mt-services-model__cta{
    color: var(--mt-primary, #2563eb) !important;
    border-color: rgba(15,23,42,0.10) !important;
    background: rgba(255,255,255,0.92) !important;
  }
  .mt-services-model__cta-text,
  .mt-services-model__cta-arrow{
    color: var(--mt-primary, #2563eb) !important;
  }

  /* Override any global hover rule that forces white */
  .mt-services-model__item:hover .mt-services-model__cta,
  .mt-services-model__item:hover .mt-services-model__cta-text,
  .mt-services-model__item:hover .mt-services-model__cta-arrow,
  .mt-services-model__item.is-active .mt-services-model__cta,
  .mt-services-model__item.is-active .mt-services-model__cta-text,
  .mt-services-model__item.is-active .mt-services-model__cta-arrow{
    color: var(--mt-primary, #2563eb) !important;
  }

  /* Keep CTA readable on blue card */
  .mt-services-model__item:hover .mt-services-model__cta{
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(255,255,255,0.55) !important;
  }
}




/* ==============================
   V2 FIX: Mobile CTA hover + gap to consult
   ============================== */
@media (max-width: 768px){
  /* Force CTA text color even if selector targets span */
  .mt-services-model__item:hover .mt-services-model__cta span,
  .mt-services-model__item.is-active .mt-services-model__cta span{
    color: var(--mt-primary, #2563eb) !important;
  }

  /* Reduce gap between last card and consult section */
  .mt-services-model{ padding-bottom: 28px !important; }
  .mt-services-consult{ margin-top: 0 !important; padding-top: 70px !important; }
}




/* ==============================
   HOME - Servicios Title Enhancement
   ============================== */

.mt-home-services__header{
  text-align:center;
  margin-bottom:60px;
}

.mt-home-services__title{
  font-size: clamp(28px, 3vw, 42px);
  font-weight:800;
  letter-spacing:-0.5px;
  margin:0 0 16px;
  color:#0f172a;
}

.mt-home-services__title::after{
  content:'';
  display:block;
  width:70px;
  height:4px;
  margin:18px auto 0;
  border-radius:4px;
  background: linear-gradient(90deg,#2563eb,#1d4ed8);
}

.mt-home-services__viewall{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  text-decoration:none;
  color:#2563eb;
  margin-top:30px;
  transition:all .25s ease;
}

.mt-home-services__viewall:hover{
  transform:translateX(4px);
  color:#1d4ed8;
}




/* ==============================
   FIX: Hero mobile spacing + container padding
   ============================== */

.mt-hero .container{
  max-width:1200px;
  margin:0 auto;
  padding-left:24px;
  padding-right:24px;
}

@media (max-width: 768px){

  .mt-hero{
    padding-top:90px !important;
    padding-bottom:80px !important;
  }

  .mt-hero .container{
    padding-left:20px !important;
    padding-right:20px !important;
  }

  .mt-hero__content{
    padding-right:0 !important;
  }

  .mt-hero__title{
    font-size: clamp(32px, 8vw, 42px);
    line-height:1.15;
  }

}




/* ==============================
   HOME - Servicios destacados link "Ver todos"
   ============================== */
.mt-home-services-auto__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 22px;
}
.mt-home-services-auto__all{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  text-decoration:none;
  color: var(--mt-primary, #2563eb);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(37,99,235,0.08);
  transition: transform .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.mt-home-services-auto__all:hover{
  transform: translateX(2px);
  background: rgba(37,99,235,0.14);
  color: #1d4ed8;
}
@media (max-width: 768px){
  .mt-home-services-auto__head{
    flex-direction: column;
    align-items:flex-start;
  }
  .mt-home-services-auto__all{
    width: 100%;
    justify-content:center;
  }
}




/* ==============================
   HOME - Servicios destacados título moderno
   ============================== */
.mt-home-services-auto__header-block{
  text-align:left;
  margin-bottom:40px;
}
.mt-home-services-auto__eyebrow{
  font-size:13px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  color: var(--mt-primary, #2563eb);
  margin-bottom:12px;
  position:relative;
  padding-left:18px;
}
.mt-home-services-auto__eyebrow:before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:6px;
  height:18px;
  background: var(--mt-primary, #2563eb);
  border-radius:3px;
}
.mt-home-services-auto__main-title{
  font-size:42px;
  font-weight:800;
  line-height:1.2;
  color:#0f172a;
  max-width:700px;
}
@media(max-width:768px){
  .mt-home-services-auto__main-title{
    font-size:28px;
  }
}




/* ==============================
   HOME - Servicios header align button to title
   ============================== */
.mt-home-services-auto__header-block{
  margin-bottom: 10px;
}

.mt-home-services-auto__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:-10px;
  margin-bottom:30px;
}

.mt-home-services-auto__main-title{
  margin:0;
}

.mt-home-services-auto__all{
  margin-left:auto;
}

@media(max-width:768px){
  .mt-home-services-auto__head{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
    margin-top:10px;
  }
  .mt-home-services-auto__all{
    margin-left:0;
    width:100%;
    justify-content:center;
  }
}




/* ==============================
   HOME - Servicios "See more" button style (desktop right / mobile centered)
   ============================== */

.mt-home-services-auto__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.mt-home-services-auto__all{
  background: var(--mt-primary, #2563eb);
  color:#fff;
  padding:14px 26px;
  border-radius:10px;
  font-weight:800;
  text-decoration:none;
  box-shadow: 0 18px 40px rgba(37,99,235,0.25);
}

.mt-home-services-auto__all span{
  color:#fff;
}

.mt-home-services-auto__all:hover{
  transform:translateY(-2px);
  box-shadow: 0 22px 45px rgba(37,99,235,0.35);
  background:#1d4ed8;
}

@media(max-width:768px){
  .mt-home-services-auto__header-block{
    text-align:center;
  }
  .mt-home-services-auto__eyebrow{
    padding-left:0;
    text-align:center;
  }
  .mt-home-services-auto__eyebrow:before{
    position:relative;
    left:auto;
    top:auto;
    transform:none;
    display:inline-block;
    margin-right:8px;
    vertical-align:middle;
  }
  .mt-home-services-auto__head{
    flex-direction:column;
    justify-content:center;
    align-items:center;
  }
  .mt-home-services-auto__all{
    width:auto;
    margin:0 auto;
    justify-content:center;
  }
}




/* ==============================
   FIX - Keep button text white on hover
   ============================== */

.mt-home-services-auto__all,
.mt-home-services-auto__all:visited,
.mt-home-services-auto__all span{
  color:#ffffff !important;
}

.mt-home-services-auto__all:hover,
.mt-home-services-auto__all:hover span{
  color:#ffffff !important;
}




/* ==============================
   ALIGN BUTTON WITH SUBTITLE (DESKTOP)
   ============================== */

@media(min-width: 992px){

  .mt-home-services-auto__header-block{
    display:grid;
    grid-template-columns: 1fr auto;
    align-items:center;
    gap:20px;
  }

  .mt-home-services-auto__main-title{
    grid-column:1 / -1;
    margin-top:8px;
  }

  .mt-home-services-auto__head{
    display:none; /* hide previous flex container on desktop */
  }

  .mt-home-services-auto__header-block .mt-home-services-auto__all{
    align-self:center;
  }

}




/* ==============================
   FIX: Keep "Ver todos" button visible + aligned to subtitle
   ============================== */

@media(min-width: 992px){
  .mt-home-services-auto__header-block{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items:center;
    gap:20px;
  }
  .mt-home-services-auto__eyebrow{
    grid-column:1;
    grid-row:1;
    margin-bottom:0;
  }
  .mt-home-services-auto__header-cta{
    grid-column:2;
    grid-row:1;
    justify-self:end;
  }
  .mt-home-services-auto__main-title{
    grid-column:1 / -1;
    grid-row:2;
    margin-top:10px;
  }
}

/* Make sure CTA wrapper doesn't break mobile layout */
@media(max-width: 768px){
  .mt-home-services-auto__header-cta{
    margin-top:18px;
    display:flex;
    justify-content:center;
  }
}




/* ==============================
   HOME - Services header CTA layout
   ============================== */
.mt-home-services-auto__header-cta{ margin-top:18px; }
@media(min-width: 992px){
  .mt-home-services-auto__header-cta{ margin-top:0; }
}




/* ==============================
   HOME HERO - show customizer subtitle
   ============================== */
.mt-hero2__subtitle{
  margin: 18px 0 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
}
@media (max-width: 768px){
  .mt-hero2__subtitle{
    font-size: 15px;
    max-width: 100%;
  }
}

