/* Estilos aplicados a la página de inicio de PHLoops */



/* ========================================================= */

/* services */

.services-section {
    padding: 4rem 2rem;
    width: 100%;
}

.services-container {
    padding: 4rem 0;
    max-width: 100%;
    margin: 0 auto;
}

.services-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.services-header>h2 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.services-header>h3 {
    margin-bottom: 3rem;
    color: var(--color-text);
}

.services-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4rem;
    margin-right: 2rem;
}

.services-nav-btn {
    background-color: var(--color-bg-secondary);
    color: var(--color-primary);
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.services-carrousel {
    overflow: hidden;
    width: 100%;
}

.services-wrapper {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    transition: transform 0.5s ease;
}

.service-card {
    flex: 0 0 calc((100% - 6rem) / 4);
    height: 620px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.service-card .service-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Oscurece la parte inferior para mejorar la lectura */
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.55) 30%,
            rgba(0, 0, 0, 0.15) 60%,
            transparent 100%);
}

.service-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;
    padding: 2rem;
    color: white;

    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.1) 90%, transparent 100%);

    display: flex;
    flex-direction: column;
    justify-content: flex-end;


}

.service-content>h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin: 0 0 1rem 0;
    color: var(--color-primary);
    text-align: center;
}

.service-content p {
    margin: 0 0 .5rem 0;
    color: rgba(255, 255, 255, .9);
}

.service-content p,
.service-content h3 {
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 0, 0, 0.15);
    cursor: default;
}

.service-content a {
    display: inline-block;
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-top: 1rem;
    text-decoration: none;
    border-radius: 4px;
    align-self: center;

    transition: color 0.4s ease;
}

.service-content a:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

.services-cta-container {
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-top: 2rem;
}

.services-cta-container>h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.services-cta {
    position: relative;
    overflow: hidden;

    display: inline-block;
    color: var(--color-text);
    border: 2px solid var(--color-primary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;

    transition: color 0.4s ease, transform 0.25s ease;
}

.services-cta::before {
    content: "";
    position: absolute;
    inset: 0;

    background: var(--color-primary);

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;

    z-index: -1;
}

.services-cta:hover {
    color: var(--color-text);
    text-decoration: none;
    transform: translateY(-4px);
}

.services-cta:hover::before {
    transform: scaleX(1);
}

/* HIGHLIGHTS */

.highlights-section {
    padding: 4rem 2rem;
    width: 100%;
}

.highlights-section>h2 {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    color: var(--color-primary);
}

.highlights-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.highlights-grid {
    columns: 3 250px;
    column-gap: 10px;
    grid-auto-flow: dense;
}

.photo-item {
    max-height: 450px;
    overflow: hidden;
    animation: fadeIn linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 20%;

}

.highlight-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-image:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.highlights-footer {
    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.highlights-link {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-text);
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    text-decoration: none;
    border-radius: 4px;

    transition: background-color 0.6s ease, color 0.4s ease, transform 0.25s ease;
}

.highlights-link:hover {
    background-color: var(--color-primary);
    color: var(--color-text);
    text-decoration: none;
    transform: translateY(-4px);
}

/* SOBRE NOSOTROS */

.about-us-section {
    padding: 4rem 2rem;
    width: 100%;
}

.about-us-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;

}

.about-us-content {
    padding-right: 2rem;
}

.about-us-content h2 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.about-us-content p {
    margin-bottom: 2rem;
    color: var(--color-text);
}

.about-us-image-container {
    max-width: 500px;
}

.about-us-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* TESTIMONIOS */

.testimonials-section {
    padding: 4rem 2rem;
    width: 100%;
}

.testimonials-container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.testimonials-container h2 {
    margin-bottom: 2rem;
    color: var(--color-primary);
}

/* POLAROIDS */

.testimonials-polaroid-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.polaroid {
    background-color: whitesmoke;
    border-radius: 2px;
    overflow: hidden;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    box-shadow: 0 4px 6px rgba(8, 7, 7, 0.1);
}

.polaroid.vertical {
    width: 350px;
    height: 500px;
}

.polaroid.horizontal {
    width: 400px;
    height: 320px;
}

.polaroid-image {
    width: 100%;
    height: 70%;
    object-fit: cover;
    object-position: top;
}

.polaroid-image.centered {
    object-position: center;
}

.polaroid-caption {
    margin-top: 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.polaroid-text {
    color: #333;
    width: 100%;
}

.polaroid-author {
    font-weight: bold;
    color: var(--color-primary);
}

.polaroid:nth-child(1) {
    transform: rotate(-3deg);
}

.polaroid:nth-child(2) {
    transform: rotate(3deg);
}

.polaroid:nth-child(3) {
    transform: rotate(6deg);
}

.polaroid:nth-child(4) {
    transform: rotate(-2deg);
    font-size: 0.9rem;

}

/* CTA */

.cta-section {
    padding: 4rem 2rem;
    width: 100%;
    background-color: var(--color-bg);
    text-align: center;
}

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

.cta-section p {
    margin-bottom: 2rem;
    color: var(--color-text);
}

.cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text);
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;

    transition: background-color 0.6s ease, color 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.cta-button:hover {
    background-color: var(--color-bg);
    box-shadow: inset 0 0 15px color-mix(in srgb, var(--color-primary) 40%, transparent);
    color: var(--color-primary);
    text-decoration: none;
    transform: translateY(-4px);
}

/* MEDIA QUERIES */

@media (max-width: 1024px) {
    .services-section {
        padding: 0;
    }

    .services-header h3,
    .services-header h2 {
        text-align: center;
    }

    .services-container {
        padding: 2rem 1rem;
    }

    .service-card {
        flex-basis: calc((100% - 2rem) / 3);
    }

    .services-cta-container {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .service-card {
        flex-basis: calc((100% - 1rem) / 2);
    }

    .about-us-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-us-content {
        padding-right: 0;
    }

    .about-us-image-container {
        width: min(300px, 70%);
        margin: 0 auto;
    }

    .about-us-image {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 50%;
    }

    .testimonials-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .testimonials-polaroid-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .polaroid:nth-child(1) {
        transform: rotate(0);
    }

    .polaroid:nth-child(2) {
        transform: rotate(0);
    }

    .polaroid:nth-child(3) {
        transform: rotate(0);
    }

    .polaroid:nth-child(4) {
        transform: rotate(0);
    }

}

@media (max-width: 480px) {
    .service-card {
        flex-basis: 100%;
    }

    .polaroid.horizontal {
        width: 90%;
        height: auto;
    }

    .polaroid.vertical{
        width: 90%;
        height: auto;
    }
}