:root {
    --negro: #0b0b0b;
    --amarillo: #f5b400;
    --gris: #1a1a1a;
    --blanco: #ffffff;
}

/* ================= BASE ================= */


body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding-top: 80px;
    background-color: var(--blanco);
}


/* ================= NAVBAR LINKS ================= */
.spe-navbar {
    background-color: var(--negro);
    border-bottom: 3px solid var(--amarillo);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Sombra suave por defecto */
}

/* Opcional: cuando hacés scroll, más sombra o fondo más opaco */
.spe-navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.92) !important; /* Semi-transparente al scroll */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}
.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;          /* Blanco por defecto */
    font-weight: 500;
    padding: 0.6rem 1rem !important;    /* Un poco más espacio */
    position: relative;
    transition: all 0.35s ease;
    border-radius: 6px;                 /* Redondeado sutil */
}

/* Hover en links normales */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--amarillo) !important;
    background-color: rgba(245, 158, 11, 0.08); /* Fondo amarillo muy tenue */
    transform: translateY(-2px);                /* Elevación ligera */
}

/* Efecto underline elegante que crece desde el centro */
.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--amarillo);
    transition: all 0.35s ease;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 60%;  /* Longitud del underline al hover */
}

/* ================= BOTONES ================= */

/* Botón principal en navbar */
/* Botón Solicitar Cotización en el navbar - versión sólida y anti-transparente */
.nav-item .btn-spe {
    background-color: var(--amarillo) !important;   /* Fuerza amarillo siempre */
    color: var(--negro) !important;                 /* Texto negro para contraste */
    border: none !important;
    border-radius: 50px !important;                 /* Redondito como querías */
    padding: 0.65rem 1.6rem !important;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); /* Sombra sutil por defecto */
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* Suave y elegante */
    opacity: 1 !important;                          /* Nunca transparente */
}

/* Hover: más intenso, elevación y glow - NADA de transparencia */
.nav-item .btn-spe:hover,
.nav-item .btn-spe:focus {
    background-color: #ffbf00 !important;           /* Amarillo más vivo y llamativo */
    color: var(--negro) !important;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.55) !important;
    opacity: 1 !important;
}

/* Active/pressed: efecto de clic */
.nav-item .btn-spe:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
    opacity: 1 !important;
}

/* Si por alguna razón Bootstrap intenta outline o transparent */
.nav-item .btn-spe:not(:disabled):not(.disabled):active,
.nav-item .btn-spe:not(:disabled):not(.disabled).active {
    background-color: var(--amarillo) !important;
    opacity: 1 !important;
}
/* ================= HERO ================= */


body{
font-family:'Poppins',sans-serif;
background:#0d1117;
}

/* BOTONES IMPORTANTES */
.btn-spe{
background:#fca311;
color:#000;
font-weight:600;
padding:10px 22px;
border-radius:8px;
transition:0.3s;
}

.btn-spe:hover{
background:#ffba08;
transform:translateY(-2px);
box-shadow:0 6px 20px rgba(0,0,0,0.3);
}

/* HERO MEJORADO PERO MANTENIENDO TU FONDO */
.hero-spe {
    min-height: 100vh;
    height: 100dvh;
    padding-top: 440px;
    padding-bottom: 100px;
    
    background: 
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.75) 50%,
            rgba(0, 0, 0, 0.88) 100%
        ),
        url('../img/alta-tension.png') center/cover no-repeat;
    
    background-attachment: fixed;
    
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    
    animation: subtleZoom 22s ease-in-out infinite alternate;
}

.hero-spe h1{
font-size:3.3rem;
font-weight:800;
line-height:1.1;
}

.hero-spe h2{
font-size:3rem;
font-weight:800;
line-height:1.1;
margin-top:300px;
}

.hero-spe .text-warning{
color:#fca311 !important;
}

.hero-box{
background:none;
padding:30px;
border-radius:0;
}

@keyframes subtleZoom {
    from {
        background-size: 100%;
        background-position: center 50%;
    }
    to {
        background-size: 108%;
        background-position: center 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-spe {
        animation: none;
    }
}

@media (max-width: 992px) {
    .hero-spe {
        min-height: 80vh;
        height: auto;
        padding: 100px 0 80px;
        background-attachment: scroll;
        animation-duration: 16s;
    }

    .hero-spe h1{
        font-size:2.2rem;
    }

    .hero-box{
        margin-top:40px;
    }
}
/* ================= SERVICIOS ================= */

/* Contenedor de la sección */
.bg-dark-spe {
    background-color: #0a0a0a; /* Un tono más profundo */
}

/* Ajustes de tamaño para el título principal de servicios */
#servicios h2 {
    font-size: 1.8rem; /* reducir globalmente para que quepa mejor */
    line-height: 1.2;
}
@media (min-width: 992px) {
    #servicios h2 {
        font-size: 2.2rem; /* un poco más grande en escritorio, pero aún controlado */
    }
}


