/**
 * BOTONES - CSS
 * estilos_botones.css
 * Estilos para botones con efectos hover y modo oscuro
 */

/* BOTÓN BASE */
.boton {
    background: #ab4f1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    position: relative;
    height: auto;
    font-size: 1em;
    padding: 12px 24px;
    cursor: pointer;
    transition: 800ms ease all;
    outline: none;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.boton:hover {
    background: #fff;
    color: #000000;
}

.boton:before,
.boton:after {
    content: '';
    position: absolute;
    height: 2px;
    width: 0;
    background: #ab5b1a;
    transition: 800ms ease all;
}

.boton:before {
    top: 0;
    right: 0;
}

.boton:after {
    bottom: 0;
    left: 0;
}

.boton:hover:before,
.boton:hover:after {
    width: 100%;
}

/* ÍCONO DENTRO DEL BOTÓN */
.boton i {
    font-size: 1.2em;
    margin-right: 8px;
    vertical-align: middle;
}

/* BOTÓN ROJO */
.boton-rojo {
    background: linear-gradient(to bottom, #ff5f5f, #c0392b);
    color: white;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.4);
    transition: 800ms ease all;
}

.boton-rojo:hover {
    background: #fff;
    color: #2b89c0;
}

.boton-rojo:before,
.boton-rojo:after {
    background: #c0392b;
}

/* BOTÓN OSCURO */
.boton-oscuro {
    background: #354a63;
    color: #fff;
}

.boton-oscuro:hover {
    background: #ffffff;
    color: #6c4545;
}

/* MODO OSCURO - BOTÓN BASE */
body.modo-oscuro .boton {
    background-color: #861f1f;
    color: #eee;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

body.modo-oscuro .boton:hover {
    background: #e0d6b7;
    color: #2c2c2c;
}

body.modo-oscuro .boton:before,
body.modo-oscuro .boton:after {
    background: #9c6e38;
}

/* MODO OSCURO - BOTÓN ROJO */
body.modo-oscuro .boton-rojo {
    background: linear-gradient(to bottom, #8a2929, #5c1c1c);
    box-shadow: 0 4px 10px rgba(92, 28, 28, 0.7);
    color: #f5dcdc;
}

body.modo-oscuro .boton-rojo:hover {
    background: #e0d6b7;
    color: #5a5a5a;
}

body.modo-oscuro .boton-rojo:before,
body.modo-oscuro .boton-rojo:after {
    background: #661616;
}

/* MODO OSCURO - BOTÓN OSCURO */
body.modo-oscuro .boton-oscuro {
    background: #1f2a3a;
    color: #c9d1d9;
}

body.modo-oscuro .boton-oscuro:hover {
    background: #cad2d3;
    color: #4a3e3e;
}