:root{
 --bg:#0f172a;
 --card:#111827;
 --primary:#22c55e;
 --secondary:#38bdf8;
 --text:#e5e7eb;
 --muted:#9ca3af;
}

*{box-sizing:border-box;font-family:Inter,Arial}

body{
 margin:0;
 background:var(--bg);
 color:var(--text);
}

a{color:var(--secondary);text-decoration:none}

.wrapper{
 display:flex;
 min-height:100vh;
}

/* Sidebar */
.sidebar{
 width:240px;
 background:#020617;
 padding:20px;
 box-shadow:4px 0 20px rgba(0,0,0,.4);
}

.sidebar h2{
 color:var(--primary);
}

.sidebar a{
 display:block;
 padding:10px;
 margin:6px 0;
 border-radius:8px;
 color:var(--text);
}

.sidebar a:hover{
 background:rgba(34,197,94,.15);
}

/* Main */
.main{
 flex:1;
 padding:30px;
}

/* Cards */
.cards{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
 gap:20px;
}

.card{
 background:var(--card);
 padding:20px;
 border-radius:16px;
 box-shadow:0 10px 30px rgba(0,0,0,.4);
 transition:.2s;
}

.card:hover{
 transform:translateY(-4px);
}

/* Tables */
table{
 width:100%;
 border-collapse:collapse;
 background:var(--card);
 border-radius:12px;
 overflow:hidden;
}

th,td{
 padding:12px;
 border-bottom:1px solid #1f2937;
}

th{
 background:#020617;
 color:var(--muted);
 text-align:left;
}

/* Buttons */
.btn{
 padding:10px 14px;
 border-radius:10px;
 border:none;
 cursor:pointer;
 background:var(--primary);
 color:#052e16;
 font-weight:600;
}

.btn.secondary{
 background:var(--secondary);
 color:#082f49;
}

/* Forms */
input{
 width:100%;
 padding:12px;
 border-radius:10px;
 border:1px solid #1f2937;
 background:#020617;
 color:var(--text);
 margin-bottom:12px;
}

@media(max-width:768px){
 .sidebar{width:70px}
 .sidebar h2{display:none}
 .sidebar a{font-size:0}
 .sidebar a::before{font-size:18px}
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
    animation: zoomIn .2s ease;
}

.modal-content img {
    margin: 15px 0;
    width: 200px;
    height: 200px;
}

.close {
    float: right;
    font-size: 22px;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content {
    color: #000; /* texto negro SOLO dentro del modal */
}
.modal-content a {
    color: #000;
}
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35);
    transition: all .25s ease;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:active {
    transform: scale(0.97);
}

.whatsapp-center {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}
