/*
 * Hoja de Estilos para la Landing Page de la API ATMs CLOUD JUMAPA
 * Diseño por: Asistente de IA
 * Fecha: 2023
*/

/* --- Definición de Colores de la Marca (basado en tu imagen) --- */
:root {
    --color-maroon-primary: #A02142; /* Pantone 7420 C */
    --color-maroon-dark: #691B31;    /* Pantone 7421 C */
    --color-tan-primary: #BC955B;     /* Pantone 465 C */
    --color-tan-light: #DDC9A3;      /* Pantone 468 C */
    --color-gray-dark: #6F7271;      /* Pantone 424 C */
    --color-gray-light: #98989A;     /* Pantone COOL GRAY 7 C */
    --color-text-primary: #333333;
    --color-background: #f4f5f7;
    --color-card-background: #ffffff;
    --color-success: #28a745;
}

/* --- Reseteo y Estilos Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* --- Contenedor Principal --- */
.container {
    max-width: 800px;
    width: 100%;
    background-color: transparent;
    text-align: center;
}

/* --- Header --- */
.api-header {
    margin-top: 30px;
    margin-bottom: 30px;
}

.api-header .logo {
    max-width: 250px;
    margin-bottom: 20px;
}

.api-header h1 {
    color: var(--color-maroon-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 10px;
}

.api-header h1 strong {
    color: var(--color-maroon-primary);
}

.api-header .subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-dark);
}

.api-header .subtitle a {
    color: var(--color-maroon-primary);
    text-decoration: none;
    font-weight: 600;
}

.api-header .subtitle a:hover {
    text-decoration: underline;
}

/* --- Tarjetas de Contenido (Cards) --- */
.card {
    background-color: var(--color-card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    margin-bottom: 30px;
    text-align: left;
}

.card h2 {
    color: var(--color-maroon-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-tan-light);
    padding-bottom: 10px;
}

/* --- Botón de Llamada a la Acción (CTA) --- */
.cta-button {
    display: inline-block;
    background-color: var(--color-maroon-primary);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--color-maroon-dark);
    transform: translateY(-2px);
}

/* --- Sección de Información del Servidor --- */
#server-info .server-status {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#server-info .status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#server-info .status-item span:first-child {
    font-weight: 600;
    color: var(--color-gray-dark);
}

.server-time {
    font-family: monospace;
    color: var(--color-text-primary);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.status-badge.status-ok {
    background-color: var(--color-success);
}

/* --- Footer --- */
.api-footer {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--color-gray-light);
}

.api-footer a {
    color: var(--color-gray-dark);
    text-decoration: none;
    font-weight: 600;
}

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

/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    body {
        padding: 15px;
        align-items: flex-start; /* Alinea al inicio en móviles */
    }

    .api-header h1 {
        font-size: 2rem;
    }

    .api-header .subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 20px;
    }
    
    #server-info .status-item {
        flex-direction: column;
        align-items: flex-start;
    }
}