
/* =========================================================
   SÓLIDA ESTRUCTURAS - LIGHT.CSS COMPLETO ACTUALIZADO
   ========================================================= */

:root {
    --azul: #123f80;
    --azul-oscuro: #061f45;
    --azul-profundo: #04142e;
    --verde: #087a3d;
    --verde-claro: #12a85b;
    --gris-fondo: #f5f6f8;
    --gris-suave: #eef2f7;
    --gris-section: #f1f1f1;
    --texto: #0f172a;
    --texto-suave: #64748b;
    --blanco: #ffffff;
    --borde: rgba(15, 23, 42, 0.12);
    --sombra: 0 18px 45px rgba(15, 23, 42, 0.12);
    --sombra-fuerte: 0 28px 70px rgba(15, 23, 42, 0.20);
}

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background: #ffffff;
    color: var(--texto);
    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

/* =========================
   FONDO
========================= */

.site-bg,
.light-grid-layer,
.light-blur {
    display: none !important;
}

/* =========================
   HEADER
========================= */

.main-header {
    background: #ffffff;
    padding: 16px 0;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.08);
    transition: 0.3s ease;
}

.main-header.scrolled {
    padding: 9px 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: 1420px;
    margin: auto;
    padding: 0 42px;
}

/* LOGO MÁS CERCA AL CENTRO */
.navbar-brand,
.only-logo-brand {
    margin-left: 140px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo,
.brand-logo-large {
    width: 132px;
    height: 98px;
    object-fit: contain;
}

/* OCULTA TEXTO DEL HEADER */
.brand-title,
.brand-subtitle {
    display: none !important;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    border: none;
    background: transparent;
    color: var(--azul-oscuro);
    font-size: 0.95rem;
    font-weight: 900;
    padding: 12px 8px;
    position: relative;
    transition: 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -18px;
    width: 0;
    height: 5px;
    background: var(--verde);
    transition: 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--verde);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* =========================
   DROPDOWN SERVICIOS
========================= */

.nav-services-wrap {
    position: relative;
}

.services-dropdown {
    position: absolute;
    top: calc(100% + 22px);
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    width: 720px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 4px solid #ffffff;
    box-shadow: 0 25px 65px rgba(7, 39, 90, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 999;
}

.nav-services-wrap:hover .services-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.services-dropdown-item {
    min-height: 122px;
    border: 0;
    color: #ffffff;
    font-weight: 900;
    font-size: 1rem;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.services-dropdown-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 39, 90, 0.82);
    transition: 0.3s ease;
}

.services-dropdown-item:nth-child(2)::before {
    background: rgba(8, 122, 61, 0.82);
}

.services-dropdown-item:nth-child(3)::before {
    background: linear-gradient(135deg, rgba(7, 39, 90, 0.82), rgba(8, 122, 61, 0.80));
}

.services-dropdown-item:hover {
    transform: translateY(-6px);
}

.services-dropdown-item:hover::before {
    opacity: 0.62;
}

.services-dropdown-icon,
.services-dropdown-item span {
    position: relative;
    z-index: 2;
}

.services-dropdown-icon {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.15);
}

.services-dropdown-icon i {
    font-size: 1.4rem;
}

/* =========================
   BOTÓN MOBILE
========================= */

.navbar-toggler {
    border: 0;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: none;
    width: 34px;
    height: 24px;
    border-top: 3px solid var(--azul);
    border-bottom: 3px solid var(--azul);
    position: relative;
}

.navbar-toggler-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 34px;
    border-top: 3px solid var(--azul);
}

/* =========================
   PÁGINAS
========================= */

.page {
    display: none;
}

.page.active {
    display: block;
}

.inner-page {
    min-height: 100vh;
    padding: 150px 0 90px;
}

/* =========================================================
   HERO PRINCIPAL MÁS PEQUEÑO
========================================================= */

.hero-carousel-section {
    margin-top: 126px;
    background: #ffffff;
}

.hero-carousel {
    width: 100%;
    height: 500px;
    min-height: 500px;
    max-height: 500px;
    overflow: hidden;
    background: #000000;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.hero-banner-img,
.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    background: #000000;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.14)),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
}

.hero-caption-wrap {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-ribbon {
    background: var(--azul);
    color: #ffffff;
    padding: 18px 38px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    max-width: calc(100% - 80px);
}

.hero-ribbon-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-ribbon h1,
.hero-one-line-text {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 4.4rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
    text-align: center;
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.24);
}

/* EFECTO ESCRITURA MÁS RÁPIDO */
.typewriter-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 4px solid #ffffff;
    width: 0;
}

.carousel-item.active .typewriter-text {
    animation:
        typing 1.45s steps(38, end) forwards,
        cursorBlink 0.7s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes cursorBlink {
    50% {
        border-color: transparent;
    }
}

.hero-control {
    width: 7%;
}

.hero-control .carousel-control-prev-icon,
.hero-control .carousel-control-next-icon {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.30));
}

.hero-indicators {
    margin-bottom: 24px;
}

.hero-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: rgba(255, 255, 255, 0.50);
    opacity: 1;
}

.hero-indicators .active {
    background: #ffffff;
    transform: scale(1.25);
}

/* =========================
   SECCIONES GENERALES
========================= */

.section-spacing {
    padding: 90px 0;
}

.section-block {
    padding: 40px 0;
}

.section-heading {
    max-width: 1100px;
    margin: auto;
}

.section-tag {
    display: inline-block;
    color: var(--verde);
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 12px;
}

.section-title,
.page-title {
    color: var(--azul);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 1.12;
}

.page-title {
    font-size: clamp(2.3rem, 4vw, 4.2rem);
}

.section-text,
.page-subtitle {
    color: var(--texto-suave);
    line-height: 1.85;
    font-weight: 500;
    font-size: 1.02rem;
    max-width: 780px;
}

.text-light-title {
    color: var(--azul);
}

.text-light-soft {
    color: var(--texto-suave);
}

/* CONTACTO MÁS GRANDE Y EN UNA SOLA LÍNEA */
.contact-form-map-section .section-heading {
    max-width: 1300px;
}

.contact-form-map-section .section-tag {
    font-size: 1.05rem;
    letter-spacing: 2px;
}

.contact-form-map-section .section-title {
    font-size: clamp(2rem, 3.6vw, 4rem) !important;
    line-height: 1.08 !important;
    white-space: nowrap;
    text-align: center;
}

/* BORRA DECORACIONES */
.about-preview::before,
.about-preview::after,
.section-block::before,
.section-block::after,
.big-letter,
.letter-bg,
.dotted-letter,
.s-letter,
.decor-letter,
.decorative-letter {
    display: none !important;
    content: none !important;
}

/* =========================
   TARJETAS GENERALES
========================= */

.glass-card,
.glass-panel,
.glass-image,
.glass-pill {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.80);
    box-shadow: var(--sombra);
}

.glass-panel {
    padding: 34px;
}

.mini-pill,
.glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--azul);
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.mini-pill i,
.glass-pill i {
    color: var(--verde);
}

/* =========================
   ESTADÍSTICAS
========================= */

.stats-section {
    position: relative;
    z-index: 20;
    margin-top: -32px;
    padding-bottom: 34px;
}

.stat-card {
    padding: 24px 20px;
    text-align: center;
    border-radius: 18px;
    transition: 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-fuerte);
}

.stat-card .number,
.stat-card .plus {
    color: var(--verde);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
}

.stat-card p {
    color: var(--azul);
    font-weight: 900;
    margin: 8px 0 0;
}

/* =========================
   SERVICIOS PRINCIPALES INICIO
========================= */

.service-main-card {
    width: 100%;
    border: 0;
    background: #ffffff;
    display: block;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: 0.35s ease;
    cursor: pointer;
}

.service-main-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-fuerte);
}

.service-main-img {
    width: 100%;
    height: 315px;
    overflow: hidden;
}

.service-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s ease;
}

.service-main-card:hover .service-main-img img {
    transform: scale(1.08);
}

.service-main-body {
    min-height: 76px;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    background: var(--azul);
}

.service-main-body.green {
    background: var(--verde);
}

.service-main-body h3 {
    font-size: 1.18rem;
    font-weight: 900;
    margin: 0;
    color: #ffffff;
}

/* =========================
   NOSOTROS RESUMEN
========================= */

.image-card,
.clean-image-card {
    overflow: hidden;
    border-radius: 0;
    box-shadow: var(--sombra);
}

.image-card img,
.clean-image-card img {
    width: 100%;
    min-height: 430px;
    object-fit: cover;
    transition: 0.8s ease;
}

.image-card:hover img,
.clean-image-card:hover img {
    transform: scale(1.06);
}

/* =========================================================
   PÁGINA INTERNA DE SERVICIO
========================================================= */

.service-detail-page {
    padding: 0;
    background: #ffffff;
}

