/* reset basico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* header */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
}

.user-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-menu a {
    color: white;
    text-decoration: none;
}

.user-menu a:hover {
    text-decoration: underline;
}

/* navegacion */
.navigation {
    background-color: #34495e;
    padding: 10px 0;
}

.nav-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu li a:hover {
    background-color: #2c3e50;
}

/* footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* pagina de login */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-box .logo h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 10px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #667eea;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: #5568d3;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.login-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* pagina de inicio */
.home-container {
    background: white;
    border-radius: 8px;
    padding: 40px;
    margin-top: 20px;
}

.hero {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.hero h1 {
    font-size: 48px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #666;
}

.features {
    padding: 40px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.quick-actions {
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.quick-actions h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-btn {
    padding: 20px;
    background: #667eea;
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background: #5568d3;
}

/* pagina de error */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f5f5f5;
}

.error-container {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error-container h1 {
    font-size: 36px;
    color: #c33;
    margin-bottom: 20px;
}

.error-message {
    margin: 30px 0;
    font-size: 18px;
    color: #666;
}

/* badges de estado */
.b-pub {
    background-color: rgba(34, 197, 94, 0.1);
    color: rgb(21, 128, 61);
}

.b-borr {
    background-color: rgba(251, 191, 36, 0.1);
    color: rgb(161, 98, 7);
}

.b-rev {
    background-color: rgba(59, 130, 246, 0.1);
    color: rgb(29, 78, 216);
}

/* ── page builder: columnas responsivas ──────────────────────── */
/* min-width: 0 evita que el grid item se expanda al ancho de su contenido */
.bc-cols-grid > div {
    min-width: 0;
}
@media (max-width: 767px) {
    .bc-cols-grid {
        grid-template-columns: 1fr !important;
    }
    .bc-cols-grid > div {
        grid-column: auto !important;
    }
}

/* ── grillas de componentes responsivas ──────────────────────── */
.bc-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .bc-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .bc-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.bc-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 480px) {
    .bc-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .bc-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .bc-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.bc-masonry {
    columns: 1;
    column-gap: 1rem;
}
@media (min-width: 480px) {
    .bc-masonry { columns: 2; }
}
@media (min-width: 768px) {
    .bc-masonry { columns: 3; }
}
/* ── carousel ──────────────────────────────────────── */
.bc-carousel-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.bc-carousel-track,
.bc-blog-track {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.bc-carousel-track::-webkit-scrollbar,
.bc-blog-track::-webkit-scrollbar {
    display: none;
}
.bc-carousel-item {
    flex-shrink: 0;
    width: 300px;
    scroll-snap-align: start;
}
@media (max-width: 767px) {
    .bc-carousel-track,
    .bc-blog-track {
        gap: 0 !important;
    }
    .bc-carousel-item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

/* ── icon grid list component ──────────────────────────────── */
.bc-icon-grid-list {
    width: 100%;
}
.bc-icon-grid-list .igl-container {
    width: 100%;
}
.bc-icon-grid-list .igl-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.bc-icon-grid-list .igl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}
.bc-icon-grid-list .igl-icon i {
    font-size: 1.75rem;
    line-height: 1;
}
.bc-carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}