/* =====================================================
   BASE GENERAL
   ===================================================== */

:root {
    --fs-xs: clamp(0.78rem, 0.25vw + 0.72rem, 0.92rem);
    --fs-sm: clamp(0.92rem, 0.35vw + 0.84rem, 1.02rem);
    --fs-md: clamp(1.05rem, 0.45vw + 0.95rem, 1.18rem);
    --fs-lg: clamp(1.45rem, 1vw + 1.1rem, 2rem);
    --fs-xl: clamp(2rem, 2vw + 1.2rem, 3rem);

    --pad-sm: clamp(2vh, 1vh, 1vh);
    --pad: clamp(4vh, 2vh, 1vh);
    --pad-lg: clamp(6vh, 3vh, 1vh);

    --c-primary: #003366;
    --c-secondary: #001f3f;
    --c-accent: #007BFF;
    --c-bg: #f5f9ff;
    --c-white: #ffffff;
    --c-text: #1c2430;
    --c-muted: #5f6b7a;
    --c-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: var(--c-bg);
    color: var(--c-text);

    /* Barra de scroll general con estilo más limpio */
    scrollbar-width: thin;
    scrollbar-color: #9aa7b6 #dfe6ee;
}

/* Scrollbar global estilo fino */
body::-webkit-scrollbar {
    width: 0.75rem;
}

body::-webkit-scrollbar-track {
    background: #dfe6ee;
}

body::-webkit-scrollbar-thumb {
    background: #9aa7b6;
    border-radius: 999px;
    border: 0.18rem solid #dfe6ee;
}

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


.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8vw;
}

.logo-container img {
    height: clamp(2.1rem, 3vw, 3.1rem);
    width: auto;
    display: block;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    transition: 0.3s;
    z-index: 1000;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: var(--c-primary);
    font-weight: 700;
    font-size: var(--fs-sm);
    padding: 8px 12px;
    border-radius: 999px;
}

nav a:hover {
    background: rgba(0, 123, 255, 0.08);
}

/* =====================================================
   HERO
   ===================================================== */

.hero {
    min-height: 100vh;
    background: url('https://nube.mudanzasfmq.com.mx/index.php/s/wi9THN4niL2oeTm/download') center center / cover no-repeat;
    /* CLAVE */
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
}

.hero-content {
    position: relative;
    max-width: 70vw;
}

.hero h2 {
    margin: 0 0 1vw;
    font-size: var(--fs-xl);
    line-height: 1.05;
}

.hero p {
    margin: 0;
    font-size: var(--fs-md);
    line-height: 1.5;
}

/* =====================================================
   BLOQUES
   ===================================================== */

.bloque {
    padding: 72px 28px;
    text-align: center;
}

.bloque h2 {
    margin: 0 0 14px;
    font-size: var(--fs-lg);
    line-height: 1.15;
}

.bloque p {
    max-width: 860px;
    margin: 0 auto 30px;
    font-size: var(--fs-sm);
    line-height: 1.65;
    color: var(--c-muted);
}

.color {
    background: var(--c-primary);
    color: white;
    padding-left: var(--pad-sm);
    padding-right: var(--pad-sm);
}

.color p {
    color: rgba(255, 255, 255, 0.86);
}

/* =====================================================
   CARRUSEL: NUESTRAS MANIOBRAS
   - 3 imágenes visibles
   - imagen central destacada
   - laterales grises, pequeñas y detrás
   ===================================================== */
.carousel {
    width: min(1280px, 1fr);
    margin: 0 auto;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 16px;
}

.carousel-viewport {
    width: 100%;
    height: clamp(320px, 42vw, 520px);
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(460px, 70vh);
    max-width: 460px;
    height: auto;
    max-height: 78%;
    object-fit: cover;
    box-shadow: var(--c-shadow);
    opacity: 0.22;
    filter: grayscale(100%) brightness(0.7);
    transform: translate(-50%, -50%) scale(0.74);
    transition: all 0.5s cubic-bezier(.22, 1, .36, 1);
    z-index: 1;
    border-radius: 18px;
}

.carousel-track img.active {
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
}

