/* ==================== MAIN ====================*/
.content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
    padding: 10px;
    max-width: 100%;
}

/* Fuerza que las secciones no se salgan del body */
.first-section,
.second-section,
.third-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ==================== SECCION PRINCIPAL ==================== */

/* Contenedor primera sección */
.first-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: clamp(300px, 80vh, 650px);
}

/* Título ON DEMAND */
.first-title {
    font-family: "Prompt", sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 8vw, 9rem);
    margin-bottom: 15px;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #d1d5db, #f3f4f6, #d1d5db);
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);

    animation: fadeInSlideUp 1s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

/* Título SOLUTIONS */
.second-title {
    font-family: "Prompt", sans-serif;
    font-weight: 600;
    font-size: clamp(3rem, 9vw, 10rem);
    letter-spacing: 3px;
    background: linear-gradient(94deg, #1186d9, #2fabd4, #3275cd, #7b5fff);
    background-clip: text;
    color: transparent;

    animation: fadeInSlideUp 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}


/* Texto frase portada */
.third-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-top: 50px;
    margin-bottom: 20px;

    animation: fadeInSlideUp 1s ease-out forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

/* Animación de fade in y slide up */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==================== SECCION SERVICIOS ==================== */

/* Contenedor segunda sección */
.second-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    text-align: center;
}

/* Titulo seccion */
.second-section-title {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    margin-bottom: 30px;
}

/* Contenedor slider servicios */
.slider-container {
    overflow: hidden;
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 60px;

    /* Fade lateral */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* Slider servicios */
.slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    width: calc(250px * 16 + 30px * 15); /*Calcula el ancho total del slider basado en el número de tarjetas*/
    animation: scroll 60s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.slider-track:hover {
    animation-play-state: paused;
}

/* Tarjetas */
.second-section-card {
    background: rgba(80, 80, 80, 0.2);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    padding: 20px;
    width: clamp(180px, 20vw, 250px);
    min-height: clamp(200px, 25vw, 300px);
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
}

/* Iconos */
.second-section-card i {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Texto de las tarjetas */
.second-section-card h3 {
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    color: #ffffff;
    margin-bottom: 10px;
}

.second-section-card p {
    font-size: clamp(0.8rem, 1vw, 1rem);
    color: #dddddd;
    line-height: 1.7;
}

/* Colores especificos para cada icono */
.fa-code {
    color: #4a6eff;
}

.fa-rectangle-ad {
    color: #3f90b6;
}

.fa-cart-shopping {
    color: #c47d3a;
}

.fa-gears {
    color: #4ca58f;
}

.fa-sitemap {
    color: #7a6ebf;
}

.fa-headset {
    color: #697c9d;
}

.fa-chart-simple {
    color: #a0a85c;
}

.fa-rocket {
    color: #b05c8e;
}


/* Boton "Descubre nuestros planes" */
.second-section-button button {
    padding: 15px 25px;
    font-size: 1.1rem;
    color: #fff;
    background-color: transparent;
    border-color: #007bff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.second-section-button button:hover {
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
    transform: scale(1.04);
}


.second-section-button a {
    text-decoration: none;
    color: inherit;
    margin-right: 10px;
}

/* ==================== SECCION NOSOTROS ==================== */

/* Contenedor tercera sección */
.third-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(30px, 5vw, 80px);
    text-align: center;
    min-height: clamp(300px, 50vh, 500px);
}

/* Títulos */
.third-section h2 {
    font-size: clamp(1.5rem, 3vw, 3rem);
    margin-bottom: 30px;
    color: #c1c1c1
}

.third-section h3 {
    font-size: clamp(1rem, 2vw, 2.1rem);
    font-weight: 200;
    margin-bottom: 45px;
    color: #dbdbdb;
}

/* Botón */
.third-section a {
    text-decoration: none;
    font-size: 1.5rem;
    padding: 12px 25px;
    color: #fff;
    background-color: transparent;
    border: 2px solid #007bff; 
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block; 
}

.third-section a:hover {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
    transform: scale(1.04);
}


/* ==================== MEDIA QUERIES ====================*/

/* Ajustes para pantallas pequeñas (Móviles) */

@media (max-width: 768px) {

    /* Primera sección */
    .first-section {
        padding: 5px;
        min-height: 500px;
    }

    .first-title {
        font-size: 3.1rem; 
    }

    .second-title {
        font-size: 3.5rem; 
    }

    .third-title {
        font-size: 1.3rem; 
    }

    /* Segunda sección */
    .second-section {
        padding: 20px;
    }

    .second-section-title {
        font-size: 1rem; 
    }

    .second-section-button button {
        font-size: 0.9rem; 
        padding: 10px 20px;
    }

    /* Tercera sección*/
    .third-section {
        padding: 20px;
    }

    .third-section h2 {
        font-size: 1.5rem;
    }

    .third-section h3 {
        font-size: 1rem; 
    }

    .third-section a {
        padding: 10px 18px;
        border-radius: 20px;
        font-size: 1rem; 
    }
}

/* Ajustes para pantallas muy grandes (Escritorios) */

@media (min-width: 1920px) {
    .first-section {
        min-height: 800px;
    }

    .first-title {
        font-size: 9.8rem; 
    }

    .second-title {
        font-size: 11rem; 
        margin-bottom: 20px;
    }
    
    .third-title {
        font-size: 2.2rem; 
    }
}