/* Ajustes para títulos largos en escritorio */
@media (min-width: 992px) {
    .service-cube {
        max-width: 360px; /* permite que el cubo se expanda un poco */
        flex: 1 1 360px; /* en caso de estar en fila flex */
        transition: flex 0.3s ease, transform 0.3s ease;
    }
    .service-cube h4,
    .service-cube h5 {
        font-size: 1.1rem; /* tamaño más pequeño para que no corten */
        white-space: normal; /* habilita salto de línea */
        word-wrap: break-word;
    }

    /* contenedor padre debe ser flex para controlar flex children */
    .row.g-4.justify-content-center {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }

    /* comportamiento de crecimiento/contracción */
    .row.g-4.justify-content-center .service-cube:hover {
        flex: 2 1 420px; /* agranda el cubo con hover */
        transform: translateX(8px) scale(1.02);
        z-index: 5; /* por encima de sus hermanos */
    }
    .row.g-4.justify-content-center .service-cube:not(:hover) {
        flex: 0.8 1 280px; /* reducen un poco para dejar espacio */
        opacity: 0.9;
    }
}

/* El Cubo */
.service-cube {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 2px solid rgba(245, 180, 0, 0.3) !important; /* Brillo superior amarillo */
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px 20px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* Efecto de brillo interno al pasar el mouse */
.cube-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(245, 180, 0, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: 0.5s;
    z-index: -1;
    border-radius: 12px;
}

.service-cube:hover .cube-glow {
    opacity: 1;
}

.service-cube:hover {
    /* elevación vertical, ligero aumento de tamaño y desplazamiento horizontal
       para que el texto largo se vaya mostrando hacia la derecha */
    transform: translateY(-12px) translateX(8px) scale(1.04);
    border-color: rgba(245, 180, 0, 0.6) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 180, 0, 0.1);
    overflow: visible; /* permitir que el contenido se desborde si es necesario */
}

/* Interacción del texto dentro del cubo */
.service-cube {
    overflow: hidden;
}
.service-cube .service-desc,
.service-cube .extra-text {
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}
.service-cube .service-desc { transform: translateX(0); }
.service-cube .extra-text {
    opacity: 0;
    transform: translateX(-10px);
    position: relative;
    top: -5px;
}
.service-cube:hover .service-desc { transform: translateX(20px); }
.service-cube:hover .extra-text { opacity: 1; transform: translateX(0); }
@media (hover: none) {
    .service-cube .service-desc,
    .service-cube .extra-text {
        transform: none;
        opacity: 1;
    }
}

/* Ajuste de Iconos dentro del Cubo */
.service-cube .icon-box {
    background: rgba(245, 180, 0, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--amarillo);
    border: 1px solid rgba(245, 180, 0, 0.2);
    transition: 0.3s;
}

.service-cube:hover .icon-box {
    background: var(--amarillo);
    color: var(--negro);
    box-shadow: 0 0 20px var(--amarillo);
}

.service-cube h4 {
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
}

.service-cube h5 {
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
}

.service-cube p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.9rem;
}
.custom-icon {
    width: 55px; /* Tamaño ideal para el cubo */
    height: auto;
    filter: drop-shadow(0 0 8px rgba(245, 180, 0, 0.4));
    transition: transform 0.3s ease;
}

.service-cube:hover .custom-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(245, 180, 0, 0.7));
}
/* Esto asegura que el contenedor tenga tamaño aunque la imagen falle */
.swiper-fotos {
    width: 100%;
    height: 250px;
    background: #222; /* Fondo oscuro por si la imagen no carga */
    position: relative;
    border-radius: 8px 8px 0 0;
}

