/* ================== RESET ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #0a0000, #160000);
    color: #fff;
    overflow-x: hidden;
}

/* ================== CONTAINER ================== */
.container {
    display: flex;
    min-height: 100vh;
}

/* ================== SIDEBAR ================== */
.sidebar {
    width: 260px;
    background: #0d0000;
    padding: 25px 20px;
    border-right: 1px solid rgba(255,0,0,0.2);
    box-shadow: 0 0 30px rgba(255,0,0,0.08);
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    transition: 0.4s ease;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #ff4d4d;
    text-shadow: 0 0 12px rgba(255,0,0,0.6);
}

.menu {
    list-style: none;
}

.menu li {
    padding: 15px 18px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: rgba(255,0,0,0.05);
    cursor: pointer;
    transition: 0.3s ease;
    border: 1px solid transparent;
}

.menu li:hover {
    background: rgba(255,0,0,0.15);
    border: 1px solid red;
    box-shadow: 0 0 20px rgba(255,0,0,0.4);
    transform: translateX(6px);
}

.menu li.active {
    background: rgba(255,0,0,0.2);
    border: 1px solid red;
}

.logout {
    border: 1px solid red;
    text-align: center;
}

.logout:hover {
    background: red;
    color: #fff;
}

/* BOTÓN CERRAR */
.close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: red;
    font-size: 22px;
    cursor: pointer;
}

/* ================== MAIN ================== */
.main {
    margin-left: 260px;
    padding: 40px;
    width: 100%;
}

/* HEADER */
.header {
    background: linear-gradient(145deg, #1a0000, #330000);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 35px;
    font-size: 22px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255,0,0,0.25);
}

/* CONTADORES */
.counters {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.box {
    flex: 1;
    background: linear-gradient(145deg, #140000, #2a0000);
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid rgba(255,0,0,0.15);
}

.box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255,0,0,0.4);
}

.box h3 {
    margin-bottom: 10px;
    color: #ff4d4d;
}

.box p {
    font-size: 28px;
    font-weight: bold;
}

/* PANEL */
.panel textarea {
    width: 100%;
    height: 250px;
    border-radius: 35px;
    padding: 25px;
    background: #120000;
    border: 1px solid rgba(255,0,0,0.4);
    color: #fff;
    resize: none;
    transition: 0.3s ease;
}

.panel textarea:focus {
    outline: none;
    border: 1px solid red;
    box-shadow: 0 0 20px red;
}

/* BOTONES */
.buttons {
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

button {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(145deg, #660000, #ff0000);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px red;
}

.btn-secondary {
    background: #1a0000;
    border: 1px solid red;
    color: red;
}

.btn-secondary:hover {
    background: red;
    color: white;
}

/* ================== MOBILE ================== */
.mobile-top {
    display: none;
    padding: 15px;
}

#menuToggle {
    background: rgba(255,0,0,0.2);
    border: 1px solid red;
    color: white;
    font-size: 20px;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
}

#menuToggle:hover {
    background: red;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .sidebar {
        left: -260px;
        z-index: 1000;
    }

    .sidebar.active {
        left: 0;
    }

    .main {
        margin-left: 0;
        padding: 25px;
    }

    .mobile-top {
        display: block;
    }

    .close-btn {
        display: block;
    }

    .counters {
        flex-direction: column;
    }

    .buttons {
        flex-direction: column;
    }
}
/***********************************************************/

/* ================== TITULO METALICO ================== */

