/* Restabliment i estils base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Text només per lectors de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    /* evita salts de línia */
    border: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #E4F9F2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    overflow-x: hidden;
}

/* Contenidor i disseny */
.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

.content-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    animation: fadeIn 0.8s ease-out;
}

/* Logotip */
/* Logotip */
picture {
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo {
    max-width: 450px;
    width: 100%;
    /* Assegura que es pot reduir */
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

/* Contenidor de vídeo */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    animation: fadeIn 1.8s ease-out forwards;
    animation-delay: 0.8s;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tipografia */
.info-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 1s;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #004C97;
    letter-spacing: -0.02em;
}

p {
    font-size: 1.25rem;
    color: #004C97;
    font-weight: 500;
}

a {
    color: #004C97;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* Animacions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustaments responsius */
@media (max-width: 600px) {
    .container {
        padding: 0;
    }

    .content-stack {
        padding: 2rem 0;
        gap: 2rem;
    }

    .logo,
    .info-text {
        padding: 0 2rem;
    }

    .video-wrapper {
        border-radius: 0;
    }

    .logo {
        max-width: 240px;
    }

    h1 {
        font-size: 1.75rem;
    }

    p {
        font-size: 1.1rem;
    }
}
