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

:root {
    /* Escala tipográfica que crece en pantallas grandes */
    --fs-xs: clamp(0.78rem, 0.8vw, 0.95rem);
    --fs-sm: clamp(0.92rem, 1vw, 1.08rem);
    --fs-md: clamp(1.05rem, 1.35vw, 1.25rem);
    --fs-lg: clamp(1.35rem, 2vw, 2rem);
    --fs-xl: clamp(1.8rem, 3vw, 3.2rem);

    --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 1.1vw 2.4vw 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: clamp(0.92rem, 0.35vw + 0.84rem, 1.02rem);
    padding: 8px 12px;
    border-radius: 999px;
}

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


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

.hero {
    min-height: 60vh;
    background: url('https://nube.mudanzasfmq.com.mx/index.php/s/wi9THN4niL2oeTm/download') center center / cover no-repeat;
    background-attachment: fixed;

    background-position: center -20vh;

    overflow: hidden;
    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: var(--pad-lg) 4vw var(--pad) 4vw;
    text-align: center;
}

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

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

/* =====================================================
   BLOQUE BLANCO 1
   ===================================================== */


.segundo-bloque-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--pad);
}

.segundo-bloque-content h2 {
    font-size: var(--fs-lg);
    margin-bottom: var(--pad);
    color: var(--c-primary);
    text-transform: uppercase;
}

.segundo-bloque-content p {
    font-size: var(--fs-md);
    font-weight: var(--fs-xl);
}

.segundo-bloque-content ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    margin-top: -3vh;
}

.segundo-bloque-content li {
    margin-bottom: 1vh;
    display: flex;
    align-items: center;
    text-align: left;
    font-size: var(--fs-md);
    color: var(--c-primary);
    font-weight: 600;
}

.segundo-bloque-content li::before {
    content: '✔';
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5vh;
    height: 2.5vh;
    border-radius: 50%;
    background-color: var(--c-primary);
    color: var(--c-bg);
    margin-right: 1vh;
}

.segundo-bloque-trabajo,
.segundo-bloque-preparacion {
    flex: 1;
    min-width: 0;
}

/* =====================================================
   BLOQUE con imagen
   ===================================================== */

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

    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;

    padding: var(--pad);
}


.bloque-imagen-content {
    margin: 0 auto;
    position: relative;
    max-width: 70vw;
}

.bloque-imagen h2 {
    font-size: var(--fs-lg);
    margin-bottom: var(--pad);
    line-height: 1.5;
    padding-bottom: 1vh;
    text-transform: uppercase;
}

.bloque-imagen p {
    margin: 0;
    font-size: var(--fs-md);
    line-height: 1.5;
    padding-bottom: 3vh;
}

.imagen {
    background-size: cover;
    position: relative;
    color: #fff
}

.imagen .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6)
}

.imagen .contenido {
    position: relative
}

/* =====================================================
   BLOQUE con tabla
   ===================================================== */

.color {
    background: var(--c-primary);
    color: white;
    padding-bottom: var(--pad-lg);
}

.color h2 {
    font-size: var(--fs-lg);
    line-height: 1.5;
    padding-bottom: 1vh;
    text-transform: uppercase;
}

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

.tabla {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    align-items: start;
}

.tabla ul {
    padding-top: 0vh;
    margin-top: 0vh;
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
    display: block;
    text-align: left;
}

.tabla li::before {
    content: '●';
    position: absolute;
    left: 0.5vw;
}

.tabla div {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tabla h3 {
    width: 100%;
    min-height: var(--pad-lg);
    padding-bottom: 0vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: var(--pad-sm);
}

/* =====================================================
   BLOQUE con galeria
   ===================================================== */

.blanco {
    margin: 0 auto;
    gap: var(--pad);
}

.blanco h2 {
    font-size: var(--fs-lg);
    margin-bottom: var(--pad);
    color: var(--c-primary);
    text-transform: uppercase;
}

.blanco p {
    font-size: var(--fs-md);
    font-weight: var(--fs-xs);
    padding-bottom: var(--pad-sm);
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px
}

.galeria img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Botón de opiniones */
.boton-gal {
    display: inline-block;
    margin: 3vw auto 0;
    width: min(80vw, 34rem);
    padding: 1vw 1.4vw;
    background: var(--c-accent);
    color: white;
    text-decoration: none;
    border-radius: 0.9vw;
    font-weight: 700;
    font-size: var(--fs-sm);
    box-shadow: var(--c-shadow);
}

/* =====================================================
   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: white;
    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);
}

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

@media (max-width: 1200px) {

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

    /*zoom al fondo del hero si la pantalla es chica*/
    .hero {
	background-attachment: fixed;

        background-position: 80% -20vh;
        background-size: 150vh;
    }

}

/* Tablet */
@media (max-width: 900px) {

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

}


/* Teléfono */
@media (max-width: 600px) {
    header {
        padding: 3vw 4vw;
    }

    nav {
        gap: 2vw;
    }

    nav a {
        padding: 1vw 1.5vw;
    }

    .hero {
	background-attachment: fixed;

        padding: 18vw 5vw 12vw;
    }

    .bloque {
        padding: 14vw 4vw;
    }

    .bloque p {
        max-width: 92vw;
    }

    .segundo-bloque-content {
        flex-direction: column;
        gap: 6vw;
    }

    /* Segundo bloque (el blanco) */
    .segundo-bloque-trabajo,
    .segundo-bloque-preparacion {
        width: 100%;
    }

    /* 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: 461px) {

    .tabla ul {
        padding-top: 0vh;
        margin-top: 0vh;
        list-style-type: disc;
        list-style-position: inside;
        padding-left: 0;
        margin: 0 auto;
        display: block;
        text-align: left;
    }

    .tabla li::before {
        content: '';
        position: absolute;
        left: 0.5vw;
    }

    nav a {
        width: min-content;
    }

}