.header {
    background: linear-gradient(180deg, #0a0000, #1a0000);
    padding: 30px;
    border-radius: 18px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid rgba(255,0,0,0.3);
    box-shadow: 
        inset 0 0 40px rgba(255,0,0,0.15),
        0 0 25px rgba(255,0,0,0.25);
}

/* TEXTO PRINCIPAL */
.metal-title {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(
        90deg,
        #400000,
        #ff1a1a,
        #ffffff,
        #ff1a1a,
        #400000
    );
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    text-shadow:
        0 0 10px rgba(255,0,0,0.6),
        0 0 20px rgba(255,0,0,0.4);
}

/* CHK MÁS INTENSO */
.metal-title span {
    color: #ff0000;
    -webkit-text-fill-color: #ff0000;
    text-shadow:
        0 0 15px red,
        0 0 30px rgba(255,0,0,0.8);
}

/* ANIMACION BRILLO METALICO */
@keyframes shine {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 300%;
    }
}

/***********************************

/* ================= COLORES POR TIPO ================= */

.box {
    position: relative;
    border: 2px solid rgba(255,0,0,0.2);
    transition: 0.3s ease;
}

/* APROBADAS - VERDE */
.aprobadas {
    border: 2px solid #00ff66;
    box-shadow: 0 0 20px rgba(0,255,100,0.2);
}

.aprobadas:hover {
    box-shadow: 0 0 35px rgba(0,255,100,0.6);
    transform: scale(1.05);
}

/* DECLINADAS - ROJO */
.declinadas {
    border: 2px solid #ff0000;
    box-shadow: 0 0 20px rgba(255,0,0,0.3);
}

.declinadas:hover {
    box-shadow: 0 0 35px rgba(255,0,0,0.7);
    transform: scale(1.05);
}

/* ERRORES - AMARILLO */
.errores {
    border: 2px solid #ffd000;
    box-shadow: 0 0 20px rgba(255,208,0,0.3);
}

.errores:hover {
    box-shadow: 0 0 35px rgba(255,208,0,0.7);
    transform: scale(1.05);
}

/**********************************************************

/* ================= ICONOS MENU IZQUIERDA ================= */

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.menu-icon {
    width: 22px;
    height: 22px;
    transition: 0.3s ease;
    animation: pulseGlow 2.5s infinite ease-in-out, floatIcon 3s infinite ease-in-out;
}

/* PULSO ROJO */
@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255,0,0,0.6));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 18px rgba(255,0,0,1));
        transform: scale(1.2);
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(255,0,0,0.6));
        transform: scale(1);
    }
}

/* FLOTACION SUAVE */
@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

/* HOVER MÁS FUERTE */
.menu-item:hover .menu-icon {
    filter: drop-shadow(0 0 25px #ff0000);
    transform: scale(1.35) rotate(8deg);
}

/******************************************

/* ================= RESULTADOS ================= */

.results-container {
    margin-top: 40px;
    background: linear-gradient(145deg, #120000, #1f0000);
    border: 1px solid rgba(255,0,0,0.4);
    border-radius: 18px;
    padding: 25px;
    display: none;
    box-shadow: 0 0 25px rgba(255,0,0,0.2);
    animation: fadeIn 0.4s ease;
}

.results-container h2 {
    margin-bottom: 15px;
    color: #ff4d4d;
    text-shadow: 0 0 10px red;
}

.results-box {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Cada resultado */
.result-item {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255,0,0,0.08);
    border-left: 4px solid red;
    animation: slideIn 0.3s ease;
}

.result-success {
    border-left: 4px solid #00ff66;
}

.result-error {
    border-left: 4px solid #ffd000;
}

.result-decline {
    border-left: 4px solid #ff0000;
}

/* Animaciones */
@keyframes slideIn {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/*******************************/
/* ================= LOGO TEXTO ARRIBA + IMAGEN ABAJO ================= */

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0 35px 0;
}

/* TEXTO METÁLICO */
.logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #400000, #ff0000, #ffffff, #ff0000, #400000);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    text-shadow: 0 0 10px rgba(255,0,0,0.6);
}

/* IMAGEN CUADRADA */
.logo-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(255,0,0,0.5);
    background: #120000;
    animation: logoPulse 3s infinite ease-in-out;
    transition: 0.4s ease;
}

