/* ======================================================================================================
   1. HEADER & NAVEGACIÓN (MOBILE FIRST BASE)
   ====================================================================================================== */
#totalhead {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background: transparent;
	padding: 20px 0;
  box-sizing: border-box;
}

#totalhead.sticky{background-color: #333333;padding:20px 0;box-sizing:border-box}

.site-header {
    background: none;
}

.site-header .wrap {
    width: 100%;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Logo */
.site-header .title-area {
    flex-shrink: 0;
}

.site-header .custom-logo {
    display: block;
    height: auto;
    max-height: 38px;
    width: auto;
}

.header-widget-area {
    display: flex;
    align-items: center;
}

/* Por defecto en móvil se oculta el social/contacto superior */
#social-container {
    display: none;
    background: none;
}

/* Menú en móvil */
.nav-primary {
    background: transparent;
}

.nav-primary .wrap {
    padding: 0;
    margin: 0;
}

.nav-primary .wrap > ul {
    background: none;
}

.genesis-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
	flex-direction:column
}

.genesis-nav-menu .menu-item a {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.genesis-nav-menu .menu-item a:hover
 {
    color: #F05A28;
}


/* ======================================================================================================
   2. HERO VIDEO (MOBILE FIRST BASE)
   ====================================================================================================== */
.hero-video-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: #ffffff;
    padding: 100px 16px 50px;
    box-sizing: border-box;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.20);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
}

.hero-title-orange {
    color: #F05A28;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-title-white {
    color: #ffffff;
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    font-weight: 300;
    letter-spacing: 0.8px;
    margin: 0 0 16px 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero-description {
    color: #f1f1f1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 auto 28px auto;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    background-color: #F05A28;
    color: #ffffff;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.hero-btn:hover {
    background-color: #e64a19;
    color: #ffffff;
}


/* ======================================================================================================
   3. SECCIÓN DE MÉTRICAS (MOBILE FIRST BASE)
   ====================================================================================================== */
.metrics-section {
    width: 100%;
    background-color: #ffffff;
    padding: 40px 16px;
    box-sizing: border-box;
}

.metrics-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.metric-item {
    width: 100%;
    text-align: center;
    padding: 0;
}

.metric-divider {
    width: 48px;
    height: 1px;
    background-color: #e0e0e0;
    flex-shrink: 0;
}

.metric-number {
    color: #F05A28;
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-family: inherit;
}

.metric-number .unit {
    font-size: 1.7rem;
}

.metric-label {
    margin-top: 6px;
    color: #4b4b4b;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* ===================================================
   4. DESKTOP EXPANSION (min-width: 896px)
   =================================================== */
@media screen and (min-width: 896px) {
    /* Header Desktop */
    .site-header .wrap {
        max-width: 1080px;
        padding: 18px 24px;
    }

    .site-header .custom-logo {
        max-height: 48px;
    }

    .header-widget-area {
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
    }

    /* Mostrar barra superior de contacto */
    #social-container {
        display: flex;
    }

    #social-container,
    .social,
    .sg-contact-info {
        display: flex;
        align-items: center;
        gap: 22px;
    }

    .sg-contact-item {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #ffffff;
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
        letter-spacing: 0.3px;
    }

    .sg-contact-item img {
   
        object-fit: contain;
        filter: brightness(0) invert(1);
    }

    .sg-contact-item:hover {
        color: #F05A28;
    }

    .sg-social-links {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-left: 6px;
    }

    .sg-social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .sg-social-links a:hover {
        transform: translateY(-2px);
        opacity: 0.85;
    }

    .sg-social-links img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    .genesis-nav-menu {
        gap: 28px;flex-direction:row
    }
	.genesis-nav-menu .current-menu-item > a {
    color: #F05A28;
}

    .genesis-nav-menu .menu-item a {
        font-size: 13px;
        letter-spacing: 1px;
    }

    /* Hero Desktop */
    .hero-video-section {
        min-height: 85vh;
        padding: 140px 20px 80px;
    }

    .hero-content {
        max-width: 900px;
    }

    .hero-title-orange {
        font-size: 3.1rem;
        letter-spacing: 1.5px;
    }

    .hero-title-white {
        font-size: 2.1rem;
        letter-spacing: 1.2px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1.1rem;
        max-width: 780px;
        margin-bottom: 35px;
    }

    .hero-btn {
        padding: 14px 32px;
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .hero-btn:hover {
        transform: translateY(-2px);
    }

    /* Métricas Desktop */
    .metrics-section {
        padding: 60px 20px;
    }

    .metrics-container {
        max-width: 1200px;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .metric-item {
        flex: 1;
        padding: 0 15px;
    }

    .metric-divider {
        width: 1px;
        height: 70px;
    }

    .metric-number {
        font-size: 3rem;
    }

    .metric-number .unit {
        font-size: 2.4rem;
    }

    .metric-label {
        font-size: 0.85rem;
        margin-top: 8px;
    }
}


/* ======================================================================================================
   SECCIÓN SERVICIOS (FONDO GENERAL OSCURO)
   ====================================================================================================== */
#nuestrosservicios {
    background-color: #1e1e1e;
    padding: 60px 16px;
    box-sizing: border-box;
}

#nuestrosservicios .widget-wrap {
    max-width: 1080px;
    margin: 0 auto;
}

/* ===================================================
   ENCABEZADO CON SUBTÍTULO
   =================================================== */
#nuestrosservicios .widget-title {
    text-align: center;
    color: #ffffff;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 35px 0;
    position: relative;
}

