/* ============================================================
   SolucionaStack — Estilos globales
   Colores Wibox: #2563eb (azul), #06b6d4 (cian), #ffc107 (amarillo)
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --yellow: #ffc107;
    --yellow-dark: #d97706;
    --dark: #1f2937;
    --dark-secondary: #374151;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all .25s ease;
}

/* ---- Reset y base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-secondary);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ---- Navbar ---- */
.ss-navbar {
    background: rgba(30, 64, 175, 0.97);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.ss-navbar.scrolled {
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

.ss-navbar .navbar-brand { color: var(--white) !important; font-weight: 700; font-size: 1.4rem; }
.ss-navbar .nav-link { color: rgba(255,255,255,.9) !important; font-weight: 500; padding: .5rem 1rem !important; border-radius: var(--radius); transition: var(--transition); }
.ss-navbar .nav-link:hover, .ss-navbar .nav-link.active { color: var(--white) !important; background: rgba(255,255,255,.15); }

.btn-nav-primary {
    background: var(--yellow);
    color: var(--dark) !important;
    font-weight: 600;
    border-radius: 6px;
    padding: .4rem 1.2rem !important;
}
.btn-nav-primary:hover { background: var(--yellow-dark); color: var(--dark) !important; }

.btn-nav-secondary {
    border: 1.5px solid rgba(255,255,255,.7);
    color: var(--white) !important;
    border-radius: 6px;
    padding: .4rem 1.2rem !important;
}
.btn-nav-secondary:hover { background: rgba(255,255,255,.15); }

/* ---- Hero ---- */
.ss-hero {
    background: linear-gradient(135deg, #0e1e50 0%, #1e40af 50%, #1d4ed8 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.ss-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(6,182,212,.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255,193,7,.08) 0%, transparent 50%);
    pointer-events: none;
}

.ss-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.15; }
.ss-hero .lead { font-size: 1.2rem; opacity: .9; max-width: 600px; }

.btn-hero-primary {
    background: var(--yellow);
    color: var(--dark);
    font-weight: 700;
    padding: .85rem 2rem;
    border-radius: 8px;
    font-size: 1.05rem;
    transition: var(--transition);
    border: none;
}
.btn-hero-primary:hover { background: var(--yellow-dark); color: var(--dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,193,7,.4); }

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.7);
    font-weight: 600;
    padding: .85rem 2rem;
    border-radius: 8px;
    font-size: 1.05rem;
    transition: var(--transition);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.15); color: var(--white); border-color: var(--white); }

/* ---- Secciones ---- */
.ss-section { padding: 80px 0; }
.ss-section-gray { background: var(--gray-light); }
.ss-section-dark { background: var(--dark); color: var(--white); }

.ss-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: .5rem;
}
.ss-section-title.light { color: var(--white); }
.ss-section-subtitle { color: var(--gray); font-size: 1.1rem; margin-bottom: 3rem; }
.ss-section-subtitle.light { color: rgba(255,255,255,.75); }

/* ---- Cards ---- */
.ss-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
}
.ss-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.ss-card-icon {
    width: 56px; height: 56px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

/* ---- Planes ---- */
.ss-plan-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 2px solid var(--border);
    transition: var(--transition);
    position: relative;
    height: 100%;
}
.ss-plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.ss-plan-card.featured {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    border-color: var(--primary);
    color: #fff;
}

.ss-plan-badge {
    position: absolute;
    top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--yellow);
    color: var(--dark);
    font-weight: 700;
    font-size: .8rem;
    padding: .25rem .9rem;
    border-radius: 20px;
    white-space: nowrap;
}