/* PULSO ROJO */
@keyframes logoPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255,0,0,0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255,0,0,0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255,0,0,0.4);
    }
}

/* BRILLO METALICO TEXTO */
@keyframes shine {
    0% { background-position: 0%; }
    100% { background-position: 300%; }
}

/* HOVER MÁS INTENSO */
.logo-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px red;
}



body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;

    background: 
        linear-gradient(rgba(10,0,0,0.85), rgba(20,0,0,0.9)),
        url("../img/footer.png") center/cover no-repeat;

    background-attachment: fixed;
}

/* ================= ICONO LOGOUT ================= */

.logout {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,0,0,0.4);
    transition: 0.3s ease;
}

.logout-icon {
    width: 20px;
    height: 20px;
    transition: 0.3s ease;
}

/* Hover rojo premium */
.logout:hover {
    background: rgba(255,0,0,0.2);
    box-shadow: 0 0 20px red;
}

.logout:hover .logout-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 10px red);
}

/********************/

.view {
    display: none;
}

.active-view {
    display: block;
}

.welcome-box {
    background: rgba(255,0,0,0.08);
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
}

.profile-card {
    background: rgba(255,0,0,0.08);
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
}
/*****************************************/
/* ================= GENCOOKIE PANEL ================= */

.gencookie-container {
    margin-top: 30px;
}

.gencookie-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.gencookie-block label {
    margin-bottom: 8px;
    color: #ff4d4d;
    font-weight: bold;
}

.gencookie-big {
    height: 180px;
    border-radius: 15px;
    padding: 15px;
    background: #120000;
    border: 1px solid rgba(255,0,0,0.4);
    color: white;
    resize: none;
}

.gencookie-row {
    display: flex;
    gap: 20px;
}

.gencookie-block.small textarea {
    height: 80px;
    border-radius: 12px;
    padding: 10px;
    background: #120000;
    border: 1px solid rgba(255,0,0,0.4);
    color: white;
    resize: none;
}

.gencookie-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .gencookie-row {
        flex-direction: column;
    }
}

/****************************************/
/* ================= PERFIL GRID ================= */

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.profile-box {
    background: linear-gradient(145deg, #140000, #250000);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255,0,0,0.25);
    transition: 0.3s ease;
    text-align: center;
}

.profile-box h3 {
    margin-bottom: 10px;
    color: #ff4d4d;
    font-size: 16px;
}

.profile-box p {
    font-size: 18px;
    font-weight: bold;
}

.profile-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255,0,0,0.5);
}
/********************************************/

.amazon-layout {
    display: flex;
    gap: 25px;
    margin-top: 25px;
}

/* IZQUIERDA GENERADOR */
.amazon-left {
    flex: 1;
    background: linear-gradient(145deg, #140000, #250000);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,0,0,0.3);
}

/* DERECHA TEXTAREA */
.amazon-right {
    flex: 2;
}

.amazon-right textarea {
    width: 100%;
    height: 350px; /* más largo hacia abajo */
    background: #120000;
    border: 1px solid rgba(255,0,0,0.4);
    border-radius: 15px;
    padding: 15px;
    color: white;
    resize: none;
}

.gen-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.gen-block label {
    margin-bottom: 5px;
    color: #ff4d4d;
    font-size: 13px;
}

.gen-block input {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,0,0,0.4);
    background: #120000;
    color: white;
}

.gen-row {
    display: flex;
    gap: 10px;
}

.gen-block.small {
    flex: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .amazon-layout {
        flex-direction: column;
    }
}

/* ================= BOTONES AMAZON ================= */

.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.action-buttons button {
    flex: 1; /* Hace que ambos tengan el mismo ancho */
    height: 45px;
}

.gen-block select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,0,0,0.4);
    background: #120000;
    color: white;
    outline: none;
}

.gen-block select:focus {
    border: 1px solid red;
    box-shadow: 0 0 10px red;
}