/*
Theme Name: Piscinas Munt
Theme URI: https://piscinasmunt.com
Author: Piscinas Munt
Description: Tema profesional para gestión de mantenimiento de piscinas
Version: 4.0
License: GPL v2 or later
Text Domain: piscinas-munt
*/

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f4f7fa;
    color: #333;
    line-height: 1.6;
}

/* ===== LAYOUT ===== */
.wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== CARD ===== */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

/* ===== BOTONES ===== */
.btn-primary {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background .2s, transform .1s;
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover  { background: #005a87; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-success { background: #28a745; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; transition: background .2s; }
.btn-success:hover { background: #1e7e34; }

.btn-danger  { background: #dc3545; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; transition: background .2s; }
.btn-danger:hover  { background: #c82333; }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.badge-excelente { background: #d4edda; color: #155724; }
.badge-bueno     { background: #cce5ff; color: #004085; }
.badge-regular   { background: #fff3cd; color: #856404; }
.badge-malo      { background: #f8d7da; color: #721c24; }

/* ===== NAVBAR ===== */
.navbar {
    background: #0073aa;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .logo { color: white; font-size: 20px; font-weight: bold; text-decoration: none; }
.navbar .logo span { background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 20px; font-size: 13px; margin-left: 6px; }
.navbar .menu { display: flex; gap: 6px; flex-wrap: wrap; }
.navbar .menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 6px;
    transition: background .2s, color .2s;
    font-size: 14px;
}
.navbar .menu a:hover, .navbar .menu a.active { background: rgba(255,255,255,0.2); color: white; }

/* ===== ANIMACIÓN URGENTES ===== */
@keyframes pulseRed {
    0%, 100% { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
    50%       { box-shadow: 0 0 0 4px rgba(220,53,69,0.3); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .wrap { padding: 10px; }
    .navbar { padding: 10px 14px; }
    .navbar .menu a { padding: 5px 10px; font-size: 13px; }
}
@media (max-width: 480px) {
    .navbar .logo span { display: none; }
}