.img-proy {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Arreglo para las flechas que se ven mal a la izquierda */
.btn-foto-prev, .btn-foto-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 35px;
    height: 35px;
    background: rgba(245, 180, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: black !important;
}

.btn-foto-prev { left: 10px; }
.btn-foto-next { right: 10px; }

/* ================= proyectos ================= */
.proyectos-section {
background:#f8f9fa;
}

.proyectos-section img {
width:100%;
height:500px;
object-fit:cover;
}

/* Tarjetas de proyectos: galería limpia y consistente */
.proyectos-section {
    position: relative;
    overflow: hidden;
    background: #f4f7fa;
}

.projects-heading {
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.section-kicker,
.project-number {
    color: #c98200;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.projects-heading h2 {
    color: #122238;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.03em;
}

.projects-intro {
    color: #657387;
    margin-bottom: 0;
}

.proyectosSwiper {
    padding: 0 1rem;
}

.proyectosSwiper > .swiper-wrapper {
    display: flex;
    gap: 0;
    transform: none;
}

.proyectosSwiper > .swiper-wrapper > .swiper-slide {
    height: auto;
    padding: 0;
    width: auto;
    flex-shrink: 0;
}

.proyectosSwiper > .swiper-wrapper > .swiper-slide > h4 {
    position: absolute;
    z-index: 2;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 5.25rem;
    margin: 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    line-height: 1.25;
    text-align: left !important;
    text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

.proyectosSwiper > .swiper-wrapper > .swiper-slide > .proyectoFotos {
    position: relative;
    min-height: 450px;
    overflow: hidden;
    border-radius: 1rem;
    background: #142438;
    box-shadow: 0 18px 45px rgba(18,34,56,.14);
}

.proyectoFotos::after {
    content: '';
    position: absolute;
    inset: 38% 0 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(5,16,29,.82));
}

.proyectos-section .proyectoFotos img {
    height: 450px;
    display: block;
    border-radius: 0 !important;
    transition: transform .55s ease;
}

.proyectosSwiper > .swiper-wrapper > .swiper-slide:hover .proyectoFotos img {
    transform: scale(1.045);
}

.proyectos-section .proyectoFotos .swiper-button-next,
.proyectos-section .proyectoFotos .swiper-button-prev {
    z-index: 3;
    top: auto;
    bottom: 1.25rem;
    width: 2.2rem;
    height: 2.2rem;
    margin: 0;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    color: #fff;
    background: rgba(7,23,40,.35);
    backdrop-filter: blur(4px);
}

.proyectos-section .proyectoFotos .swiper-button-prev { left: auto; right: 4rem; }
.proyectos-section .proyectoFotos .swiper-button-next { right: 1.25rem; }
.proyectos-section .proyectoFotos .swiper-button-next::after,
.proyectos-section .proyectoFotos .swiper-button-prev::after { font-size: .75rem; font-weight: 700; }

.proyectos-section .proyectos-next,
.proyectos-section .proyectos-prev {
    top: auto !important;
    bottom: .35rem;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #f5b400, #d88700);
    border: 3px solid #fff;
    box-shadow: 0 9px 22px rgba(180,117,0,.3), 0 0 0 1px rgba(216,135,0,.18);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.proyectos-section .proyectos-next:hover,
.proyectos-section .proyectos-prev:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 13px 26px rgba(180,117,0,.38), 0 0 0 4px rgba(245,180,0,.14);
}

.proyectos-section .proyectos-next:active,
.proyectos-section .proyectos-prev:active {
    transform: translateY(0) scale(.98);
}

.proyectos-section .proyectos-prev { left: calc(50% - 3.5rem); }
.proyectos-section .proyectos-next { right: calc(50% - 3.5rem); }
.proyectos-section .proyectos-next::after,
.proyectos-section .proyectos-prev::after { font-size: .85rem; }

@media (min-width: 768px) {
    .proyectosSwiper { padding-inline: 2.5rem; }
}

@media (max-width: 575.98px) {
    .proyectos-section { padding-block: 3.5rem !important; }
    .proyectosSwiper { padding-inline: 0; }
    .proyectosSwiper > .swiper-wrapper > .swiper-slide > .proyectoFotos,
    .proyectos-section .proyectoFotos img { min-height: 390px; height: 390px; }
    .proyectosSwiper > .swiper-wrapper > .swiper-slide > h4 { bottom: 4.8rem; font-size: 1.05rem; }
}
/* ESTILO BASE PARA TODAS LAS FLECHAS */
.proyectos-section .swiper-button-next,
.proyectos-section .swiper-button-prev {
color:#ff9d00;
position: absolute;
transform: translateY(-50%);
z-index: 10;
}

/* FLECHAS DEL CARRUSEL PRINCIPAL DE PROYECTOS */
.swiper-button-next.proyectos-next,
.swiper-button-prev.proyectos-prev {
top: 8%; /* Ajusta este valor para subir o bajar las flechas */
}

.proyectos-section .swiper-button-next {
right: 15px;
}

.proyectos-section .swiper-button-prev {
left: 15px;
}

.proyectoFotos .swiper-button-next,
.proyectoFotos .swiper-button-prev {
color:#fdfcfa;
position: absolute;
top:100px;
transform: translateY(-50%);
z-index: 10;
}

.proyectoFotos .swiper-button-next {
right: 20px;
}

.proyectoFotos .swiper-button-prev {
left: 20px;
}


/* PARA EL OTRO CARRUSEL */
.proyectoFotos .swiper-button-prev {
  left: -20px;
}

.proyectoFotos .swiper-button-next {
  right: -20px;
}

/* CENTRADO PERFECTO */
.swiper-button-next.proyectos-next,
.swiper-button-prev.proyectos-prev {
  top: 8% !important;
  right: auto;
  left: auto;
}

.swiper-button-next.proyectos-next {
  right: 15px;
}

.swiper-button-prev.proyectos-prev {
  left: 15px;
}

/* POSICIONES PARA FOTOS */
.proyectoFotos .swiper-button-next,
.proyectoFotos .swiper-button-prev {
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
}

.proyectoFotos .swiper-button-next {
  right: 15px;
}

.proyectoFotos .swiper-button-prev {
  left: 15px;
}
/* ================= ESTADÍSTICAS ULTRA COMPACTAS Y LEGIBLES ================= */

.spe-stats-pro {
    padding: 40px 0; 
    /* Forzamos un negro profundo (95% de opacidad) para que las letras resalten */
    background: linear-gradient(rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.95)), 
                url('../img/alta-tension.png') center/center fixed;
    background-color: #000000; /* Color de respaldo si la imagen falla */
    background-size: cover;
    color: #ffffff !important; /* Forzamos blanco puro */
    border-top: 1px solid rgba(245, 180, 0, 0.3);
    border-bottom: 1px solid rgba(245, 180, 0, 0.3);
}

.stat-pro {
    position: relative;
    padding: 10px;
    z-index: 2; /* Asegura que el texto esté por encima de cualquier fondo */
}

/* El número ahora tiene un resplandor más fuerte para resaltar */
.stat-number,
.stat-static {
    font-size: 3rem; 
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: #f5b400; /* Tu amarillo de marca */
    display: inline-block;
    line-height: 1;
    text-shadow: 0 0 20px rgba(245, 180, 0, 0.6); /* Resplandor de seguridad */
}

.stat-symbol {
    font-size: 1.8rem;
    color: #f5b400;
    font-weight: 700;
    margin-left: 3px;
    vertical-align: top;
}

/* El texto de abajo ahora es blanco puro y más grueso para leerse mejor */
.spe-stats-pro p {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 700; /* Más grosor para contraste */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff !important; 
    text-shadow: 1px 1px 2px rgba(0,0,0,1); /* Sombra negra detrás de la letra blanca */
}

/* Línea eléctrica más brillante */
.electric-line {
    height: 3px;
    width: 45px;
    background: rgba(245, 180, 0, 0.4);
    margin: 0 auto 15px auto;
    position: relative;
    overflow: hidden;
}

.electric-line::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--amarillo), white, var(--amarillo), transparent);
    left: -100%;
    animation: flow 1.5s infinite linear;
}