.carousel-track img.prev {
    left: 28%;
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.82);
    z-index: 2;
}

.carousel-track img.next {
    left: 72%;
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.82);
    z-index: 2;
}

.carousel-buttons {
        display: flex;
        justify-content: center;
        gap: 18px;
}

.carousel-arrow {
    background: transparent;
    border: none;
    color: rgba(120, 120, 120, 0.95);
    font-size: clamp(2.2rem, 3.2vw, 3.5rem);
    line-height: 1;
    cursor: pointer;
    padding: 0;
    user-select: none;
    transition: transform 0.2s ease, color 0.2s ease;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
}

/* =====================================================
   COLLAGE DE VEHÍCULOS
   - 3 columnas
   - separación uniforme
   - imágenes tipo collage
   ===================================================== */


.columna-vehiculo {
    width: 100%;
}

.vehiculos {
    width: min(1fr, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: var(--pad-sm);
    padding: 0;
}

.columna-vehiculo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin: 0;
}

.columna-vehiculo h3 {
    margin: 0 0 14px;
    font-size: var(--fs-md);
    color: white;
    text-align: center;
}

.galeria-columna {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.vehiculo-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

.galeria-columna img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 0;
    
    padding-bottom: var(--pad-sm);
}

/* =====================================================
   INSUMOS: TARJETAS HORIZONTALES
   ===================================================== */

.scroll-x {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 1.2vw;
    padding: 1vw 1vw 1.5vw;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--c-accent) #e5e7eb;
}

.scroll-x::-webkit-scrollbar {
    height: 1.2rem;
}

.scroll-x::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 999px;
}

.scroll-x::-webkit-scrollbar-thumb {
    background: var(--c-accent);
    border-radius: 999px;
    border: 0.18rem solid #e5e7eb;
}

.insumo-card {
    flex: 0 0 clamp(14rem, 22vw, 18rem);
    scroll-snap-align: center;
    background: #ffffff;
    border-radius: 1.4vw;
    box-shadow: var(--c-shadow);
    padding: 1vw;
    text-align: center;
}

.insumo-titulo {
    margin: 0 0 0.8vw;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--c-text);
}

.insumo-card img {
    width: 100%;
    height: clamp(10rem, 18vw, 14rem);
    object-fit: cover;
    border-radius: 1vw;
    display: block;
}

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

.opiniones-grid::-webkit-scrollbar {
    width: 0.7rem;
}

.opiniones-grid::-webkit-scrollbar-track {
    background: #dfe6ee;
    border-radius: 999px;
}

.opiniones-grid::-webkit-scrollbar-thumb {
    background: #9aa7b6;
    border-radius: 999px;
}

.opiniones-grid {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    padding: 4px;
}

.opinion {
    background: white;
    color: black;
    padding: 20px 18px;
    border-radius: 18px;
    box-shadow: var(--c-shadow);
    text-align: left;
    border: 1px solid rgba(0, 51, 102, 0.08);
}

.opinion h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #0f172a;
}

.opinion small {
    display: block;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.88rem;
}

.opinion p {
    margin: 0;
    color: #1f2937;
    font-size: 0.97rem;
    line-height: 1.65;
}

/* Botón de opiniones */
.btn-opinion {
    display: inline-block;
    margin: 34px auto 0;
    width: min(420px, 90%);
    padding: 14px 18px;
    background: var(--c-accent);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: var(--fs-sm);
    box-shadow: var(--c-shadow);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-opinion:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

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

footer {
    background: var(--c-secondary);
    color: white;
    padding: 4vw 3vw 2vw;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3vw;
}

.footer-contacto,
.footer-redes-bloque {
    flex: 1;
    min-width: 0;
}

.footer-content h3 {
    margin: 0 0 1vw;
    font-size: var(--fs-md);
}

.footer-content p {
    margin: 0.4vw 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--fs-sm);
}

.redes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8vw;
    align-items: center;
}

.redes img {
    width: clamp(2rem, 3vw, 2.7rem);
    height: auto;
    display: block;
}

.copy {
    text-align: center;
    margin-top: 2vw;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--fs-xs);
}

