:root {
    --text-color: #111111;
    --text-muted: #555555;
    --bg-color: #ffffff;
    --card-shadow: 0 8px 30px rgba(0,0,0,0.06);
    --font-family: 'Montserrat', sans-serif;
    --brand-yellow: #f8cf00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: #fff;
    /* Un borde inferior sutil para darle una leve jerarquía */
    border-bottom: 2px solid #f1f1f1; 
}

.logo-container .logo {
    height: 70px; /* Ajuste adaptado a logos de tipo letrero */
    object-fit: contain;
}

.datetime {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-color);
    text-align: center;
    flex: 1; /* Para que quede centrado entre el logo y el botón admin */
}

/* Botón admin discreto */
.admin-container {
    width: 70px; 
    display: flex; 
    justify-content: flex-end;
}

.admin-btn {
    background: transparent;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-btn:hover {
    color: var(--text-muted);
    background-color: #f5f5f5;
}

/* Body / Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.price-card {
    text-align: center;
    background-color: #fff;
    padding: 2.5rem 4rem;
    border-radius: 20px;
}

.penca-block {
    box-shadow: var(--card-shadow);
    border-top: 5px solid var(--brand-yellow);
}

.penca-block h2 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.penca-block .price {
    font-size: 8rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
}

.dedo-block {
    padding: 1.5rem 3rem;
    opacity: 0.9;
}

.dedo-block h3 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.dedo-block .price-small {
    font-size: 5rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
}

/* Modal / Configuración */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.modal h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.2rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.input-group input:focus {
    border-color: #555;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    transition: opacity 0.2s;
}

.btn-cancel {
    background-color: #f1f1f1;
    color: var(--text-color);
}

.btn-cancel:hover {
    background-color: #e4e4e4;
}

.btn-save {
    background-color: var(--text-color);
    color: #ffffff;
}

.btn-save:hover {
    opacity: 0.8;
}

/* Responsividad general */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1.5rem;
        position: relative;
    }
    .datetime {
        margin-top: 0.5rem;
        font-size: 1rem;
    }
    .admin-container {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    .penca-block h2 { font-size: 2rem; }
    .penca-block .price { font-size: 5.5rem; }
    .dedo-block h3 { font-size: 1.8rem; }
    .dedo-block .price-small { font-size: 4rem; }
    .footer { font-size: 1.2rem; }
}