/* Tamaño de números optimizado para que no ocupen tanto alto */
.stat-number,
.stat-static {
    font-size: 2.8rem; /* Reducido para compactar */
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--amarillo);
    display: inline-block;
    line-height: 1;
    text-shadow: 0 0 15px rgba(245, 180, 0, 0.4);
}

.stat-symbol {
    font-size: 1.5rem;
    display: inline-block;
    color: var(--amarillo);
    font-weight: 700;
    margin-left: 2px;
    animation: pulseEnergy 2s infinite ease-in-out;
}

/* Texto de descripción más pequeño */
.spe-stats-pro p {
    margin-top: 5px;
    font-size: 0.7rem; /* Tamaño tipo "label" técnico */
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0; /* Evita espacios extra abajo */
}

@keyframes flow {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulseEnergy {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}
/* Animación de pulso corregida para que no desplace el texto */
@keyframes pulseEnergy {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; text-shadow: 0 0 10px var(--amarillo); }
}

/* CHISPA ELÉCTRICA (Opcional: puedes añadir un div class="spark" dentro de stat-pro) */
.spark {
    position: absolute;
    top: 10%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
    animation: sparkFlash 4s infinite;
}

@keyframes sparkFlash {
    0%, 95% { opacity: 0; }
    97% { opacity: 1; transform: translate(-50%, -20px) scale(1.5); }
    100% { opacity: 0; }
}

/* Proyectos */
.swiper-maestro {
    width: 100%;
    padding: 20px 0 50px 0;
}

.card-proyecto {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    overflow: hidden;
    transition: 0.3s;
}

.card-proyecto:hover {
    transform: translateY(-5px);
}

.img-proy {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
/* Hover Effect */
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.1);
}

/* ================= CHISPA ELÉCTRICA ================= */

.spark {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-50%);
    animation: sparkFlash 3s infinite;
}

@keyframes sparkFlash {
    0% { opacity: 0; transform: translate(-50%, 0); }
    5% { opacity: 1; transform: translate(-50%, -15px); }
    10% { opacity: 0; }
    100% { opacity: 0; }
}


/* Estilo para la Política de Calidad */
.politica-caja {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 100%);
    padding: 50px;
    border-radius: 20px;
    border: 1px dashed rgba(245, 180, 0, 0.3);
    margin-bottom: 60px;
}

.italic-quote {
    font-style: italic;
    font-weight: 300;
    color: #d1d1d1 !important;
}

.divider-center {
    height: 3px;
    width: 100px;
    background: var(--amarillo);
    margin: 20px auto 0;
    box-shadow: 0 0 10px rgba(245, 180, 0, 0.5);
}

/* Espaciado de letras para títulos pequeños */
.spacing-2 {
    letter-spacing: 2px;
}

/* Mejora a las service-cards que ya teníamos */
.service-card-pro {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px); /* Efecto cristal sutil */
}