/* Subtítulo naranja "/ Nuestros Servicios /" */
#nuestrosservicios .widget-title::before {
    content: "/ Nuestros Servicios /";
    display: block;
    color: #F05A28;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: none;
}

/* ===================================================
   GRID DE TARJETAS (MOBILE FIRST: 1 COLUMNA)
   =================================================== */
#nuestrosservicios .sg-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ===================================================
   ESTRUCTURA DE LA TARJETA (CUADRADA Y OSCURA)
   =================================================== */
#nuestrosservicios .sg-card {
    position: relative;
    aspect-ratio: 1 / 1; /* Mantiene la proporción cuadrada exacta */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #111111;
    isolation: isolate;
}

/* Imagen de fondo */
#nuestrosservicios .sg-card-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
   
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover de la imagen de fondo */
#nuestrosservicios .sg-card:hover .sg-card-bg-img {
    transform: scale(1.07);
    filter: brightness(0.35);
}

/* Contenido centrado sobre el fondo */
#nuestrosservicios .sg-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Icono central dentro de su contenedor naranja */
#nuestrosservicios .sg-card-main-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: #F05A28;
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

#nuestrosservicios .sg-card:hover .sg-card-main-img {
    transform: translateY(-3px);
}

/* Título del servicio */
#nuestrosservicios .sg-card-inner h4 {
    color: #ffffff;
    font-size: clamp(0.78rem, 1vw, 0.88rem);
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin: 0;
    max-width: 240px;
}

/* ===================================================
   DESKTOP EXPANSION (min-width: 896px)
   =================================================== */
@media screen and (min-width: 896px) {
    #nuestrosservicios {
        padding: 80px 24px;
    }

    #nuestrosservicios .widget-title {
        margin-bottom: 45px;
    }

    /* Grid de 3 columnas */
    #nuestrosservicios .sg-columns.sg-columns-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    #nuestrosservicios .sg-card-main-img {
        width: 64px;
        height: 64px;
        padding: 14px;
    }
}



/* Asegura que los elementos ocultos mantengan su espacio reservado */
#home-block2 .animatable {
  will-change: transform, opacity;
}

/* Retardo personalizado más sutil para la cuadrícula si deseas afinar tiempos */
#home-block2 .animated.delay-1 { animation-delay: 0.15s; }
#home-block2 .animated.delay-2 { animation-delay: 0.3s; }
#home-block2 .animated.delay-3 { animation-delay: 0.45s; }



/* ======================================================================================================
   1.NOSOTROS ESTILOS BASE (MOBILE-FIRST)
   ====================================================================================================== */

#home-block4 {


  overflow: hidden;
  box-sizing: border-box;
}

/* Encabezado superior */
#home-block4 #nosotros {
  text-align: center;

	padding: 15px 20px;
    box-sizing: border-box;
}

#home-block4 #nosotros h2 {
  color: #1D1D1D;
  font-size: 1.85rem;
  letter-spacing: 1px;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  display: inline-block;
}

/* Subtítulo naranja "/ Nosotros /" */
#home-block4 #nosotros h2::before {
  content: "/ Nosotros /";
  display: block;
  color: #F05A28;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: none;
}

/* Wrapper de dos columnas: Flujo vertical en móvil */
#startergeek_two_columns-2{	  background-color: #262626;  padding: 50px 20px;box-sizing:border-box}
#home-block4 .sg-two-cols-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;

}

#home-block4 .sg-col {
  width: 100%;
}

/* --- COLUMNA 1: IMAGEN Y ROMBOS --- */
#home-block4 .sg-col-1 {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 20px 0;
}

/* La imagen sobre el fondo de los rombos */
#home-block4 .sg-col-image {
  position: relative;
  z-index: 2;
  width: 100%;
}

#home-block4 .sg-col-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Contenedor relativo para posicionar los rombos detrás */
#home-block4 .sg-col-1 .sg-col-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Estilo base de los rombos (paralelogramos sesgados) */
#nosotrosrombo1,
#nosotrosrombo2 {
  position: absolute;
  background-color: #F05A28;
  transform: skewX(-12deg);
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Rombo 1: Superior izquierdo */
#nosotrosrombo1 {
  width: 90px;
  height: 240px;
  top: 10px;
  left: -12px;
}

/* Rombo 2: Inferior derecho */
#nosotrosrombo2 {
  width: 190px;
  height: 240px;
  bottom: 8px;
  right: 10px;
}

/* --- COLUMNA 2: TEXTOS --- */
#home-block4 .sg-col-2 .sg-col-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
}

#home-block4 .sg-col-2 p {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Destacado: 15 años de experiencia */
#home-block4 .sg-col-2 p:nth-child(2) {
  color: #ffffff;
  font-size: 1.05rem;
  margin: 8px 0;
  line-height: 1.35;
}

#home-block4 .sg-col-2 p span {
  display: block;
  color: #F05A28;
  font-size: 2.1rem;
  font-weight: 300;
  margin: 4px 0;
  line-height: 1.15;
}