.service-detail-panel {
    display: none;
}

.service-detail-panel.active {
    display: block;
}

/* BANNER DE SERVICIOS MÁS COMPACTO */
.service-hero-detail {
    position: relative;
    min-height: 210px;
    padding: 66px 0 58px;
    margin-top: 126px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
}

.service-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 31, 69, 0.88);
    z-index: 1;
}

.service-hero-detail .container {
    position: relative;
    z-index: 2;
}

.service-hero-detail h1 {
    color: #ffffff;
    font-size: clamp(2.4rem, 3.8vw, 4.7rem);
    font-weight: 900;
    margin-bottom: 12px;
    white-space: nowrap;
}

.service-hero-detail span {
    color: #ffffff;
    font-size: clamp(1rem, 1.4vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* INFORMACIÓN PRINCIPAL */
.service-info-section {
    padding: 80px 0;
    background: #ffffff;
}

.service-info-img {
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.service-info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-info-text {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 28px;
}

.service-line,
.section-line {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, var(--verde) 0 34%, rgba(8, 122, 61, 0.25) 34% 100%);
    margin: 24px 0 30px;
}

.section-line.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.btn-service-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--verde);
    color: var(--verde);
    background: #ffffff;
    padding: 13px 24px;
    font-weight: 700;
    transition: 0.3s ease;
}

.btn-service-quote:hover {
    background: var(--verde);
    color: #ffffff;
}

/* PROCESO */
.service-process-section {
    padding: 75px 0;
    background: #ffffff;
}

.service-section-title {
    color: var(--azul);
    font-weight: 900;
    font-size: clamp(2.1rem, 3.8vw, 4rem);
    line-height: 1.1;
    margin: 0;
}

.process-step-card {
    background: #ffffff;
    border: 1px solid #d7dce3;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    height: 100%;
}

.process-step-head {
    color: var(--azul);
    font-weight: 900;
    padding: 16px 14px;
    border-bottom: 1px solid #d7dce3;
    background: linear-gradient(#ffffff, #f8f8f8);
    text-align: center;
}

.process-step-card img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    display: block;
}

/* APLICACIONES */
.service-applications-section {
    padding: 90px 0;
    background: var(--gris-section);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 20px 42px;
    margin-top: 34px;
}

.applications-grid span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #444;
    font-size: 1.05rem;
    font-weight: 500;
}

.applications-grid i {
    color: var(--verde);
    font-size: 1.1rem;
}

.application-img {
    width: 100%;
    height: 340px;
    overflow: hidden;
}

.application-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PROYECTOS DEL SERVICIO */
.service-projects-section {
    padding: 90px 0;
    background: #ffffff;
}

.service-project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.service-project-grid img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    transition: 0.4s ease;
}

.service-project-grid img:hover {
    transform: scale(1.04);
    box-shadow: var(--sombra);
}

/* =========================
   OTROS SERVICIOS SOLO GALERÍA
========================= */