.footer-spe {
    background-color: #0b0b0b !important;
    font-size: 0.95rem;
}

.footer-link {
    color: #bdbdbd;
    text-decoration: none;
    transition: 0.3s;
    display: block;
    margin-bottom: 5px;
}

/* Mapa embebido en el footer */
.footer-map-wrapper {
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}
.footer-map {
    width: 100%;
    height: 200px;
    border: 0;
    display: block;
}
@media (max-width: 576px) {
    .footer-map { height: 160px; }
}

.footer-link:hover {
    color: var(--amarillo);
    padding-left: 5px;
}

.social-icon {
    font-size: 1.2rem;
    color: #fff;
    transition: 0.3s;
}

.social-icon:hover {
    color: var(--amarillo);
}

/* ================= REDISEÑO PREMIUM: SERVICIOS ================= */
#servicios {
    background: var(--negro);
    padding: 6.5rem 0 !important;
}

#servicios .container {
    max-width: 1180px;
}

.services-heading {
    max-width: 760px;
    margin: 0 auto 3.25rem;
}

.services-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--amarillo);
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.services-title {
    margin: 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3.15rem) !important;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.services-subtitle {
    max-width: 650px;
    margin: 1.25rem auto 0;
    color: #a0a0a0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.service-grid > [data-aos] {
    grid-column: span 2;
    width: auto;
    display: flex;
}

.service-grid > [data-aos]:nth-child(4) { grid-column: 2 / span 2; }
.service-grid > [data-aos]:nth-child(5) { grid-column: 4 / span 2; }

.service-card.service-cube {
    width: 100%;
    min-height: 315px;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(171, 191, 211, .2) !important;
    border-radius: 4px;
    background: var(--gris);
    box-shadow: 0 12px 30px rgba(3, 12, 22, .2);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.service-card.service-cube::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--amarillo);
    transition: height .25s ease;
}

.service-card .cube-glow { display: none; }

.service-card.service-cube:hover {
    transform: translateY(-6px);
    border-color: rgba(242, 169, 0, .58) !important;
    background: var(--gris);
    box-shadow: 0 18px 38px rgba(3, 12, 22, .32);
}

.service-card.service-cube:hover::before { height: 100%; }

.service-card .icon-box {
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 3.5rem;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(242, 169, 0, .45);
    border-radius: 3px;
    background: rgba(242, 169, 0, .08);
    color: var(--amarillo);
    transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

.service-card.service-cube:hover .icon-box {
    color: var(--negro);
    background: var(--amarillo);
    border-color: var(--amarillo);
    box-shadow: none;
}

.service-card .service-icon {
    width: 1.8rem;
    height: 1.8rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.service-card .icon-box > img { display: none; }
.service-card .icon-box::before {
    content: '';
    display: block;
    width: 1.8rem;
    height: 1.8rem;
    background: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}
.service-grid > [data-aos]:nth-child(2) .icon-box::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M3 21h18M5 21V9l7-5 7 5v12M8 21v-5h3v5m2 0v-5h3v5M8 10h.01M12 10h.01M16 10h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M3 21h18M5 21V9l7-5 7 5v12M8 21v-5h3v5m2 0v-5h3v5M8 10h.01M12 10h.01M16 10h.01'/%3E%3C/svg%3E");
}
.service-grid > [data-aos]:nth-child(3) .icon-box::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-width='1.5' d='M12 3v3m0 12v3M3 12h3m12 0h3M5.6 5.6l2.1 2.1m8.6 8.6 2.1 2.1m0-12.8-2.1 2.1m-8.6 8.6-2.1 2.1'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-width='1.5' d='M12 3v3m0 12v3M3 12h3m12 0h3M5.6 5.6l2.1 2.1m8.6 8.6 2.1 2.1m0-12.8-2.1 2.1m-8.6 8.6-2.1 2.1'/%3E%3C/svg%3E");
}
.service-grid > [data-aos]:nth-child(4) .icon-box::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m14.7 6.3 3-3 3 3-3 3M4 20l7.7-7.7m0-4.2a4.1 4.1 0 0 0 5.5 5.5L12 18.8a2.8 2.8 0 0 1-4-4l4.2-4.2a4.1 4.1 0 0 0 5.5 5.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m14.7 6.3 3-3 3 3-3 3M4 20l7.7-7.7m0-4.2a4.1 4.1 0 0 0 5.5 5.5L12 18.8a2.8 2.8 0 0 1-4-4l4.2-4.2a4.1 4.1 0 0 0 5.5 5.5'/%3E%3C/svg%3E");
}
.service-grid > [data-aos]:nth-child(5) .icon-box::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 4h16v16H4zM8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 4h16v16H4zM8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E");
}

.service-card h5 {
    min-height: 3.5rem;
    margin-bottom: .75rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.4;
}

.service-card .service-desc {
    margin: 0;
    color: #a0a0a0;
    font-family: 'Inter', sans-serif;
    font-size: .87rem;
    line-height: 1.65;
    transform: none !important;
}

