:root {
    --color-main-dark: #081730;
    --color-main: #0b2645;
    --color-cyan: #2CC7EE;
    --color-lime: #62a930;
    --color-white: #ffffff;
}

body.bg-main {
    background: var(--color-main-dark);
    color: var(--color-white);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bg-main-dark {
    background-color: rgba(4, 11, 26, 0.96);
}

.bg-main-2 {
    background-color: #0b2645;
}

.glass-nav {
    backdrop-filter: blur(18px);
    /* background: linear-gradient(135deg, rgba(8, 23, 48, 0.96), rgba(8, 23, 48, 0.9)); */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.navbar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--color-cyan);
}

.btn-whatsapp,
.btn-whatsapp-lg {
    background-color: var(--color-lime);
    color: white;
    border-radius: 999px;
    padding-inline: 1.6rem;
    padding-block: 0.65rem;
    border: none;
}

.btn-whatsapp-lg {
    padding-block: 0.9rem;
    padding-inline: 2.1rem;
    font-weight: 600;
}

.btn-whatsapp:hover,
.btn-whatsapp-lg:hover {
    background-color: #6bb43b;
    color: #02130b;
}

.btn-outline-whatsapp {
    border-radius: 999px;
    border-color: #ffffff;
    color: white;
    background: var(--color-lime);
    transition:0.3s ease-in-out;
}

.btn-outline-whatsapp:hover {
    transform: scale(1.05);
    background: var(--color-lime);
}

.hero-section {
    position: relative;
    padding-top: 11rem;
    padding-bottom: 7rem;
    background-image: url("../img/landing/hero-vidrio-templado-maracaibo.webp");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-radius: 0 0 2.5rem 2.5rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(8 23 48) 0%, rgb(8 23 48) 28%, rgba(0, 0, 0, 0) 69%);
    z-index: 1;
}

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

.hero-title {
    font-size: clamp(2.4rem, 3.2vw + 1rem, 3.4rem);
    font-weight: 700;
}

.hero-subtitle {
    color: rgb(255 255 255 / 91%);
    max-width: 34rem;
}

.badge.bg-glass {
    background: rgba(44, 199, 238, 0.12);
    border-radius: 999px;
    border: 1px solid rgba(44, 199, 238, 0.6);
    color: var(--color-cyan);
    letter-spacing: 0.08em;
}

/* hero-image-wrapper / hero-main-image / hero-floating-card ya no se usan (hero ahora es background) */

.hero-metrics h3 {
    color: var(--color-cyan);
}

.section-title {
    font-size: 1.7rem;
    font-weight: 600;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 34rem;
    margin-inline: auto;
}

/* Animación por bloques grandes (secciones) */
.section-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bloques pequeños con delay escalonado */
.animate-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    padding: 1.4rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgb(11 47 99 / 98%), rgba(5, 19, 40, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.service-image {
    width: 100%;
    border-radius: 1rem;
    height: 180px;
    object-fit: cover;
}

.highlight-card {
    background: linear-gradient(145deg, rgb(20 102 221 / 98%), rgb(1 27 65 / 98%));
    border-color: rgba(44, 199, 238, 0.4);
}

.gallery-item {
    position: relative;
    border-radius: 1.2rem;
    overflow: hidden;
    background-color: #000;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 50%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.95;
}

.gallery-tag {
    position: absolute;
    left: 1rem;
    bottom: 0.9rem;
    z-index: 1;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(4, 11, 26, 0.95);
    color: rgba(255, 255, 255, 0.9);
}

.process-card {
    text-align: center;
    padding: 1.6rem 1.4rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgb(11 47 99 / 98%), rgba(5, 19, 40, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.process-icon {
    width: 72px;
    height: 72px;
}

.testimonial-card {
    padding: 1.6rem 1.4rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgb(11 47 99 / 98%), rgba(5, 19, 40, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
}

/* === Testimonios en formato video tipo TikTok === */
.tiktoks-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.tiktok-card {
    position: relative;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgb(11 47 99 / 98%), rgba(5, 19, 40, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 0.75rem 1rem;
    display: flex;
    flex-direction: column;
}

.tiktok-card-body {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #000;
}

.tiktok-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

@media (max-width: 991.98px) {
    .tiktoks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .tiktok-img {
        height: 280px;
    }
}

.tiktok-card-preview {
    position: relative;
}

.tiktok-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.tiktok-play-trigger {
    position: absolute;
    inset: 0;
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #fff;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.25s ease-out, transform 0.2s ease-out;
}

.tiktok-play-trigger__circle {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.tiktok-play-trigger__label {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tiktok-card:hover .tiktok-play-trigger {
    transform: translateY(-2px);
}

.tiktok-card-player {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out;
}

.tiktok-card-player.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.tiktok-card-player.is-loading .tiktok-video-overlay {
    opacity: 0;
}

.tiktok-card-preview.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.tiktok-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.tiktok-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tiktok-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), transparent 55%);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
}

.tiktok-card.is-playing:hover .tiktok-video-overlay,
.tiktok-card.is-paused .tiktok-video-overlay {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 767.98px) {
    .tiktok-card.is-playing .tiktok-video-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

.tiktok-play-toggle {
    border: none;
    background: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.tiktok-card.is-playing .tiktok-play-trigger {
    opacity: 0;
    pointer-events: none;
}

.tiktok-sound-toggle {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease-out, background 0.2s ease-out;
}

.tiktok-sound-toggle:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.9);
}

.tiktok-progress-wrap {
    position: relative;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.tiktok-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-lime));
    transition: width 0.1s linear;
}

.tiktok-title--card {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.tiktok-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 11, 26, 0.95);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.18s ease-out, background 0.2s ease-out, opacity 0.2s ease-out;
}

.tiktok-nav.prev {
    left: 0.25rem;
}

.tiktok-nav.next {
    right: 0.25rem;
}

.tiktok-nav:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(4, 11, 26, 1);
}

@media (max-width: 767.98px) {
    .tiktok-nav {
        display: none;
    }
}

.blog-card {
    border-radius: 1.3rem;
    overflow: hidden;
    background: linear-gradient(145deg, rgb(11 47 99 / 98%), rgba(5, 19, 40, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

.blog-thumb-wrapper {
    position: relative;
    overflow: hidden;
}

.blog-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

.blog-card:hover .blog-thumb {
    transform: scale(1.04);
}

.blog-body {
    padding: 1.2rem 1.25rem 1.4rem;
}

.blog-link {
    text-decoration: none;
    color: var(--color-white);
}

.blog-link:hover {
    color: var(--color-cyan);
}

.cta-wrapper {
    border-radius: 1.6rem;
    padding: 2rem 2.4rem;
    background-image: url("../img/landing/cta-whatsapp-background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cta-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.map-wrapper iframe {
    display: block;
}

.footer-main {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at top, rgba(44, 199, 238, 0.18), rgba(4, 11, 26, 0.98));
}

.footer-links li {
    margin-bottom: 0.25rem;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 6.5rem;
        padding-bottom: 3.5rem;
        background-position: center;
        border-radius: 0 0 1.8rem 1.8rem;
    }
}