.other-category-buttons {
    margin: 30px auto 34px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.other-category-btn {
    border: 0;
    background: #ffffff;
    color: var(--azul);
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: 0.3s ease;
}

.other-category-btn:hover,
.other-category-btn.active {
    background: var(--verde);
    color: #ffffff;
    transform: translateY(-4px);
}

.other-panel {
    display: none;
}

.other-panel.active {
    display: block;
}

.other-panel h4 {
    color: var(--azul);
    font-weight: 900;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 22px;
}

.other-services-gallery {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* IMÁGENES COMPLETAS EN OTROS */
.other-service-card {
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    overflow: hidden;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.other-service-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #ffffff;
    transition: 0.45s ease;
}

.other-service-card:hover img {
    transform: scale(1.03);
}

/* =========================
   FORMULARIO + MAPA
========================= */

.contact-form-map-section {
    background: #ffffff;
}

.contact-form-box {
    background: #ffffff;
    padding: 10px 0;
}

.contact-info-mini {
    margin-bottom: 18px;
}

.contact-info-mini p {
    margin-bottom: 8px;
    color: var(--texto-suave);
    font-size: 0.9rem;
}

.contact-info-mini strong {
    color: var(--verde);
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border: 1px solid #9ca3af;
    background: #ffffff;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: var(--texto);
    outline: none;
    transition: 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(18, 58, 120, 0.10);
}

.contact-submit-btn {
    border: 0;
    width: 100%;
    background: var(--azul);
    color: #ffffff;
    padding: 13px;
    font-weight: 900;
    transition: 0.3s ease;
}

.contact-submit-btn:hover {
    background: var(--verde);
}

.contact-form small {
    color: var(--texto-suave);
}

.map-box {
    width: 100%;
    height: 560px;
    overflow: hidden;
    background: #eeeeee;
    box-shadow: var(--sombra);
}

.map-box iframe {
    width: 100%;
    height: 100%;
}

/* =========================
   NOSOTROS
========================= */

.about-card {
    background: #ffffff;
    padding: 36px;
    box-shadow: var(--sombra);
}

.about-card h3,
.about-heading {
    color: var(--azul);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 18px;
}

.about-card p {
    color: var(--texto-suave);
    line-height: 1.85;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.about-stats-grid div {
    background: #f7f9fc;
    padding: 20px;
    text-align: center;
}

.about-stats-grid strong {
    display: block;
    color: var(--verde);
    font-size: 2rem;
    font-weight: 900;
}

.about-stats-grid span {
    color: var(--azul);
    font-weight: 800;
}

/* =========================
   OPINIONES MEJORADAS
========================= */

.rating-box {
    padding: 30px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.rating-head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.rating-head h3 {
    color: var(--azul);
    font-weight: 900;
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.rating-text {
    margin: 0;
    color: var(--texto-suave);
    font-weight: 800;
    font-size: 0.98rem;
    white-space: nowrap;
}

.rating-score {
    color: var(--verde);
    font-weight: 900;
}

.btn-open-review {
    border: 0;
    background: var(--azul);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.3s ease;
    white-space: nowrap;
}

.btn-open-review:hover {
    background: var(--verde);
    transform: translateY(-3px);
}

.rating-form {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.rating-form input,
.rating-form textarea,
.rating-form select {
    width: 100%;
    border: 1px solid #9ca3af;
    background: #ffffff;
    padding: 12px 14px;
    outline: none;
}

.rating-form button {
    border: 0;
    background: var(--azul);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.3s ease;
}

.rating-form button:hover {
    background: var(--verde);
}

/* 3 GRUPOS */
.reviews-list,
.reviews-list-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.review-card,
.review-card-small {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 18px;
    border-radius: 18px;
    min-height: 170px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover,
.review-card-small:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
    border-color: rgba(8, 122, 61, 0.35);
}

.review-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.review-header strong {
    color: var(--azul);
    font-size: 0.95rem;
    font-weight: 900;
}

.review-header span {
    display: block;
    color: var(--texto-suave);
    font-size: 0.78rem;
    margin-top: 3px;
}

.review-stars {
    color: #f59e0b;
    font-size: 0.95rem;
    white-space: nowrap;
}

.review-card p,
.review-card-small p {
    color: var(--texto-suave);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

.review-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.review-clamp.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.review-read-more-btn {
    border: none;
    background: transparent;
    color: var(--verde);
    font-weight: 900;
    padding: 0;
    font-size: 0.86rem;
    width: fit-content;
    margin-top: 6px;
}

.review-read-more-btn:hover {
    color: var(--azul);
    text-decoration: underline;
}

.reviews-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--texto-suave);
    font-weight: 700;
}

/* =========================
   MODAL GALERÍA
========================= */

.gallery-modal-content {
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
}

.modal-title {
    color: var(--azul);
    font-weight: 900;
}

.gallery-main-img {
    width: 100%;
    max-height: 720px;
    object-fit: contain;
    background: #f1f5f9;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: var(--azul-oscuro);
    color: #ffffff;
    padding: 70px 0 28px;
}

.footer-brand {
    display: flex;
    gap: 16px;
}

.footer-brand img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: #ffffff;
    padding: 6px;
}

.footer-brand h3,
.footer-title {
    font-weight: 900;
    margin-bottom: 12px;
}

.footer-brand p,
.footer-links li,
.footer-contact li,
.footer-bottom {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 9px;
}

.footer-contact i {
    color: var(--verde-claro);
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 45px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
}

/* =========================
   ANIMACIONES
========================= */

.reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.side-from-left {
    opacity: 0;
    transform: translateX(-90px);
}

.side-from-right {
    opacity: 0;
    transform: translateX(90px);
}

.fall-down {
    opacity: 0;
    transform: translateY(-90px);
}

.reveal.show.side-from-left,
.side-from-left.side-animate,
.service-detail-panel.active .side-from-left,
.other-panel.active .side-from-left {
    opacity: 1;
    animation: sideFromLeft 0.85s ease both;
}

.reveal.show.side-from-right,
.side-from-right.side-animate,
.service-detail-panel.active .side-from-right,
.other-panel.active .side-from-right {
    opacity: 1;
    animation: sideFromRight 0.85s ease both;
}

.reveal.show.fall-down,
.fall-down.side-animate,
.service-detail-panel.active .fall-down {
    opacity: 1;
    animation: fallDown 0.85s ease both;
}

.side-animate {
    animation: sideFromLeft 0.85s ease both;
}

.side-animate-right {
    animation: sideFromRight 0.85s ease both;
}

.fall-animate {
    animation: fallDown 0.85s ease both;
}

.service-info-img,
.process-step-card,
.application-img,
.service-project-grid img,
.other-service-card,
.review-card {
    will-change: transform, opacity;
}

.service-project-grid img,
.other-service-card,
.process-step-card,
.service-main-card {
    cursor: pointer;
}

.delay-1 {
    transition-delay: 0.14s;
    animation-delay: 0.14s;
}

.delay-2 {
    transition-delay: 0.28s;
    animation-delay: 0.28s;
}

.delay-3 {
    transition-delay: 0.42s;
    animation-delay: 0.42s;
}

@keyframes sideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-90px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes sideFromRight {
    from {
        opacity: 0;
        transform: translateX(90px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fallDown {
    from {
        opacity: 0;
        transform: translateY(-90px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199px) {
    .navbar-brand,
    .only-logo-brand {
        margin-left: 70px;
    }

    .brand-logo,
    .brand-logo-large {
        width: 110px;
        height: 82px;
    }

    .service-project-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-list,
    .reviews-list-compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .rating-head {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .contact-form-map-section .section-title {
        font-size: clamp(2.6rem, 5vw, 4.6rem);
    }
}

@media (max-width: 991px) {
    .main-header {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 18px;
    }

    .navbar-brand,
    .only-logo-brand {
        margin-left: 20px;
    }

    .brand-logo,
    .brand-logo-large {
        width: 86px;
        height: 68px;
    }

    .navbar-collapse {
        margin-top: 14px;
        padding: 18px;
        background: #ffffff;
        box-shadow: var(--sombra);
    }

    .nav-link::after {
        display: none;
    }

    .services-dropdown {
        position: static;
        width: 100%;
        transform: none;
        grid-template-columns: 1fr;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        margin-top: 12px;
        border: 3px solid #ffffff;
    }

    .nav-services-wrap:hover .services-dropdown {
        display: grid;
        transform: none;
    }

    .hero-carousel-section {
        margin-top: 92px;
    }

    .hero-carousel {
        height: 440px;
        min-height: 440px;
        max-height: 440px;
    }

    .hero-ribbon {
        max-width: calc(100% - 36px);
        padding: 16px 24px;
    }

    .hero-ribbon h1,
    .hero-one-line-text {
        font-size: 2.25rem;
    }

    .service-hero-detail {
        margin-top: 92px;
    }

    .service-hero-detail h1,
    .service-hero-detail span {
        white-space: normal;
    }

    .map-box {
        height: 420px;
    }

    .other-services-gallery,
    .service-project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-map-section .section-title {
        white-space: normal;
    }

    .whatsapp-float {
        width: 330px;
        height: 220px;
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 767px) {
    .brand-logo,
    .brand-logo-large {
        width: 74px;
        height: 58px;
    }

    .hero-carousel {
        height: 390px;
        min-height: 390px;
        max-height: 390px;
    }

    .hero-ribbon {
        padding: 14px 18px;
        max-width: calc(100% - 28px);
    }

    .hero-ribbon h1,
    .hero-one-line-text {
        font-size: 1.55rem;
        white-space: normal;
        line-height: 1.12;
    }

    .typewriter-text {
        white-space: normal;
        width: auto;
        animation: none !important;
        border-right: none;
    }

    .service-main-img {
        height: 250px;
    }

    .section-spacing {
        padding: 65px 0;
    }

    .section-title,
    .page-title,
    .service-section-title {
        font-size: 2rem;
    }

    .contact-form-map-section .section-title {
        font-size: 2.6rem;
        white-space: normal;
    }

    .service-info-section,
    .service-process-section,
    .service-applications-section,
    .service-projects-section {
        padding: 60px 0;
    }

    .service-info-img,
    .application-img {
        height: 270px;
    }

    .process-step-card img {
        height: 220px;
    }

    .other-services-gallery,
    .service-project-grid,
    .reviews-list,
    .reviews-list-compact {
        grid-template-columns: 1fr;
    }

    .other-service-card {
        min-height: 260px;
    }

    .other-service-card img {
        height: 240px;
    }

    .service-project-grid img {
        height: 230px;
    }

    .rating-box {
        padding: 22px;
    }

    .review-card,
    .review-card-small {
        min-height: auto;
    }

    .footer-bottom {
        display: block;
    }

    .whatsapp-float {
        width: 300px;
        height: 210px;
    }

    .whatsapp-float i {
        width: 145px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .hero-ribbon h1,
    .hero-one-line-text {
        font-size: 1.35rem;
    }

    .about-card,
    .glass-panel {
        padding: 24px;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card .number,
    .stat-card .plus {
        font-size: 2rem;
    }

    .whatsapp-float {
        width: calc(100% - 28px);
        right: 14px;
        bottom: 14px;
    }
}
/* =========================================================
   WHATSAPP FINAL BONITO - PC Y CELULAR
   ÍCONO CON ONDAS + CHAT AL PASAR O TOCAR
========================================================= */

.whatsapp-float {
    position: fixed !important;
    right: 28px !important;
    bottom: 28px !important;
    z-index: 99999 !important;

    width: 66px !important;
    height: 66px !important;
    border-radius: 50% !important;

    background: #25d366 !important;
    color: #ffffff !important;
    display: block !important;
    text-decoration: none !important;

    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.42) !important;
    overflow: visible !important;
    transition: all 0.38s ease !important;
}

/* ONDAS DEL ÍCONO */
.whatsapp-float:not(:hover):not(:focus):not(:active)::before,
.whatsapp-float:not(:hover):not(:focus):not(:active)::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 50% !important;
    background: rgba(37, 211, 102, 0.35) !important;
    z-index: -1 !important;
    animation: whatsappWave 1.8s infinite ease-out !important;
}

.whatsapp-float:not(:hover):not(:focus):not(:active)::after {
    animation-delay: 0.9s !important;
}

@keyframes whatsappWave {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }

    70% {
        transform: scale(1.75);
        opacity: 0;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

/* ÍCONO NORMAL */
.whatsapp-float i {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;

    width: 66px !important;
    height: 66px !important;
    border-radius: 50% !important;

    display: grid !important;
    place-items: center !important;

    background: #25d366 !important;
    color: #ffffff !important;
    font-size: 2rem !important;

    transition: all 0.35s ease !important;
}

/* CHAT ABIERTO */
.whatsapp-float:hover,
.whatsapp-float:focus,
.whatsapp-float:active {
    width: 370px !important;
    height: 245px !important;

    right: 28px !important;
    bottom: 28px !important;

    border-radius: 34px !important;
    background: #f2fff8 !important;
    color: transparent !important;

    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.25) !important;
    transform: translateY(-6px) !important;
    overflow: hidden !important;
}

/* CABECERA VERDE */
.whatsapp-float:hover::before,
.whatsapp-float:focus::before,
.whatsapp-float:active::before {
    content: "Powered by Join.chat" !important;

    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    height: 64px !important;

    border-radius: 34px 34px 0 0 !important;
    background: #25d366 !important;
    color: #ffffff !important;

    display: flex !important;
    align-items: center !important;

    padding-left: 22px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;

    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    z-index: 1 !important;
}

/* BURBUJA BLANCA DEL MENSAJE */
.whatsapp-float:hover::after,
.whatsapp-float:focus::after,
.whatsapp-float:active::after {
    content: "Hola, ¿En qué podemos ayudarte?" !important;

    position: absolute !important;
    top: 86px !important;
    left: 22px !important;

    width: 285px !important;
    min-height: 76px !important;

    border-radius: 24px !important;
    background: #ffffff !important;
    color: #1f2937 !important;

    padding: 18px 22px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    text-align: left !important;
    white-space: normal !important;

    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18) !important;

    opacity: 1 !important;
    overflow: visible !important;
    z-index: 3 !important;

    animation: whatsappBubbleIn 0.45s ease both !important;
}

@keyframes whatsappBubbleIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* BOTÓN ABRIR CHAT */
.whatsapp-float:hover i,
.whatsapp-float:focus i,
.whatsapp-float:active i {
    position: absolute !important;
    inset: auto !important;

    right: 22px !important;
    bottom: 18px !important;

    width: 166px !important;
    height: 58px !important;
    border-radius: 999px !important;

    background: #25d366 !important;
    color: #ffffff !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 0 !important;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.38) !important;
    z-index: 5 !important;
}

/* TEXTO ABRIR CHAT NORMAL */
.whatsapp-float:hover i::after,
.whatsapp-float:focus i::after,
.whatsapp-float:active i::after {
    content: "Abrir chat" !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
}

/* ÍCONO ENVIAR */
.whatsapp-float:hover i::before,
.whatsapp-float:focus i::before,
.whatsapp-float:active i::before {
    content: "\f1d8" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    font-size: 1.6rem !important;
    margin-left: 14px !important;
    order: 2 !important;
}

/* CELULAR */
@media (max-width: 767px) {
    .whatsapp-float {
        width: 58px !important;
        height: 58px !important;
        right: 18px !important;
        bottom: 18px !important;
    }

    .whatsapp-float i {
        width: 58px !important;
        height: 58px !important;
        font-size: 1.75rem !important;
    }

    .whatsapp-float:hover,
    .whatsapp-float:focus,
    .whatsapp-float:active {
        width: calc(100vw - 28px) !important;
        max-width: 370px !important;
        height: 245px !important;

        right: 14px !important;
        bottom: 14px !important;

        border-radius: 30px !important;
        background: #f2fff8 !important;
        overflow: hidden !important;
        transform: translateY(-6px) !important;
    }

    .whatsapp-float:hover::before,
    .whatsapp-float:focus::before,
    .whatsapp-float:active::before {
        height: 64px !important;
        border-radius: 30px 30px 0 0 !important;
    }

    .whatsapp-float:hover::after,
    .whatsapp-float:focus::after,
    .whatsapp-float:active::after {
        top: 86px !important;
        left: 20px !important;

        width: calc(100vw - 82px) !important;
        max-width: 285px !important;
        min-height: 76px !important;

        font-size: 0.96rem !important;
        line-height: 1.55 !important;
        white-space: normal !important;
    }

    .whatsapp-float:hover i,
    .whatsapp-float:focus i,
    .whatsapp-float:active i {
        width: 150px !important;
        height: 54px !important;
        right: 20px !important;
        bottom: 17px !important;
    }

    .whatsapp-float:hover i::after,
    .whatsapp-float:focus i::after,
    .whatsapp-float:active i::after {
        font-size: 0.95rem !important;
    }
}
/* =========================
   FORZAR LOGO MÁS AL CENTRO
========================= */

@media (min-width: 992px) {
    .main-header .navbar .nav-container .navbar-brand.only-logo-brand,
    .main-header .navbar .nav-container .navbar-brand {
        margin-left: 0 !important;
        position: relative !important;
        left: 280px !important;
        transform: none !important;
    }
}

/* CELULAR NORMAL */
@media (max-width: 991px) {
    .main-header .navbar .nav-container .navbar-brand.only-logo-brand,
    .main-header .navbar .nav-container .navbar-brand {
        margin-left: 0 !important;
        left: 0 !important;
        transform: none !important;
    }
}
/* =========================
   FORMULARIO - SELECT RUBRO
========================= */

.contact-form select {
    width: 100%;
    border: 1px solid #9ca3af;
    background: #ffffff;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: var(--texto);
    outline: none;
    transition: 0.25s ease;
}

.contact-form select:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(18, 58, 120, 0.10);
}

.contact-form select option {
    color: #0f172a;
}

/* =========================
   CAMPOS EMPRESA / RUC
========================= */

.empresa-field,
.ruc-field {
    width: 100%;
}

/* =========================
   MENSAJE FORMULARIO ENVIADO
========================= */

.form-success-message {
    width: 100%;
    background: #e8fff2;
    color: #087a3d;
    border: 1px solid rgba(8, 122, 61, 0.25);
    padding: 14px 16px;
    margin-bottom: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: successMessageIn 0.35s ease both;
}

.form-success-message i {
    font-size: 1.2rem;
    color: #087a3d;
}

.form-success-message span {
    color: #087a3d;
}

.form-success-message.hide {
    animation: successMessageOut 0.35s ease both;
}

@keyframes successMessageIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successMessageOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

/* =========================
   TOAST MENSAJE INFERIOR
========================= */

.js-toast-solida {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(30px);
    background: #061f45;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800;
    z-index: 50000;
    opacity: 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    transition: 0.35s ease;
    text-align: center;
    max-width: calc(100% - 30px);
}

.js-toast-solida.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================
   RESPONSIVE FORMULARIO
========================= */

@media (max-width: 767px) {
    .form-success-message {
        font-size: 0.9rem;
        padding: 12px 14px;
    }

    .js-toast-solida {
        width: calc(100% - 30px);
        border-radius: 14px;
        bottom: 18px;
        font-size: 0.9rem;
    }
}
/* =========================
   SECCIÓN EMPRESA TIPO EJEMPLO
========================= */

.about-model-section {
    position: relative;
    background: #f2f2f2;
    padding: 95px 0;
    overflow: hidden;
}

.about-left-box {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dotted-s-bg {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 31rem;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -30px;
    font-family: Arial, Helvetica, sans-serif;

    color: transparent;
    background-image: radial-gradient(circle, #061f45 2px, transparent 2.4px);
    background-size: 8px 8px;
    background-clip: text;
    -webkit-background-clip: text;

    opacity: 0.9;
    pointer-events: none;
    user-select: none;
}

.about-left-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding-left: 130px;
}

.about-left-content h2 {
    color: var(--verde);
    font-size: clamp(2.1rem, 3.2vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 0;
}

.about-left-content h2 span {
    color: var(--azul);
}

.about-left-content h2 strong {
    color: var(--verde);
    font-weight: 900;
}

.about-green-line {
    width: 150px;
    height: 3px;
    margin: 28px 0 34px;
    background: linear-gradient(
        90deg,
        var(--verde) 0 34%,
        rgba(8, 122, 61, 0.28) 34% 100%
    );
}

.about-socials {
    display: flex;
    align-items: center;
    gap: 26px;
}

.about-socials a {
    color: #315696;
    font-size: 2rem;
    transition: 0.3s ease;
}

.about-socials a:hover {
    color: var(--verde);
    transform: translateY(-5px);
}

.about-right-box {
    min-height: 390px;
    display: flex;
    align-items: center;
    position: relative;
}

.about-divider-line {
    position: absolute;
    left: 0;
    top: -95px;
    width: 2px;
    height: 220px;
    background: var(--azul);
}

.about-right-content {
    max-width: 500px;
    padding-left: 80px;
}

.about-right-content p {
    color: #777;
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 18px;
}

.about-right-content p strong {
    color: #444;
    font-weight: 900;
}

/* Responsive */
@media (max-width: 991px) {
    .about-model-section {
        padding: 70px 0;
    }

    .about-left-box,
    .about-right-box {
        min-height: auto;
        padding: 50px 20px;
    }

    .dotted-s-bg {
        left: -30px;
        font-size: 18rem;
        letter-spacing: -18px;
        opacity: 0.45;
    }

    .about-left-content {
        padding-left: 40px;
    }

    .about-divider-line {
        display: none;
    }

    .about-right-content {
        padding-left: 40px;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .dotted-s-bg {
        font-size: 14rem;
        left: -40px;
    }

    .about-left-content {
        padding-left: 20px;
    }

    .about-left-content h2 {
        font-size: 2rem;
    }

    .about-socials a {
        font-size: 1.7rem;
    }

    .about-right-content {
        padding-left: 20px;
    }
}
/* =========================
   SERVICIOS PRINCIPALES - TÍTULO MÁS GRANDE
========================= */

section .section-tag,
.container .section-tag {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
}

/* Solo para el título Servicios principales */
.container.py-5 .text-center .section-tag {
    font-size: 2.15rem !important;
    font-weight: 900 !important;
    color: var(--verde) !important;
    letter-spacing: 2.5px !important;
}
/* =========================
   COLORES DROPDOWN SERVICIOS
========================= */

/* Naves industriales - azul */
.services-dropdown-item:nth-child(1)::before {
    background: rgba(18, 63, 128, 0.78) !important;
}


/* Grúas industriales - amarillo Caterpillar más suave */
.services-dropdown-item:nth-child(2)::before {
    background: rgba(245, 178, 39, 0.48) !important;
}

/* Elevadores de carga - verde */
.services-dropdown-item:nth-child(3)::before {
    background: rgba(8, 122, 61, 0.82) !important;
}

/* Mejora texto para que se vea bien sobre amarillo */
.services-dropdown-item:nth-child(2) span,
.services-dropdown-item:nth-child(2) i {
    color: #ffffff !important;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

/* Bordes de los íconos */
.services-dropdown-item:nth-child(1) .services-dropdown-icon {
    background: rgba(18, 63, 128, 0.35) !important;
}

.services-dropdown-item:nth-child(2) .services-dropdown-icon {
    background: rgba(245, 178, 39, 0.45) !important;
}

.services-dropdown-item:nth-child(3) .services-dropdown-icon {
    background: rgba(8, 122, 61, 0.45) !important;
}
/* =========================
   COLORES SERVICIOS PRINCIPALES
========================= */

/* Naves industriales - azul */
.service-main-card[data-service-target="naves"] .service-main-body,
.service-main-card[data-service="naves"] .service-main-body {
    background: #123f80 !important;
}

/* Grúas industriales - amarillo Caterpillar */
.service-main-card[data-service-target="gruas"] .service-main-body,
.service-main-card[data-service="gruas"] .service-main-body {
    background: #d9961b !important;
}

/* Elevadores de carga - verde */
.service-main-card[data-service-target="elevadores"] .service-main-body,
.service-main-card[data-service="elevadores"] .service-main-body {
    background: #087a3d !important;
}

/* Texto blanco visible */
.service-main-card .service-main-body h3 {
    color: #ffffff !important;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.service-detail-panel,
.other-panel {
    display: none !important;
}

.service-detail-panel.active,
.other-panel.active {
    display: block !important;
}

/* =========================================================
   VISIÓN - MISIÓN - VALORES MÁS DINÁMICO
========================================================= */

.about-values-grid {
    margin-top: 45px;
}

.about-value-card {
    position: relative;
    height: 100%;
    padding: 38px 34px 34px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(18, 63, 128, 0.08);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
    transition: 0.4s ease;
}

/* Línea superior de color */
.about-value-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(90deg, var(--verde), var(--azul));
}

/* Brillo al pasar cursor */
.about-value-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.65),
        transparent
    );
    transform: skewX(-18deg);
    transition: 0.8s ease;
}

.about-value-card:hover::after {
    left: 130%;
}

.about-value-card:hover {
    transform: translateY(-14px) scale(1.02);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.18);
    border-color: rgba(8, 122, 61, 0.25);
}

/* Ícono */
.about-value-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul), var(--verde));
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 20px;
    box-shadow: 0 12px 28px rgba(18, 63, 128, 0.25);
    position: relative;
    z-index: 2;
    transition: 0.35s ease;
}

.about-value-card:hover .about-value-icon {
    transform: rotateY(180deg) scale(1.08);
}

/* Títulos */
.about-value-card h3 {
    position: relative;
    z-index: 2;
    color: var(--azul);
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 14px;
}

/* Texto */
.about-value-card p {
    position: relative;
    z-index: 2;
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.65;
    margin: 0;
}

/* Colores individuales */
.about-value-card:nth-child(1)::before {
    background: linear-gradient(90deg, #123f80, #087a3d);
}

.about-value-card:nth-child(2)::before {
    background: linear-gradient(90deg, #087a3d, #123f80);
}

.about-value-card:nth-child(3)::before {
    background: linear-gradient(90deg, #d9961b, #087a3d);
}

.about-value-card:nth-child(1) .about-value-icon {
    background: linear-gradient(135deg, #123f80, #315696);
}

.about-value-card:nth-child(2) .about-value-icon {
    background: linear-gradient(135deg, #087a3d, #0f9f55);
}

.about-value-card:nth-child(3) .about-value-icon {
    background: linear-gradient(135deg, #d9961b, #087a3d);
}

/* Entrada animada */
.about-value-card {
    animation: valueCardIn 0.8s ease both;
}

.about-value-card:nth-child(1) {
    animation-delay: 0.1s;
}

.about-value-card:nth-child(2) {
    animation-delay: 0.25s;
}

.about-value-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes valueCardIn {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .about-value-card {
        padding: 32px 28px;
        border-radius: 20px;
    }

    .about-value-card h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .about-value-card {
        padding: 28px 24px;
    }

    .about-value-icon {
        width: 50px;
        height: 50px;
        font-size: 1.15rem;
    }

    .about-value-card h3 {
        font-size: 1.55rem;
    }

    .about-value-card p {
        font-size: 1rem;
    }
}
/* =========================================================
   CENTRAR ICONOS Y TÍTULOS DE VISIÓN / MISIÓN / VALORES
========================================================= */

.about-value-card {
    text-align: center !important;
}

.about-value-icon {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 18px !important;
}

.about-value-card h3 {
    text-align: center !important;
    width: 100% !important;
}

.about-value-card p {
    text-align: center !important;
}
/* =========================================================
   INICIO - SERVICIOS PRINCIPALES RODANDO AL BAJAR
========================================================= */

body.is-home .service-main-card.roll-card {
    opacity: 0;
    transform-origin: center;
}

/* Cuando recién aparece en pantalla */
body.is-home .service-main-card.roll-visible.roll-left {
    animation: rollFromLeft 1.1s cubic-bezier(.2,.8,.2,1) forwards;
}

body.is-home .service-main-card.roll-visible.roll-bottom {
    animation: rollFromBottom 1.1s cubic-bezier(.2,.8,.2,1) forwards;
}

body.is-home .service-main-card.roll-visible.roll-right {
    animation: rollFromRight 1.1s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes rollFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-190px) rotate(-22deg) scale(0.82);
        filter: blur(6px);
    }

    70% {
        opacity: 1;
        transform: translateX(14px) rotate(4deg) scale(1.03);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
        filter: blur(0);
    }
}

@keyframes rollFromRight {
    0% {
        opacity: 0;
        transform: translateX(190px) rotate(22deg) scale(0.82);
        filter: blur(6px);
    }

    70% {
        opacity: 1;
        transform: translateX(-14px) rotate(-4deg) scale(1.03);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
        filter: blur(0);
    }
}

@keyframes rollFromBottom {
    0% {
        opacity: 0;
        transform: translateY(130px) rotate(12deg) scale(0.86);
        filter: blur(6px);
    }

    70% {
        opacity: 1;
        transform: translateY(-12px) rotate(-3deg) scale(1.03);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
        filter: blur(0);
    }
}

/* Hover después de aparecer */
body.is-home .service-main-card.roll-visible:hover {
    transform: translateY(-12px) scale(1.03) !important;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22) !important;
}

body.is-home .service-main-card img {
    transition: transform 0.6s ease, filter 0.4s ease;
}

body.is-home .service-main-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.05);
}
/* =========================================================
   BANNER MÁS INTERACTIVO - ENTRA DESDE LOS COSTADOS
========================================================= */

/* Imagen del banner con movimiento */
#solidaHeroCarousel .carousel-item img {
    transition: transform 1.2s ease, filter 1s ease;
}

/* Cuando entra desde la izquierda */
#solidaHeroCarousel .carousel-item.hero-enter-left.hero-active-animate img {
    animation: heroImageFromLeft 1.25s cubic-bezier(.2,.8,.2,1) both;
}

/* Cuando entra desde la derecha */
#solidaHeroCarousel .carousel-item.hero-enter-right.hero-active-animate img {
    animation: heroImageFromRight 1.25s cubic-bezier(.2,.8,.2,1) both;
}

/* Texto del banner */
#solidaHeroCarousel .carousel-caption,
#solidaHeroCarousel .hero-caption,
#solidaHeroCarousel .hero-content,
#solidaHeroCarousel .hero-text,
#solidaHeroCarousel .hero-text-box {
    opacity: 0;
}

/* Texto entra desde izquierda */
#solidaHeroCarousel .carousel-item.hero-enter-left.hero-active-animate .carousel-caption,
#solidaHeroCarousel .carousel-item.hero-enter-left.hero-active-animate .hero-caption,
#solidaHeroCarousel .carousel-item.hero-enter-left.hero-active-animate .hero-content,
#solidaHeroCarousel .carousel-item.hero-enter-left.hero-active-animate .hero-text,
#solidaHeroCarousel .carousel-item.hero-enter-left.hero-active-animate .hero-text-box {
    animation: heroTextFromLeft 1s cubic-bezier(.2,.8,.2,1) 0.25s both;
}

/* Texto entra desde derecha */
#solidaHeroCarousel .carousel-item.hero-enter-right.hero-active-animate .carousel-caption,
#solidaHeroCarousel .carousel-item.hero-enter-right.hero-active-animate .hero-caption,
#solidaHeroCarousel .carousel-item.hero-enter-right.hero-active-animate .hero-content,
#solidaHeroCarousel .carousel-item.hero-enter-right.hero-active-animate .hero-text,
#solidaHeroCarousel .carousel-item.hero-enter-right.hero-active-animate .hero-text-box {
    animation: heroTextFromRight 1s cubic-bezier(.2,.8,.2,1) 0.25s both;
}

/* Si tu texto solo usa typewriter-text */
#solidaHeroCarousel .carousel-item.hero-active-animate .typewriter-text {
    transform-origin: left center;
}

