* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
}

/* Tamaño del scroll */
body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

 /* Estilos barra (thumb) de scroll */
body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

body::-webkit-scrollbar-thumb:active {
  background-color: #999999;
}

body::-webkit-scrollbar-thumb:hover {
  background: #b3b3b3;
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

 /* Estilos track de scroll */
body::-webkit-scrollbar-track {
  background: #e1e1e1;
  border-radius: 4px;
}

body::-webkit-scrollbar-track:hover, 
body::-webkit-scrollbar-track:active {
  background: #d4d4d4;
}

/* Estilos del header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #2cc7ea;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header img {
    height: 50px;
    margin-right: 15px;
}

.header h1 {
    font-size: 24px;
    margin: 0;
    color: white;
}

.header p {
    font-size: 14px;
    margin: 5px 0 0;
    color: white;
}

/* Estilo del botón en el nav del header */
.header nav {
    margin-left: auto;
}

.header nav button {
    background-color: #1ea6d2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.header nav button:hover {
    background-color: #178bb6;
}

/* Estilos de la navegación */
.nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    background-color: #1ea6d2;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: #178bb6;
}

/* Contenedor general */
.container {
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

h1 {
    color: #2cc7ea;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

/* Formularios */
form input[type="text"], form input[type="number"], form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

button {
    background-color: #2cc7ea;
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1ea6d2;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #2cc7ea;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.message {
    color: #555;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

/* Estilos responsivos */
@media (max-width: 600px) {
    .header h1 {
        font-size: 20px;
    }

    .nav a {
        padding: 8px 12px;
    }

    h1 {
        font-size: 20px;
    }

    button {
        font-size: 14px;
    }
}

/* Métricas */
.metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    margin-top: 20px;
}

.metric {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 200px;
}

.metric h2 {
    color: #2cc7ea;
    font-size: 18px;
    margin-bottom: 10px;
}

.metric p {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

@media (max-width: 600px) {
    .metrics {
        flex-direction: column;
        align-items: center;
    }
}

/* Estilos del offerwall */
.offerwall {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.offer {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px 20px 70px 20px;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.offer-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.offer h2 {
    color: #2cc7ea;
    font-size: 18px;
    margin-bottom: 10px;
}

.offer p {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.offer-button {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #2cc7ea;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    position: absolute;
    bottom: 20px;
    transform: translateX(-50%);
}

.offer-button:hover {
    background-color: #1ea6d2;
}

/* Estilos de los formularios */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-container input[type="text"],
.form-container input[type="number"],
.form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.form-container button {
    display: inline-block;
    background-color: #2cc7ea;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-container button:hover {
    background-color: #1ea8d0;
}

/* Mensajes de éxito y error */
.success {
    color: green;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background-color: rgba(0, 0, 0, 0.5);
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    position: relative;
    text-align: left;
}

.modal-content h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.modal-content th, .modal-content td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.modal-content th {
    background-color: #2cc7ea;
    color: white;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}