#home-block4 .sg-col-2 p strong{  color: #F05A28;}

/* ===================================================
   2. DESKTOP (@media screen and (min-width: 896px))
   =================================================== */
@media screen and (min-width: 896px) {


#startergeek_two_columns-2{	     padding: 85px 40px;box-sizing:border-box}


  #home-block4 #nosotros h2 {
    font-size: 2.6rem;
  }

  /* Grid 2 Columnas idéntico al mockup */
  #home-block4 .sg-two-cols-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 75px;
    align-items: center;
  }

  #home-block4 .sg-col-1 {
    max-width: 500px;
    margin: 0;
  }

  /* Ajuste de escala para rombos en pantallas grandes */
  #nosotrosrombo1 {
    width: 105px;
    height: 310px;
    top: 5px;
    left: -20px;
  }

  #nosotrosrombo2 {
    width: 230px;
    height: 310px;
    bottom: 5px;
    right: 25px;
  }

  #home-block4 .sg-col-2 .sg-col-body {
    text-align: center;
    padding-left: 20px;
  }

  #home-block4 .sg-col-2 p {
    font-size: 1rem;
    max-width: 540px;
  }
}


#home-block4{display:none !important}



/* ======================================================================================================
   1.CLIENTES BASE (MOBILE-FIRST)
   ====================================================================================================== */


#clientes{padding:45px 10px;box-sizing:border-box; }
#clientes h2{font-size:1.05rem;text-align:center;font-weight: 300;}
#clientes p{color:#F05A28;text-align:center;font-size:20px}
#clientesint{display:flex;width:1580px;max-width:100%;padding:10px;box-sizing:border-box;justify-content:center;flex-wrap:wrap;align-items:center;margin:0 auto}
#clientesint .logo-item{padding:8px;box-sizing:border-box}

@media screen and (min-width: 896px) {
	#clientes h2{font-size: 2.6rem;}
	
}

#home-block5 hr{max-width:1200px;margin:0 auto; border-top:solid 1px #707070;margin:0 auto;padding:10px;box-sizing:border-box}



/* ==========================================================================
   CARRUSEL RESPONSIVO SIN ELEMENTOS MOCHOS
   ========================================================================== */

.teicsa-carousel-section .carousel-section-title{text-align:center;margin-bottom:20px}

/* 1. Definición de variables base (Mobile First: 1 tarjeta visible) */
.teicsa-carousel-section {
  --items-per-screen: 1;
  --carousel-gap: 16px;
  width: 100%;
  max-width: 1680px;
  margin: 60px auto 80px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 2. Pistas de desplazamiento */
.carousel-slider-container {
  width: 100%;
  overflow: hidden; /* Evita desbordes horizontales raros en la ventana */
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 25px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* 3. Cálculo matemático exacto para que NUNCA quede una tarjeta a medias */
.carousel-card-item {
  /* Resta el total de espacios entre columnas y divide exactamente entre los elementos visibles */
  flex: 0 0 calc((100% - (var(--carousel-gap) * (var(--items-per-screen) - 1))) / var(--items-per-screen));
  min-width: 0; /* Previene desbordes por contenido flexible */
  scroll-snap-align: start;
}

/* 4. Proporción fija (Aspect Ratio 9:14 para que no se deforme la altura) */
.carousel-card-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14; /* Mantiene la proporción vertical de tus capturas */
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card-media {
  width: 100%;
  height: 100%;
}

.carousel-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

/* 5. Capa Hover Naranja con Botón Oscuro */
.carousel-card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(235, 90, 40, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2;
}

.carousel-project-name {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.carousel-overlay-btn {
  display: inline-block;
  background-color: #26292c;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 11px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(12px);
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.carousel-card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.carousel-card-link:hover .carousel-card-media img {
  transform: scale(1.05);
}

.carousel-card-link:hover .carousel-card-overlay {
  opacity: 1;
  visibility: visible;
}

.carousel-card-link:hover .carousel-project-name,
.carousel-card-link:hover .carousel-overlay-btn {
  transform: translateY(0);
}

.carousel-card-link:hover .carousel-overlay-btn:hover {
  background-color: #17191a;
}

/* Controles de Navegación (Flechas Circulares Naranjas) */
.carousel-nav-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 20px auto 30px;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #F05A28;
  background: transparent;
  color: #F05A28;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background-color: #F05A28;
  color: #ffffff;
  transform: scale(1.08);
}

/* Botón inferior Ver Más Proyectos */
.carousel-cta-container {
  text-align: center;
  margin-top: 10px;
}
.btn-ver-mas-proyectos {
  display: inline-block;
  background-color: #F05A28;
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 13px 34px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(235, 90, 40, 0.3);
}

.btn-ver-mas-proyectos:hover {
  background-color: #F05A28;
  transform: translateY(-2px);
}

/* ==========================================================================
   BREAKPOINTS LIMPIOS: ESCALONADO EXACTO
   ========================================================================== */

/* Móviles grandes / Phablets: 2 tarjetas exactas */
@media screen and (min-width: 540px) {
  .teicsa-carousel-section {
    --items-per-screen: 2;
    --carousel-gap: 18px;
  }
}

/* Tablets en horizontal / Laptops chicas: 3 tarjetas exactas */
@media screen and (min-width: 820px) {
  .teicsa-carousel-section {
    --items-per-screen: 3;
    --carousel-gap: 20px;
  }
}

/* Escritorio / Pantallas estándar: 4 tarjetas exactas */
@media screen and (min-width: 1100px) {
  .teicsa-carousel-section {
    --items-per-screen: 4;
    --carousel-gap: 22px;
  }
}






/* ==========================================================================
   SECCIÓN HOME BLOCK 6: ARTÍCULOS EN GRID CON TARJETA FLOTANTE
   ========================================================================== */

#home-block6 {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 80px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 1. Encabezado de la Sección */
#home-block6 #custom_html-9 {
  text-align: center;
  margin-bottom: 50px;
}

#home-block6 .blog-section-sub {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #F05A28; /* Naranja corporativo */
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

#home-block6 #custom_html-9 h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #131313;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

/* 2. Cuadrícula de Entradas */
#home-block6 #featured-post-2 .widget-wrap {
  display: grid;
  grid-template-columns: 1fr; /* 1 columna en móvil */
  gap: 80px; /* Espacio vertical para compensar el desborde inferior */
  margin: 0;
  padding: 0;
}

/* 3. Tarjeta de cada Artículo */
#home-block6 .entry {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  margin: 0;
  padding: 40px 10px;
	box-sizing:border-box
}

