@import url("./header.css");
@import url("./main.css");
@import url("./footer.css");

/* Skip link */
.skip-link {
    position: absolute;
    top: -60px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 6px 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: #666;
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
    text-decoration: underline;
}

.contenido {
    width: 100%;
    max-width: 1100px;
    margin: 32px auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-wrap: balance;
}

/* Hero */
.contenido.hero {
    gap: 0;
    padding: 46px 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.hero-text {
    display: flex;
    flex-direction: column;
}

/* Sección título */
.section-title {
    text-transform: uppercase;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 700;
    color: #222;
}

.contenido.hero .titol-principal {
    font-size: clamp(1.9rem, 2.2vw, 2.3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #111827;
    max-width: 900px;
}

.contenido.hero .text {
    font-size: 1rem;
    line-height: 1.55;
    color: #4b5563;
    max-width: 760px;
}

/* Listado de tipos */
.contenido article {
    padding: 22px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;

    display: flex;
    flex-direction: column;
    gap: 12px;

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

.contenido article:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.contenido article h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.contenido article .text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.55;
    max-width: 65ch;
}

/* CTA */
.contenido article .ver-mas {
    align-self: flex-start;
    margin-top: 6px;

    background: var(--accent);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 6px;

    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;

    transition: background 0.25s ease, transform 0.15s ease;
}

.contenido article .ver-mas:hover {
    background: #d8491d;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .contenido {
        padding: 20px;
        margin: 20px auto;
        gap: 22px;
    }

    .contenido.hero {
        padding: 40px 24px;
    }

    .contenido.hero .titol-principal {
        font-size: clamp(1.9rem, 7vw, 2.4rem);
    }

    .contenido article {
        padding: 18px;
    }

    .contenido article h3 {
        font-size: 1.1rem;
    }
}