/* Animaciones imagen */
@keyframes heroImageFromLeft {
    0% {
        transform: translateX(-90px) scale(1.12);
        filter: blur(5px) brightness(0.85);
    }

    70% {
        transform: translateX(10px) scale(1.04);
        filter: blur(0) brightness(1);
    }

    100% {
        transform: translateX(0) scale(1);
        filter: blur(0) brightness(1);
    }
}

@keyframes heroImageFromRight {
    0% {
        transform: translateX(90px) scale(1.12);
        filter: blur(5px) brightness(0.85);
    }

    70% {
        transform: translateX(-10px) scale(1.04);
        filter: blur(0) brightness(1);
    }

    100% {
        transform: translateX(0) scale(1);
        filter: blur(0) brightness(1);
    }
}

/* Animaciones texto */
@keyframes heroTextFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-90px) scale(0.96);
        filter: blur(5px);
    }

    70% {
        opacity: 1;
        transform: translateX(8px) scale(1.02);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroTextFromRight {
    0% {
        opacity: 0;
        transform: translateX(90px) scale(0.96);
        filter: blur(5px);
    }

    70% {
        opacity: 1;
        transform: translateX(-8px) scale(1.02);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}
/* =========================================================
   RAYITO GRANDE EN TARJETAS DE ESTADÍSTICAS
========================================================= */

.stat-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #ffffff !important;
    border: none !important;
    border-radius: 18px !important;
    z-index: 1;
}

/* contenido arriba */
.stat-card > * {
    position: relative;
    z-index: 5;
}

/* borde animado más grueso y visible */
.stat-card::before {
    content: "";
    position: absolute;
    inset: -4px; /* más grande */
    border-radius: 22px;
    z-index: 1;

    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 250deg,
        rgba(18, 63, 128, 0.15) 265deg,
        #123f80 285deg,
        #12a85b 305deg,
        #ffffff 320deg,
        #d9961b 335deg,
        #12a85b 348deg,
        transparent 360deg
    );

    animation: statBorderRay 2.8s linear infinite;
    filter: blur(0.2px);
}

