html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Remove all shadows globally */
* {
    box-shadow: none !important;
    text-shadow: none !important;
}

body {
    font-family: 'Barlow', Arial, sans-serif;
    background: linear-gradient(90deg, #3D4644 20%, #070707 100%);
    background-size: cover;
    color: #3d4543;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* SVG background overlay at 30% opacity */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('/ccb-15.svg') repeat left center;
    background-size: auto 20vh;
    opacity: 0.3; /* 30% visibility */
    pointer-events: none;
    z-index: 0;
}

/* Asegurar que los elementos principales tomen todo el ancho */
.community-section,
.projects-section,
.clients-section,
.counters-section,
.testimonials-section,
.cta-section,
.header,
.footer-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    position: relative;
    z-index: 1; /* stay above body::before overlay */
}

/* Reglas específicas para el banner */
.hero-section.banner-only {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50% !important;
    margin-right: -50% !important;
    box-sizing: border-box;
}

/* Animación de aparición para bloques principales */
.ccb-fadein {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(12px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1), filter 0.7s cubic-bezier(0.4,0,0.2,1);
}
.ccb-fadein.visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

@keyframes fadein-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {
    body {
        background-size: auto 20vh, cover;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0.5rem;
        border-radius: 1.2rem;
    }
    .header .logo-img {
        height: 32px;
        margin-bottom: 0.5rem;
    }
    .header .d-flex.align-items-center {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    .header .btn-main {
        margin-left: 0.5rem;
        padding: 0.4rem 1rem;
        font-size: 1rem;
    }
    .services-title, .contact-title, .hero-title {
        font-size: 1.4rem !important;
    }
    .service-card, .stat-card {
        border-radius: 0.8rem !important;
    }
    .community-number {
        font-size: 1.3rem !important;
    }
    .community-text {
        font-size: 1rem !important;
    }
    .hero-buttons {
        flex-direction: column !important;
        gap: 0.7rem;
    }
    .hero-buttons .btn-main, .hero-buttons .btn-outline {
        width: 100%;
        margin: 0 0 0.7rem 0 !important;
        padding: 0.7rem 0;
        font-size: 1rem;
    }
    .hero-image {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
        margin: 0 auto;
    }
    .hero-image img {
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
        border-radius: 1rem;
    }
    .stat-card {
        position: static !important;
        margin: 0.7rem auto 0 auto !important;
        width: 100%;
        max-width: 350px;
        box-sizing: border-box;
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
        /* Eliminar left, right, transform */
        left: unset !important;
        right: unset !important;
        transform: unset !important;
    }
    .stat-card {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        bottom: 0.5rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .hero-content, .hero-image {
        margin-bottom: 1.2rem;
    }
    .service-card, .stat-card {
        margin-bottom: 1rem !important;
    }
    .community-section {
        gap: 1.2rem;
    }
    .hero-section {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 0.8rem !important;
    }
    .hero-desc {
        font-size: 1rem !important;
        margin-bottom: 1.2rem !important;
    }
    .hero-buttons {
        flex-direction: column !important;
        gap: 0.7rem !important;
        align-items: center !important;
    }
    .hero-buttons .btn-main, .hero-buttons .btn-outline {
        width: 100%;
        margin: 0 0 0.7rem 0 !important;
        padding: 0.7rem 0;
        font-size: 1rem;
    }
    .hero-image {
        position: relative;
        width: 100%;
        max-width: 100vw;
        margin: 0 auto 2.5rem auto;
        display: block;
    }
    .hero-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 1.2rem;
    }
    .stat-card {
        position: absolute !important;
        left: 50% !important;
        bottom: -18px !important;
        transform: translateX(-50%) !important;
        width: 90%;
        max-width: 320px;
        margin: 0;
        box-shadow: 0 4px 24px rgba(61,69,67,0.13);
        z-index: 2;
        border-radius: 1rem;
    }
    .hero-content {
        margin-top: 2.5rem;
        text-align: center;
    }
    .hero-title {
        font-size: 3.2rem;
        font-weight: 700;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    .hero-desc {
        font-size: 1.4rem;
        color: #3d4543;
        margin-bottom: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column !important;
        gap: 0.7rem !important;
        align-items: center !important;
        width: 100%;
    }
    .hero-buttons .btn-main, .hero-buttons .btn-outline {
        width: 100%;
        margin: 0 !important;
        padding: 0.8rem 0;
        font-size: 1rem;
        border-radius: 2rem;
    }
    .footer-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 600px) {
    body::before {
        background-size: auto 10vh;
    }
    body {
        background-repeat: repeat, no-repeat;
        background-size: auto 10vh, cover;
        background-position: left top, left top;
    }
    .header {
        padding: 0.5rem 0.2rem;
        border-radius: 0.7rem;
    }
    .header .logo-img {
        height: 26px;
    }
    .header .btn-main {
        font-size: 0.95rem;
        padding: 0.3rem 0.7rem;
    }
    .services-title, .contact-title, .hero-title {
        font-size: 1.1rem !important;
    }
    .service-card, .stat-card {
        border-radius: 1.2rem !important;
    }
    .community-number {
        font-size: 1rem !important;
    }
    .community-text {
        font-size: 0.9rem !important;
    }
    .hero-buttons .btn-main, .hero-buttons .btn-outline {
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }
    .hero-section {
        margin-bottom: 1rem !important;
    }
    .hero-content, .hero-image {
        margin-bottom: 0.7rem;
    }
    .service-card, .stat-card {
        margin-bottom: 0.6rem !important;
    }
    .hero-section {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .hero-title {
        font-size: 2.2rem !important;
        margin-bottom: 1.1rem !important;
        font-weight: 700;
    }
    .hero-desc {
        font-size: 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }
    .hero-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
        width: 100%;
    }
    .hero-buttons .btn-main, .hero-buttons .btn-outline {
        width: 100%;
        margin: 0 !important;
        padding: 0.7rem 0;
        font-size: 0.95rem;
        border-radius: 2rem;
    }
    .hero-image {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 2rem auto;
        display: block;
    }
    .hero-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 0.8rem;
    }
    .stat-card {
        position: absolute !important;
        left: 50% !important;
        bottom: -14px !important;
        transform: translateX(-50%) !important;
        width: 96%;
        max-width: 240px;
        margin: 0;
        box-shadow: 0 4px 18px rgba(61,69,67,0.13);
        z-index: 2;
        border-radius: 0.7rem;
    }
    .footer-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }
} 