.service-card::after {
    content: 'Conocer servicio  →';
    display: block;
    margin-top: auto;
    padding-top: 1.25rem;
    color: var(--amarillo);
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}

@media (max-width: 991.98px) {
    #servicios { padding: 5rem 0 !important; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-grid > [data-aos],
    .service-grid > [data-aos]:nth-child(4),
    .service-grid > [data-aos]:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 575.98px) {
    #servicios { padding: 4.25rem 0 !important; }
    .services-heading { margin-bottom: 2.25rem; }
    .services-subtitle { font-size: .9rem; }
    .service-grid { grid-template-columns: 1fr; gap: 1rem; }
    .service-grid > [data-aos],
    .service-grid > [data-aos]:nth-child(4),
    .service-grid > [data-aos]:nth-child(5) { grid-column: span 1; }
    .service-card.service-cube { min-height: 290px; }
}

.footer-spe hr {
    background-color: #fff;
}

/* Forzar que los párrafos con text-muted dentro del footer sean blancos */
.footer-spe p.text-muted {
    color: #ffffff !important;
}

/* Para dispositivos móviles */
@media (max-width: 768px) {
    .footer-spe {
        text-align: center;
    }
    .footer-link {
        justify-content: center;
    }
    .border-bottom {
        display: block !important;
        margin-left: auto;
        margin-right: auto;
        width: 150px;
    }
}

.swiper-clientes {
    width: 100%;
    padding: 30px 0;
}

.swiper-clientes .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Esto asegura que cada slide ocupe el mismo espacio */
    width: auto; 
}