/* parte interna blanca para que solo quede como borde */
.stat-card::after {
    content: "";
    position: absolute;
    inset: 4px; /* grosor del borde */
    border-radius: 15px;
    background: #ffffff;
    z-index: 2;
}

/* efecto hover */
.stat-card:hover::before {
    animation-duration: 1.4s;
    filter: brightness(1.15);
}

.stat-card:hover {
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.14),
        0 0 18px rgba(18, 63, 128, 0.18),
        0 0 28px rgba(8, 122, 61, 0.12);
}

@keyframes statBorderRay {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* =========================================================
   ESTADÍSTICAS DE NOSOTROS - RAYITO EN LOS BORDES
   PEGA ESTO AL FINAL DE light.css
========================================================= */

/* Si ya tenían fondo simple, lo mejoramos */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 24px;
}

/* Cada tarjeta */
.about-stats-grid div {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background: #ffffff !important;
    border-radius: 18px !important;
    padding: 26px 20px !important;
    text-align: center !important;

    border: none !important;
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(18, 63, 128, 0.04) !important;

    z-index: 1;
}

/* contenido encima */
.about-stats-grid div > * {
    position: relative;
    z-index: 5;
}

/* rayito grande borde */
.about-stats-grid div::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    z-index: 1;

    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 248deg,
        rgba(18, 63, 128, 0.14) 265deg,
        #123f80 285deg,
        #12a85b 305deg,
        #ffffff 320deg,
        #d9961b 336deg,
        #12a85b 350deg,
        transparent 360deg
    );

    animation: aboutStatsRay 2.9s linear infinite;
    filter: blur(0.2px);
}