/* 4. Imagen Destacada */
#home-block6 .entry > a[tabindex="-1"],
#home-block6 .entry > a.alignnone {
  position: relative;
  display: block;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 2px;
  background-color: #f4f4f4;
  margin: 0 !important;
}

#home-block6 .entry .entry-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 !important;
  transition: transform 0.4s ease;
}

#home-block6 .entry:hover .entry-image {
  transform: scale(1.04);
}

/* 5. Contenedor Flotante (Header + Content agrupados virtualmente) */
#home-block6 .entry-header,
#home-block6 .entry-content {
  background-color: #ffffff;
  width: 86%;
  max-width: 440px;
  box-sizing: border-box;
  text-align: center;
 
  position: relative;
  z-index: 5;
}


#home-block6 .entry-header{
	 box-shadow: 0 24px 24px rgba(0, 0, 0, 0.08);
}
/* Mitad superior de la tarjeta blanca */
#home-block6 .entry-header {
  margin-top: -65px; /* Monta la tarjeta sobre la foto */
  padding: 24px 22px 14px;
}

/* Título de la entrada */
#home-block6 .entry-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

#home-block6 .entry-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.2s ease;
}

#home-block6 .entry-title a:hover {
  color: #F05A28;
}

/* Línea divisoria naranja tenue */
#home-block6 .entry-header::after {
  content: "";
  display: block;
  width: 80%;
  height: 2px;
  background-color: #f5b79d; /* Naranja pastel tenue */
  margin: 15px auto 0;
}

/* Mitad inferior de la tarjeta blanca */
#home-block6 .entry-content {
  padding: 0 22px 24px;
	 box-shadow: 2px 24px 24px -8px rgba(0, 0, 0, 0.08);
}

#home-block6 .entry-content p {
  color: #777777;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   DESKTOP (@media screen and (min-width: 896px))
   ========================================================================== */
@media screen and (min-width: 896px) {
  #home-block6 #featured-post-2 .widget-wrap {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas exactas */
    gap: 36px;
  }

  #home-block6 .entry > a[tabindex="-1"],
  #home-block6 .entry > a.alignnone {
    height: 310px;
  }

  #home-block6 .entry-header {
    margin-top: -75px;
    padding: 28px 26px 14px;
  }

  #home-block6 .entry-content {
    padding: 0 26px 28px;
  }

  #home-block6 .entry-title {
    font-size: 1.15rem;
  }

  #home-block6 .entry-content p {
    font-size: 0.9rem;
  }
}





/* ======================================================================================================
   1. ESTRUCTURA GENERAL formulario
   ====================================================================================================== */
/* ===================================================
   1. ESTILOS BASE (MOBILE-FIRST)
   =================================================== */

.footer-widgets-1{background-color:#f4f4f4;display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;padding:25px 10px;box-sizing:border-box;}
.footer-widgets-1 section{width:1080px;padding:2px 10px;box-sizing:border-box;max-width:100%}

/* Títulos y textos superiores */
#contacto {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

#contacto  h2 {
  color: #F05A28;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 4px 0;
  line-height: 1.1;
}

#contacto  p {
  color: #777777;
  font-size: 18px;
  margin-bottom: 10px;
}

#contacto  p span {
  color: #F05A28;

}

/* Limpieza de spinners */
.wpcf7 .wpcf7-spinner {
  display: none !important;
}