.client-logo {
    /* Ajusta el alto para que todos los logos se vean parejos */
    height: 60px; 
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.hero-spe {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.spe-navbar {
    margin-bottom: 0 !important;
}

/* GalerÃ­a completa de proyectos */
.projects-view-all {
    display: inline-flex;
    align-items: center;
    margin-top: 1.25rem;
    padding: .35rem 0 .45rem;
    color: var(--amarillo);
    border-bottom: 1px solid rgba(245, 180, 0, .55);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    transition: color .25s ease, border-color .25s ease, gap .25s ease;
}

.projects-view-all i {
    transition: transform .25s ease;
}

.projects-view-all:hover,
.projects-view-all:focus-visible {
    color: #fff;
    border-color: #fff;
}

.projects-view-all:hover i,
.projects-view-all:focus-visible i {
    transform: translateX(4px);
}

.all-projects {
    margin-top: 4rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.all-projects-heading {
    max-width: 650px;
    margin: 0 auto 2rem;
    text-align: center;
}

.all-projects-heading h3 {
    margin: .35rem 0 .75rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.all-projects-heading p { margin: 0; color: #a0a0a0; }

.all-projects-grid {
    display: grid;
    gap: 1.5rem;
}

.all-project-card {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
}

.all-project-card h4 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.15rem;
}

.all-project-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.all-project-photo {
    position: relative;
    display: block;
    min-height: 170px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    background: #101820;
    cursor: zoom-in;
}

.all-project-photo img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    display: block;
    object-fit: cover;
    transition: transform .3s ease, filter .3s ease;
}

.all-project-photo::after {
    content: '\F52A';
    position: absolute;
    inset: auto .75rem .65rem auto;
    color: #fff;
    font-family: bootstrap-icons;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity .3s ease;
}

.all-project-photo:hover img,
.all-project-photo:focus-visible img { transform: scale(1.06); filter: brightness(.72); }
.all-project-photo:hover::after,
.all-project-photo:focus-visible::after { opacity: 1; }

.project-lightbox .modal-content { background: #101820; border: 1px solid rgba(245, 180, 0, .35); }
.project-lightbox .modal-header { border-bottom-color: rgba(255, 255, 255, .12); }
.project-lightbox .modal-title { color: #fff; font-size: 1.1rem; }
.project-lightbox .btn-close { filter: invert(1); }
.project-lightbox .modal-body { padding: .75rem; text-align: center; }
.project-lightbox-image { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 4px; }

@media (max-width: 767.98px) {
    .all-project-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
    .all-project-photo, .all-project-photo img { min-height: 125px; }
    .all-project-card { padding: 1rem; }
}

/* Página independiente de obras */
.obras-page { min-height: 100vh; background: #0b1118; color: #fff; }
.obras-navbar { position: relative; background: #080d12; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.obras-back { border-color: rgba(255, 255, 255, .35); font-size: .82rem; }
.obras-hero { padding: 6rem 0 4rem; background: linear-gradient(135deg, #101c28 0%, #0b1118 75%); }
.obras-hero h1 { margin: .65rem 0 .8rem; font-family: 'Montserrat', sans-serif; font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -.04em; }
.obras-hero p { max-width: 580px; margin: 0; color: #aab4bf; font-size: 1.05rem; line-height: 1.7; }
.obras-gallery { padding: 0 0 5rem; }
.obras-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.obra-card { overflow: hidden; border: 1px solid rgba(171, 191, 211, .2); border-radius: 8px; background: #111b25; }
.obra-card-header { display: flex; align-items: baseline; gap: .75rem; padding: 1.25rem 1.25rem 1rem; }
.obra-card-header span { color: var(--amarillo); font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
.obra-card-header h2 { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.obra-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: #080d12; }
.obra-photo { position: relative; min-width: 0; height: 170px; padding: 0; overflow: hidden; border: 0; background: #080d12; cursor: zoom-in; }
.obra-photo::after { content: '\F52A'; position: absolute; right: .65rem; bottom: .55rem; color: #fff; font-family: bootstrap-icons; opacity: 0; transition: opacity .25s ease; }
.obra-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.obra-photo:hover img, .obra-photo:focus-visible img { transform: scale(1.07); filter: brightness(.7); }
.obra-photo:hover::after, .obra-photo:focus-visible::after { opacity: 1; }
.obra-lightbox .modal-content { background: #101820; border: 1px solid rgba(245, 180, 0, .35); }
.obra-lightbox .modal-header { border-bottom-color: rgba(255, 255, 255, .12); }
.obra-lightbox .modal-title { color: #fff; font-size: 1.1rem; }
.obra-lightbox .btn-close { filter: invert(1); }
.obra-lightbox .modal-body { padding: .75rem; text-align: center; }
.obra-lightbox-image { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.obra-lightbox.is-open { display: block; background: rgba(0, 0, 0, .86); }
.obra-lightbox.is-open .modal-dialog { min-height: calc(100% - 1rem); display: flex; align-items: center; }
@media (max-width: 767.98px) {
    .obras-hero { padding: 4.5rem 0 3rem; }
    .obras-grid { grid-template-columns: 1fr; }
    .obra-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .obra-photo { height: auto; aspect-ratio: 4 / 3; }
    .obras-back { padding: .45rem .65rem; font-size: .72rem; }
    .obras-navbar .navbar-brand span { display: none; }
}

/* Ajustes finales para pantallas pequeñas */
@media (max-width: 575.98px) {
    html, body { overflow-x: hidden; }
    .spe-navbar .container,
    .obras-navbar .container { padding-inline: 1rem; }
    .spe-navbar .navbar-brand img,
    .obras-navbar .navbar-brand img { height: 36px; }
    .spe-navbar .navbar-brand span { font-size: .78rem; }
    .hero-spe { min-height: auto; padding: 7rem 1rem 3.5rem !important; }
    .hero-spe h2 { font-size: clamp(1.9rem, 9vw, 2.45rem); line-height: 1.1; }
    .hero-spe .btn { width: 100%; max-width: 280px; }
    .hero-box { margin-top: 1.5rem; padding: 1.1rem; }
    .proyectos-section .container { padding-inline: 1rem; }
    .projects-heading { margin-bottom: 1.75rem; }
    .projects-heading h2 { font-size: 1.9rem; line-height: 1.15; }
    .projects-intro { font-size: .92rem; line-height: 1.55; }
    .proyectosSwiper > .swiper-wrapper > .swiper-slide > .proyectoFotos,
    .proyectos-section .proyectoFotos img { min-height: 330px; height: 330px; }
    .proyectosSwiper > .swiper-wrapper > .swiper-slide > h4 { left: 1rem; right: 1rem; bottom: 4.5rem; font-size: 1rem; }
    .obras-hero h1 { font-size: 2.15rem; line-height: 1.08; }
    .obras-hero p { font-size: .95rem; line-height: 1.55; }
    .obras-gallery { padding-bottom: 3rem; }
    .obra-card-header { padding: 1rem; }
    .obra-card-header h2 { font-size: 1rem; }
    .obra-lightbox .modal-dialog { margin: .5rem; }
    .obra-lightbox .modal-header { padding: .8rem 1rem; }
    .obra-lightbox .modal-title { font-size: .95rem; }
}

/* Compactar únicamente la portada en celular; escritorio no cambia */
@media (max-width: 575.98px) {
    #servicios { padding: 3rem 0 !important; }
    .services-heading { margin-bottom: 1.5rem; }
    .services-eyebrow { margin-bottom: .65rem; }
    .services-title { font-size: 1.75rem !important; }
    .services-subtitle { margin-top: .8rem; font-size: .84rem; line-height: 1.5; }
    .service-grid { gap: .7rem; }
    .service-card.service-cube { min-height: 0; padding: 1.15rem 1.1rem 1rem; }
    .service-card .icon-box { width: 2.8rem; height: 2.8rem; flex-basis: 2.8rem; margin-bottom: 1rem; }
    .service-card h5 { min-height: 0; margin-bottom: .45rem; font-size: .94rem; line-height: 1.25; }
    .service-card .service-desc { font-size: .78rem; line-height: 1.45; }
    .service-card::after { padding-top: .7rem; font-size: .7rem; }
    .proyectos-section { padding-block: 2.5rem !important; }
    .projects-heading { margin-bottom: 1.25rem; }
    .projects-heading h2 { font-size: 1.65rem; }
    .projects-intro { font-size: .82rem; }
    .projects-view-all { margin-top: .8rem; font-size: .8rem; }
    .proyectosSwiper > .swiper-wrapper > .swiper-slide > .proyectoFotos,
    .proyectos-section .proyectoFotos img { min-height: 270px; height: 270px; }
    .proyectosSwiper > .swiper-wrapper > .swiper-slide > h4 { bottom: 3.8rem; font-size: .92rem; }
    .clientes-slider { padding-block: 2.5rem !important; }
    .client-logo { height: 42px; }
    .spe-stats-pro { padding: 2.25rem 0; }
    .stat-number, .stat-static { font-size: 2rem; }
    .stat-symbol { font-size: 1.1rem; }
    .spe-stats-pro p { margin-top: .35rem; font-size: .58rem; letter-spacing: .6px; }
    .footer-spe { padding-top: 2.5rem !important; }
}

/* Refinamiento móvil: inicio, servicios y títulos de obras */
@media (max-width: 575.98px) {
    .hero-spe {
        min-height: 0 !important;
        padding: 5rem 1rem 2rem !important;
        text-align: center;
    }
    .hero-spe h2 { margin-bottom: 1rem !important; font-size: 1.6rem; }
    .hero-spe .d-flex {
        flex-wrap: nowrap !important;
        gap: .5rem !important;
        margin-bottom: 1.5rem !important;
    }
    .hero-spe .d-flex .btn {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
        padding: .6rem .35rem;
        font-size: .7rem;
        line-height: 1.2;
    }
    .hero-box { display: none; }

    #servicios { padding: 2rem 0 !important; }
    .services-heading { margin-bottom: 1.25rem; }
    .services-title { font-size: 1.55rem !important; }
    .services-subtitle { max-width: 310px; margin-top: .55rem; font-size: .76rem; line-height: 1.4; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .service-grid > [data-aos],
    .service-grid > [data-aos]:nth-child(4),
    .service-grid > [data-aos]:nth-child(5) { grid-column: span 1; }
    .service-grid > [data-aos]:last-child { grid-column: 1 / -1; width: calc(50% - .25rem); justify-self: center; }
    .service-card.service-cube {
        min-height: 125px;
        justify-content: flex-start;
        padding: .7rem .55rem .55rem;
        text-align: center;
    }
    .service-card .icon-box {
        width: 2rem;
        height: 2rem;
        flex-basis: 2rem;
        margin: 0 auto .5rem;
    }
    .service-card .icon-box::before,
    .service-card .service-icon { width: 1.25rem; height: 1.25rem; }
    .service-card h5 { margin-bottom: 0; font-size: .7rem; line-height: 1.18; }
    .service-card p { display: none; }
    .service-card::after { display: none; }

    .proyectos-section { padding-block: 2rem !important; }
    .projects-heading h2 { font-size: 1.5rem; }
    .proyectosSwiper > .swiper-wrapper > .swiper-slide > h4 {
        left: 1rem;
        right: 4.25rem;
        bottom: 1rem;
        font-size: .88rem;
        line-height: 1.2;
    }
    .proyectoFotos::after { inset: 45% 0 0; background: linear-gradient(transparent, rgba(5,16,29,.9)); }
    .proyectos-section .proyectoFotos .swiper-button-next,
    .proyectos-section .proyectoFotos .swiper-button-prev {
        bottom: .7rem;
        width: 1.85rem;
        height: 1.85rem;
    }
}

/* Rediseño de la galería de obras */
.obras-gallery > .container { max-width: 1040px; }
.obras-grid { grid-template-columns: 1fr; gap: 1.75rem; }
.obra-card {
    border-color: rgba(171, 191, 211, .16);
    border-radius: 12px;
    background: linear-gradient(145deg, #142231 0%, #0f1923 100%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
}
.obra-card-header { padding: 1.35rem 1.5rem 1.1rem; }
.obra-card-header span { min-width: 2rem; }
.obra-card-header h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.obra-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #080d12; }
.obra-photo { height: 178px; background: #0b141d; }
.obra-photo:first-child { grid-column: span 2; grid-row: span 2; height: 360px; }
.obra-photo img { object-position: center; }
.obra-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 65%, rgba(4, 10, 17, .32));
    pointer-events: none;
}
.obra-photo::after { z-index: 2; }

@media (max-width: 767.98px) {
    .obras-grid { gap: 1rem; }
    .obra-card-header { padding: 1rem 1.05rem .85rem; }
    .obra-card-header h2 { font-size: 1rem; }
    .obra-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 3px; }
    .obra-photo:first-child { grid-column: 1 / -1; grid-row: auto; height: 220px; }
    .obra-photo:not(:first-child) { height: 105px; }
}