/* =========================
   FAB CONTACTO
========================= */

.fab-contacto {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.fab-acciones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.fab-contacto.open .fab-acciones {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fab-principal {
    border: none;
    border-radius: 999px;
    background: var(--c-primary);
    color: var(--c-bg);
    padding: 14px 18px;
    min-width: 120px;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.fab-accion {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
    cursor: pointer;
}

/*imagenes de las burbujas*/
.fb1 {
    background: url('https://nube.mudanzasfmq.com.mx/index.php/s/6ad3eBPa2P3SpMA/download') center center / cover no-repeat;
}

.fb2 {

    background: url('https://nube.mudanzasfmq.com.mx/index.php/s/gJnycM9fpTAps2f/download') center center / cover no-repeat;
}

.fb3 {
    background: url('https://nube.mudanzasfmq.com.mx/index.php/s/mMEasHHG9M9qeBs/download') center center / cover no-repeat;
}

.fab-accion:hover,
.fab-principal:hover {
    transform: translateY(-2px);
}

@media (max-width:1200px){
    
    /*zoom al fondo del hero si la pantalla es chica*/
    .hero{
	background-attachment: fixed;
        background-position: 80%;
        background-size: 180vh;
    }

}

@media (max-width: 900px) {
    .vehiculos {
        grid-template-columns: 1fr;
    }

     .carousel {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .carousel-buttons {
        display: flex;
        justify-content: center;
        gap: 18px;
    }

    .carousel-viewport {
        height: clamp(260px, 62vw, 360px);
    }

    .carousel-track img {
        width: min(58vw, 320px);
        max-width: 320px;
        max-height: 78%;
    }

    .carousel-track img.prev {
        left: 18%;
    }

    .carousel-track img.next {
        left: 82%;
    }
}

@media (max-width: 600px) {
    .carousel {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .carousel-viewport {
        height: 72vw;
        min-height: 240px;
    }

    .carousel-track {
        min-height: 240px;
    }

    .carousel-track img {
        width: 58vw;
        max-height: 56vw;
    }

    .carousel-track img.prev {
        left: 16%;
    }

    .carousel-track img.next {
        left: 84%;
    }

    

    /* Footer: Redes debajo de Contactanos */
    .footer-content {
        flex-direction: column;
        gap: 6vw;
    }

    .footer-contacto,
    .footer-redes-bloque {
        width: 100%;
    }

    .redes {
        gap: 2.5vw;
    }

    .redes img {
        width: 11vw;
        max-width: 3rem;
    }

    .btn-opinion {
        width: 92vw;
        padding: 3.5vw 4vw;
        border-radius: 3vw;
    }

    .segundo-bloque-content ul {
        margin-top: 3vh;
    }

    .boton-gal {
        width: 92vw;
        padding: 3.5vw 4vw;
        border-radius: 3vw;
    }

    .bloque-imagen{
        background-position: 40% 50%;
    }

    .fab-contacto {
        right: 14px;
        bottom: 14px;
    }

    .fab-principal {
        min-width: 108px;
        padding: 12px 16px;
        font-size: 0.92rem;
    }

    .fab-accion {
        width: 48px;
        height: 48px;
    }

}

@media (max-width: 600px) {
    header {
        padding: 3vw 4vw;
    }

    nav {
        gap: 2vw;
    }

    nav a {
        padding: 1vw 1.5vw;
    }


    .hero {
	background-attachment: fixed;

        padding: 110px 16px 60px;
    }

    .bloque {
        padding: 56px 16px;
    }

    .carousel {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .carousel-viewport {
        height: 72vw;
        min-height: 260px;
    }

    .carousel-track img {
        width: 58vw;
        max-height: 56vw;
    }

    .carousel-track img.prev {
        left: 16%;
    }

    .carousel-track img.next {
        left: 84%;
    }

    .insumo-card {
        flex-basis: 58vw;
        padding: 12px;
    }

    .insumo-card img {
        height: 40vw;
    }

    .galeria-columna img {
        height: 1fr;
    }

    .opiniones-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    nav a {
        width: min-content;
    }
}
