
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050a13;
    color: #ffffff;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    transition: background-color 0.3s;
}

/* ENCABEZADO */
header {
    background: #0b1524;
    border-bottom: 1px solid #25c9ff;
    padding: 22px 8%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 27px;
}

.navbar span {
    color: #35caff;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-weight: bold;
}

.navbar a:hover {
    color: #35caff;
}

/* PRESENTACIÓN */
.presentacion {
    text-align: center;
    padding: 55px 20px 35px;
}

.presentacion h2 {
    font-size: 34px;
    margin: 12px 0;
}

.presentacion p {
    color: #a8bed0;
}

.presentacion p:first-child {
    color: #35caff;
    font-size: 12px;
    letter-spacing: 3px;
}

/* CONTENEDOR */
.contenedor {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* TARJETAS */
.tarjeta {
    background: linear-gradient(145deg, #101e30, #09111d);
    border: 2px solid #35caff;
    border-radius: 12px;
    padding: 25px;
    min-height: 230px;
    box-shadow: 0 0 12px rgba(53, 202, 255, 0.15);
    transition: 0.3s;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 22px rgba(53, 202, 255, 0.4);
}

.tarjeta h3 {
    color: #e6f7ff;
    margin-bottom: 15px;
    font-size: 20px;
}

.tarjeta p {
    color: #b2c2d2;
    line-height: 1.6;
    margin-bottom: 15px;
}

.centro {
    text-align: center;
}

#contador {
    color: #35caff;
    font-size: 55px;
    margin: 20px 0;
}

/* BOTONES */
button {
    padding: 11px 17px;
    border: none;
    border-radius: 7px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin: 4px 4px 4px 0;
    transition: 0.2s;
}

button:hover {
    filter: brightness(1.2);
    transform: scale(1.04);
}

.azul {
    background: #087fd4;
}

.verde {
    background: #078b71;
}

.rojo {
    background: #d33a59;
}

.gris {
    background: #596779;
}

/* CAMPOS */
label {
    display: block;
    margin: 12px 0 8px;
    color: #cbd5e1;
}

input {
    width: 100%;
    padding: 13px;
    background: #07101d;
    border: 1px solid #34536a;
    border-radius: 7px;
    color: white;
    font-size: 15px;
    outline: none;
    margin-bottom: 15px;
}

input:focus {
    border-color: #35caff;
    box-shadow: 0 0 8px #35caff55;
}

/* RESULTADOS */
#mensaje, #saludo, #validacion {
    color: #35caff;
    margin-top: 12px;
    font-weight: bold;
}

#descuento {
    color: #fbbf24;
}

#total {
    color: #34d399;
}

/* TARJETA INTERNA */
.ejemplo {
    background: #07111e;
    border: 1px solid #34536a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.ejemplo h4 {
    margin-bottom: 10px;
}

/* PIE DE PÁGINA */
footer {
    text-align: center;
    padding: 30px;
    color: #91a4b7;
    border-top: 1px solid #203e52;
    margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .contenedor {
        grid-template-columns: 1fr;
    }

    .navbar h1 {
        font-size: 21px;
    }

    .navbar a {
        margin-left: 10px;
        font-size: 13px;
    }

    .presentacion h2 {
        font-size: 27px;
    }
}
