:root {
    --azul-utn: #003366;
    --gris-fondo: #f4f6f8;
    --gris-texto: #333;
    --gris-suave: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
    background: var(--gris-fondo);
    color: var(--gris-texto);
}

/* HEADER */
.header {
    background: #fff;
    border-bottom: 4px solid var(--azul-utn);
}

.header-content {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 60px;
}

.header-text h1 {
    color: var(--azul-utn);
    font-size: 1.6rem;
}

.header-text p {
    font-size: 0.95rem;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
}

/* FILTERS */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.filters input,
.filters select {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--gris-suave);
    font-size: 0.95rem;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card h3 {
    color: var(--azul-utn);
    margin-bottom: 10px;
}

.card p {
    flex-grow: 1;
    font-size: 0.95rem;
}

/* STATUS */
.status {
    display: inline-block;
    margin: 15px 0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.prod {
    background: #e6f4ea;
    color: #1e7f43;
}

.test {
    background: #fff4e5;
    color: #a16207;
}

.dev {
    background: #e8f0fe;
    color: #1a56db;
}

.produccion {
    background: #e6f4ea;
    color: #1e7f43;
}

.pruebas {
    background: #fff4e5;
    color: #a16207;
}

.desarrollo {
    background: #e8f0fe;
    color: #1a56db;
}


/* BUTTON */
.btn {
    text-decoration: none;
    background: var(--azul-utn);
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #00264d;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: #666;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-preview {
    background: #fff;
    border: 1px solid var(--azul-utn);
    color: var(--azul-utn);
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-preview:hover {
    background: #f0f5fa;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    padding: 20px;
}

.modal-content img,
.modal-content iframe {
    width: 100%;
    height: 550px;
    border-radius: 8px;
    border: none;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.modal-content iframe {
    width: 100%;
    height: 550px;
    border: none;
    border-radius: 8px;
    background: #fff;
}
/* ==========================
   PREVIEW RESPONSIVE
========================== */

#previewBody {
    position: relative;
    min-height: 300px;
}

.preview-content {
    display: none;
    width: 100%;
    height: 100%;
}

/* iframe responsive */
.preview-content iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 8px;
    background: #fff;
}

/* imagen responsive */
.preview-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ==========================
   SPINNER
========================== */

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 61, 124, 0.15);
    border-top-color: #003D7C; /* azul institucional */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 60px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