/* relleno blanco interior */
.about-stats-grid div::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 15px;
    background: #ffffff;
    z-index: 2;
}

/* números */
.about-stats-grid strong {
    display: block !important;
    color: #087a3d !important;
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin-bottom: 10px !important;
}

/* texto */
.about-stats-grid span {
    color: #123f80 !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    display: block !important;
}

/* hover */
.about-stats-grid div:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.14),
        0 0 18px rgba(18, 63, 128, 0.14),
        0 0 24px rgba(8, 122, 61, 0.08) !important;
    transition: 0.3s ease;
}

.about-stats-grid div:hover::before {
    animation-duration: 1.5s;
    filter: brightness(1.12);
}

/* animación */
@keyframes aboutStatsRay {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* responsive */
@media (max-width: 767px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-grid strong {
        font-size: 2.1rem !important;
    }

    .about-stats-grid span {
        font-size: 1rem !important;
    }
}

/* =========================================================
   OPINIONES - VER MÁS / VER MENOS EN COMENTARIOS
   PEGAR AL FINAL DE light.css
========================================================= */

/* Tarjetas de comentarios */
.review-card,
.review-card-small {
    height: auto !important;
    min-height: 145px !important;
    max-width: 310px !important;
    align-self: start !important;

    background: #ffffff !important;
    border: 1px solid rgba(18, 63, 128, 0.10) !important;
    border-radius: 16px !important;

    padding: 16px 18px !important;

    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
    transition: 0.3s ease !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* Hover suave */
.review-card:hover,
.review-card-small:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.11) !important;
}

/* Texto del comentario */
.review-card p,
.review-card-small p {
    color: #64748b !important;
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;

    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Botón Ver más / Ver menos */
.review-read-more-btn {
    margin-top: 8px !important;
    color: #087a3d !important;
    font-size: 0.85rem !important;
    font-weight: 900 !important;

    background: transparent !important;
    border: none !important;
    padding: 0 !important;

    width: fit-content !important;
    cursor: pointer !important;
    transition: 0.25s ease !important;
}

/* Hover del botón */
.review-read-more-btn:hover {
    color: #123f80 !important;
    text-decoration: underline !important;
}

/* Cabecera del comentario */
.review-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.review-header strong {
    color: #123f80 !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    text-transform: capitalize !important;
}

.review-header span {
    display: block !important;
    color: #64748b !important;
    font-size: 0.78rem !important;
    margin-top: 4px !important;
}

/* Estrellas */
.review-stars {
    color: #f59e0b !important;
    font-size: 0.82rem !important;
    letter-spacing: 2px !important;
    white-space: nowrap !important;
}

/* Evita que efectos anteriores tapen el comentario */
.rating-box .review-card::before,
.rating-box .review-card::after,
.rating-box .review-card-small::before,
.rating-box .review-card-small::after,
.rating-box .js-shine-card::after {
    content: none !important;
    display: none !important;
    animation: none !important;
}

/* En celular ocupa todo el ancho */
@media (max-width: 767px) {
    .review-card,
    .review-card-small {
        max-width: 100% !important;
        min-height: auto !important;
    }
}
/* =========================================================
   MODAL GALERÍA - SOLO IMAGEN SIN TÍTULO
========================================================= */

#galleryModal {
    background: rgba(0, 0, 0, 0.88) !important;
}

#galleryModal .modal-dialog,
#galleryModal .gallery-only-dialog {
    max-width: 96vw !important;
    width: auto !important;
    margin: 24px auto !important;
}

#galleryModal .modal-content,
#galleryModal .gallery-only-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
}

/* Oculta cualquier texto anterior del modal */
#galleryModal .modal-header,
#galleryModal .modal-title,
#galleryModal .section-tag,
#galleryModal h1,
#galleryModal h2,
#galleryModal h3,
#galleryModal h4,
#galleryModal h5,
#galleryModal span:not(.visually-hidden) {
    display: none !important;
}

/* Cuerpo limpio */
#galleryModal .modal-body,
#galleryModal .gallery-only-body {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Imagen centrada */
#galleryModal #galleryMainImage,
#galleryModal .gallery-main-img {
    display: block !important;
    width: auto !important;
    max-width: 96vw !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    background: transparent !important;
    border-radius: 8px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55) !important;
}

/* Botón cerrar */
#galleryModal .gallery-close-btn,
#galleryModal .btn-close {
    display: block !important;
    position: absolute !important;
    top: -18px !important;
    right: -18px !important;
    z-index: 9999 !important;

    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;

    background-color: #ffffff !important;
    opacity: 1 !important;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38) !important;
    transition: 0.25s ease !important;
}

#galleryModal .gallery-close-btn:hover,
#galleryModal .btn-close:hover {
    transform: scale(1.08) rotate(90deg) !important;
}

/* Celular */
@media (max-width: 767px) {
    #galleryModal .modal-dialog,
    #galleryModal .gallery-only-dialog {
        max-width: 96vw !important;
        margin: 18px auto !important;
    }

    #galleryModal #galleryMainImage,
    #galleryModal .gallery-main-img {
        max-width: 96vw !important;
        max-height: 86vh !important;
    }

    #galleryModal .gallery-close-btn,
    #galleryModal .btn-close {
        top: -12px !important;
        right: -8px !important;
        width: 38px !important;
        height: 38px !important;
    }
}