/* Formulario: flujo natural vertical en móvil */
.wpcf7-form .halfform {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wpcf7-form .halfform p,
.wpcf7-form .halfform label {
  margin: 0;
  display: block;
  width: 100%;
}

.wpcf7-form .halfform .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Campos de entrada */
.wpcf7-form input, .wpcf7-form textarea {
  width: 100%;
  border: 1.5px solid #F05A28;
  background-color: #fff;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #333;
  border-radius: 0;
  box-sizing: border-box;
  outline: none;
}


.wpcf7-form textarea {
  max-height: 159px;
	margin: 12px auto;
}

/* Botón en móvil: ancho completo horizontal */
.wpcf7-form input[type="submit"].wpcf7-submit {
  background-color: #F05A28 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 1px !important;
  padding: 12px !important;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;

}

.wpcf7-form input[type="submit"].wpcf7-submit:hover {
  background-color: #333333 !important;
}


/* ===================================================
   2. DESKTOP (@media screen and (min-width: 896px))
   =================================================== */
@media screen and (min-width: 896px) {

  /* Encabezados alineados a 2 columnas */
  #contacto {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 30px;
    align-items: end;
  }

  #contacto > div:first-child h2 {
    font-size: 2.3rem;
  }

  /* Grilla del formulario: Col 1 (inputs), Col 2 (textarea), Col 3 (botón) */
  .wpcf7-form .fullform {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    gap: 12px 20px;
    align-items: stretch;
  }

  /* Columna izquierda: 3 inputs apilados */
  .wpcf7-form .fullform:first-child > div:nth-child(1) {
    grid-column: 1;
  }

  /* Columna derecha: textarea abarca las 3 filas */
  .wpcf7-form .fullform halfform:last-child {
    grid-column: 2;
    grid-row: 1 / span 3;
    height: 100%;
  }

  .wpcf7-form .halfform > div.halfform p,
  .wpcf7-form .halfform > div.halfform label,
  .wpcf7-form .halfform > div.halfform .wpcf7-form-control-wrap {
    height: 100%;
  }
.wpcf7-form textarea {

	margin: 0 auto;
}
 

  /* Botón vertical a la derecha del textarea ocupando las 3 filas */
  .wpcf7-form .halfform > p:last-of-type {
    grid-column: 3;
    grid-row: 1 / span 3;
    display: flex;
    height: 100%;
  }

  .wpcf7-form input[type="submit"].wpcf7-submit {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-orientation: sideways;
    white-space: nowrap;
  
    width: auto;
    min-width: 44px;
    padding: 0 16px !important;
	  	height:159px
  }
}

 
/* ======================================================================================================
   1. FOOTER INFO ESTILOS BASE (MOBILE-FIRST)
   ====================================================================================================== */

.contact-info {
  background-color: #131313;
  color: #cccccc;
  font-family: inherit;
  padding: 40px 20px;
  box-sizing: border-box;
	background-image: url(/wp-content/uploads/2026/10/teicsafooterimage.png)
}

/* Enlaces y reseteos generales */
.contact-info a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
	font-weight:300
}

.contact-info a:hover {
  color: #F05A28;
}

.contact-info address {
  font-style: normal;
  line-height: 1.4;
  margin: 0;
}

/* Iconos de contacto */
.contact-info .contact-icon {
  width: 22px;
  height: auto;
  max-height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Redes sociales */
.contact-info .social-icon img {
  width: 26px;
  height: 26px;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-info .social-icon:hover img {
  opacity: 0.85;
  transform: scale(1.05);
}

/* --- BARRA SUPERIOR (Móvil: apilada en columna) --- */
.contact-info-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid #333333;
  padding: 24px 20px;
  margin-bottom: 45px;
}

.contact-info-top .contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: #ffffff;
}

.contact-info-top .contact-address {
  align-items: flex-start;
  text-transform: capitalize;
}

.contact-info-top .contact-socials {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* --- BLOQUE INFERIOR (Móvil: vertical) --- */
.contact-info-bottom {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Columna 1: Branding */
.footer-col-brand .footer-logo img {
  max-width: 190px;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.footer-col-brand .brand-quote {
  font-size: 18px;
  line-height: 1.55;
  color: #8a8a8a;
  margin: 0;
  max-width: 360px;
}

/* Títulos de columnas (Menú y Servicios) */
.contact-info .footer-heading {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  position: relative;
}

/* Listas de enlaces */
.contact-info .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info .footer-links li a {
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #8a8a8a;
  display: inline-block;
  line-height: 1.35;
}

.contact-info .footer-links li a:hover {
  color: #ffffff;
}

.footer-col-services{text-align:center}

.footer-col-menu {
    text-align: center;
  }
/* ===================================================
   2. DESKTOP (@media screen and (min-width: 896px))
   =================================================== */
@media screen and (min-width: 896px) {

  .contact-info {
    padding: 60px 40px;
  }

  /* Barra superior: marco lineal con separadores verticales */
  .contact-info-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto 55px auto;
  }

  .contact-info-top .contact-item {
    padding: 0 25px;
  }

  /* Divisores verticales idénticos al mockup */
  .contact-info-top .contact-item:not(:last-child) {
    border-right: 1px solid #333333;
  }

  .contact-info-top .contact-address {
    flex: 1.3;
    padding-left: 0;
    font-size: 0.88rem;
  }

  .contact-info-top .contact-phone {
    flex: 0.9;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
  }

  .contact-info-top .contact-email {
    flex: 1;
    justify-content: center;
    font-size: 0.95rem;
  }

  .contact-info-top .contact-socials {
    flex: 0.6;
    justify-content: flex-end;
    padding-right: 0;
  }

  /* Bloque inferior: estructura de 3 columnas alineadas */
  .contact-info-bottom {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.6fr;
    gap: 50px;
    max-width: 1180px;
    margin: 0 auto;
    align-items: start;
  }

  .footer-col-brand {
    padding-right: 20px;
  }

  /* Centrado visual sutil para la columna de Menú */
  

  .footer-col-menu .footer-links {
    align-items: center;
  }

  /* Columna de Servicios alineada a la izquierda */


  .footer-col-services .footer-links {
    align-items: center;
  }
}


#footercopyright{background-color:#131313;color:#fff;display:flex;justify-content:space-around;height:56px;align-items:center;flex-wrap:wrap}
#footercopyright > div{margin:10px}
/* =================================================== ===================================================
   SINGLE PROYECTO: BASE MOBILE-FIRST
   =================================================== =================================================== */

body.page:not(.home) #totalhead, .single-proyecto #totalhead ,body.post-type-archive #totalhead{background-color:#333333}

body.page-id-62 #totalhead {background:none !important}
body.page-id-62 #totalhead.sticky {background-color:#333333 !important}

body.page:not(.home) .entry-title, .single-proyecto .entry-title {	margin-top:130px}


body.post-type-archive .archive-header-wrap{margin-top:150px}




.proyecto-single-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 16px 60px;
  box-sizing: border-box;

}






/* Fila Superior en móvil: vertical */
.proyecto-hero-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 25px;
  margin-bottom: 30px;
}

