/* BOMBCRETO - Index Styles */

/* Hero Section */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 1000px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(240, 90, 40, 0.9);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 5px;
    line-height: 1;
}

.hero-brand {
    display: block;
}

.hero-brand span {
    color: var(--color-orange);
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--color-light-gray);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}



/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-white);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* SERVICES GRID */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    border: 1px solid #eee;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--color-orange);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.service-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: #ddd;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-card-overlay {
    opacity: 1;
}

.service-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-icon {
    font-size: 2rem;
    color: var(--color-orange);
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-dark-gray);
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Service Card Carousel */

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--color-orange);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-orange);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}


/* Features Grid */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Solución específica para Tablet: "Atención Personalizada" */
@media (min-width: 601px) and (max-width: 1024px) {
    .features-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-item {
        flex: 0 1 340px;
        width: 100%;
    }
}

.feature-item {
    text-align: left;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #eee;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--color-orange);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.feature-item .icon-box {
    font-size: 2.5rem;
    color: var(--color-dark-gray);
    margin-bottom: 1.5rem;
}

.feature-item h4 {
    color: var(--color-orange);
    margin-bottom: 1rem;
}

/* Gallery Preview */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--color-white);
    z-index: 2;
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */

.cta-section {
    background-color: var(--color-orange);
    color: var(--color-white);
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.cta-section .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.cta-section .btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-orange);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        text-align: center;
        padding: 0 40px;
        max-width: 90%;
        margin: 0 auto;
    }

    .hero-brand {
        font-size: 4.5rem !important;
    }

    .hero-tagline {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.7;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 2rem;
    }

    .hero-buttons .btn {
        font-size: 1.1rem;
        padding: 1.1rem 2.8rem;
    }

    /* Stats section tablet */
    .stat-item h3.stat-number {
        font-size: 3.5rem;
    }

    .stat-item .stat-label {
        font-size: 1rem;
    }

    /* Services grid tablet */
    .services-grid {
        max-width: 800px;
        margin: 0 auto;
    }

    .service-card h4 {
        font-size: 1.8rem;
    }

    .service-card p {
        font-size: 1.1rem;
    }

    /* Features grid tablet */
    .feature-item h4 {
        font-size: 1.5rem;
    }

    .feature-item p {
        font-size: 1.1rem;
    }

    /* Section headings */
    .section h2 {
        font-size: 2.2rem;
    }

    .section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
    }

    .hero-brand {
        font-size: 2.5rem !important;
    }

    .hero-tagline {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
        padding: 0 10px;
    }

    .hero-buttons {
        gap: 10px;
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 80%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* Stats - much smaller on mobile */
    .stats-section {
        padding: 2.5rem 0;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-item {
        flex: 1 1 45%;
        max-width: 150px;
    }

    .stat-item h3.stat-number {
        font-size: 1.8rem;
    }

    .stat-item .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* ============================================
   CLIENTS MARQUEE SECTION (2-ROW)
   ============================================ */

.clients-section {
    background-color: var(--color-white);
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.clients-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

/* Gradient fade edges */
.clients-marquee-wrapper::before,
.clients-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-white) 0%, transparent 100%);
}

.clients-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-white) 0%, transparent 100%);
}

/* Row 1 - Scroll Left */
.clients-marquee {
    display: flex;
    gap: 2rem;
    animation: marqueeLeft 35s linear infinite;
    width: max-content;
    margin-bottom: 1.5rem;
}

/* Row 2 - Scroll Right */
.clients-marquee-reverse {
    display: flex;
    gap: 2rem;
    animation: marqueeRight 35s linear infinite;
    width: max-content;
}

.clients-marquee:hover,
.clients-marquee-reverse:hover {
    animation-play-state: paused;
}

@keyframes marqueeLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 150px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.client-logo:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--color-orange);
    box-shadow: 0 10px 30px rgba(240, 90, 40, 0.15);
    background: linear-gradient(135deg, #fff 0%, #fff5f2 100%);
}

.client-name {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-dark-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.client-logo:hover .client-name {
    color: var(--color-orange);
}

/* Mobile adjustments for marquee */
@media (max-width: 768px) {
    .clients-section {
        padding: 2rem 0;
    }

    .clients-marquee-wrapper::before,
    .clients-marquee-wrapper::after {
        width: 30px;
    }

    .client-logo {
        padding: 0.8rem 1.2rem;
        min-width: 120px;
    }

    .client-name {
        font-size: 0.65rem;
    }

    .clients-marquee,
    .clients-marquee-reverse {
        gap: 1rem;
        animation-duration: 25s;
    }

    /* Servicios section - reducir espacios */
    #servicios .text-center.mb-5 {
        margin-bottom: 1.5rem !important;
    }

    #servicios .text-center.mb-5 p {
        margin-bottom: 0;
    }

    .service-card-content {
        padding: 1.5rem 1.2rem;
    }

    .service-card h4 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    .service-card p {
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    /* Botones de servicios en una sola línea */
    #servicios .text-center.mt-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 0 !important;
        padding-bottom: 0;
    }

    #servicios .text-center.mt-5 .btn {
        white-space: nowrap;
        padding: 10px 18px;
        font-size: 0.85rem;
        width: auto;
    }

    /* Reducir padding inferior de la sección servicios */
    #servicios.section.bg-light {
        padding-bottom: 2rem;
    }

    /* Sección Por qué Bombcreto - reducir espacios */
    .section .text-center.mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .features-grid {
        gap: 12px;
    }

    .feature-item {
        padding: 1.2rem;
    }

    .feature-item .icon-box {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .feature-item h4 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .feature-item p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 0.3rem;
    }

    /* Botón de Por qué Bombcreto */
    .section>.container>.text-center.mt-5 {
        margin-top: 2rem !important;
        margin-bottom: 0 !important;
    }

    .section>.container>.text-center.mt-5 .btn {
        white-space: nowrap;
        padding: 10px 18px;
        font-size: 0.85rem;
        width: auto;
    }

    /* Reducir padding de la sección Por qué Bombcreto */
    .section:has(.features-grid) {
        padding-bottom: 2rem;
    }

    /* CTA Section móvil */
    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .cta-section .btn {
        white-space: nowrap;
        padding: 10px 18px;
        font-size: 0.85rem;
        width: auto;
    }
}