.ss-plan-price { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.ss-plan-price span { font-size: 1rem; font-weight: 400; color: var(--gray); }
.ss-plan-card.featured .ss-plan-price { color: #fff; }
.ss-plan-card.featured .ss-plan-price span { color: rgba(255,255,255,.7); }
.ss-plan-features li { padding: .35rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.ss-plan-features li:last-child { border-bottom: none; }
.ss-plan-features li i { color: var(--success); width: 20px; }
.ss-plan-card.featured .ss-plan-features li { border-bottom-color: rgba(255,255,255,.2); color: rgba(255,255,255,.9); }
.ss-plan-card.featured .ss-plan-features li i { color: var(--yellow); }

/* ---- Botones ---- */
.btn-primary-ss {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: .65rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary-ss:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); }

.btn-accent-ss {
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: .65rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-accent-ss:hover { background: var(--accent-dark); color: var(--white); }

.btn-yellow-ss, .btn-yellow {
    background: var(--yellow);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    padding: .65rem 1.5rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.btn-yellow-ss:hover, .btn-yellow:hover { background: var(--yellow-dark); color: var(--dark); }

.btn-outline-ss {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: .6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline-ss:hover { background: var(--primary); color: var(--white); }

/* ---- Forms ---- */
.ss-form-control {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: .65rem 1rem;
    font-size: .95rem;
    transition: var(--transition);
    width: 100%;
}
.ss-form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); outline: none; }

.ss-form-label { font-weight: 600; font-size: .9rem; color: var(--dark); margin-bottom: .35rem; display: block; }

/* ---- Auth pages ---- */
.ss-auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0e1e50 0%, #1e40af 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.ss-auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0,0,0,.25);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}
.ss-auth-logo { text-align: center; margin-bottom: 2rem; }

/* ---- Dashboard ---- */
.ss-dashboard-sidebar {
    background: var(--dark);
    min-height: 100vh;
    padding: 1.5rem 1rem;
    color: var(--white);
}
.ss-dashboard-sidebar .nav-link {
    color: rgba(255,255,255,.75);
    border-radius: 8px;
    padding: .6rem 1rem;
    margin-bottom: .25rem;
    transition: var(--transition);
}
.ss-dashboard-sidebar .nav-link:hover,
.ss-dashboard-sidebar .nav-link.active {
    background: rgba(255,255,255,.1);
    color: var(--white);
}
.ss-dashboard-sidebar .nav-link i { width: 22px; }

.ss-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

/* ---- Toasts / Notificaciones ---- */
.ss-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 360px;
}
.ss-toast {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    border-left: 4px solid var(--primary);
    animation: slideIn .3s ease;
}
.ss-toast.success { border-color: var(--success); }
.ss-toast.danger { border-color: var(--danger); }
.ss-toast.warning { border-color: var(--warning); }
.ss-toast-icon { font-size: 1.2rem; margin-top: .1rem; }
.ss-toast.success .ss-toast-icon { color: var(--success); }
.ss-toast.danger .ss-toast-icon { color: var(--danger); }
.ss-toast.warning .ss-toast-icon { color: var(--warning); }
.ss-toast-close { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--gray); font-size: 1.1rem; padding: 0; line-height: 1; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---- Footer ---- */
.ss-footer {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    padding: 60px 0 30px;
}
.ss-footer h5 { color: var(--white); font-weight: 700; margin-bottom: 1rem; }
.ss-footer a { color: rgba(255,255,255,.65); transition: var(--transition); display: block; margin-bottom: .4rem; font-size: .9rem; }
.ss-footer a:hover { color: var(--white); }
.ss-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---- Badge trial warning ---- */
.ss-trial-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
}

/* ---- Powered by AWS badge ---- */
.powered-aws-badge {
    display: inline-flex; align-items: center; gap: 8px; width: fit-content;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 24px; padding: 5px 16px;
    font-size: .82rem; font-weight: 600;
    color: rgba(255,255,255,.95);
    margin-bottom: 1.2rem;
}
.powered-aws-badge i { font-size: 1.1rem; color: #ff9900; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .ss-hero { padding: 80px 0 60px; }
    .ss-section { padding: 50px 0; }
    .ss-auth-card { padding: 1.75rem; }
}