/* =========================================================
   OPINIONES - CARRUSEL 3 EN 3
   Pegar al FINAL de light.css
========================================================= */

/* Contenedor del carrusel */
.reviews-carousel-wrapper {
    position: relative !important;
    width: 100% !important;
    margin-top: 22px !important;
    padding: 0 54px !important;
}

/* Ventana que oculta los demás comentarios */
.reviews-carousel-window {
    width: 100% !important;
    overflow: hidden !important;
}

/* Convierte la lista en fila horizontal */
.reviews-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    margin-top: 0 !important;
    transition: transform 0.45s ease !important;
    will-change: transform !important;
}

/* Cada comentario ocupa 1/3 */
.reviews-carousel-track .review-card,
.reviews-carousel-track .review-card-small {
    flex: 0 0 calc((100% - 36px) / 3) !important;
    min-width: calc((100% - 36px) / 3) !important;
    max-width: none !important;
    width: auto !important;

    min-height: 145px !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;

    background: #ffffff !important;
    border: 1px solid rgba(18, 63, 128, 0.10) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* Flechas */
.reviews-carousel-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 42px !important;
    height: 42px !important;

    border: none !important;
    border-radius: 50% !important;

    background: #123f80 !important;
    color: #ffffff !important;

    display: grid !important;
    place-items: center !important;

    box-shadow: 0 12px 28px rgba(18, 63, 128, 0.22) !important;
    z-index: 20 !important;
    transition: 0.3s ease !important;
}

.reviews-carousel-arrow:hover {
    background: #087a3d !important;
    transform: translateY(-50%) scale(1.08) !important;
}

.reviews-carousel-arrow:disabled {
    background: #94a3b8 !important;
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

.reviews-carousel-prev {
    left: 0 !important;
}

.reviews-carousel-next {
    right: 0 !important;
}

/* Puntitos */
.reviews-carousel-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 16px !important;
}

.reviews-carousel-dots button {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(18, 63, 128, 0.25) !important;
    padding: 0 !important;
}

.reviews-carousel-dots button.active {
    background: #123f80 !important;
    transform: scale(1.25) !important;
}

/* Tablet: 2 comentarios */
@media (max-width: 991px) {
    .reviews-carousel-track .review-card,
    .reviews-carousel-track .review-card-small {
        flex: 0 0 calc((100% - 18px) / 2) !important;
        min-width: calc((100% - 18px) / 2) !important;
    }
}

/* Celular: 1 comentario */
@media (max-width: 767px) {
    .reviews-carousel-wrapper {
        padding: 0 44px !important;
    }

    .reviews-carousel-track .review-card,
    .reviews-carousel-track .review-card-small {
        flex: 0 0 100% !important;
        min-width: 100% !important;
    }

    .reviews-carousel-arrow {
        width: 36px !important;
        height: 36px !important;
    }
}

/* =========================================================
   SERVICIOS PRINCIPALES - ENTRADA PRO DESDE COSTADOS
   Pegar al final de light.css
========================================================= */

/* Anula la animación antigua de roll */
#home .service-main-card.roll-card,
#home .service-main-card.roll-visible,
#home .service-main-card.roll-left,
#home .service-main-card.roll-right,
#home .service-main-card.roll-bottom {
    animation: none !important;
}

/* Tarjeta base */
#home .service-main-card.service-super-card {
    position: relative !important;
    overflow: hidden !important;
    opacity: 0 !important;

    transform-style: preserve-3d !important;
    will-change: transform, opacity, filter, clip-path !important;

    transition:
        opacity 1s cubic-bezier(.16,.84,.28,1),
        transform 1s cubic-bezier(.16,.84,.28,1),
        filter 1s cubic-bezier(.16,.84,.28,1),
        clip-path 1s cubic-bezier(.16,.84,.28,1),
        box-shadow 0.35s ease !important;

    transition-delay: var(--service-order-delay, 0s) !important;
}

/* Primera y tercera desde la izquierda */
#home .service-main-card.service-super-left {
    transform: translateX(-340px) rotateY(-34deg) rotateZ(-7deg) scale(0.78) !important;
    filter: blur(12px) brightness(0.72) !important;
    clip-path: inset(0 100% 0 0) !important;
}

/* Segunda desde la derecha */
#home .service-main-card.service-super-right {
    transform: translateX(340px) rotateY(34deg) rotateZ(7deg) scale(0.78) !important;
    filter: blur(12px) brightness(0.72) !important;
    clip-path: inset(0 0 0 100%) !important;
}

/* Estado visible */
#home .service-main-card.service-super-show {
    opacity: 1 !important;
    transform: translateX(0) rotateY(0) rotateZ(0) scale(1) !important;
    filter: blur(0) brightness(1) !important;
    clip-path: inset(0 0 0 0) !important;

    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(18, 63, 128, 0.06) !important;
}

/* Rebote final */
#home .service-main-card.service-super-pop {
    animation: serviceSuperPop 0.58s cubic-bezier(.16,.84,.28,1) both !important;
}

@keyframes serviceSuperPop {
    0% {
        transform: translateY(0) scale(1);
    }

    45% {
        transform: translateY(-12px) scale(1.035);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* Imagen inicia con zoom */
#home .service-main-card.service-super-card .service-main-img {
    position: relative !important;
    overflow: hidden !important;
}

#home .service-main-card.service-super-card .service-main-img img {
    transform: scale(1.18) !important;
    filter: brightness(0.82) contrast(0.95) !important;
    transition:
        transform 1.15s cubic-bezier(.16,.84,.28,1),
        filter 1s ease !important;
}

/* Imagen vuelve normal al aparecer */
#home .service-main-card.service-super-show .service-main-img img {
    transform: scale(1) !important;
    filter: brightness(1) contrast(1) !important;
}

/* Brillo diagonal al entrar */
#home .service-main-card.service-super-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -130% !important;
    width: 72% !important;
    height: 100% !important;

    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.70) 45%,
        transparent 75%
    ) !important;

    transform: skewX(-20deg) !important;
    z-index: 8 !important;
    pointer-events: none !important;
}

#home .service-main-card.service-super-show::before {
    animation: serviceSuperShine 1s ease both !important;
    animation-delay: calc(var(--service-order-delay, 0s) + 0.45s) !important;
}

@keyframes serviceSuperShine {
    from {
        left: -130%;
    }

    to {
        left: 145%;
    }
}

/* Cinta inferior con luz */
#home .service-main-card .service-main-body {
    position: relative !important;
    overflow: hidden !important;
}

#home .service-main-card .service-main-body::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.18),
        transparent
    ) !important;

    transform: translateX(-120%) skewX(-20deg) !important;
    transition: 0.7s ease !important;
}

#home .service-main-card.service-super-show .service-main-body::before {
    animation: serviceBodyLight 1s ease both !important;
    animation-delay: calc(var(--service-order-delay, 0s) + 0.65s) !important;
}

@keyframes serviceBodyLight {
    from {
        transform: translateX(-120%) skewX(-20deg);
    }

    to {
        transform: translateX(120%) skewX(-20deg);
    }
}

/* Línea pequeña inferior */
#home .service-main-card .service-main-body::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;

    width: 0 !important;
    height: 5px !important;

    background: linear-gradient(90deg, #ffffff, #12a85b, #ffffff) !important;
    transform: translateX(-50%) !important;
    transition: width 0.7s ease !important;
}

#home .service-main-card.service-super-show .service-main-body::after {
    width: 100% !important;
    transition-delay: calc(var(--service-order-delay, 0s) + 0.7s) !important;
}

/* Título dentro de cada tarjeta */
#home .service-main-card .service-main-body h3 {
    position: relative !important;
    z-index: 3 !important;
    transform: translateY(16px) !important;
    opacity: 0 !important;
    transition:
        transform 0.65s ease,
        opacity 0.65s ease !important;
}

#home .service-main-card.service-super-show .service-main-body h3 {
    transform: translateY(0) !important;
    opacity: 1 !important;
    transition-delay: calc(var(--service-order-delay, 0s) + 0.55s) !important;
}

/* Hover más llamativo */
#home .service-main-card.service-super-show:hover {
    transform: translateY(-16px) scale(1.035) !important;
    box-shadow:
        0 34px 78px rgba(15, 23, 42, 0.24),
        0 0 26px rgba(18, 63, 128, 0.12) !important;
}

#home .service-main-card.service-super-show:hover .service-main-img img {
    transform: scale(1.10) !important;
    filter: brightness(1.06) contrast(1.06) !important;
}

/* Celular */
@media (max-width: 767px) {
    #home .service-main-card.service-super-left,
    #home .service-main-card.service-super-right {
        transform: translateY(95px) scale(0.86) !important;
        clip-path: inset(0 0 0 0) !important;
    }
}