/* Imagen Principal */
.proyecto-main-media {
  width: 100%;
}

.proyecto-main-media img.featured-project-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Lista de Especificaciones Técnicas */
.proyecto-specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proyecto-specs-list .spec-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #333333;
}

.proyecto-specs-list .spec-icon {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: #333333;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Galería / Tira de fotos */
.proyecto-gallery-slider {
  position: relative;
  margin: 30px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gallery-track {
  display: flex;
  gap: 12px;
}

.gallery-thumb {
  flex: 0 0 160px;
  height: 110px;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botón CTA Naranja */
.proyecto-cta-container {
  text-align: center;
  margin-top: 40px;
}

.btn-cotizar-proyecto {
  display: inline-block;
  background-color: #F05A28;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 34px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-cotizar-proyecto:hover {
  background-color: #F05A28;
  transform: translateY(-2px);
}


/* ===================================================
   DESKTOP (@media screen and (min-width: 896px))
   =================================================== */
@media screen and (min-width: 896px) {
body.post-type-archive .archive-header-wrap{margin-top:180px}
  .proyecto-single-wrapper {
    padding: 50px 20px 80px;
  }

  /* Grid 2 Columnas idéntico a la imagen */
  .proyecto-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.25fr;
    gap: 45px;
    align-items: center;
    margin-bottom: 45px;
  }

  .proyecto-specs-list {
    gap: 20px;
  }

  /* 5 miniaturas visibles en desktop */
  .gallery-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .gallery-thumb {
    flex: initial;
    height: 125px;
  }
}


/* ===================================================
   SLIDER DE GALERÍA NATIVA (MOBILE-FIRST)
   =================================================== */

.proyecto-gallery-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 35px 0;
  width: 100%;
}

/* Contenedor del carrusel con scroll horizontal suave */
.proyecto-gallery-slider {
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.proyecto-gallery-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Reseteo del bloque nativo de WP Gallery a una fila flex */
.proyecto-gallery-slider .wp-block-gallery {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Cada miniatura */
.proyecto-gallery-slider .wp-block-gallery .wp-block-image {
  flex: 0 0 170px !important;
  width:240px !important;
  margin: 0 !important;
}

.proyecto-gallery-slider .wp-block-gallery .wp-block-image img {
  width: 100% !important;
  height: 120px !important;
  object-fit: cover !important;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
	max-height:165px
}

.proyecto-gallery-slider .wp-block-gallery .wp-block-image img:hover {
  transform: scale(1.03);
}

/* Botones circulares con borde naranja */
.gallery-nav-btn {
  background: transparent;
  border: 2px solid #F05A28;
  color: #F05A28;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gallery-nav-btn:hover {
filter: grayscale(100%) contrast(1000%) invert(0);
}

/* ===================================================
   DESKTOP (@media screen and (min-width: 896px))
   =================================================== */
@media screen and (min-width: 896px) {
  .proyecto-gallery-slider .wp-block-gallery {
    gap: 16px !important;
  }

  /* Cálculo exacto para mostrar 5 imágenes completas en el viewport */
  .proyecto-gallery-slider .wp-block-gallery .wp-block-image {
    flex: 0 0 calc((100% - (16px * 4)) / 4) !important;
    width: calc((100% - (16px * 4)) / 4) !important;
  }

  .proyecto-gallery-slider .wp-block-gallery .wp-block-image img {
    max-height: 165px !important;
  }

  .gallery-nav-btn {
    width: 44px;
    height: 44px;
  }
}






/* ==========================================================================
   BANNER HERO CON TÍTULO INTEGRADO (SOLO POST Y SERVICIO)
   ========================================================================== */

.sg-title-overlay .sg-featured-overlay{background:none !important}




/* Contenedor del hero */
body.single-post .featured-image-class,
body.single-servicio .featured-image-class, body.page-id-62 .featured-image-class {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: #131313;
	margin-bottom:30px
}

/* Imagen base con filtro oscuro */
body.single-post .featured-image-class picture,
body.single-servicio .featured-image-class picture, body.page-id-62 .featured-image-class picture{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

body.single-post .featured-image-class img,
body.single-servicio .featured-image-class picture img , body.page-id-62 .featured-image-class picture img  {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.48) contrast(1.05);
}

 

/* Título dentro de la imagen */
body.single-post .sg-featured-overlay,
body.single-servicio .sg-featured-overlay {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1100px;
  padding: 0 20px 45px;
  text-align: center;
  box-sizing: border-box;
}

body.single-post .sg-featured-overlay .entry-title,
body.single-servicio .sg-featured-overlay .entry-title {
  color: #ffffff !important;
  font-size: 1.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Escritorio */
@media screen and (min-width: 896px) {
  body.single-post .featured-image-class,
  body.single-servicio .featured-image-class {
    height: 520px;
  }

  body.single-post .sg-featured-overlay,
  body.single-servicio .sg-featured-overlay {
    padding-bottom: 55px;
  }

  body.single-post .sg-featured-overlay .entry-title,
  body.single-servicio .sg-featured-overlay .entry-title {
    font-size: 2.35rem;
    letter-spacing: 2px;
  }
}






/* ==========================================================================
   HERO ESPECÍFICO DE SERVICIOS (MOBILE-FIRST)
   ========================================================================== */

/* 1. Mayor altura en servicios para albergar icono + h1 + texto + botón */
body.single-servicio .featured-image-class {
  height: 520px;
  align-items: center; /* Centrado vertical en el hero */
}

/* 2. Contenedor del contenido centrado */
body.single-servicio .sg-service-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;

  margin: 0 auto;
	margin-bottom:-80px
}

/* 3. Cuadro naranja redondeado del icono */
.service-hero-badge {
  width: 64px;
  height: 64px;
  background-color: #F05A28;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.service-hero-badge .service-hero-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  /* Asegura que el icono quede blanco si es un SVG o PNG transparente */
  filter: brightness(0) invert(1);
}

/* 4. Título h1 */
body.single-servicio .sg-service-hero-content .entry-title {
  color: #ffffff !important;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.25;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* 5. Párrafo descriptivo */
.service-hero-desc {
  color: #f1f1f1;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 26px 0;
  max-width: 840px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* 6. Botón Cotizar */
.service-hero-cta .btn-cotizar-proyecto {
  display: inline-block;
  background-color: #F05A28;
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 13px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.service-hero-cta .btn-cotizar-proyecto:hover {
  background-color: #F05A28;
  transform: translateY(-2px);
}


/* ==========================================================================
   DESKTOP (@media screen and (min-width: 896px))
   ========================================================================== */
@media screen and (min-width: 896px) {

  body.single-servicio .featured-image-class {
    height: 600px; /* Mayor amplitud para monitores */
  }

  .service-hero-badge {
    width: 74px;
    height: 74px;
    border-radius: 14px;
    margin-bottom: 26px;
  }

  .service-hero-badge .service-hero-icon {
    width: 42px;
    height: 42px;
  }

  body.single-servicio .sg-service-hero-content .entry-title {
    font-size: 2.3rem;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .service-hero-desc {
    font-size: 1.05rem;
    margin-bottom: 30px;
  }
}


/* ====================================================================================================================================================
   GRID DE PROYECTOS (MOBILE-FIRST)
   ==================================================================================================================================================== */

.proyectos-grid-container {
  display: grid;
  grid-template-columns: 1fr; /* 1 columna en móvil */
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  box-sizing: border-box;
}

/* Tarjeta individual */
.proyecto-grid-card {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 2px;
}

.proyecto-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

/* Contenedor de la imagen */
.proyecto-card-thumb {
  position: relative;
  width: 100%;
  height: 240px; /* Altura constante idéntica para todas las imágenes */
  overflow: hidden;
  background-color: #f4f4f4;
}

.proyecto-card-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.proyecto-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.proyecto-grid-card:hover .proyecto-card-thumb img {
  transform: scale(1.04);
}

.proyecto-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
  font-size: 0.9rem;
}

/* Cuerpo de la tarjeta */
.proyecto-card-body {
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  align-items: center;
  justify-content: space-between; /* Empuja el botón al fondo */
}

/* Título */
.proyecto-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.proyecto-card-title a {
  color: #131313;
  text-decoration: none;
  transition: color 0.2s ease;
}

.proyecto-card-title a:hover {
  color: #F05A28;
}

/* Tipo de obra / Descripción corta */
.proyecto-card-tipo {
  font-size: 0.88rem;
  color: #4b4b4b;
  line-height: 1.45;
  margin: 0 0 22px 0;
  min-height: 2.9em; /* Mantiene la misma altura entre tarjetas de 1 o 2 líneas */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenedor del Botón */
.proyecto-card-action {
  margin-top: auto;
  width: 100%;
}

/* Botón Naranja */
.btn-ver-proyecto {
  display: inline-block;
  background-color: #F05A28;
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 11px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(235, 90, 40, 0.3);
}

.btn-ver-proyecto:hover {
  background-color: #F05A28;
  transform: translateY(-2px);
}


/* ==========================================================================
   DESKTOP (@media screen and (min-width: 896px))
   ========================================================================== */
@media screen and (min-width: 896px) {

  /* Exactamente 3 columnas en escritorio como en la imagen */
  .proyectos-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 40px auto 60px;
  }

  .proyecto-card-thumb {
    height: 230px;
  }

  .proyecto-card-body {
    padding: 26px 22px 30px;
  }

  .proyecto-card-title {
    font-size: 1.1rem;
  }
}


/* ==========================================================================
   CABECERA DEL ARCHIVO
   ========================================================================== */
.archive-header-wrap {
  text-align: center;
  max-width: 900px;
  margin: 40px auto 35px;
  padding: 0 20px;
}

.archive-main-title {
  color: #131313;
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px;
}

.archive-desc {
  color: #777777;
  font-size: 1rem;
  line-height: 1.5;
}

/* ==========================================================================
   GRID DE ENTRADAS (.gm-grid)
   ========================================================================== */
.post-type-archive .gm-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 columna en móvil */
  gap: 28px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Tarjeta individual */
.post-type-archive .gm-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-type-archive .gm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
}

/* Contenedor de la foto destacada */
.post-type-archive .gm-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f4f4f4;
}

.post-type-archive .gm-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.post-type-archive .gm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.post-type-archive .gm-card:hover .gm-img img {
  transform: scale(1.05);
}

/* Contenido / Cuerpo */
.post-type-archive .gm-content {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Fecha / Etiqueta meta */
.post-type-archive .gm-meta-date {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #F05A28; /* Naranja corporativo */
  margin-bottom: 8px;
  display: inline-block;
}

/* Título */
.post-type-archive .gm-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
}

.post-type-archive .gm-title a {
  color: #131313;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-type-archive .gm-title a:hover {
  color: #F05A28;
}

/* Extracto */
.post-type-archive .gm-excerpt {
  color: #4b4b4b;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 20px;
  flex-grow: 1;
}

/* Botón Leer Más */
.post-type-archive .gm-action {
  margin-top: auto;
}

.post-type-archive .gm-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F05A28;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.post-type-archive .gm-link span {
  transition: transform 0.2s ease;
}

.post-type-archive .gm-link:hover {
  color: #333333;
}

.post-type-archive .gm-link:hover span {
  transform: translateX(4px);
}

/* ==========================================================================
   PAGINACIÓN
   ========================================================================== */
.post-type-archive .gm-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px auto 60px;
}

.post-type-archive .gm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.post-type-archive .gm-pagination .page-numbers.current {
  background: #F05A28;
  border-color: #F05A28;
  color: #ffffff;
}

.post-type-archive .gm-pagination .page-numbers:hover:not(.current) {
  border-color: #F05A28;
  color: #F05A28;
}

/* ==========================================================================
   DESKTOP (3 COLUMNAS)
   ========================================================================== */
@media screen and (min-width: 896px) {
  .archive-main-title {
    font-size: 2.3rem;
  }

 .post-type-archive .gm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

 .post-type-archive .gm-img {
    height: 200px;
  }

  .post-type-archive .gm-content {
    padding: 24px 22px 26px;
  }
}
/*--------------------------------------------------------------------------------------*/

/* ===== Reveal on scroll ===== */
html.sgr-on .sgr-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1),
              transform .8s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--sgr-delay, 0ms);
  will-change: opacity, transform;
}
html.sgr-on .sgr-reveal.sgr-left  { transform: translateX(-40px); }
html.sgr-on .sgr-reveal.sgr-right { transform: translateX(40px); }
html.sgr-on .sgr-reveal.sgr-zoom  { transform: scale(.94); }
html.sgr-on .sgr-reveal.sgr-in    { opacity: 1; transform: none; }

