.contingut-pagina {
    max-width: 1300px; /* Aumenté el ancho máximo */
    margin: 0 auto;
    padding: 40px 20px;
    background-color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.contingut-pagina > h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fbbc05;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
    position: relative;
}

.contingut-pagina > h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #fbbc05 0%, #f0b800 100%);
    border-radius: 2px;
}

.contingut-pagina > h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #70757a;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.4;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 5px solid #fbbc05;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contingut-html {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 50px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e8eaed;
}

.contingut-html h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 25px;
    margin-top: 40px;
    position: relative;
    padding-left: 20px;
}

.contingut-html h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 30px;
    background: linear-gradient(135deg, #fbbc05 0%, #34a853 100%);
    border-radius: 3px;
}

.contingut-html h3:first-child {
    margin-top: 0;
}

.contingut-html p {
    margin-bottom: 20px;
    color: #333;
    text-align: justify;
}

.contingut-html strong {
    color: #1a73e8;
    font-weight: 600;
}

.contingut-html ul {
    background: #f8f9fa;
    padding: 25px 30px 25px 20px; /* Reducir padding izquierdo */
    border-radius: 8px;
    border-left: 4px solid #34a853;
    margin: 30px 0;
    text-align: left;
    list-style: none;
}

.contingut-html ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px; /* Reducir espacio */
    color: #333;
    text-align: left; /* Asegurar alineación izquierda */
    list-style-position: inside; /* Puntos dentro del flujo */
}

.contingut-html ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #34a853;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 5px; /* Espacio entre punto y texto */
}

.contingut-html ol {
    background: #f8f9fa;
    padding: 25px 30px 25px 40px; /* Más espacio izquierdo para números */
    border-radius: 8px;
    border-left: 4px solid #34a853;
    margin: 30px 0;
    text-align: left;
}

.contingut-html ol li {
    margin-bottom: 10px;
    color: #333;
    text-align: left;
    list-style-position: inside; /* Números dentro del flujo */
    padding-left: 5px; /* Pequeño espacio después del número */
}

.contingut-html hr {
    border: none;
    height: 2px;
    background: linear-gradient(135deg, #fbbc05 0%, #34a853 100%);
    margin: 40px 0;
    border-radius: 1px;
}

.imatge-container {
    display: inline-block;
    width: 30%; /* Usamos porcentaje en lugar de píxeles fijos */
    max-width: 400px;
    min-width: 300px;
    margin: 25px 1%; /* Reduje los márgenes horizontales */
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e8eaed;
    vertical-align: top;
}

/* Contenedor padre para centrar las imágenes */
.contingut-pagina {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.imatge-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.imatge-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.imatge-container:hover img {
    transform: scale(1.02);
}

.imatge-container figcaption {
    font-size: 0.9rem;
    color: #70757a;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    font-style: italic;
    line-height: 1.4;
    border-top: 3px solid #fbbc05;
    margin: 0;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tipografía base mejorada */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Responsive Design mejorado */
@media (max-width: 1280px) {
    .imatge-container {
        width: 380px;
        margin: 20px 5px;
    }
}

@media (max-width: 1200px) {
    .imatge-container {
        width: 45%; /* Mostrar 2 imágenes por fila */
        margin: 20px 2.5%;
    }
}
    .imatge-container img {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .imatge-container {
        width: calc(50% - 20px);
        max-width: 400px;
        margin: 20px 10px;
    }
    
    .imatge-container img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .imatge-container {
        width: 90%;
        max-width: 400px;
        margin: 15px auto;
        display: block;
    }
    
    @media (max-width: 600px) {
    .imatge-container {
        width: 95%;
    }
    
    .contingut-pagina > h1 {
        font-size: 2.2rem;
    }
    
    .contingut-pagina > h2 {
        font-size: 1.4rem;
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .contingut-html {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .contingut-html h3 {
        font-size: 1.5rem;
        margin-top: 30px;
    }
    
    .imatge-container {
        width: 90%;
        max-width: 400px;
        margin: 15px auto;
        display: block;
    }
    
    .imatge-container img {
        height: 300px;
    }
    
    .imatge-container figcaption {
        padding: 15px;
        font-size: 0.85rem;
        min-height: 70px;
    }
}

@media (max-width: 600px) {
    .contingut-pagina {
        padding: 20px 10px;
    }
    
    .contingut-pagina > h1 {
        font-size: 1.8rem;
    }
    
    .contingut-pagina > h2 {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .contingut-html {
        padding: 20px;
    }
    
    .contingut-html h3 {
        font-size: 1.3rem;
        padding-left: 15px;
    }
    
    .contingut-html h3::before {
        width: 4px;
        height: 25px;
    }
    
    .contingut-html ul {
        padding: 20px 25px;
    }
    
    .imatge-container {
        width: 95%;
        margin: 15px auto;
    }
    
    .imatge-container img {
        height: 250px;
    }
    
    .imatge-container figcaption {
        padding: 15px;
        font-size: 0.8rem;
        min-height: 60px;
    }
}

/* Estilos de componentes específicos */
.feature-box {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    height: 100%;
    transition: all 0.3s ease;
    border-top: 4px solid #fbbc05;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature-box h4 {
    color: #1a73e8;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-box p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.article-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid #F1C50E;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #202124;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #70757a;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Contenido principal del artículo */
.article-content {
    padding: 60px 0;
    background-color: white;
}

.intro-highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 5px solid #F1C50E;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.intro-highlight h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.intro-highlight .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    color: #333;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 50px;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
}

/* Sección de características */
.features-section {
    background-color: #f8f9fa;
    padding: 50px 40px;
    border-radius: 12px;
    margin: 50px 0;
}

.features-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border-top: 3px solid #F1C50E;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-card h4 {
    color: #202124;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    color: #70757a;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.image-gallery {
    margin: 10px 0;
}

.gallery-item {
    margin-bottom: 30px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-caption {
    padding: 10px;
    background: white;
}

.gallery-caption p {
    font-size: 1rem;
    color: #70757a;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* Conclusión del artículo */
.article-conclusion {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 50px;
    border-left: 5px solid #1976d2;
}

.conclusion-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1565c0;
    margin: 0;
    line-height: 1.4;
}

.yellow {
    color: #F1C50E;
    position: relative;
    display: inline-block;
}

.yellow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #F1C50E;
    border-radius: 2px;
}