/* =========================================================
   FIX RESPONSIVE GENERAL - CELULARES
   HEADER + BANNER + TEXTO DEL HERO
   PEGAR AL FINAL DE light.css
========================================================= */

/* Evita que la web se corte horizontalmente */
html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Todo debe respetar el ancho del celular */
*,
*::before,
*::after {
    box-sizing: border-box !important;
}

/* =========================================================
   HEADER MOBILE
========================================================= */

@media (max-width: 991px) {

    .main-header {
        width: 100% !important;
        min-height: 72px !important;
        padding: 0 !important;
        background: #ffffff !important;
        z-index: 99999 !important;
    }

    .main-header .navbar {
        width: 100% !important;
        min-height: 72px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-container {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 72px !important;

        padding: 0 18px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
    }

    /* Logo */
    .navbar-brand,
    .only-logo-brand {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .brand-logo,
    .brand-logo-large {
        width: 82px !important;
        height: 52px !important;
        max-width: 82px !important;
        object-fit: contain !important;
    }

    /* Botón hamburguesa dentro del header */
    .navbar-toggler {
        position: relative !important;
        right: auto !important;
        top: auto !important;

        margin: 0 !important;
        padding: 6px 8px !important;

        width: 48px !important;
        height: 42px !important;

        border: none !important;
        outline: none !important;
        box-shadow: none !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: transparent !important;
        z-index: 100000 !important;
    }

    .navbar-toggler-icon {
        width: 30px !important;
        height: 30px !important;
    }

    /* Menú desplegable */
    .navbar-collapse {
        position: absolute !important;
        top: 72px !important;
        left: 12px !important;
        right: 12px !important;

        width: auto !important;

        background: #ffffff !important;
        border-radius: 16px !important;

        padding: 14px !important;

        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22) !important;

        max-height: calc(100vh - 90px) !important;
        overflow-y: auto !important;

        z-index: 99998 !important;
    }

    .navbar-nav {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    .nav-item {
        width: 100% !important;
    }

    .nav-link {
        width: 100% !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        padding: 13px 14px !important;
        border-radius: 12px !important;

        background: #f8fafc !important;
        color: #123f80 !important;

        font-size: 0.95rem !important;
        font-weight: 900 !important;
        text-align: left !important;
    }

    .nav-link.active,
    .nav-link:hover {
        background: #123f80 !important;
        color: #ffffff !important;
    }

    .services-dropdown {
        position: static !important;
        width: 100% !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: none !important;
        margin-top: 8px !important;

        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }

    .services-dropdown-item {
        width: 100% !important;
        min-height: 78px !important;
        border-radius: 14px !important;
    }
}

/* =========================================================
   BANNER MOBILE CORREGIDO
========================================================= */

@media (max-width: 991px) {

    .hero-carousel-section {
        margin-top: 72px !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .hero-carousel,
    #solidaHeroCarousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        width: 100% !important;
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
        overflow: hidden !important;
    }

    .hero-banner-img,
    .hero-carousel .carousel-item img {
        width: 100% !important;
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;

        object-fit: cover !important;
        object-position: center center !important;
    }

    .hero-caption-wrap,
    .hero-caption-center {
        position: absolute !important;
        inset: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        padding: 0 18px !important;
        text-align: center !important;
        z-index: 10 !important;
    }

    /* Caja azul del texto */
    .hero-ribbon,
    .hero-ribbon-center {
        width: auto !important;
        max-width: calc(100% - 28px) !important;
        min-width: 250px !important;

        padding: 14px 18px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        text-align: center !important;
    }

    .hero-ribbon h1,
    .hero-one-line-text {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;

        font-size: clamp(1.35rem, 6vw, 2rem) !important;
        line-height: 1.15 !important;

        white-space: normal !important;
        text-align: center !important;
    }

    /* ARREGLO DE LA RAYA DEL TYPEWRITER EN CELULAR */
    .typewriter-text {
        display: inline-block !important;
        width: auto !important;
        max-width: 100% !important;

        white-space: normal !important;
        overflow: visible !important;

        border-right: none !important;
        animation: none !important;

        opacity: 1 !important;
        visibility: visible !important;
    }

    .typewriter-text::after,
    .typewriter-text::before {
        display: none !important;
        content: none !important;
    }

    .hero-progress {
        height: 4px !important;
    }

    .hero-indicators {
        bottom: 12px !important;
        margin-bottom: 0 !important;
    }

    .hero-control {
        width: 42px !important;
    }
}

/* Celulares medianos */
@media (max-width: 430px) {

    .hero-carousel,
    #solidaHeroCarousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-banner-img,
    .hero-carousel .carousel-item img {
        height: 340px !important;
        min-height: 340px !important;
        max-height: 340px !important;
    }

    .hero-ribbon,
    .hero-ribbon-center {
        min-width: 230px !important;
        padding: 12px 16px !important;
    }

    .hero-ribbon h1,
    .hero-one-line-text {
        font-size: 1.45rem !important;
    }
}

/* Celulares pequeños */
@media (max-width: 375px) {

    .main-header,
    .main-header .navbar,
    .nav-container {
        min-height: 68px !important;
    }

    .navbar-collapse {
        top: 68px !important;
    }

    .hero-carousel-section {
        margin-top: 68px !important;
    }

    .brand-logo,
    .brand-logo-large {
        width: 74px !important;
        height: 48px !important;
    }

    .hero-carousel,
    #solidaHeroCarousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-banner-img,
    .hero-carousel .carousel-item img {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }

    .hero-ribbon,
    .hero-ribbon-center {
        min-width: 210px !important;
    }

    .hero-ribbon h1,
    .hero-one-line-text {
        font-size: 1.25rem !important;
    }
}
/* =========================================================
   HERO MOBILE - EFECTO ESCRITURA IGUAL QUE EN PC
========================================================= */

@media (max-width: 991px) {

    .typewriter-text {
        display: inline-block !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        width: 0 !important;
        max-width: 100% !important;
        border-right: 3px solid #ffffff !important;
        vertical-align: bottom !important;
    }

    #solidaHeroCarousel .carousel-item.active .typewriter-text,
    .hero-carousel .carousel-item.active .typewriter-text {
        animation:
            typingMobile 1.9s steps(32, end) forwards,
            cursorBlink 0.7s step-end infinite !important;
    }

    @keyframes typingMobile {
        from {
            width: 0;
        }
        to {
            width: 100%;
        }
    }
}

/* En celulares pequeños, texto un poco menor para que no se corte */
@media (max-width: 430px) {
    .hero-ribbon h1,
    .hero-one-line-text {
        font-size: 1.25rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 375px) {
    .hero-ribbon h1,
    .hero-one-line-text {
        font-size: 1.12rem !important;
    }

    .typewriter-text {
        border-right: 2px solid #ffffff !important;
    }
}
/* =========================================================
   HERO - TYPEWRITER REAL EN PC Y CELULAR
   PEGAR AL FINAL DE light.css
========================================================= */

#solidaHeroCarousel .typewriter-text,
#solidaHeroCarousel .typewriter-text.typing-finished {
    display: inline !important;
    width: auto !important;
    max-width: 100% !important;

    overflow: visible !important;
    white-space: normal !important;

    animation: none !important;
    border-right: none !important;

    opacity: 1 !important;
    visibility: visible !important;
}

/* Cursor de escritura */
#solidaHeroCarousel .typewriter-text.typing-writing::after,
#solidaHeroCarousel .typewriter-text.typing-done::after {
    content: "" !important;
    display: inline-block !important;

    width: 3px !important;
    height: 1em !important;

    background: #ffffff !important;
    margin-left: 4px !important;

    vertical-align: -2px !important;
    animation: heroCursorBlinkReal 0.7s step-end infinite !important;
}

@keyframes heroCursorBlinkReal {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Ajuste para celular */
@media (max-width: 991px) {
    #solidaHeroCarousel .hero-one-line-text,
    #solidaHeroCarousel .hero-ribbon h1 {
        white-space: normal !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }

    #solidaHeroCarousel .typewriter-text {
        white-space: normal !important;
    }
}

/* Celulares pequeños */
@media (max-width: 430px) {
    #solidaHeroCarousel .hero-one-line-text,
    #solidaHeroCarousel .hero-ribbon h1 {
        font-size: 1.35rem !important;
    }
}

@media (max-width: 375px) {
    #solidaHeroCarousel .hero-one-line-text,
    #solidaHeroCarousel .hero-ribbon h1 {
        font-size: 1.18rem !important;
    }

    #solidaHeroCarousel .typewriter-text.typing-writing::after,
    #solidaHeroCarousel .typewriter-text.typing-done::after {
        width: 2px !important;
    }
}