/* ===== Entrada del menú / header al cargar ===== */
@keyframes sgrDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: none; }
}
.nav-primary .menu > li,
.site-header .custom-logo-link,
.site-header .sg-contact-item,
.site-header .sg-social-links {
  opacity: 0;
  animation: sgrDown .7s cubic-bezier(.22,.61,.36,1) forwards;
}
.site-header .custom-logo-link { animation-delay: .05s; }
.site-header .sg-contact-item:nth-child(1) { animation-delay: .15s; }
.site-header .sg-contact-item:nth-child(2) { animation-delay: .25s; }
.site-header .sg-social-links { animation-delay: .35s; }
.nav-primary .menu > li:nth-child(1) { animation-delay: .20s; }
.nav-primary .menu > li:nth-child(2) { animation-delay: .28s; }
.nav-primary .menu > li:nth-child(3) { animation-delay: .36s; }
.nav-primary .menu > li:nth-child(4) { animation-delay: .44s; }
.nav-primary .menu > li:nth-child(5) { animation-delay: .52s; }
.nav-primary .menu > li:nth-child(6) { animation-delay: .60s; }
.nav-primary .menu > li:nth-child(n+7) { animation-delay: .68s; }

@media (prefers-reduced-motion: reduce) {
  html.sgr-on .sgr-reveal,
  .nav-primary .menu > li,
  .site-header * {
    opacity: 1 !important; transform: none !important;
    transition: none !important; animation: none !important;
  }
}