/*-------------------
GLOBAL / RESETS
-------------------*/
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    
}

/*-------------------
Primera Sección de la Página de Inicio
-------------------*/
.home-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0 180px 0;
    background-color: #FAFAFA;
    position: relative;
    z-index: 2;
    width: 100vw;
    max-width: 100vw; /* evita que se amplíe más que la ventana */
    margin-left: calc(50% - 50vw); /* centra con respecto a viewport */
    overflow-x: hidden; /* para evitar scroll horizontal inesperado */
}
.home-banner-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* <--- esto evita que el hover afecte al otro */
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
    width: 100%;

}

.home-left {
    flex: 1 1 500px;
    max-width: 600px;
    margin: 0;
}

.promo {
    background-color: #fff;
    color: #1a73e8;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: inline-block;
}

.title-large {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.yellow {
    background: linear-gradient(to right, #FFD706 30%, #E1BA38 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.desc {
    font-size: 18px;
    color: #444;
    margin-bottom: 30px;
}

.home-buttons {
    display: flex;
    gap: 16px;
}

.home-buttons a {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
}

.btn-blue {
    background-color: #1C1C1C;
    color: white;
}

.btn-outline {
    border: 1px solid #dadce0;
    color: #3c4043;
    background: white;
}

.home-video {
    flex: 1 1 500px;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    position: relative;
    z-index: 3;
    display: flex;
    height: 100%;
    margin: 0;
    transition: border-radius 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.home-video:hover {
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

.home-video iframe {
    width: 100%;
    height: 315px;
    border: none;
}

/* Media Queries para Home Banner */
@media (max-width: 1200px) {
    .home-banner-content {
        padding: 0 40px;
        gap: 30px;
    }
    .home-left {
        flex-basis: 450px;
    }
    .home-video {
        flex-basis: 450px;
        transform: translateY(0);
    }
    .home-video:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 992px) {
    .home-banner-content {
        padding: 0 30px;
        gap: 20px;
    }
    .home-left {
        flex-basis: 400px;
    }
    .home-video {
        flex-basis: 400px;
        transform: translateY(0);
    }
    .home-video:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .home-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px 80px 20px;
    }
    .home-banner-content {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }
    .home-left {
        margin: 0 auto;
        max-width: 100%;
    }
    .home-buttons {
        justify-content: center;
    }
    .home-video {
        margin: 30px auto 0 auto;
        max-width: 100%;
        border-radius: 25px;
    }
    .home-video:hover {
        border-radius: 8px;
        transform: translateY(0);
    }
    .title-large {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .title-large {
        font-size: 30px;
    }
    .home-buttons {
        flex-direction: column;
        align-items: center;
    }
    .home-buttons a {
        width: 80%;
    }
}

/*-------------------
Segunda Sección de la Página de Inicio
-------------------*/
.gcp-section-container {
    background-color: #e4e4e4;
    padding: 60px 0 30px 0;
    position: relative;
    z-index: 1;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gcp-section-content-wrapper {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.gcp-tabs {
    display: flex;
    border-bottom: 1px solid #dadce0;
    margin-bottom: 30px;
    justify-content: flex-start;
    width: 100%;
    flex-shrink: 0;
}

.gcp-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #5f6368;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    margin-right: 5px;
}

.gcp-tab:last-child {
    margin-right: 0;
}

.gcp-tab:hover {
    color: #202124;
}

.gcp-tab.active {
    color: #1a73e8;
    font-weight: 600;
}

.gcp-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1a73e8;
}

.gcp-tab-content {
    display: none;
    width: 100%;
    min-height: 200px;
}

.gcp-tab-content.active {
    display: block;
}

.gcp-cards-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    padding-bottom: 10px;
}

.gcp-card {
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .03), 0 1px 3px 1px rgba(60, 64, 67, .1);
    flex-shrink: 0;
    flex-basis: 360px;
    max-width: 100%;
    min-height: 250px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.gcp-card-category {
    font-size: 12px;
    text-transform: uppercase;
    color: #5f6368;
    margin-bottom: 10px;
}

.gcp-card-title {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 15px;
    flex-grow: 1;
}

.gcp-card-image {
    text-align: center;
    margin-top: auto;
    padding-top: 15px;
}

.gcp-card-image img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Media Queries para Segunda Sección */
@media (max-width: 1200px) {
    .gcp-cards-container {
        flex-basis: 450px;
    }
}

@media (max-width: 900px) {
    .gcp-cards-container {
        flex-basis: 350px;
    }
}

@media (max-width: 768px) {
    .gcp-section-container {
        padding: 40px 0;
    }
    .gcp-tab-content {
        min-height: 300px;
    }
    .gcp-cards-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .gcp-card {
        flex-basis: 90%;
        min-height: 200px;
    }
}

/*-------------------
Sección de Videos (Parte de la Sección 2)
-------------------*/
.gcp-video-section {
    background-color: #EDEDED;
    padding: 60px 20px;
    text-align: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}

.gcp-video-section h2 {
    font-size: 32px;
    color: #202124;
    margin-bottom: 40px;
    font-weight: 500;
}

.gcp-video-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.gcp-video-flex-left {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
    text-align: left;
    color: #3c4043;
}

.gcp-video-flex-left h3 {
    font-size: 24px;
    color: #202124;
    margin-bottom: 15px;
}

.gcp-video-flex-left p {
    font-size: 16px;
    line-height: 1.6;
    color: #5f6368;
    margin-bottom: 20px;
}

.gcp-video-flex-left a {
    display: inline-block;
    background-color: #1a73e8;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.gcp-video-flex-left a:hover {
    background-color: #1565c0;
}

.gcp-video-flex-right {
    flex: 1;
    max-width: 700px;
    min-width: 320px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gcp-video-flex-right iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .gcp-video-flex-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .gcp-video-flex-left, .gcp-video-flex-right {
        max-width: 100%;
        min-width: auto;
        text-align: center;
    }
    .gcp-video-flex-right {
        padding-bottom: 0;
        height: 240px;
    }
    .gcp-video-flex-right iframe {
        height: 100%;
        width: 100%;
        position: static;
    }
}

/*-------------------
Tercera Sección de la Página de Inicio
-------------------*/
.video-option.active {
    color: #FFD706;
}

.video-section {
    background-color: #383838;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 2rem 0;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    color: white;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        text-align: center;
    }
    .video-left, .video-right {
        max-width: 100%;
        min-width: auto;
    }
    .video-right iframe {
        height: 240px;
    }
}

.video-left {
    flex: 1;
    color: white;
    max-width: 500px;
}

.video-left .label {
    font-size: 0.8rem;
    color: #b0b0b0;
    margin-top: 1.5rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.video-option {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.video-option:hover {
    color: white;
}

.video-option.active {
    color: #FFD706;
}

.video-right {
    flex: 1;
    min-width: 400px;
    max-width: 650px;
}

.video-right iframe {
    width: 100%;
    height: 360px;
    border-radius: 8px;
    border: none;
}

/*-------------------
Sección de Ventas
-------------------*/
.cloud-services-section {
    background-color: #FAFAFA;
    padding: 80px 40px;
    color: #3c4043;
    text-align: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}

.cloud-services-header {
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.cloud-services-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #202124;
}

.cloud-services-description {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #5f6368;
}

.cloud-services-button {
    display: inline-block;
    background-color: #1a73e8;
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cloud-services-button:hover {
    background-color: #1565c0;
    color: #FFFFFF;
}

.cloud-services-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.cloud-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cloud-card:hover {
    background-color: #f8f8f8;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.cloud-card-icon {
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloud-card-icon img {
    max-width: 100%;
    max-height: 100%;
}

.cloud-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #202124;
}

.cloud-card-text {
    font-size: 16px;
    line-height: 1.6;
    color: #5f6368;
    opacity: 1;
}

/* Media Queries para Cloud Services */
@media (max-width: 1200px) {
    .cloud-services-cards {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }
}

@media (max-width: 900px) {
    .cloud-services-cards {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .cloud-services-section {
        padding: 60px 20px;
    }
    .cloud-services-title {
        font-size: 36px;
    }
    .cloud-services-description {
        font-size: 18px;
    }
    .cloud-services-cards {
        grid-template-columns: 1fr;
    }
    .cloud-card {
        padding: 25px;
    }
    .cloud-card-title {
        font-size: 20px;
    }
    .cloud-card-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .cloud-services-title {
        font-size: 30px;
    }
    .cloud-services-description {
        font-size: 16px;
    }
    .cloud-services-button {
        padding: 12px 25px;
        font-size: 16px;
    }
}

/*-------------------
Video Section (Carrusel de Videos)
-------------------*/
       

        .video-section-container {
            background-color: #f8f9fa;  /* Si quieres mantener el fondo */
            width: 100vw;
            margin-left: calc(50% - 50vw);
            padding: 60px 20px;  /* Consistente con otras secciones */
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .video-section-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .video-section-header h1 {
            font-size: 2.5rem;
            color: #34a853;
            font-weight: 400;
            margin-bottom: 10px;
        }

        /* Contenedor del carrusel con overflow */
        .video-carousel-wrapper {
            position: relative;
            overflow: hidden;
            margin-bottom: 40px;
            padding-bottom: 20px;
            padding-top: 20px;
            /* Cálculo: (4 cards × 320px) + (3 gaps × 20px) + (padding lateral × 2) */
            width: 1340px; /* 1280px (cards) + 60px (gaps) = 1340px */
            margin: 0 auto; /* Centrar el carrusel */
        }


        .video-cases-grid {
            display: flex;
            gap: 20px;
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            width: max-content;
            padding: 0; /* Quitar padding ya que el ancho es fijo */
        }

        .video-case-card {
            flex: 0 0 320px;
            width: 320px;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .video-case-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        .video-card-player {
            position: relative;
            width: 100%;
            height: 200px;
            background: #000;
            overflow: hidden;
        }

        .video-thumbnail {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .video-case-card:hover .video-thumbnail {
            transform: scale(1.05);
        }

        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .video-play-button {
            position: absolute;
            width: 60px;
            height: 60px;
            background: rgba(255,255,255,0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            justify-content: center;
        }

        .video-play-button:hover {
            background: white;
            transform: scale(1.1);
        }

        .video-play-button::after {
            content: '▶';
            color: #333;
            font-size: 20px;
            margin-left: 3px;
        }

        .video-brand-logo {
            position: absolute;
            bottom: 15px;
            left: 15px;
            background: rgba(255,255,255,0.9);
            padding: 8px 12px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 14px;
            color: #333;
        }

        .video-duration {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
        }

        .video-card-content {
            padding: 20px;
        }

        .video-card-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: #333;
        }

        .video-card-description {
            color: #666;
            line-height: 1.5;
            margin-bottom: 15px;
            font-size: 14px;
        }

        .video-card-link {
            color: #1a73e8;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .video-card-link:hover {
            text-decoration: underline;
        }

        .video-card-link::after {
            content: '↗';
            font-size: 12px;
        }

        .video-navigation {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 30px;
        }

        .video-nav-button {
            width: 50px;
            height: 50px;
            border: 2px solid #e0e0e0;
            border-radius: 50%;
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-size: 20px;
            font-weight: bold;
            color: #666;
        }

        .video-nav-button:hover:not(.disabled) {
            border-color: #1a73e8;
            color: #1a73e8;
            background: #f8f9ff;
        }

        .video-nav-button.disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .video-nav-dots {
            display: flex;
            gap: 12px;
        }

        .video-nav-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #e0e0e0;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .video-nav-dot.active {
            background: #1a73e8;
            transform: scale(1.2);
        }

        .video-nav-dot:hover:not(.active) {
            background: #bbb;
        }

        @media (max-width: 1400px) {
            .video-carousel-wrapper {
                /* 3 cards: (3 × 320px) + (2 × 20px) = 1000px */
                width: 1000px;
            }
        }

        @media (max-width: 1024px) {
            .video-carousel-wrapper {
                /* 2 cards: (2 × 320px) + (1 × 20px) = 660px */
                width: 660px;
            }
            
            .video-case-card {
                flex: 0 0 320px;
                width: 320px;
            }
        }

        @media (max-width: 768px) {
            .video-carousel-wrapper {
                /* 1 card: 320px + padding */
                width: 340px;
            }
            
            .video-case-card {
                flex: 0 0 320px;
                width: 320px;
            }
        }

        @media (max-width: 480px) {
            .video-carousel-wrapper {
                /* 1 card más pequeña */
                width: 280px;
            }
            
            .video-case-card {
                flex: 0 0 260px;
                width: 260px;
            }
        }

        /* resources/css/app.css o public/css/style.css */

