 
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    color: #222;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    padding: 50px 0 30px;
}

.site-header h1 {
    margin: 0 0 10px;
}

.site-header p {
    margin: 0;
    color: #666;
}

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

.collection-card {
    display: block;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
}

.collection-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

.collection-card h3 {
    margin: 15px 0 8px;
}

.collection-card p {
    margin: 0;
    color: #666;
}


/* Herramienta */

.tool {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tool-header {
    padding: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
}

.tool-title h1 {
    margin: 0;
}

.tool-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.tool-controls {
    width: min(700px, 100%);
    margin: 0 auto;
}

.tool-controls label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.tool-controls input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 18px;
}

.preview-area {
    flex: 1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
}

.preview {
    padding: 30px;
    text-align: center;
    font-size: 40px;
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tool-actions button {
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.tool-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


@media (max-width: 600px) {

    .tool-header {
        padding: 15px;
    }

    .tool-workspace {
        padding: 15px;
    }

    .preview {
        font-size: 30px;
    }

    .tool-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tool-actions button {
        width: 100%;
    }
}
 
