@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;
}

/* Contenedor principal */
.contenido {
    width: 100%;
    max-width: 1100px;
    margin: clamp(20px, 4vw, 40px) auto;
    padding: clamp(20px, 4vw, 40px);
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Título principal */
.titol-principal {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #111827;
    margin-bottom: clamp(16px, 3vw, 24px);
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Texto */
.text {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.75;
    color: #374151;
    max-width: 75ch;
}

/* Columnas */
.columnas-contenido {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 4vw, 32px);
    margin-top: 24px;
}

.col {
    padding: clamp(20px, 4vw, 32px);
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.col::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent, #ff5722), #ff8a65);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.col:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.col:hover::before {
    transform: scaleX(1);
}

/* Títulos secundarios */
.titol {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
    line-height: 1.3;
}

.col .text {
    font-size: clamp(0.95rem, 2vw, 1rem);
    color: #4b5563;
    line-height: 1.7;
}

/* Hero */
.contenido.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
}

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

/* Artículos */
.contenido article {
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contenido article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.contenido article h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

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

/* CTA */
.contenido article .ver-mas {
    align-self: flex-start;
    margin-top: 6px;
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contenido article .ver-mas:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 87, 34, 0.3);
}

/* Accesibilidad movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
